diff options
Diffstat (limited to 'android-lib.gradle')
-rw-r--r-- | android-lib.gradle | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/android-lib.gradle b/android-lib.gradle index 196cc1b..83813ca 100644 --- a/android-lib.gradle +++ b/android-lib.gradle @@ -3,14 +3,12 @@ import kau.Versions apply plugin: 'com.android.library' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' -apply plugin: 'com.github.dcendents.android-maven' -apply plugin: 'com.getkeepsafe.dexcount' +apply plugin: 'kotlin-parcelize' +//apply plugin: 'com.getkeepsafe.dexcount' group = "ca.allanwang" android { compileSdkVersion Versions.targetSdk - buildToolsVersion Versions.buildTools androidGitVersion { codeFormat = 'MMNNPPXX' @@ -37,6 +35,10 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + buildFeatures { + viewBinding = true + } + buildTypes { release { minifyEnabled false @@ -45,15 +47,24 @@ android { } lintOptions { - warningsAsErrors true + // warningsAsErrors true disable 'UnusedResources', 'ContentDescription', 'RtlSymmetry', 'RtlHardcoded', 'RtlEnabled', 'Overdraw', - 'MissingTranslation' - + 'MissingTranslation', + 'MissingQuantity', + 'UnspecifiedImmutableFlag', + 'QueryPermissionsNeeded', + 'AnnotateVersionCheck', + 'Recycle', + 'MissingSuperCall', + 'UnsafeExperimentalUsageError', + 'UnsafeExperimentalUsageWarning' + + abortOnError false xmlReport false textReport true textOutput 'stdout' @@ -63,11 +74,16 @@ android { pickFirst 'META-INF/core_release.kotlin_module' pickFirst 'META-INF/library_release.kotlin_module' pickFirst 'META-INF/library-core_release.kotlin_module' + exclude "**/module-info.class" } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility Versions.java + targetCompatibility Versions.java + } + + kotlinOptions { + jvmTarget = Versions.java.toString() } sourceSets { |