Skip to content

Commit

Permalink
Merge pull request #21 from bytedance/release/0.1.4
Browse files Browse the repository at this point in the history
release 0.1.4
  • Loading branch information
JingYeoh committed Jan 13, 2020
2 parents 77c4d36 + 136711d commit 324757d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def aabResGuardPlugin = project.tasks.getByName("aabresguard${VARIANT_NAME}")
Path bundlePath = aabResGuardPlugin.getObfuscatedBundlePath()
```

### [Whitelist](wiki/en/WHITELIST.md)
The resources that can not be confused. Welcome PR your configs which is not included in [WHITELIST](wiki/en/WHITELIST.md)

### [Command line](wiki/en/COMMAND.md)
**AabResGuard** provides a `jar` file that can be executed directly from the command line. More details, please go to **[Command Line](wiki/en/COMMAND.md)**.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ private BundleMetadata filterMetaData() {
.map(ImmutableMap::entrySet)
.flatMap(Collection::stream)
.filter(entry -> {
if (getMatchedFilterRule(entry.getKey()) != null) {
System.out.println(String.format("[filter] metadata file is filtered, path: %s", entry.getKey()));
ZipPath entryZipPath = ZipPath.create(AppBundle.METADATA_DIRECTORY + "/" + entry.getKey());
if (getMatchedFilterRule(entryZipPath) != null) {
System.out.println(String.format("[filter] metadata file is filtered, path: %s", entryZipPath));
filterTotalCount += 1;
filterTotalSize += AppBundleUtils.getZipEntrySize(bundleZipFile, entry.getKey());
filterTotalSize += AppBundleUtils.getZipEntrySize(bundleZipFile, entryZipPath);
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ versions.kotlin = "1.3.0"
//versions.agp = "4.0.0-alpha08"
//versions.kotlin = "1.3.61"
versions.java = "8"
versions.aabresguard = "0.1.3"
versions.aabresguard = "0.1.4"
// android
versions.compileSdkVersion = 28
versions.minSdkVersion = 15
Expand Down
15 changes: 15 additions & 0 deletions wiki/en/WHITELIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Whitelist

Welcome PR your configs which is not included in whitelist.

## Google Services
```
*.R.string.default_web_client_id
*.R.string.firebase_database_url
*.R.string.gcm_defaultSenderId
*.R.string.google_api_key
*.R.string.google_app_id
*.R.string.google_crash_reporting_api_key
*.R.string.google_storage_bucket
*.R.string.project_id
```
3 changes: 3 additions & 0 deletions wiki/zh-cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def aabResGuardPlugin = project.tasks.getByName("aabresguard${VARIANT_NAME}")
Path bundlePath = aabResGuardPlugin.getObfuscatedBundlePath()
```

### [白名单](wiki/en/WHITELIST.md)
不需要混淆的资源. 如果[白名单](wiki/en/WHITELIST.md)中没有包含你的配置,欢迎提交 PR.

### [命令行支持](COMMAND.md)
**AabResGuard** 提供了 `jar` 包,可以使用命令行直接执行,具体的使用请移步 **[命令行支持](COMMAND.md)**

Expand Down

0 comments on commit 324757d

Please sign in to comment.