|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion 30
|
|
|
|
|
buildToolsVersion "30.0.3"
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "com.rehome.filesync"
|
|
|
|
|
minSdkVersion 24
|
|
|
|
|
targetSdkVersion 30
|
|
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
multiDexEnabled true
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
resValue "string", "authorities", "com.rehome.filesync"
|
|
|
|
|
resConfigs "zh", "en"
|
|
|
|
|
resConfigs "hdpi"
|
|
|
|
|
}
|
|
|
|
|
buildFeatures {
|
|
|
|
|
buildConfig = true
|
|
|
|
|
}
|
|
|
|
|
signingConfigs {
|
|
|
|
|
release {
|
|
|
|
|
keyAlias 'key0'
|
|
|
|
|
storeFile file('../key/keystore1')
|
|
|
|
|
storePassword 'abc123123'
|
|
|
|
|
keyPassword 'abc123123'
|
|
|
|
|
v1SigningEnabled true //是否开启V1签名
|
|
|
|
|
v2SigningEnabled true //是否开启V2签名
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/* keypassword:abc123123 alias key0*/
|
|
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
buildConfigField "boolean", "LOG_ERROR", "true"
|
|
|
|
|
}
|
|
|
|
|
release {
|
|
|
|
|
lintOptions {
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
abortOnError false
|
|
|
|
|
}
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
zipAlignEnabled true // 对齐zip
|
|
|
|
|
debuggable false // 是否debug
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
buildConfigField "boolean", "LOG_ERROR", "false"
|
|
|
|
|
signingConfig signingConfigs.release // 打包签名信息
|
|
|
|
|
//修改生成的apk名字
|
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
|
variant.outputs.all {
|
|
|
|
|
outputFileName = "filesync.apk"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
|
|
|
|
|
|
|
|
implementation 'com.zhy:autolayout:1.4.5'
|
|
|
|
|
implementation 'com.yolanda.nohttp:nohttp:1.0.5'
|
|
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
|
|
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
|
implementation 'org.litepal.android:core:1.5.1'
|
|
|
|
|
implementation 'com.yanzhenjie:permission:2.0.3'
|
|
|
|
|
implementation 'com.github.huangyanbin:SmartTable:2.2.0'
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
|
|
|
|
implementation 'com.jakewharton:butterknife:10.2.3'
|
|
|
|
|
implementation 'com.github.allenlzhang:NetworkState:v1.0.0'
|
|
|
|
|
implementation 'com.azhon:appupdateX:2.9.0'
|
|
|
|
|
implementation 'com.tencent.bugly:crashreport:3.2.1'
|
|
|
|
|
implementation 'com.github.xuexiangjys:XUI:1.1.4'
|
|
|
|
|
implementation 'org.greenrobot:eventbus:3.0.0'
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
|
|
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.9'
|
|
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
|
resolutionStrategy {
|
|
|
|
|
force 'androidx.core:core:1.6.0'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|