File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
src/main/kotlin/me/xx2bab/scratchpaper Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ scratchPaper {
5757 extraInfo = new Date().format("MM-dd,HH:mm")
5858 enableGenerateIconOverlay = true
5959 enableGenerateBuildInfo = true
60- enableApplicationIdSuffixDisplay = true
60+ enableVersionNameSuffixDisplay = true
6161
6262 // Experimental field
6363 // @see IconOverlayGenerator#removeXmlIconFiles
@@ -77,7 +77,7 @@ ScratchPaper is only supported & tested on LATEST ONE Minor versions of Android
7777
7878AGP Version|Compatible Status
7979-----------|-----------------
80- 3.6.x (Aapt2) | Support (last support version - 2.5.0 )
80+ 3.6.x (Aapt2) | Support (last support version - 2.5.1 )
81813.5.x (Aapt2) | Support (last support version - 2.4.2)
82823.4.x (Aapt2) | Support (last support version - 2.4.1)
83833.3.x (Aapt2) | Support (last support version - 2.4.1)
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ scratchPaper {
6666 extraInfo = new Date().format("MM-dd,HH:mm")
6767 enableGenerateIconOverlay = true
6868 enableGenerateBuildInfo = true
69- enableApplicationIdSuffixDisplay = true
69+ enableVersionNameSuffixDisplay = true
7070
7171 // Experimental field
7272 // @see IconOverlayGenerator#removeXmlIconFiles
@@ -86,7 +86,7 @@ scratchPaper {
8686
8787AGP Version|Compatible Status
8888-----------|-----------------
89- 3.6.x (Aapt2) | Support (last support version - 2.5.0 )
89+ 3.6.x (Aapt2) | Support (last support version - 2.5.1 )
90903.5.x (Aapt2) | Support (last support version - 2.4.2)
91913.4.x (Aapt2) | Support (last support version - 2.4.1)
92923.3.x (Aapt2) | Support (last support version - 2.4.1)
Original file line number Diff line number Diff line change @@ -57,6 +57,6 @@ if (project.extensions.findByName("buildScan") != null) {
5757
5858// publish
5959group ' me.2bab'
60- version ' 2.5.0 '
60+ version ' 2.5.1 '
6161apply from : ' bintray.gradle'
6262apply from : ' mavenlocal.gradle'
Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ android {
1010 minSdkVersion 16
1111 targetSdkVersion 28
1212 versionCode 3
13- versionName " 2.5.0 "
13+ versionName " 2.5.1 "
1414 }
1515 buildTypes {
1616 debug {
1717 minifyEnabled false
1818 applicationIdSuffix " .debug"
19+ versionNameSuffix " -debug"
1920 }
2021 release {
2122 minifyEnabled false
22- applicationIdSuffix " .debug"
2323 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2424 }
2525 }
@@ -63,5 +63,5 @@ scratchPaper {
6363 enableGenerateIconOverlay = true
6464 enableGenerateBuildInfo = true
6565 enableXmlIconRemove = false
66- enableApplicationIdSuffixDisplay = true
66+ enableVersionNameSuffixDisplay = true
6767}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
88 dependencies {
99 classpath ' com.android.tools.build:gradle:3.6.1'
1010 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11- classpath ' me.2bab:scratch-paper:2.5.0 '
11+ classpath ' me.2bab:scratch-paper:2.5.1 '
1212 }
1313}
1414
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ class IconOverlayGenerator(private val params: GeneratorParams) {
3434 output.processResourcesProvider.get().doFirst(" process${params.dimension} IconsByScratchPaper" ) {
3535 val processedIcons = arrayListOf<File >()
3636 var version = " @" + params.variant.mergedFlavor.versionName
37- if (params.config.enableApplicationIdSuffixDisplay ) {
38- val buildTypeVersionSuffix = params.variant.buildType.applicationIdSuffix ? : " "
39- val flavorVersionSuffix = params.variant.mergedFlavor.applicationIdSuffix ? : " "
37+ if (params.config.enableVersionNameSuffixDisplay ) {
38+ val buildTypeVersionSuffix = params.variant.buildType.versionNameSuffix ? : " "
39+ val flavorVersionSuffix = params.variant.mergedFlavor.versionNameSuffix ? : " "
4040 version + = buildTypeVersionSuffix + flavorVersionSuffix
4141 }
4242 val iconNames = getIconName(processManifestTask.manifestOutputDirectory.get().asFile)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ open class ScratchPaperExtension {
2828 // @see IconOverlayGenerator#removeXmlIconFiles
2929 var enableXmlIconRemove = false
3030
31- var enableApplicationIdSuffixDisplay = true
31+ var enableVersionNameSuffixDisplay = true
3232
3333
3434 fun getBackgroundColor (): Color {
You can’t perform that action at this time.
0 commit comments