diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 4bec4ea8..7643783a 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,5 +1,8 @@ + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml index a55e7a17..6e6eec11 100644 --- a/.idea/codeStyles/codeStyleConfig.xml +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -1,5 +1,6 @@ + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0f9fc0ac..8c2731eb 100644 --- a/build.gradle +++ b/build.gradle @@ -21,12 +21,12 @@ buildscript { // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'org.jetbrains.kotlin.plugin.compose' version '2.3.0' apply false - id 'com.android.library' version '8.13.2' apply false + id 'com.android.library' version '9.0.0' apply false id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false - id "org.jetbrains.kotlin.kapt" version "$kotlinVersion" apply false + id "com.android.legacy-kapt" version '9.0.0' apply false id "com.diffplug.spotless" version "8.1.0" apply false id 'io.gitlab.arturbosch.detekt' version '1.23.8' apply false - id 'com.android.application' version '8.13.2' apply false + id 'com.android.application' version '9.0.0' apply false } tasks.register('clean', Delete) { diff --git a/core/build.gradle b/core/build.gradle index 9e34ce61..2cbb5e39 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -7,7 +7,6 @@ plugins { id 'com.android.library' - id 'org.jetbrains.kotlin.android' id 'maven-publish' } @@ -16,7 +15,6 @@ android { defaultConfig { minSdk = 21 compileSdk = 36 - targetSdk = 36 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -25,15 +23,13 @@ android { unitTests { includeAndroidResources = true } + targetSdk 36 } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = '17' - } namespace 'com.nextcloud.android.common.core' publishing { @@ -41,6 +37,9 @@ android { withSourcesJar() } } + lint { + targetSdk 36 + } } dependencies { diff --git a/gradle.properties b/gradle.properties index 442b099f..616a029d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,3 +9,9 @@ kotlin.code.style=official # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true android.nonFinalResIds=false +android.defaults.buildfeatures.resvalues=true +android.enableAppCompileTimeRClass=false +android.uniquePackageNames=false +android.dependency.useConstraints=true +android.r8.strictFullModeForKeepRules=false +android.newDsl=false diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index c2b8b2c2..2524c856 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -184,6 +184,7 @@ + @@ -882,6 +883,11 @@ + + + + + @@ -946,6 +952,14 @@ + + + + + + + + @@ -1007,6 +1021,11 @@ + + + + + @@ -1071,6 +1090,14 @@ + + + + + + + + @@ -1132,6 +1159,11 @@ + + + + + @@ -1204,6 +1236,14 @@ + + + + + + + + @@ -1273,6 +1313,11 @@ + + + + + @@ -1345,6 +1390,14 @@ + + + + + + + + @@ -1462,6 +1515,11 @@ + + + + + @@ -1534,6 +1592,14 @@ + + + + + + + + @@ -1651,6 +1717,11 @@ + + + + + @@ -1723,6 +1794,14 @@ + + + + + + + + @@ -1792,6 +1871,11 @@ + + + + + @@ -1816,6 +1900,14 @@ + + + + + + + + @@ -1837,6 +1929,11 @@ + + + + + @@ -1845,11 +1942,24 @@ + + + + + + + + + + + + + @@ -1922,6 +2032,14 @@ + + + + + + + + @@ -1991,6 +2109,11 @@ + + + + + @@ -2063,6 +2186,14 @@ + + + + + + + + @@ -2132,6 +2263,11 @@ + + + + + @@ -2204,6 +2340,14 @@ + + + + + + + + @@ -2273,6 +2417,11 @@ + + + + + @@ -2345,6 +2494,14 @@ + + + + + + + + @@ -2414,6 +2571,11 @@ + + + + + @@ -2486,6 +2648,14 @@ + + + + + + + + @@ -2555,6 +2725,11 @@ + + + + + @@ -2627,6 +2802,14 @@ + + + + + + + + @@ -2696,6 +2879,11 @@ + + + + + @@ -2768,6 +2956,14 @@ + + + + + + + + @@ -3190,6 +3386,14 @@ + + + + + + + + @@ -3310,6 +3514,14 @@ + + + + + + + + @@ -3438,6 +3650,14 @@ + + + + + + + + @@ -3576,6 +3796,14 @@ + + + + + + + + @@ -5718,6 +5946,14 @@ + + + + + + + + @@ -5838,6 +6074,14 @@ + + + + + + + + @@ -5913,6 +6157,11 @@ + + + + + @@ -6033,6 +6282,19 @@ + + + + + + + + + + + + + @@ -6108,6 +6370,11 @@ + + + + + @@ -6236,6 +6503,14 @@ + + + + + + + + @@ -6364,6 +6639,14 @@ + + + + + + + + @@ -6492,6 +6775,14 @@ + + + + + + + + @@ -6588,6 +6879,14 @@ + + + + + + + + @@ -6700,6 +6999,14 @@ + + + + + + + + @@ -6812,6 +7119,14 @@ + + + + + + + + @@ -6924,6 +7239,14 @@ + + + + + + + + @@ -7036,6 +7359,14 @@ + + + + + + + + @@ -7148,6 +7479,14 @@ + + + + + + + + @@ -7260,6 +7599,14 @@ + + + + + + + + @@ -7372,6 +7719,14 @@ + + + + + + + + @@ -7452,6 +7807,14 @@ + + + + + + + + @@ -7564,6 +7927,14 @@ + + + + + + + + @@ -7676,6 +8047,14 @@ + + + + + + + + @@ -7788,6 +8167,14 @@ + + + + + + + + @@ -7900,6 +8287,14 @@ + + + + + + + + @@ -8012,6 +8407,14 @@ + + + + + + + + @@ -8124,6 +8527,14 @@ + + + + + + + + @@ -8236,6 +8647,14 @@ + + + + + + + + @@ -8292,6 +8711,14 @@ + + + + + + + + @@ -8412,6 +8839,14 @@ + + + + + + + + @@ -8532,6 +8967,14 @@ + + + + + + + + @@ -8548,6 +8991,22 @@ + + + + + + + + + + + + + + + + @@ -8668,6 +9127,14 @@ + + + + + + + + @@ -8796,6 +9263,14 @@ + + + + + + + + @@ -8948,6 +9423,14 @@ + + + + + + + + @@ -9044,6 +9527,14 @@ + + + + + + + + @@ -9132,6 +9623,14 @@ + + + + + + + + @@ -9220,6 +9719,14 @@ + + + + + + + + @@ -9308,6 +9815,14 @@ + + + + + + + + @@ -9420,6 +9935,14 @@ + + + + + + + + @@ -9508,6 +10031,14 @@ + + + + + + + + @@ -9596,6 +10127,14 @@ + + + + + + + + @@ -9684,6 +10223,14 @@ + + + + + + + + @@ -9772,6 +10319,14 @@ + + + + + + + + @@ -9884,6 +10439,14 @@ + + + + + + + + @@ -9996,6 +10559,14 @@ + + + + + + + + @@ -10092,6 +10663,14 @@ + + + + + + + + @@ -10204,6 +10783,14 @@ + + + + + + + + @@ -10636,6 +11223,14 @@ + + + + + + + + @@ -10748,6 +11343,14 @@ + + + + + + + + @@ -10844,6 +11447,14 @@ + + + + + + + + @@ -10956,6 +11567,14 @@ + + + + + + + + @@ -11052,6 +11671,14 @@ + + + + + + + + @@ -11164,6 +11791,14 @@ + + + + + + + + @@ -11260,6 +11895,14 @@ + + + + + + + + @@ -11356,6 +11999,14 @@ + + + + + + + + @@ -11452,6 +12103,14 @@ + + + + + + + + @@ -11564,6 +12223,14 @@ + + + + + + + + @@ -11660,6 +12327,14 @@ + + + + + + + + @@ -11772,6 +12447,14 @@ + + + + + + + + @@ -11996,6 +12679,14 @@ + + + + + + + + @@ -12108,6 +12799,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -12204,6 +12919,14 @@ + + + + + + + + @@ -13080,6 +13803,14 @@ + + + + + + + + @@ -13150,6 +13881,11 @@ + + + + + @@ -13944,6 +14680,14 @@ + + + + + + + + @@ -15400,6 +16144,11 @@ + + + + + @@ -15425,6 +16174,22 @@ + + + + + + + + + + + + + + + + @@ -15451,6 +16216,16 @@ + + + + + + + + + + @@ -17346,6 +18121,14 @@ + + + + + + + + @@ -17689,6 +18472,14 @@ + + + + + + + + @@ -17787,6 +18578,11 @@ + + + + + @@ -17874,6 +18670,14 @@ + + + + + + + + @@ -17956,6 +18760,14 @@ + + + + + + + + @@ -18753,6 +19565,11 @@ + + + + + @@ -18906,6 +19723,14 @@ + + + + + + + + diff --git a/sample/build.gradle b/sample/build.gradle index b3f9b1d9..eb7a89cf 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -7,7 +7,6 @@ plugins { id 'com.android.application' - id 'org.jetbrains.kotlin.android' } android { @@ -17,7 +16,6 @@ android { applicationId "com.nextcloud.android.common.sample" minSdk = 26 compileSdk = 36 - targetSdk = 36 versionCode 1 versionName "1.0" @@ -34,9 +32,7 @@ android { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = '17' - } + buildFeatures { viewBinding true } diff --git a/ui/build.gradle b/ui/build.gradle index 391d264a..14a3e09f 100644 --- a/ui/build.gradle +++ b/ui/build.gradle @@ -8,8 +8,8 @@ plugins { id 'org.jetbrains.kotlin.plugin.compose' id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' + id 'com.android.built-in-kotlin' + id 'com.android.legacy-kapt' id 'maven-publish' } @@ -17,7 +17,6 @@ android { defaultConfig { minSdk = 21 compileSdk = 36 - targetSdk = 36 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -30,9 +29,6 @@ android { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = '17' - } namespace 'com.nextcloud.android.common.ui' publishing { @@ -40,6 +36,12 @@ android { withSourcesJar() } } + lint { + targetSdk 36 + } + testOptions { + targetSdk 36 + } } dependencies {