Skip to content

Commit

Permalink
Ignore a retrofit lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
inv3rse committed Sep 18, 2016
1 parent d5396b4 commit 0446a9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ android {
test.java.srcDirs += 'src/testUtils/java'
androidTest.java.srcDirs += 'src/testUtils/java'
}

lintOptions {
lintConfig file("lint.xml")
}
}

// keep generated classes
Expand All @@ -72,7 +76,7 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

// Support Library
def support_library_version = '24.2.0'
def support_library_version = '24.2.1'
compile "com.android.support:leanback-v17:$support_library_version"

// Glide
Expand Down
9 changes: 9 additions & 0 deletions app/lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<lint>
<issue id="InvalidPackage">
<!-- due to an issue with okio, we need to exclude lint errors for it.-->
<!-- https://stackoverflow.com/questions/35492259/lint-error-on-okio -->
<!-- https://github.com/square/okio/issues/58 -->
<ignore regexp=".*okio.*" />
<ignore regexp=".*retrofit.*" />
</issue>
</lint>

0 comments on commit 0446a9c

Please sign in to comment.