Skip to content

Commit 11a86f5

Browse files
committed
Applied Traute javac plugin in order to have null-checks
for @nonnull method parameters in runtime TESTED: gradlew build & ensured that the checks are inserted
1 parent 996163e commit 11a86f5

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

app/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins {
2+
id "tech.harmonysoft.oss.traute" version '1.0.5'
3+
}
14
apply plugin: 'com.android.application'
25

36
File signPropertiesFile = rootProject.file('sign/keystore.properties')
@@ -46,6 +49,9 @@ android {
4649
}
4750
}
4851

52+
traute {
53+
javacPluginVersion = trauteVersion
54+
}
4955

5056
dependencies {
5157
implementation fileTree(include: ['*.jar'], dir: 'libs')

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ ext {
4242

4343
junit_version = '4.12'
4444
robolectric_version = '3.1.2'
45+
46+
trauteVersion = '1.0.10'
4547
}
4648

4749

subutil/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins {
2+
id "tech.harmonysoft.oss.traute" version '1.0.5'
3+
}
14
apply plugin: 'com.android.library'
25
apply plugin: 'jacoco'
36

@@ -50,6 +53,10 @@ android {
5053
}
5154
}
5255

56+
traute {
57+
javacPluginVersion = trauteVersion
58+
}
59+
5360
dependencies {
5461
compileOnly "com.android.support:appcompat-v7:$support_version"
5562
compileOnly "com.android.support:design:$support_version"

utilcode/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins {
2+
id "tech.harmonysoft.oss.traute" version '1.0.5'
3+
}
14
apply plugin: 'com.android.library'
25
apply plugin: 'jacoco'
36

@@ -49,6 +52,10 @@ android {
4952
}
5053
}
5154

55+
traute {
56+
javacPluginVersion = trauteVersion
57+
}
58+
5259
dependencies {
5360
compileOnly "com.android.support:appcompat-v7:$support_version"
5461
compileOnly "com.android.support:design:$support_version"

0 commit comments

Comments
 (0)