|
- apply plugin: 'com.android.application'
-
- apply plugin: 'kotlin-android'
-
- apply plugin: 'kotlin-android-extensions'
-
- android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- defaultConfig {
- applicationId "com.yzx.webebook"
- minSdkVersion 26
- targetSdkVersion 29
- versionCode 2
- versionName "2.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- signingConfigs {
- yzx {
- keyAlias ALIAS_NAME
- keyPassword ALIAS_PWD
- storeFile file(KEY_PATH)
- storePassword KEY_PWD
- v2SigningEnabled false
- }
- }
- buildTypes {
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- zipAlignEnabled true
- debuggable false
- signingConfig signingConfigs.yzx
- // 移除无用的resource文件
- shrinkResources true
- }
-
- debug {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- debuggable true
- signingConfig signingConfigs.yzx
- // 移除无用的resource文件
- shrinkResources false
- }
-
- applicationVariants.all { variant ->
- variant.outputs.all { output ->
- def fileName
- fileName = "Yzx_${variant.versionName}.apk"
- output.outputFileName = fileName
- }
- }
- }
- }
-
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation "org.jetbrains.anko:anko:$anko_version"
- // 基础依赖包,必须要依赖
- implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
- // fragment快速实现(可选)
- implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
- // kotlin扩展(可选)
- implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
- implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation 'com.google.android.material:material:1.1.0'
- implementation 'androidx.core:core-ktx:1.2.0'
- 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 files('libs/wenote.jar')
- implementation 'com.github.bumptech.glide:glide:4.11.0'
- implementation 'com.lzy.net:okgo:3.0.4'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
-
-
- }
|