Commit 15a3967b696171d411e3bd30897faba817fd8a6e
1 parent
d028688a88
Exists in
master
发版本
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/build.gradle
| 1 | apply plugin: 'com.android.application' | 1 | apply plugin: 'com.android.application' |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | def androidId = rootProject.ext.androidId | 4 | def androidId = rootProject.ext.androidId |
| 5 | def support = rootProject.ext.dependencies | 5 | def support = rootProject.ext.dependencies |
| 6 | def url = rootProject.ext.url | 6 | def url = rootProject.ext.url |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | android { | 9 | android { |
| 10 | signingConfigs { | 10 | signingConfigs { |
| 11 | 11 | ||
| 12 | config { | 12 | config { |
| 13 | keyAlias 'alias' | 13 | keyAlias 'alias' |
| 14 | keyPassword '123456' | 14 | keyPassword '123456' |
| 15 | storeFile file('key.jks') | 15 | storeFile file('key.jks') |
| 16 | storePassword '123456' | 16 | storePassword '123456' |
| 17 | } | 17 | } |
| 18 | debug { | 18 | debug { |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | compileSdk 32 | 21 | compileSdk 32 |
| 22 | 22 | ||
| 23 | defaultConfig { | 23 | defaultConfig { |
| 24 | applicationId "com.hjx.parent" | 24 | applicationId "com.hjx.parent" |
| 25 | minSdk 26 | 25 | minSdk 26 |
| 26 | targetSdk 32 | 26 | targetSdk 32 |
| 27 | versionCode 1009 | 27 | versionCode 1010 |
| 28 | versionName "1.0.09" | 28 | versionName "1.0.10" |
| 29 | 29 | ||
| 30 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 30 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | android.applicationVariants.all { | 33 | android.applicationVariants.all { |
| 34 | variant -> | 34 | variant -> |
| 35 | variant.outputs.all { | 35 | variant.outputs.all { |
| 36 | //在这里修改apk文件名 | 36 | //在这里修改apk文件名 |
| 37 | outputFileName = "parent-${variant.name}-v${variant.versionName}.apk" | 37 | outputFileName = "parent-${variant.name}-v${variant.versionName}.apk" |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | buildTypes { | 40 | buildTypes { |
| 41 | debug { | 41 | debug { |
| 42 | debuggable true | 42 | debuggable true |
| 43 | minifyEnabled false | 43 | minifyEnabled false |
| 44 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 44 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 45 | signingConfig signingConfigs.config | 45 | signingConfig signingConfigs.config |
| 46 | } | 46 | } |
| 47 | release { | 47 | release { |
| 48 | debuggable true | 48 | debuggable true |
| 49 | minifyEnabled false | 49 | minifyEnabled false |
| 50 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 50 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 51 | signingConfig signingConfigs.config | 51 | signingConfig signingConfigs.config |
| 52 | } | 52 | } |
| 53 | } | 53 | } |
| 54 | lintOptions { | 54 | lintOptions { |
| 55 | checkReleaseBuilds false | 55 | checkReleaseBuilds false |
| 56 | abortOnError false | 56 | abortOnError false |
| 57 | } | 57 | } |
| 58 | buildFeatures { | 58 | buildFeatures { |
| 59 | viewBinding true | 59 | viewBinding true |
| 60 | dataBinding true | 60 | dataBinding true |
| 61 | } | 61 | } |
| 62 | compileOptions { | 62 | compileOptions { |
| 63 | sourceCompatibility JavaVersion.VERSION_1_8 | 63 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 64 | targetCompatibility JavaVersion.VERSION_1_8 | 64 | targetCompatibility JavaVersion.VERSION_1_8 |
| 65 | } | 65 | } |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | dependencies { | 68 | dependencies { |
| 69 | support.each { k, v -> implementation v } | 69 | support.each { k, v -> implementation v } |
| 70 | api project(path: ':libs:common') | 70 | api project(path: ':libs:common') |
| 71 | implementation 'androidx.appcompat:appcompat:1.5.1' | 71 | implementation 'androidx.appcompat:appcompat:1.5.1' |
| 72 | implementation 'com.google.android.material:material:1.6.1' | 72 | implementation 'com.google.android.material:material:1.6.1' |
| 73 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | 73 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
| 74 | implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50' | 74 | implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50' |
| 75 | implementation 'com.github.ForgetAll:LoadingDialog:1.1.2' | 75 | implementation 'com.github.ForgetAll:LoadingDialog:1.1.2' |
| 76 | implementation 'com.github.DL-ZhangTeng:ImagePicker:1.5.0' | 76 | implementation 'com.github.DL-ZhangTeng:ImagePicker:1.5.0' |
| 77 | //使用的三方 | 77 | //使用的三方 |
| 78 | implementation 'com.yalantis:ucrop:2.2.0' | 78 | implementation 'com.yalantis:ucrop:2.2.0' |
| 79 | implementation 'com.github.DL-ZhangTeng:RequestPermission:1.3.0' | 79 | implementation 'com.github.DL-ZhangTeng:RequestPermission:1.3.0' |
| 80 | implementation 'com.github.DL-ZhangTeng:Utils:2.2.0' | 80 | implementation 'com.github.DL-ZhangTeng:Utils:2.2.0' |
| 81 | 81 | ||
| 82 | // rx | 82 | // rx |
| 83 | implementation("com.trello.rxlifecycle2:rxlifecycle:2.2.2") | 83 | implementation("com.trello.rxlifecycle2:rxlifecycle:2.2.2") |
| 84 | implementation("com.trello.rxlifecycle2:rxlifecycle-android:2.2.2") | 84 | implementation("com.trello.rxlifecycle2:rxlifecycle-android:2.2.2") |
| 85 | 85 | ||
| 86 | implementation("com.github.PhilJay:MPAndroidChart:v3.1.0") | 86 | implementation("com.github.PhilJay:MPAndroidChart:v3.1.0") |
| 87 | implementation("com.contrarywind:Android-PickerView:4.1.9") | 87 | implementation("com.contrarywind:Android-PickerView:4.1.9") |
| 88 | 88 | ||
| 89 | implementation 'com.google.android:flexbox:1.0.0' | 89 | implementation 'com.google.android:flexbox:1.0.0' |
| 90 | 90 | ||
| 91 | // 沉浸式状态栏和他的Kotlin拓展 | 91 | // 沉浸式状态栏和他的Kotlin拓展 |
| 92 | implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2' | 92 | implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2' |
| 93 | implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2' | 93 | implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2' |
| 94 | 94 | ||
| 95 | // 图片查看 | 95 | // 图片查看 |
| 96 | implementation 'com.github.chrisbanes:PhotoView:2.0.0' | 96 | implementation 'com.github.chrisbanes:PhotoView:2.0.0' |
| 97 | 97 | ||
| 98 | implementation 'com.jakewharton:butterknife:10.2.3' | 98 | implementation 'com.jakewharton:butterknife:10.2.3' |
| 99 | annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3' | 99 | annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3' |
| 100 | } | 100 | } |