mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Include checkerframework annotatons with compileOnly and remove lint exclusion
The lint error suppression only works locally and not for external developers who still see the lint error and need to suppress it themselves. This changes 'implementation' to 'compileOnly' in gradle to prevent the dependency from being exported. Also removes the local lint suppression. Issue:#4234 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=196251407
This commit is contained in:
parent
0fce0a0bcb
commit
74df3766f9
5 changed files with 4 additions and 39 deletions
|
|
@ -1,19 +0,0 @@
|
|||
<!-- Copyright (C) 2018 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<lint>
|
||||
<issue id="InvalidPackage">
|
||||
<ignore path="**/checker-qual-*.jar"/>
|
||||
</issue>
|
||||
</lint>
|
||||
|
|
@ -42,15 +42,11 @@ android {
|
|||
// testCoverageEnabled = true
|
||||
// }
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
lintConfig file("../../checker-framework-lint.xml")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
|
||||
implementation 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
androidTestImplementation 'com.google.dexmaker:dexmaker:' + dexmakerVersion
|
||||
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:' + dexmakerVersion
|
||||
androidTestImplementation 'com.google.truth:truth:' + truthVersion
|
||||
|
|
|
|||
|
|
@ -30,15 +30,11 @@ android {
|
|||
// testCoverageEnabled = true
|
||||
// }
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
lintConfig file("../../checker-framework-lint.xml")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(modulePrefix + 'library-core')
|
||||
implementation 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
|
||||
testImplementation project(modulePrefix + 'testutils-robolectric')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,15 +30,11 @@ android {
|
|||
// testCoverageEnabled = true
|
||||
// }
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
lintConfig file("../../checker-framework-lint.xml")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
|
||||
implementation 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
implementation project(modulePrefix + 'library-core')
|
||||
testImplementation project(modulePrefix + 'testutils-robolectric')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,15 +30,11 @@ android {
|
|||
// testCoverageEnabled = true
|
||||
// }
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
lintConfig file("../../checker-framework-lint.xml")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(modulePrefix + 'library-core')
|
||||
implementation 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
|
||||
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
|
||||
testImplementation project(modulePrefix + 'testutils-robolectric')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue