| | |
| | | plugins { |
| | | id 'com.android.application' |
| | | id 'kotlin-android' |
| | | } |
| | | |
| | | android { |
| | |
| | | buildTypes { |
| | | debug{ |
| | | minifyEnabled false |
| | | buildConfigField 'String','HOST_IP_ADDR','"http://192.168.110.116:8080/"' |
| | | buildConfigField 'String','HOST_IP_ADDR','"https://ek57678522.oicp.vip/"' |
| | | resValue "string", "app_name", "MVVM OPEN TEST" |
| | | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| | | } |
| | | release { |
| | | minifyEnabled false |
| | | buildConfigField 'String','HOST_IP_ADDR','"http://192.168.100.82:8080/' |
| | | buildConfigField 'String','HOST_IP_ADDR','"https://ek57678522.oicp.vip/"' |
| | | resValue "string", "app_name", "MVVM OPEN" |
| | | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| | | } |
| | |
| | | sourceCompatibility JavaVersion.VERSION_1_8 |
| | | targetCompatibility JavaVersion.VERSION_1_8 |
| | | } |
| | | kotlinOptions { |
| | | jvmTarget = '1.8' |
| | | } |
| | | buildFeatures { |
| | | viewBinding true |
| | | } |
| | | android.applicationVariants.all { variant -> |
| | | variant.outputs.all { |
| | | def viron |
| | | |
| | | if (buildType.name.equals('release')) { |
| | | viron = "正式版"; |
| | | }else if (buildType.name.equals('debug')) { |
| | | viron = "开发版"; |
| | | } |
| | | outputFileName = "MVVM开源项目-" + viron + "-v" + |
| | | def viron = name |
| | | outputFileName = "MVVM-OPEN-" + viron + "-v" + |
| | | defaultConfig.versionName +"-" + defaultConfig.versionCode +"-" + new Date().format("MMddHHmm", TimeZone.getTimeZone("UTC"))+ |
| | | ".apk" |
| | | } |
| | |
| | | annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' |
| | | implementation 'com.facebook.rebound:rebound:0.3.6'//Rebound “弹簧”动画效果的第三方工具包,由FaceBook |
| | | implementation 'com.github.zhaolei9527:BottomMenu:v1.0.1'//底部菜单弹框 |
| | | implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'//图片选择 |
| | | implementation 'com.github.wildma:PictureSelector:1.1.1'//图片选择裁切工具 |
| | | implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.6.0'//图片选择 |
| | | } |