Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
a7247e8a
Commit
a7247e8a
authored
Jun 27, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: remove unused test-app submodule
parent
c10a3034
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
94 deletions
+1
-94
.gitmodules
.gitmodules
+0
-3
build.gradle
build.gradle
+1
-5
README.md
jadx-test-app/README.md
+0
-14
build.gradle
jadx-test-app/build.gradle
+0
-70
test-app
jadx-test-app/test-app
+0
-1
settings.gradle
settings.gradle
+0
-1
No files found.
.gitmodules
deleted
100644 → 0
View file @
c10a3034
[submodule "jadx-test-app/test-app"]
path = jadx-test-app/test-app
url = git://github.com/skylot/jadx-test-app.git
build.gradle
View file @
a7247e8a
...
...
@@ -100,7 +100,7 @@ spotless {
}
format
'misc'
,
{
target
'**/*.gradle'
,
'**/*.md'
,
'**/*.xml'
,
'**/.gitignore'
,
'**/.properties'
targetExclude
"
jadx-test-app/test-app/**"
,
"
.gradle/**"
,
".idea/**"
targetExclude
".gradle/**"
,
".idea/**"
lineEndings
(
LineEnding
.
UNIX
)
encoding
(
"UTF-8"
)
...
...
@@ -152,10 +152,6 @@ task samples(dependsOn: 'jadx-samples:samples') {
group
'jadx'
}
task
testAppCheck
(
dependsOn:
'jadx-test-app:testAppCheck'
)
{
group
'jadx'
}
task
cleanBuildDir
(
type:
Delete
)
{
group
'jadx'
delete
buildDir
...
...
jadx-test-app/README.md
deleted
100644 → 0
View file @
c10a3034
### Run jadx on test android application
This module contains build scripts for test recompilation of simple android app from:
https://github.com/skylot/jadx-test-app
For run tests type follow commands in jadx root directory:
```
java
git
submodule
init
git
submodule
update
./
gradlew
testAppCheck
```
Note: You will need connected device or emulator for success
jadx-test-app/build.gradle
deleted
100644 → 0
View file @
c10a3034
ext
{
testAppDir
=
'test-app'
testAppTmpDir
=
'test-app-tmp'
tmpBuildFile
=
"${testAppTmpDir}/build.gradle"
apkFile
=
"${testAppTmpDir}/build/outputs/apk/test-app-tmp-debug.apk"
outCodeDir
=
"${testAppTmpDir}/src/main"
checkTask
=
'connectedCheck'
}
dependencies
{
compile
(
project
(
":jadx-cli"
))
}
task
deleteTmp
(
type:
Delete
)
{
delete
testAppTmpDir
}
task
copyApp
(
type:
Copy
,
dependsOn:
deleteTmp
)
{
from
testAppDir
into
testAppTmpDir
}
task
buildApp
(
type:
Exec
,
dependsOn:
copyApp
)
{
workingDir
testAppTmpDir
commandLine
"./gradlew clean build ${checkTask}"
.
split
(
' '
)
}
task
removeSource
(
type:
Delete
,
dependsOn:
buildApp
)
{
delete
outCodeDir
}
task
runJadx
(
type:
JavaExec
,
dependsOn:
removeSource
)
{
classpath
=
sourceSets
.
main
.
output
+
configurations
.
compile
main
=
project
(
':jadx-cli'
).
mainClassName
args
=
[
'-d'
,
testAppTmpDir
,
apkFile
,
'-v'
,
'-e'
]
}
task
decompile
(
dependsOn:
runJadx
)
{
doLast
{
injectDependencies
()
}
}
def
injectDependencies
()
{
def
fileContent
=
file
(
tmpBuildFile
).
getText
(
'UTF-8'
)
def
updatedContent
=
fileContent
.
replaceAll
(
'// some dependencies'
,
"""
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
"""
)
file
(
tmpBuildFile
).
write
(
updatedContent
,
'UTF-8'
)
}
task
runChecks
(
type:
Exec
,
dependsOn:
decompile
)
{
workingDir
testAppTmpDir
commandLine
"./gradlew clean build ${checkTask}"
.
split
(
' '
)
}
task
testAppCheck
(
dependsOn:
runChecks
)
{
doFirst
{
def
buildFile
=
file
(
buildFile
)
if
(!
buildFile
.
exists
()
||
!
buildFile
.
isFile
())
{
throw
new
StopExecutionException
(
"Test app not found"
)
}
}
}
clean
.
dependsOn
deleteTmp
test-app
@
2f34a777
Subproject commit 2f34a777adf9c4b303e2627c95a41d28204bdc4c
settings.gradle
View file @
a7247e8a
...
...
@@ -4,4 +4,3 @@ include 'jadx-core'
include
'jadx-cli'
include
'jadx-gui'
include
'jadx-samples'
include
'jadx-test-app'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment