Skip to content

Commit

Permalink
docs: update README according to the latest version 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
2BAB committed Mar 16, 2020
1 parent 17f3e83 commit 36e308a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'me.2bab:scratch-paper:2.4.2'
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'me.2bab:scratch-paper:2.5.0'
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ScratchPaper 支持生成编译信息并打包到你的 Apk 中(从 assets 中

## 为什么一定要试试 ScratchPaper

其实市面上不乏有类似的解决方案,例如:akonior/icon-version, akaita/easylauncher-gradle-plugin。但是他们的最重要问题在于:不支持 AAPT2!由于 Google 会在 18 年底停止对 aapt1 的支持(enableAapt2=false 将被移除),所以尽早迁移到 AAPT2 其实是一个明智的选择。最后 AAPT2 还会带来额外的诸多好处:
其实市面上不乏有类似的解决方案,例如:akonior/icon-version, akaita/easylauncher-gradle-plugin。但是他们的最重要问题在于:不支持 AAPT2!由于 Google 18 年底停止了对 aapt1 的支持(enableAapt2=false 将被移除),所以尽早迁移到 AAPT2 其实是一个明智的选择。最后 AAPT2 还会带来额外的诸多好处:

- 其实对 local debug build 时的性能是有一定提升的
- 修复很多 AAPT1 的低级 Bug (我曾写过一个插件来修复各类 AAPT 处理 Manifest 时的 Bug,具体查阅 https://github.com/2BAB/Seal)
Expand All @@ -41,8 +41,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'me.2bab:scratch-paper:2.4.2'
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'me.2bab:scratch-paper:2.5.0'
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ scratchPaper {
enableGenerateIconOverlay = true
enableGenerateBuildInfo = true
enableXmlIconRemove = false
enableApplicationIdSuffixDisplay = false
enableApplicationIdSuffixDisplay = true
}
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'me.2bab:scratch-paper:2.4.2.2-SNAPSHOT'
classpath 'me.2bab:scratch-paper:2.5.0'
}
}

Expand Down

0 comments on commit 36e308a

Please sign in to comment.