build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plugins {
  2. alias(libs.plugins.kotlin.android)
  3. id("com.android.library")
  4. }
  5. android {
  6. namespace = "com.narutohuo.xindazhou.push"
  7. compileSdk = 36
  8. defaultConfig {
  9. minSdk = 26
  10. }
  11. compileOptions {
  12. sourceCompatibility = JavaVersion.VERSION_17
  13. targetCompatibility = JavaVersion.VERSION_17
  14. }
  15. kotlinOptions {
  16. jvmTarget = "17"
  17. }
  18. }
  19. repositories {
  20. flatDir {
  21. dirs 'libs'
  22. }
  23. }
  24. dependencies {
  25. // 依赖base-core(所有SDK都依赖这个)
  26. implementation(project(":base-core"))
  27. // AndroidX Core
  28. implementation(libs.androidx.core.ktx)
  29. // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
  30. // Gson for JSON parsing (used by BroadcastReceiver)
  31. implementation("com.google.code.gson:gson:2.10.1")
  32. // 极光推送SDK(使用本地下载的 AAR 文件)
  33. // 注意:需要在极光推送官网注册应用获取 AppKey,并在 AndroidManifest.xml 中配置
  34. // 文件已手动下载到 libs/ 目录
  35. implementation(name: 'jpush-5.9.0', ext: 'aar')
  36. implementation(name: 'jcore-5.2.0', ext: 'aar')
  37. }