Skip to content

Commit b249689

Browse files
committed
spotbug skip android examples
1 parent 812771e commit b249689

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ subprojects {
4242
apply from: rootProject.file('common-android-app.gradle')
4343
}
4444

45-
if (!project.name.endsWith("-native") && enableSpotBugs != "false" ) {
45+
def isAndroidApp = project.plugins.hasPlugin('com.android.application')
46+
if (!project.name.endsWith("-native") && !isAndroidApp && enableSpotBugs != "false" ) {
4647
apply plugin: 'com.github.spotbugs'
4748

4849
// Currently we only warn about issues and try to fix them as we go, but those aren't mission critical.

0 commit comments

Comments
 (0)