GeezerVison is showing github.com — Merge branch 'main' of https://github.com/Efaker/FakerAndroid into main · dewee-dev/FakerAndroid@cc4d0cd
File tree
Expand file treeCollapse file tree
Open diff view settings
distribution/apktool/brut.apktool/apktool-lib src/main/java/brut/androlib/res/data
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: bin/FakerAndroid-AS/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ buildscript { |
10 | 10 |
|
11 | 11 | plugins { |
12 | 12 | id 'org.jetbrains.intellij' version '0.4.18' |
13 | | - id 'org.jetbrains.kotlin.jvm' version '1.3.71' |
| 13 | +// id 'org.jetbrains.kotlin.jvm' version kotlin_version |
14 | 14 | id 'org.sonarqube' version '2.8' |
15 | 15 | } |
16 | 16 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,6 +24,7 @@ allprojects { |
24 | 24 | } |
25 | 25 | } |
26 | 26 | buildscript { |
| 27 | + ext.kotlin_version = '1.4.32' |
27 | 28 | repositories { |
28 | 29 | jcenter() |
29 | 30 | } |
@@ -32,5 +33,23 @@ buildscript { |
32 | 33 | } |
33 | 34 | dependencies { |
34 | 35 | classpath 'com.github.jengelman.gradle.plugins:shadow:6.0.0' |
| 36 | + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
| 37 | + } |
| 38 | +} |
| 39 | +apply plugin: 'kotlin' |
| 40 | +repositories { |
| 41 | + mavenCentral() |
| 42 | +} |
| 43 | +dependencies { |
| 44 | + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" |
| 45 | +} |
| 46 | +compileKotlin { |
| 47 | + kotlinOptions { |
| 48 | + jvmTarget = "1.8" |
| 49 | + } |
| 50 | +} |
| 51 | +compileTestKotlin { |
| 52 | + kotlinOptions { |
| 53 | + jvmTarget = "1.8" |
35 | 54 | } |
36 | 55 | } |
Collapse file
Copy file name to clipboardExpand all lines: distribution/apktool/brut.apktool/apktool-lib/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 | import org.apache.tools.ant.filters.* |
17 | 17 |
|
18 | 18 | apply plugin: 'java-library' |
19 | | - |
| 19 | +apply plugin: 'kotlin' |
20 | 20 |
|
21 | 21 | dependencies { |
22 | 22 | testImplementation("junit:junit:4.10") { |
|
Collapse file
Copy file name to clipboardExpand all lines: distribution/apktool/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResResSpec.java +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,12 @@ public ResResSpec(ResID id, String name, ResPackage pkg, ResTypeSpec type) { |
43 | 43 | } else { |
44 | 44 | cleanName = ((name == null || name.isEmpty()) ? ("apktool_dummyval_" + id.toString()) : name); |
45 | 45 | } |
46 | | - |
| 46 | + /** |
| 47 | + * Only Check Self Package 's Name |
| 48 | + */ |
| 49 | + if (pkg.getId() == 0x7f && !UnicodeUtilsKt.isValidResourceEntryName(cleanName) || UnicodeUtilsKt.isJavaReversedKeywords(cleanName)){ |
| 50 | + cleanName = "apktool_validate_name_" + id.toString(); |
| 51 | + } |
47 | 52 | this.mName = cleanName; |
48 | 53 | this.mPackage = pkg; |
49 | 54 | this.mType = type; |
|