| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- plugins {
- alias(libs.plugins.kotlin.android)
- id("com.android.library")
- }
- android {
- namespace = "com.narutohuo.xindazhou.push"
- compileSdk = 36
- defaultConfig {
- minSdk = 26
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = "17"
- }
- }
- repositories {
- flatDir {
- dirs 'libs'
- }
- }
- dependencies {
- // 依赖base-core(所有SDK都依赖这个)
- implementation(project(":base-core"))
-
- // AndroidX Core
- implementation(libs.androidx.core.ktx)
-
- // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
-
- // Gson for JSON parsing (used by BroadcastReceiver)
- implementation("com.google.code.gson:gson:2.10.1")
-
- // 极光推送SDK(使用本地下载的 AAR 文件)
- // 注意:需要在极光推送官网注册应用获取 AppKey,并在 AndroidManifest.xml 中配置
- // 文件已手动下载到 libs/ 目录
- implementation(name: 'jpush-5.9.0', ext: 'aar')
- implementation(name: 'jcore-5.2.0', ext: 'aar')
- }
|