Skip to content

Commit

Permalink
Dependency housekeeping + use apktool from maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
Churro committed Dec 28, 2021
1 parent 6fb02a4 commit bee3b6b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 87 deletions.
23 changes: 1 addition & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries
.idea

target
.settings
Expand Down
Binary file removed lib/apktool/apktool/2.5.0/apktool-2.5.0.jar
Binary file not shown.
22 changes: 0 additions & 22 deletions lib/apktool/apktool/2.5.0/apktool-2.5.0.pom

This file was deleted.

12 changes: 0 additions & 12 deletions lib/apktool/apktool/maven-metadata-local.xml

This file was deleted.

1 change: 0 additions & 1 deletion lib/install.txt

This file was deleted.

38 changes: 9 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<commons-io.version>2.7</commons-io.version>
<guava.version>30.1.1-jre</guava.version>
<httpcore.version>4.4.14</httpcore.version>
<commons-io.version>2.11.0</commons-io.version>
<guava.version>31.0.1-jre</guava.version>
<httpcore.version>4.4.15</httpcore.version>
<ST4.version>4.3.1</ST4.version>
<largetext.version>0.2.0</largetext.version>
<apktool.version>2.6.0</apktool.version>

<!-- Logging -->
<logback.version>1.2.3</logback.version>
<slf4j.version>1.7.30</slf4j.version>
<logback.version>1.2.10</logback.version>
<slf4j.version>1.7.32</slf4j.version>

<!-- Maven plugins -->
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
Expand Down Expand Up @@ -73,9 +74,9 @@
<version>${largetext.version}</version>
</dependency>
<dependency>
<groupId>apktool</groupId>
<artifactId>apktool</artifactId>
<version>2.5.0</version>
<groupId>org.apktool</groupId>
<artifactId>apktool-lib</artifactId>
<version>${apktool.version}</version>
</dependency>
</dependencies>

Expand All @@ -92,27 +93,6 @@
</configuration>
</plugin>

<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<file>${basedir}/lib/apktool_2.5.0.jar</file>
<groupId>apktool</groupId>
<artifactId>apktool</artifactId>
<version>2.5.0</version>
<packaging>jar</packaging>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>-->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void decode(File apk, File destination, String frameworkDir) throws Anal
decoder.setOutDir(destination);
decoder.setApkFile(apk);
decoder.setFrameworkDir(frameworkDir);
decoder.setAnalysisMode(true, false); // decode resources with original API level
decoder.setAnalysisMode(true); // decode resources with original API level

/*if (XMLTPatternSource.getInstance().isForwardPatternProvided())
decoder.setDecodeResources((short) 0x0101); // DECODE_RESOURCES_FULL, default value of Apktool
Expand Down

0 comments on commit bee3b6b

Please sign in to comment.