@@ -21,9 +21,12 @@ android {
2121 }
2222
2323 buildTypes {
24+ debug {
25+ minifyEnabled false
26+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
27+ }
2428 release {
2529 minifyEnabled true
26- consumerProguardFiles ' proguard-rules.pro'
2730 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2831 }
2932 }
@@ -45,7 +48,7 @@ private String getSuffix() {
4548 String [] splits = project. name. split(" -" )
4649 String suffix = " "
4750 if (splits. length == 2 ) {
48- suffix = " . " + splits[0 ]
51+ suffix = " _ " + splits[0 ]
4952 }
5053 return suffix
5154}
@@ -61,7 +64,7 @@ def configSigning(Project pro) {
6164 properties. load(new FileInputStream (signPropertiesFile))
6265 signingConfigs {
6366 release {
64- storeFile file( properties[' keystore' ])
67+ storeFile new File (signPropertiesFile . getParent(), properties[' keystore' ])
6568 storePassword properties[' storePassword' ]
6669 keyAlias properties[' keyAlias' ]
6770 keyPassword properties[' keyPassword' ]
@@ -75,9 +78,11 @@ def configSigning(Project pro) {
7578def configApkName (Project pro ) {
7679 pro. android. applicationVariants. all { variant ->
7780 if (variant. buildType. name != " debug" ) {
78- variant. getPackageApplication(). outputDirectory = new File (project . rootDir. absolutePath + " /apk" )
81+ variant. getPackageApplication(). outputDirectory = new File (" ${ rootDir.path } /apk" )
7982 variant. getPackageApplication(). outputScope. apkDatas. forEach { apkData ->
80- apkData. outputFileName = " util_" + variant. versionName. replace(" ." , " _" ) + " .apk"
83+ apkData. outputFileName = " util" + suffix +
84+ " _" + variant. versionName. replace(" ." , " _" ) +
85+ " .apk"
8186 }
8287 }
8388 }
0 commit comments