XuqmGroup-RNSDK/packages/push/android/build.gradle

48 行
1.1 KiB
Groovy

buildscript {
repositories {
google()
mavenCentral()
maven { url "https://nexus.xuqinmin.com/repository/android/" }
}
dependencies {
classpath("com.android.tools.build:gradle:8.1.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24")
}
}
apply plugin: "com.android.library"
apply plugin: "org.jetbrains.kotlin.android"
android {
compileSdkVersion 34
namespace "com.xuqm.push"
defaultConfig {
minSdkVersion 24
targetSdkVersion 34
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}
repositories {
mavenCentral()
google()
maven { url "https://nexus.xuqinmin.com/repository/android/" }
}
dependencies {
implementation "com.facebook.react:react-android"
// 桥接完整原生 sdk-push带出 sdk-core。版本须与 XuqmGroup-AndroidSDK/gradle.properties
// 的 SDK_PUSH_VERSION / SDK_CORE_VERSION 保持一致;host app 通常已含,Gradle 去重。
implementation "com.xuqm:sdk-push:1.1.3"
implementation "com.xuqm:sdk-core:1.1.6-SNAPSHOT"
}