From ee64d292188c7ba94682d5dede8241b12f48fb30 Mon Sep 17 00:00:00 2001 From: fatih ergin Date: Wed, 16 Aug 2023 00:06:52 +0300 Subject: [PATCH] enable viewbinding update compile sdk to 34 update kotlin version to 1.9.0 --- app/build.gradle | 28 ++++++++++++++++++------ build.gradle | 4 ++-- gradle.properties | 4 +++- gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9bcb593..2abead7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() @@ -9,12 +8,13 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 33 + namespace "com.simplemobiletools.applauncher" + compileSdk 34 defaultConfig { applicationId "com.simplemobiletools.applauncher" - minSdkVersion 23 - targetSdkVersion 33 + minSdk 23 + targetSdk 34 versionCode 51 versionName "5.11.2" multiDexEnabled true @@ -32,9 +32,14 @@ android { } } + buildFeatures { + buildConfig true + viewBinding true + } + buildTypes { debug { - applicationIdSuffix ".debug" + applicationIdSuffix ".debug" } release { minifyEnabled true @@ -45,7 +50,16 @@ android { } } - flavorDimensions "variants" + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = '17' + } + + flavorDimensions = ["variants"] productFlavors { core {} fdroid {} @@ -63,7 +77,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:4c83ec8740' + implementation 'com.github.SimpleMobileTools:Simple-Commons:d1629c7f1a' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' } diff --git a/build.gradle b/build.gradle index 5dc760b..3675811 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.7.10' + ext.kotlin_version = '1.9.0' repositories { google() @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' + classpath 'com.android.tools.build:gradle:8.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle.properties b/gradle.properties index 5465fec..eaba89c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,4 @@ android.enableJetifier=true -android.useAndroidX=true \ No newline at end of file +android.nonTransitiveRClass=false +android.useAndroidX=true +org.gradle.jvmargs=-Xmx4g diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e155b0e..fa98749 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip