Skip to content

Commit 65613c1

Browse files
committed
add files
1 parent a444cd3 commit 65613c1

16 files changed

Lines changed: 582 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Set update schedule for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/build-test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: temurin
19+
java-version: 11
20+
21+
- name: Build with Gradle
22+
uses: gradle/gradle-build-action@v2
23+
with:
24+
arguments: build

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
## JADX Example plugin
3+
4+
Simple example of jadx plugin.
5+
Adds a jadx watermark comment to every generated java class
6+
7+
Install using location id: `github:jadx-decompiler:jadx-example-plugin`
8+
9+
In jadx-cli:
10+
```bash
11+
jadx plugins --install "github:jadx-decompiler:jadx-example-plugin"
12+
```

build.gradle.kts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
3+
plugins {
4+
`java-library`
5+
6+
id("com.github.johnrengelman.shadow") version "8.1.1"
7+
}
8+
9+
dependencies {
10+
implementation("io.github.skylot:jadx-core:1.5.0-SNAPSHOT") {
11+
isChanging = true
12+
}
13+
14+
testImplementation("ch.qos.logback:logback-classic:1.4.7")
15+
testImplementation("org.assertj:assertj-core:3.24.2")
16+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
17+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.3")
18+
19+
testRuntimeOnly("io.github.skylot:jadx-smali-input:1.5.0-SNAPSHOT") {
20+
isChanging = true
21+
}
22+
}
23+
24+
repositories {
25+
mavenCentral()
26+
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
27+
google()
28+
}
29+
30+
java {
31+
sourceCompatibility = JavaVersion.VERSION_11
32+
targetCompatibility = JavaVersion.VERSION_11
33+
}
34+
35+
version = System.getenv("VERSION") ?: "dev"
36+
37+
tasks {
38+
withType(Test::class) {
39+
useJUnitPlatform()
40+
}
41+
val shadowJar = withType(ShadowJar::class) {
42+
archiveClassifier.set("")
43+
dependencies {
44+
// jadx-core can be safely excluded from result jar
45+
exclude(dependency("io.github.skylot:jadx-core"))
46+
}
47+
}
48+
49+
// copy result jar into "build/dist" directory
50+
register<Copy>("dist") {
51+
dependsOn(shadowJar)
52+
dependsOn(withType(Jar::class))
53+
54+
from(shadowJar)
55+
into("$buildDir/dist")
56+
}
57+
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
org.gradle.warning.mode=all
2+
org.gradle.parallel=true
3+
org.gradle.caching=true

gradle/wrapper/gradle-wrapper.jar

60.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
5+
networkTimeout=10000
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 245 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)