- MainActivity/TestActivity 改用 DataBinding 和 ViewModel - 移除 ButterKnife 和旧的 MVP Contact 类 - 升级 Gradle、Kotlin 及构建脚本 - 配置 CMake 以支持 16KB 页面大小
84 lines
2.0 KiB
Groovy
84 lines
2.0 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
namespace "com.ttstd.viewlibrary"
|
|
|
|
compileSdkVersion 30
|
|
|
|
defaultConfig {
|
|
minSdkVersion 23
|
|
targetSdkVersion 30
|
|
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
|
|
productFlavors {
|
|
official {
|
|
flavorDimensions "default"
|
|
}
|
|
|
|
beta {
|
|
flavorDimensions "default"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
BCM310Debug {}
|
|
BCM310Release {}
|
|
MT6789Debug {}
|
|
MT6789Release {}
|
|
QZ15Debug {}
|
|
QZ15Release {}
|
|
seewoDebug {}
|
|
seewoRelease {}
|
|
zhanruiG10ZUserDebug {}
|
|
Huaruian8768Debug {}
|
|
Huaruian8768Release {}
|
|
iPlay50PDebug {}
|
|
iPlay50PRelease {}
|
|
UnisocS6688Debug {}
|
|
UnisocS6688Release {}
|
|
U807Debug {}
|
|
U807Release {}
|
|
tuiXinDebug {}
|
|
teclastUnisocdebug {}
|
|
teclastUnisocrelease {}
|
|
teclastMTKDebug {}
|
|
teclastMTKRelease {}
|
|
G11Userdebug {}
|
|
G10PDebug {}
|
|
G10PRelease {}
|
|
G10PUserDebug {}
|
|
Teclast8515Debug {}
|
|
Teclast8515Release {}
|
|
TeclastP20SDebug {}
|
|
TeclastP20SRelease {}
|
|
zhanRuiDebug {}
|
|
zhanRuiRelease {}
|
|
zhanRuiUserdebug {}
|
|
zhanruiG10ZDebug {}
|
|
zhanruiG10ZRelease {}
|
|
zhanRui12Debug {}
|
|
zhanRui12Release {}
|
|
debug {}
|
|
release {}
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
implementation 'com.facebook.rebound:rebound:0.3.6'
|
|
// implementation 'com.zcw:togglebutton-library:1.0.0'
|
|
api 'com.github.zcweng:switch-button:0.0.3@aar'
|
|
}
|