plugins {
|
id 'com.android.library'
|
}
|
apply plugin: 'com.kezong.fat-aar'
|
|
//apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
|
|
android {
|
compileSdkVersion 31
|
|
defaultConfig {
|
minSdkVersion 23
|
targetSdkVersion 31
|
versionCode 1
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
consumerProguardFiles "consumer-rules.pro"
|
}
|
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
}
|
}
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
}
|
|
dependencies {
|
|
// implementation 'androidx.appcompat:appcompat:1.2.0'
|
// implementation 'com.google.android.material:material:1.3.0'
|
// testImplementation 'junit:junit:4.+'
|
// androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
// compile fileTree(include:['*.jar'], dir:'libs')
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
// 下面各SDK根据宿主App是否使用相关业务按需引入。
|
// 友盟统计SDK
|
embed 'com.umeng.umsdk:common:9.4.4'// 必选
|
embed 'com.umeng.umsdk:asms:1.4.1'// 必选
|
// embed 'com.umeng.umsdk:apm:1.5.2' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
|
// embed 'com.umeng.umsdk:abtest:1.0.0'//使用U-App中ABTest能力,可选
|
}
|