apply plugin: 'com.android.application'
|
|
android {
|
compileSdkVersion 30
|
/* buildToolsVersion "33.0.0"*/
|
defaultConfig {
|
applicationId "com.lotaai.canguiayw"
|
minSdkVersion 22
|
targetSdkVersion 30
|
versionCode 1
|
versionName "1.0"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
}
|
|
//签名
|
signingConfigs {
|
release {
|
storeFile file("cangui.jks")
|
storePassword "sinata"
|
keyAlias "cangui"
|
keyPassword "sinata"
|
}
|
}
|
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
applicationVariants.all { variant ->
|
// 更新至Android Studio 3.3 gradle 4.10.1
|
variant.outputs.all {
|
outputFileName = "cangui-${defaultConfig.versionName}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk"
|
}
|
}
|
// ndk {
|
// abiFilters "armeabi-v7a","arm64-v8a" // 保留这种架构的CPU
|
// }
|
}
|
|
debug {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
signingConfig signingConfigs.release
|
// ndk {
|
// abiFilters "armeabi-v7a" ,"arm64-v8a" // 保留这种架构的CPU
|
// }
|
}
|
}
|
|
}
|
|
android {
|
sourceSets {
|
main {
|
jniLibs.srcDirs = ['libs']
|
}
|
}
|
}
|
|
apply plugin: 'com.android.application'
|
apply plugin: 'org.greenrobot.greendao'
|
greendao {
|
schemaVersion 11//数据库版本号
|
daoPackage 'com.lotaai.canguiayw.sqllitedb'// 设置DaoMaster、DaoSession、Dao 包名
|
targetGenDir 'src/main/java'//设置DaoMaster、DaoSession、Dao目录,请注意,这里路径用/不要用.
|
generateTests false //设置为true以自动生成单元测试。
|
targetGenDirTests 'src/main/java' //应存储生成的单元测试的基本目录。默认为 src / androidTest / java。
|
}
|
|
dependencies {
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
testImplementation 'junit:junit:4.12'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
|
//轮播图
|
implementation 'com.youth.banner:banner:2.0.11'
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
//引入greendao
|
implementation 'org.greenrobot:greendao:3.3.0'
|
//android工具框架
|
implementation 'com.blankj:utilcode:1.30.7'
|
//消息框架
|
implementation("org.greenrobot:eventbus:3.0.0")
|
//LSwitch开关空间
|
implementation 'com.github.liys666666:LSwitch:V1.0.4'
|
|
//悬浮按钮
|
implementation 'com.google.android.material:material:1.4.0'
|
//table控件
|
implementation 'com.github.huangyanbin:SmartTable:2.2.0'
|
//下拉选择框控件
|
implementation 'com.github.arcadefire:nice-spinner:1.3.4'
|
//支持MQTT协议
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
|
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
|
|
//toasts 弹出样式
|
implementation 'com.pranavpandey.android:dynamic-toasts:1.3.0'
|
implementation 'com.alibaba:fastjson:1.2.59'
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
|
|
|
}
|