From 9bb305cfc541e834750754966d47d1eda6781ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliberk=20Sand=C4=B1k=C3=A7=C4=B1?= Date: Mon, 28 Oct 2024 02:04:17 +0300 Subject: [PATCH] update build files --- app/build.gradle | 23 +++++++++++++++-------- build.gradle | 4 ++-- gradle.properties | 16 ++++++++++++---- settings.gradle | 2 +- 4 files changed, 30 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 06d7c05..b3a4982 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,12 +5,12 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 28 + compileSdkVersion 34 defaultConfig { - applicationId 'com.gmail.anubhavdas54.whatsdeleted' - minSdkVersion 23 - targetSdkVersion 28 - versionCode 5 + applicationId 'org.maintainteam.whatsdeleted' + minSdkVersion 21 + targetSdkVersion 33 + versionCode 6 versionName "0.4.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -21,11 +21,18 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + encoding 'utf-8' } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = JavaVersion.VERSION_17 + } + dependenciesInfo { + // Disables dependency metadata when building APKs. + includeInApk = false + // Disables dependency metadata when building Android App Bundles. + includeInBundle = false } } diff --git a/build.gradle b/build.gradle index 2493c06..75975ff 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,14 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.4.31' + ext.kotlin_version = '1.9.10' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.2' + classpath 'com.android.tools.build:gradle:8.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle.properties b/gradle.properties index 23339e0..0f80e3d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,11 @@ +android.defaults.buildfeatures.buildconfig=true +android.enableJetifier=false +android.nonFinalResIds=false +android.nonTransitiveRClass=false +android.useAndroidX=true +org.gradle.jvmargs=-Xmx2048M --add-opens jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED +systemProp.file.encoding=utf-8 + # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* @@ -6,7 +14,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx1536m +##org.gradle.jvmargs=-Xmx1536m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects @@ -14,8 +22,8 @@ org.gradle.jvmargs=-Xmx1536m # AndroidX package structure to make it clearer which packages are bundled with the # Android operating system, and which are packaged with your app's APK # https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true +##android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX -android.enableJetifier=true +##android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official +##kotlin.code.style=official diff --git a/settings.gradle b/settings.gradle index cc20e48..83f4f15 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,2 @@ include ':app' -rootProject.name='WhatsDeleted' +//rootProject.name='WhatsDeleted'