Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76393173
jadx
提交
012f7665
J
jadx
项目概览
2301_76393173
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
012f7665
编写于
4月 15, 2021
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update gradle to 7.0, update dependencies, fix some build warnings
上级
c28e8142
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
54 addition
and
31 deletion
+54
-31
.gitlab-ci.yml
.gitlab-ci.yml
+8
-3
build.gradle
build.gradle
+30
-15
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+2
-2
jadx-cli/build.gradle
jadx-cli/build.gradle
+1
-1
jadx-core/build.gradle
jadx-core/build.gradle
+1
-1
jadx-gui/build.gradle
jadx-gui/build.gradle
+9
-6
jadx-plugins/jadx-dex-input/build.gradle
jadx-plugins/jadx-dex-input/build.gradle
+1
-1
jadx-plugins/jadx-smali-input/build.gradle
jadx-plugins/jadx-smali-input/build.gradle
+1
-1
jadx-samples/build.gradle
jadx-samples/build.gradle
+1
-1
未找到文件。
.gitlab-ci.yml
浏览文件 @
012f7665
...
...
@@ -11,14 +11,19 @@ stages:
java-8
:
stage
:
test
image
:
openjdk:8
script
:
./gradlew clean build dist
script
:
./gradlew clean build dist
--warning-mode=all
java-11
:
stage
:
test
image
:
openjdk:11
script
:
./gradlew clean build dist
script
:
./gradlew clean build dist --warning-mode=all
java-15
:
stage
:
test
image
:
openjdk:15
script
:
./gradlew clean build dist --warning-mode=all
java-latest
:
stage
:
test
image
:
openjdk:latest
script
:
java -version && ./gradlew clean build dist
script
:
java -version && ./gradlew clean build dist
--warning-mode=all
build.gradle
浏览文件 @
012f7665
plugins
{
id
'com.github.ben-manes.versions'
version
'0.38.0'
id
"com.diffplug.spotless"
version
"5.1
1.0
"
id
"com.diffplug.spotless"
version
"5.1
2.4
"
}
ext
.
jadxVersion
=
System
.
getenv
(
'JADX_VERSION'
)
?:
"dev"
...
...
@@ -38,7 +38,7 @@ allprojects {
testImplementation
'ch.qos.logback:logback-classic:1.2.3'
testImplementation
'org.hamcrest:hamcrest-library:2.2'
testImplementation
'org.mockito:mockito-core:3.
8
.0'
testImplementation
'org.mockito:mockito-core:3.
9
.0'
testImplementation
'org.assertj:assertj-core:3.19.0'
testImplementation
'org.junit.jupiter:junit-jupiter-api:5.7.1'
...
...
@@ -75,7 +75,12 @@ spotless {
importOrderFile
'config/code-formatter/eclipse.importorder'
eclipse
().
configFile
'config/code-formatter/eclipse.xml'
removeUnusedImports
()
if
(
JavaVersion
.
current
()
<
JavaVersion
.
VERSION_16
)
{
removeUnusedImports
()
}
else
{
// google-format broken on java 16 (https://github.com/diffplug/spotless/issues/834)
println
(
'Warning! Unused imports remove is disabled for Java 16'
)
}
lineEndings
(
com
.
diffplug
.
spotless
.
LineEnding
.
UNIX
)
encoding
(
"UTF-8"
)
...
...
@@ -108,32 +113,42 @@ dependencyUpdates {
}
}
task
copyArtifacts
(
type:
Sync
,
dependsOn:
[
'jadx-cli:installDist'
,
'jadx-gui:installDist'
])
{
destinationDir
file
(
"$buildDir/jadx"
)
[
'jadx-cli'
,
'jadx-gui'
].
each
{
from
tasks
.
getByPath
(
":${it}:installDist"
).
destinationDir
}
task
copyArtifacts
(
type:
Copy
)
{
from
tasks
.
getByPath
(
":jadx-cli:installDist"
)
from
tasks
.
getByPath
(
":jadx-gui:installDist"
)
into
layout
.
buildDirectory
.
dir
(
"jadx"
)
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
task
pack
(
type:
Zip
,
dependsOn:
copyArtifacts
)
{
destinationDirectory
=
buildDir
task
pack
(
type:
Zip
)
{
from
copyArtifacts
archiveFileName
=
"jadx-${jadxVersion}.zip"
from
copyArtifacts
.
destinationDir
destinationDirectory
=
layout
.
buildDirectory
}
task
copyExe
(
type:
Copy
,
dependsOn:
'jadx-gui:createExe'
)
{
task
copyExe
(
type:
Copy
)
{
group
'jadx'
description
=
'Copy exe to build dir'
destinationDir
buildDir
from
tasks
.
getByPath
(
'jadx-gui:createExe'
).
outputs
mustRunAfter
pack
// not needed, but gradle throws warning because of same output dir
from
tasks
.
getByPath
(
'jadx-gui:createExe'
)
include
'*.exe'
into
layout
.
buildDirectory
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
task
dist
(
dependsOn:
[
pack
,
copyExe
])
{
task
dist
{
group
'jadx'
description
=
'Build jadx distribution zip'
dependsOn
(
pack
)
if
(
JavaVersion
.
current
()
<
JavaVersion
.
VERSION_16
)
{
dependsOn
(
'copyExe'
)
}
else
{
// shadow jar plugin broken on java 16 (https://github.com/johnrengelman/shadow/issues/658)
tasks
.
getByPath
(
':jadx-gui:shadowJar'
).
enabled
=
false
println
(
'Warning! Build of jadx-gui.exe disabled for Java 16'
)
}
}
task
samples
(
dependsOn:
'jadx-samples:samples'
)
{
...
...
gradle/wrapper/gradle-wrapper.properties
浏览文件 @
012f7665
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionSha256Sum
=
e
2774e6fb77c43657decde25542dea710aafd78c4022d19b196e7e78d79d8c6c
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
6.8
-bin.zip
distributionSha256Sum
=
e
b8b89184261025b0430f5b2233701ff1377f96da1ef5e278af6ae8bac5cc305
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
7.0
-bin.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
jadx-cli/build.gradle
浏览文件 @
012f7665
...
...
@@ -15,7 +15,7 @@ dependencies {
application
{
applicationName
=
'jadx'
mainClass
Name
=
'jadx.cli.JadxCLI'
mainClass
.
set
(
'jadx.cli.JadxCLI'
)
applicationDefaultJvmArgs
=
[
'-Xms128M'
,
'-Xmx4g'
,
'-XX:+UseG1GC'
]
}
...
...
jadx-core/build.gradle
浏览文件 @
012f7665
...
...
@@ -6,7 +6,7 @@ dependencies {
api
(
project
(
':jadx-plugins:jadx-plugins-api'
))
implementation
'com.google.code.gson:gson:2.8.6'
implementation
'com.android.tools.build:aapt2-proto:4.1.
2
-6503028'
implementation
'com.android.tools.build:aapt2-proto:4.1.
3
-6503028'
testImplementation
'org.apache.commons:commons-lang3:3.12.0'
...
...
jadx-gui/build.gradle
浏览文件 @
012f7665
plugins
{
id
'application'
id
'edu.sc.seis.launch4j'
version
'2.
4.9
'
id
'edu.sc.seis.launch4j'
version
'2.
5.0
'
id
'com.github.johnrengelman.shadow'
version
'6.1.0'
}
...
...
@@ -21,13 +21,13 @@ dependencies {
implementation
'io.reactivex.rxjava2:rxjava:2.2.21'
implementation
"com.github.akarnokd:rxjava2-swing:0.3.7"
implementation
'com.android.tools.build:apksig:4.1.
1
'
implementation
'com.android.tools.build:apksig:4.1.
3
'
implementation
'io.github.hqktech:jdwp:1.0'
}
application
{
applicationName
=
'jadx-gui'
mainClass
Name
=
'jadx.gui.JadxGUI'
mainClass
.
set
(
'jadx.gui.JadxGUI'
)
}
applicationDistribution
.
with
{
...
...
@@ -42,12 +42,15 @@ applicationDistribution.with {
jar
{
manifest
{
attributes
(
"Main-Class"
:
mainClassName
,
"Main-Class"
:
application
.
mainClass
.
get
()
,
"Class-Path"
:
configurations
.
runtimeClasspath
.
collect
{
it
.
getName
()
}.
join
(
' '
)
)
}
}
shadow
{
mainClassName
=
application
.
mainClass
.
get
()
}
shadowJar
{
mergeServiceFiles
()
}
...
...
@@ -64,9 +67,9 @@ startScripts {
}
launch4j
{
mainClassName
=
'jadx.gui.JadxGUI'
mainClassName
=
application
.
mainClass
.
get
()
copyConfigurable
=
project
.
tasks
.
shadowJar
.
outputs
.
files
jar
=
"lib/${project.tasks.shadowJar.archiveFileName.get()}"
jar
Task
=
project
.
tasks
.
shadowJar
icon
=
"${projectDir}/src/main/resources/logos/jadx-logo.ico"
outfile
=
"jadx-gui-${version}.exe"
copyright
=
'Skylot'
...
...
jadx-plugins/jadx-dex-input/build.gradle
浏览文件 @
012f7665
...
...
@@ -9,7 +9,7 @@ dependencies {
implementation
'org.smali:baksmali:2.5.2'
// force latest version for smali
constraints
{
implementation
'com.google.guava:guava:30.1-jre'
implementation
'com.google.guava:guava:30.1
.1
-jre'
implementation
'com.beust:jcommander:1.81'
}
...
...
jadx-plugins/jadx-smali-input/build.gradle
浏览文件 @
012f7665
...
...
@@ -12,7 +12,7 @@ dependencies {
}
// force latest version for smali
constraints
{
implementation
'com.google.guava:guava:30.1-jre'
implementation
'com.google.guava:guava:30.1
.1
-jre'
implementation
'com.beust:jcommander:1.81'
}
}
jadx-samples/build.gradle
浏览文件 @
012f7665
...
...
@@ -27,7 +27,7 @@ task samplesJar(type: Jar, dependsOn: samplesRun) {
task
samplesJadxCreate
(
type:
JavaExec
,
dependsOn:
samplesJar
)
{
classpath
=
sourceSets
.
main
.
output
+
configurations
.
runtimeClasspath
main
=
project
(
":jadx-cli"
).
mainClassName
main
=
project
(
":jadx-cli"
).
application
.
mainClass
.
get
()
args
=
[
'-v'
,
'-d'
,
samplesJadxSrcDir
,
samplesJar
.
archiveFile
.
get
()]
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录