-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All changes related to java module. Implemented filters feature (issue #48). Added default filterset (filters/default.json). Changed package name. Java code re-factored. Added unit tests. Updated run, release, build scripts. Updated Readme.
- Loading branch information
1 parent
fe9557c
commit 2ad9271
Showing
36 changed files
with
1,249 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
ant.importBuild 'build.xml' | ||
|
||
task build { | ||
dependsOn resolve | ||
dependsOn jar | ||
// https://stackoverflow.com/a/32909428/9765252 | ||
tasks.findByName('jar').mustRunAfter 'resolve' | ||
} | ||
plugins { | ||
id 'java' | ||
id 'com.adarshr.test-logger' version '1.7.0' // https://github.com/radarsh/gradle-test-logger-plugin | ||
} | ||
repositories { | ||
mavenCentral() | ||
} | ||
jar { | ||
manifest { | ||
attributes( | ||
'Main-Class': 'com.alex_zaitsev.adg.Main' | ||
) | ||
} | ||
} | ||
testlogger { | ||
theme 'standard-parallel' // theme | ||
slowThreshold 0 // show time | ||
} | ||
clean { | ||
delete = [ // delete anything excluding compiled jar | ||
'build/classes', | ||
'build/generated', | ||
'build/tmp', | ||
'build/test-results', | ||
'build/reports'] | ||
} | ||
dependencies { | ||
implementation 'org.smali:baksmali:2.2.5' // runtime dependency | ||
testImplementation 'org.hamcrest:hamcrest:2.1' // test dependency | ||
testImplementation 'junit:junit:4.12' // test dependency | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"package-name": "", | ||
"show-inner-classes": false, | ||
"ignored-classes": [".*Dagger.*", ".*Inject.*", ".*ViewBinding$", ".*Factory$", ".*_.*", "^R$", "^R\\$.*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'default.json' is a default filterset that is shipped with the releases. | ||
|
||
It consists of the next filters: | ||
package-name - Java package to filter by, e.g. "com.mysite.myandroidapp". Empty by default. | ||
show-inner-classes - If true it will contain inner class processing (the ones creating ClassName$InnerClass files). False by default. | ||
ignored-classes - The list of regexps that will be applied to class names. | ||
If class name matches any of provided regexps - it will be ignored. | ||
By default it filters Dagger, ButterKnife, R and some generated classes. | ||
|
||
You may extend this file or create a set of your own filter files for each project. | ||
|
||
Read Usage part of Readme for the details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.