Skip to content

Commit 2497bae

Browse files
committed
fix: revert the applicationId to versionName
1 parent 36e308a commit 2497bae

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

7878
AGP 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)
8181
3.5.x (Aapt2) | Support (last support version - 2.4.2)
8282
3.4.x (Aapt2) | Support (last support version - 2.4.1)
8383
3.3.x (Aapt2) | Support (last support version - 2.4.1)

README_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

8787
AGP 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)
9090
3.5.x (Aapt2) | Support (last support version - 2.4.2)
9191
3.4.x (Aapt2) | Support (last support version - 2.4.1)
9292
3.3.x (Aapt2) | Support (last support version - 2.4.1)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ if (project.extensions.findByName("buildScan") != null) {
5757

5858
// publish
5959
group 'me.2bab'
60-
version '2.5.0'
60+
version '2.5.1'
6161
apply from: 'bintray.gradle'
6262
apply from: 'mavenlocal.gradle'

sample/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/main/kotlin/me/xx2bab/scratchpaper/IconOverlayGenerator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

src/main/kotlin/me/xx2bab/scratchpaper/ScratchPaperExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)