Skip to content

Commit

Permalink
refactor: migrate to Kotlin build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Apr 10, 2022
1 parent 407efdc commit e50071a
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 34 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,4 @@ gradle-app.setting
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

# Avoid ignoring test resources
!src/test/resources/*
# gradle/wrapper/gradle-wrapper.properties
7 changes: 7 additions & 0 deletions .idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 0 additions & 25 deletions build.gradle

This file was deleted.

39 changes: 39 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
plugins {
kotlin("jvm") version "1.6.20"
id("com.github.johnrengelman.shadow") version "7.1.2"
}

group = "app.revanced"
version = "1.0"

repositories {
mavenCentral()
mavenLocal()
maven {
url = uri("https://maven.pkg.github.com/ReVancedTeam/multidexlib2")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
}
}
}

dependencies {
implementation(kotlin("stdlib"))

implementation("app.revanced:revanced-patcher:1.0.0-dev.8")
implementation("app.revanced:revanced-patches:1.0.0-dev.4")

implementation("com.google.code.gson:gson:2.9.0")
}

tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
manifest {
attributes(Pair("Main-Class", "app.revanced.cli.MainKt"))
}
}
}
2 changes: 0 additions & 2 deletions settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "revanced-cli"
5 changes: 3 additions & 2 deletions src/main/kotlin/app/revanced/cli/utils/SignatureParser.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package app.revanced.cli.utils
import com.google.gson.JsonParser
import java.io.File

import app.revanced.patcher.signature.MethodSignature
import com.google.gson.JsonParser
import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcodes
import java.io.File

class SignatureParser {
companion object {
Expand Down

0 comments on commit e50071a

Please sign in to comment.