Merge pull request #6233 from thundernest/fix_build_warnings
Fix some build warnings
This commit is contained in:
commit
7fb14730fa
12 changed files with 13 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
java {
|
||||
sourceCompatibility = javaVersion
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
java {
|
||||
sourceCompatibility = javaVersion
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
java {
|
||||
sourceCompatibility = javaVersion
|
||||
|
|
|
@ -521,11 +521,11 @@ class AccountPreferenceSerializer(
|
|||
defaultEnum
|
||||
} else {
|
||||
try {
|
||||
java.lang.Enum.valueOf<T>(defaultEnum.declaringClass, stringPref)
|
||||
java.lang.Enum.valueOf<T>(defaultEnum.declaringJavaClass, stringPref)
|
||||
} catch (ex: IllegalArgumentException) {
|
||||
Timber.w(
|
||||
ex, "Unable to convert preference key [%s] value [%s] to enum of type %s",
|
||||
key, stringPref, defaultEnum.declaringClass
|
||||
key, stringPref, defaultEnum.declaringJavaClass
|
||||
)
|
||||
|
||||
defaultEnum
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
java {
|
||||
sourceCompatibility = javaVersion
|
||||
|
|
|
@ -104,7 +104,7 @@ subprojects {
|
|||
|
||||
tasks.withType(KotlinCompile) {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
||||
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'com.android.lint'
|
||||
|
||||
if (rootProject.testCoverage) {
|
||||
apply plugin: 'jacoco'
|
||||
|
|
Loading…
Reference in a new issue