You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScratchPaper is a Gradle Plugin helps distinguish the buildType/flavor/version via APK icon overlay, bases on [Polyfill](https://github.com/2BAB/Polyfill).
10
8
11
-

9
+
## How does it work?
12
10
11
+

13
12
14
13
> If you install both debug&release Apps in one device, you can not distinguish which is the one you want to test.
15
14
@@ -18,6 +17,7 @@ ScratchPaper can add a overlay on your icon, and put given information (like bui
18
17
- Support regular & round Icons
19
18
- Support adaptive-icon
20
19
- Support AAPT2
20
+
- Support custom text
21
21
22
22
> If you have more than one staging Apps for QA or other colleagues, when they found some issues you may don't know how to match the App version to your code base (branch/commit/etc..), because all of them share the same version like "2.1.0-SNAPSHOT".
23
23
@@ -28,6 +28,15 @@ ScratchPaper supports generating build information into your artifact (which can
28
28
- Dependencies
29
29
- ...
30
30
31
+
## Why choose ScratchPaper?
32
+
33
+
We can find some similar solutions from Github,such as:akonior/icon-version, akaita/easylauncher-gradle-plugin。But the pain points of them are:
34
+
35
+
- Some do not support AAPT2
36
+
- Some do not support latest AGP
37
+
38
+
You should try ScratchPaper if you keep using latest build tools.
39
+
31
40
## Usage
32
41
33
42
**0x01. Add the plugin to classpath:**
@@ -39,8 +48,8 @@ buildscript {
39
48
mavenCentral() // Since 2.5.4, the publish repository has been shifted from Jcenter to Maven Central.
40
49
}
41
50
dependencies {
42
-
classpath 'com.android.tools.build:gradle:4.1.2'
43
-
classpath 'me.2bab:scratchpaper:2.5.4' // Since 2.5.4, the artifactId of ScratchPaper changed from scratch-paper to scratchpaper
51
+
classpath 'com.android.tools.build:gradle:4.2.0'
52
+
classpath 'me.2bab:scratchpaper:2.6.0' // Since 2.5.4, the artifactId of ScratchPaper changed from scratch-paper to scratchpaper
44
53
}
45
54
}
46
55
```
@@ -81,6 +90,7 @@ ScratchPaper is only supported & tested on LATEST ONE Minor versions of Android
0 commit comments