Skip to content

Commit

Permalink
Set source compatibility to 1.6 for Android Studio
Browse files Browse the repository at this point in the history
Silences a number of code analysis warnings, such as use of the diamond <> operator
  • Loading branch information
Chainfire committed Apr 23, 2015
1 parent bb125a3 commit d0b7b83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libsuperuser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ android {
assets.srcDirs = ['assets']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
}
}

version = "1.0.0." + (new Date()).format('yyyyMMddHHmm')
Expand Down
3 changes: 3 additions & 0 deletions libsuperuser_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ android {
assets.srcDirs = ['assets']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
}
}

0 comments on commit d0b7b83

Please sign in to comment.