| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- apply plugin: 'com.android.library'
- apply plugin: 'com.huawei.agconnect'
- android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- defaultConfig {
- minSdkVersion 21
- targetSdkVersion 29
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles 'consumer-rules.pro'
- ndk {
- //选择要添加的对应 cpu 类型的 .so 库。
- abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
- // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
- }
- }
- packagingOptions {
- doNotStrip '*/mips/*.so'
- doNotStrip '*/mips64/*.so'
- merge 'classes.jar'
- merge 'res/values/values.xml'
- merge 'AndroidManifest.xml'
- merge 'R.txt'
- }
- buildTypes {
- debug {
- }
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- sourceSets {
- main {
- jniLibs.srcDir 'libs'
- jni.srcDirs = [] //disable automatic ndk-build
- }
- }
- compileOptions {
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.appcompat:appcompat:1.0.2'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
- // push kit
- implementation 'com.huawei.hms:push:4.0.3.301'
- //
- implementation files('libs\\MiPush_SDK_Client_3_8_5.jar')
- implementation files('libs\\com.heytap.msp.aar')
- implementation files('libs\\vivo_pushsdk-v2.9.0.0.aar')
- implementation 'cn.jiguang.sdk:jpush:3.9.0' // 此处以JPush 3.9.0 版本为例。
- implementation 'cn.jiguang.sdk:jcore:2.6.0' // 此处以JCore 2.6.0 版本为例。
- }
|