From 58a4a54c62c65cab92c85fd3edeff832e4572ead Mon Sep 17 00:00:00 2001 From: nilupeng <qingingrunt2010@qq.com> Date: Tue, 09 Aug 2022 10:59:47 +0000 Subject: [PATCH] gson 转换日期问题 接入登录接口 修改图标和启动页 --- app/build.gradle | 25 ++++++++----------------- 1 files changed, 8 insertions(+), 17 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f46abb5..085af32 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,16 +18,14 @@ buildTypes { debug{ minifyEnabled false - buildConfigField 'String','HOST_IP_ADDR','"http://192.168.100.82:8080/"' - buildConfigField 'String','ENVIRONMENT','"release"' - resValue "string", "app_name", "MVVM开源项目测试" + buildConfigField 'String','HOST_IP_ADDR','"http://192.168.110.134:8080/"' + 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','ENVIRONMENT','"release"' - resValue "string", "app_name", "MVVM开源项目" + buildConfigField 'String','HOST_IP_ADDR','"http://192.168.100.82:8080/' + resValue "string", "app_name", "MVVM OPEN" proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } @@ -40,14 +38,8 @@ } 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" } @@ -77,9 +69,8 @@ implementation 'com.guolindev.permissionx:permissionx:1.6.0' //权限依赖 implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' - implementation 'com.pangle.cn:ads-sdk-pro:4.0.2.2'//字节跳动 穿山甲广告 - implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 - implementation 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.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'//图片选择裁切工具 } \ No newline at end of file -- Gitblit v1.9.1