Skip to content

Commit

Permalink
Applied Traute javac plugin in order to have null-checks
Browse files Browse the repository at this point in the history
for @nonnull method parameters in runtime

TESTED: gradlew build & ensured that the checks are inserted
  • Loading branch information
denis-zhdanov committed Dec 13, 2017
1 parent 996163e commit 11a86f5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
plugins {
id "tech.harmonysoft.oss.traute" version '1.0.5'
}
apply plugin: 'com.android.application'

File signPropertiesFile = rootProject.file('sign/keystore.properties')
Expand Down Expand Up @@ -46,6 +49,9 @@ android {
}
}

traute {
javacPluginVersion = trauteVersion
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ ext {

junit_version = '4.12'
robolectric_version = '3.1.2'

trauteVersion = '1.0.10'
}


7 changes: 7 additions & 0 deletions subutil/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
plugins {
id "tech.harmonysoft.oss.traute" version '1.0.5'
}
apply plugin: 'com.android.library'
apply plugin: 'jacoco'

Expand Down Expand Up @@ -50,6 +53,10 @@ android {
}
}

traute {
javacPluginVersion = trauteVersion
}

dependencies {
compileOnly "com.android.support:appcompat-v7:$support_version"
compileOnly "com.android.support:design:$support_version"
Expand Down
7 changes: 7 additions & 0 deletions utilcode/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
plugins {
id "tech.harmonysoft.oss.traute" version '1.0.5'
}
apply plugin: 'com.android.library'
apply plugin: 'jacoco'

Expand Down Expand Up @@ -49,6 +52,10 @@ android {
}
}

traute {
javacPluginVersion = trauteVersion
}

dependencies {
compileOnly "com.android.support:appcompat-v7:$support_version"
compileOnly "com.android.support:design:$support_version"
Expand Down

0 comments on commit 11a86f5

Please sign in to comment.