-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
brut.apktool/apktool-lib/src/test/java/brut/androlib/apk/DoNotCompressHieroglyphTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package brut.androlib.apk; | ||
|
||
import brut.androlib.exceptions.AndrolibException; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class DoNotCompressHieroglyphTest { | ||
|
||
@Test | ||
public void testHieroglyph() throws AndrolibException { | ||
ApkInfo apkInfo = ApkInfo.load( | ||
this.getClass().getResourceAsStream("/apk/donotcompress_with_hieroglyph.yml")); | ||
assertEquals("2.0.0", apkInfo.version); | ||
assertEquals("testapp.apk", apkInfo.getApkFileName()); | ||
assertEquals(2, apkInfo.doNotCompress.size()); | ||
assertEquals("assets/AllAssetBundles/Andriod/tx_1001_冰原1", apkInfo.doNotCompress.get(0)); | ||
assertEquals("assets/AllAssetBundles/Andriod/tx_1001_冰原1.manifest", apkInfo.doNotCompress.get(1)); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
brut.apktool/apktool-lib/src/test/resources/apk/donotcompress_with_hieroglyph.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2.0.0 | ||
apkFileName: testapp.apk | ||
doNotCompress: | ||
- assets/AllAssetBundles/Andriod/tx_1001_冰原1 | ||
- assets/AllAssetBundles/Andriod/tx_1001_冰原1.manifest | ||
|