Skip to content

Commit a28a525

Browse files
committed
add test item with hieroglyph
1 parent 7b09b5e commit a28a525

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package brut.androlib.apk;
2+
3+
import brut.androlib.exceptions.AndrolibException;
4+
import org.junit.Test;
5+
6+
import static org.junit.Assert.*;
7+
8+
public class DoNotCompressHieroglyphTest {
9+
10+
@Test
11+
public void testHieroglyph() throws AndrolibException {
12+
ApkInfo apkInfo = ApkInfo.load(
13+
this.getClass().getResourceAsStream("/apk/donotcompress_with_hieroglyph.yml"));
14+
assertEquals("2.0.0", apkInfo.version);
15+
assertEquals("testapp.apk", apkInfo.getApkFileName());
16+
assertEquals(2, apkInfo.doNotCompress.size());
17+
assertEquals("assets/AllAssetBundles/Andriod/tx_1001_冰原1", apkInfo.doNotCompress.get(0));
18+
assertEquals("assets/AllAssetBundles/Andriod/tx_1001_冰原1.manifest", apkInfo.doNotCompress.get(1));
19+
}
20+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2.0.0
2+
apkFileName: testapp.apk
3+
doNotCompress:
4+
- assets/AllAssetBundles/Andriod/tx_1001_冰原1
5+
- assets/AllAssetBundles/Andriod/tx_1001_冰原1.manifest
6+

0 commit comments

Comments
 (0)