@@ -21,14 +21,10 @@ android {
2121 }
2222
2323 buildTypes {
24- // debug {
25- // minifyEnabled true
26- // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
27- // for (int i = 0; i < consumerProguardFiles.size(); i++) {
28- // println consumerProguardFiles[i].getAbsolutePath() + "<111"
29- // }
30- // // consumerProguardFiles[0] + ",111 " + consumerProguardFiles[1].getAbsolutePath()
31- // }
24+ debug {
25+ minifyEnabled false
26+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
27+ }
3228 release {
3329 minifyEnabled true
3430 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
@@ -52,7 +48,7 @@ private String getSuffix() {
5248 String [] splits = project. name. split(" -" )
5349 String suffix = " "
5450 if (splits. length == 2 ) {
55- suffix = " . " + splits[0 ]
51+ suffix = " _ " + splits[0 ]
5652 }
5753 return suffix
5854}
@@ -82,9 +78,11 @@ def configSigning(Project pro) {
8278def configApkName (Project pro ) {
8379 pro. android. applicationVariants. all { variant ->
8480 if (variant. buildType. name != " debug" ) {
85- variant. getPackageApplication(). outputDirectory = new File (project . rootDir. absolutePath + " /apk" )
81+ variant. getPackageApplication(). outputDirectory = new File (" ${ rootDir.path } /apk" )
8682 variant. getPackageApplication(). outputScope. apkDatas. forEach { apkData ->
87- apkData. outputFileName = " util_" + variant. versionName. replace(" ." , " _" ) + " .apk"
83+ apkData. outputFileName = " util" + suffix +
84+ " _" + variant. versionName. replace(" ." , " _" ) +
85+ " .apk"
8886 }
8987 }
9088 }
0 commit comments