@ -9,20 +9,18 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject . ext . compileSdkVersion
buildToolsVersion rootProject . ext . buildToolsVersion
defaultConfig {
applicationId "com.etesync.syncadapter"
minSdkVersion 21
targetSdkVersion 29
targetSdkVersion 33
versionCode 20 3 00
versionName "2. 3 .0"
versionCode 20 4 00
versionName "2. 4 .0"
buildConfigField "boolean" , "customCerts" , "true"
}
@ -60,35 +58,14 @@ android {
}
}
lintOptions {
disable 'GoogleAppIndexingWarning' // we don ' t need Google indexing , thanks
disable 'GradleDependency'
disable 'GradleDynamicVersion'
disable 'IconColors'
disable 'IconLauncherShape'
disable 'IconMissingDensityFolder'
disable 'ImpliedQuantity' , 'MissingQuantity'
disable 'MissingTranslation' , 'ExtraTranslation' // translations from Transifex are not always up to date
disable 'Recycle' // doesn 't understand Lombok' s @Cleanup
disable 'RtlEnabled'
disable 'RtlHardcoded'
disable 'Typos'
disable "RestrictedApi" // https: // code . google . com /p/ android /issues/ detail ? id = 230387
}
dexOptions {
preDexLibraries = true
// dexInProcess requires much RAM , which is not available on all dev systems
dexInProcess = false
javaMaxHeapSize "2g"
}
packagingOptions {
exclude 'LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
resources {
excludes + = [ 'LICENSE' , 'META-INF/LICENSE.txt' , 'META-INF/NOTICE.txt' ]
}
}
testOptions {
unitTests . returnDefaultValues = true
}
@ -125,16 +102,16 @@ android {
// enable because ical4android requires desugaring
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion . VERSION_1_8
targetCompatibility JavaVersion . VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
sourceCompatibility JavaVersion . VERSION_17
targetCompatibility JavaVersion . VERSION_17
}
buildFeatures {
dataBinding = true
viewBinding = true
}
lint {
disable 'GoogleAppIndexingWarning' , 'GradleDependency' , 'GradleDynamicVersion' , 'IconColors' , 'IconLauncherShape' , 'IconMissingDensityFolder' , 'ImpliedQuantity' , 'MissingQuantity' , 'MissingTranslation' , 'ExtraTranslation' , 'Recycle' , 'RtlEnabled' , 'RtlHardcoded' , 'Typos' , 'RestrictedApi'
}
}
@ -159,9 +136,9 @@ dependencies {
// KTX extensions
implementation "androidx.core:core-ktx:1.3.1"
implementation "androidx.fragment:fragment-ktx:1.2.5"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2. 2 .0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2. 2 .0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2. 2 .0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2. 4 .0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2. 4 .0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2. 4 .0"
implementation 'com.google.android.material:material:1.2.0-beta01'