diff --git a/checker-framework-lint.xml b/checker-framework-lint.xml new file mode 100644 index 0000000000..1d45f9de05 --- /dev/null +++ b/checker-framework-lint.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/library/core/build.gradle b/library/core/build.gradle index 14aeedfd3c..52249220e0 100644 --- a/library/core/build.gradle +++ b/library/core/build.gradle @@ -42,6 +42,10 @@ android { // testCoverageEnabled = true // } } + + lintOptions { + lintConfig file("../../checker-framework-lint.xml") + } } dependencies { diff --git a/library/core/proguard-rules.txt b/library/core/proguard-rules.txt index 7dc81c3f73..fe204822a8 100644 --- a/library/core/proguard-rules.txt +++ b/library/core/proguard-rules.txt @@ -29,3 +29,6 @@ -keepclassmembers class com.google.android.exoplayer2.ext.rtmp.RtmpDataSource { (); } + +# Don't warn about checkerframework +-dontwarn org.checkerframework.** diff --git a/library/dash/build.gradle b/library/dash/build.gradle index b9fb3a63cc..81b247d047 100644 --- a/library/dash/build.gradle +++ b/library/dash/build.gradle @@ -30,6 +30,10 @@ android { // testCoverageEnabled = true // } } + + lintOptions { + lintConfig file("../../checker-framework-lint.xml") + } } dependencies { diff --git a/library/hls/build.gradle b/library/hls/build.gradle index 87115a0712..c599931a68 100644 --- a/library/hls/build.gradle +++ b/library/hls/build.gradle @@ -30,6 +30,10 @@ android { // testCoverageEnabled = true // } } + + lintOptions { + lintConfig file("../../checker-framework-lint.xml") + } } dependencies { diff --git a/library/smoothstreaming/build.gradle b/library/smoothstreaming/build.gradle index e83a7df81a..e71f9baa99 100644 --- a/library/smoothstreaming/build.gradle +++ b/library/smoothstreaming/build.gradle @@ -30,6 +30,10 @@ android { // testCoverageEnabled = true // } } + + lintOptions { + lintConfig file("../../checker-framework-lint.xml") + } } dependencies {