78 lines
2.2 KiB
Groovy
78 lines
2.2 KiB
Groovy
apply plugin: 'com.android.library'
|
|
android {
|
|
compileSdkVersion 34
|
|
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
manifestPlaceholders = [
|
|
|
|
MI_APP_ID : "2882303761520346070",
|
|
MI_APP_KEY : "5522034658070",
|
|
|
|
HMS_APP_ID : "113161151",
|
|
|
|
MEIZU_APP_ID : "113616",
|
|
MEIZU_APP_KEY: "fcd886f51c144b45b87a67a28e2934d1",
|
|
|
|
VIVO_APP_ID : "105830948",
|
|
VIVO_APP_KEY : "30dc4748b5bf287a74b5ce67ab5b182d",
|
|
|
|
OPPO_APP_KEY : "bb0819c889ae40cd8bde5a8ad4e670fe",
|
|
OPPO_APP_SECRET : "2d8b4e922d60453d987f0d09de6eb4a6"
|
|
]
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file('../keystore2')
|
|
storePassword 'yuchen.com'
|
|
keyAlias 'yuchen'
|
|
keyPassword 'yuchen.com'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility 1.8
|
|
targetCompatibility 1.8
|
|
}
|
|
namespace 'cn.wildfirechat.push'
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
compileOnly fileTree(dir: '../push-aar-dep', include: ['*.aar'])
|
|
|
|
implementation libs.push
|
|
|
|
// implementation libs.appcompat
|
|
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
|
|
implementation project(':client')
|
|
// implementation 'com.meizu.flyme.internet:push-internal:3.4.2@aar'
|
|
implementation platform('com.google.firebase:firebase-bom:33.2.0')
|
|
implementation 'com.google.firebase:firebase-messaging:24.0.1'
|
|
implementation 'com.google.android.gms:play-services-base:18.5.0'
|
|
|
|
def lifecycle_version = '2.2.0'
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
|
|
}
|