Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/gradle_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle_build_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "modules/ARSCLib"]
path = modules/ARSCLib
url = https://github.com/REAndroid/ARSCLib.git
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ Examples:

```ShellSession

# NB: Due to my lazyness , the dependency ARSCLib.jar is pre-built and placed under APKEditor/libs/ARSCLib.jar or you can build yourself and replace it.
git clone https://github.com/REAndroid/APKEditor
# ARSCLib is now included as a Git submodule, so clone with --recurse-submodules
git clone --recurse-submodules https://github.com/REAndroid/APKEditor
cd APKEditor
./gradlew fatJar
# Executable jar will be placed ./build/libs/APKEditor-x.x.x.jar
Expand Down
17 changes: 7 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,23 @@ java {
targetCompatibility JavaVersion.VERSION_1_8
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.compileJava {
//options.addStringOption('-Xlint:unchecked', '-quiet')
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

repositories {
mavenCentral()
}

dependencies {
//implementation("io.github.reandroid:ARSCLib:+")
compile(files("$rootProject.projectDir/libs/ARSCLib.jar"))
// Use ARSCLib as a submodule project dependency
compile project(':ARSCLib')

// built from: https://github.com/REAndroid/smali-lib
compile(files("$rootProject.projectDir/libs/smali.jar"))
compile files("$rootProject.projectDir/libs/smali.jar")

// built from: https://github.com/REAndroid/JCommand
compile(files("$rootProject.projectDir/libs/JCommand.jar"))
compile files("$rootProject.projectDir/libs/JCommand.jar")
}

processResources {
Expand Down
Binary file removed libs/ARSCLib.jar
Binary file not shown.
1 change: 1 addition & 0 deletions modules/ARSCLib
Submodule ARSCLib added at b942b9
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
rootProject.name = 'APKEditor'

include ':ARSCLib'
project(':ARSCLib').projectDir = new File(rootProject.projectDir, 'modules/ARSCLib')