From 18586c3434c584385a137f9345d6f599651ef431 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Mon, 11 Sep 2023 15:49:55 -0400 Subject: [PATCH] fix deprecations Signed-off-by: androidacy-user --- app/build.gradle.kts | 2 -- .../kotlin/com/fox2code/mmm/utils/IntentHelper.kt | 11 +++++------ build.gradle.kts | 4 ++-- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 357e6e2..f6a16ae 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -121,14 +121,12 @@ android { multiDexEnabled = true isDebuggable = false isJniDebuggable = false - isRenderscriptDebuggable = false } getByName("debug") { applicationIdSuffix = ".debug" isDebuggable = true versionNameSuffix = "-debug" isJniDebuggable = true - isRenderscriptDebuggable = true isMinifyEnabled = false isShrinkResources = false multiDexEnabled = true diff --git a/app/src/main/kotlin/com/fox2code/mmm/utils/IntentHelper.kt b/app/src/main/kotlin/com/fox2code/mmm/utils/IntentHelper.kt index 2d67d22..01dc86c 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/utils/IntentHelper.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/utils/IntentHelper.kt @@ -19,7 +19,6 @@ import android.os.Environment import android.util.TypedValue import android.widget.Toast import androidx.core.app.ActivityOptionsCompat -import androidx.core.app.BundleCompat import com.fox2code.foxcompat.app.FoxActivity import com.fox2code.mmm.BuildConfig import com.fox2code.mmm.Constants @@ -303,7 +302,10 @@ enum class IntentHelper {; if (intent1.hasCategory(Intent.CATEGORY_BROWSABLE)) { if (!intent1.hasExtra(EXTRA_TAB_SESSION)) { val bundle = Bundle() - BundleCompat.putBinder(bundle, EXTRA_TAB_SESSION, null) + bundle.putBinder( + EXTRA_TAB_SESSION, + null + ) intent1.putExtras(bundle) } intent1.putExtra(EXTRA_TAB_EXIT_ANIMATION_BUNDLE, param) @@ -323,9 +325,6 @@ enum class IntentHelper {; } try { intent1.putExtra(Constants.EXTRA_FADE_OUT, true) - activity.overridePendingTransition( - android.R.anim.fade_in, android.R.anim.fade_out - ) activity.startActivity(intent1, param) return } catch (e: ActivityNotFoundException) { @@ -389,7 +388,7 @@ enum class IntentHelper {; compatActivity.startActivityForResult(intent, param) { result: Int, data: Intent? -> val uri = data?.data if (uri == null || result == Activity.RESULT_CANCELED) { - if (BuildConfig.DEBUG) Timber.d("invalid uri recieved") + if (BuildConfig.DEBUG) Timber.d("invalid uri received") callback.onReceived(destination, null, RESPONSE_ERROR) return@startActivityForResult } diff --git a/build.gradle.kts b/build.gradle.kts index 510f9eb..ba4a233 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ buildscript { gradlePluginPortal() } dependencies { - classpath("com.android.tools.build:gradle:8.1.1") + classpath("com.android.tools.build:gradle:8.3.0-alpha03") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22") classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.8.3") @@ -31,7 +31,7 @@ subprojects { } tasks.register("clean", Delete::class) { - delete(rootProject.buildDir) + delete(layout.buildDirectory) } afterEvaluate { diff --git a/gradle.properties b/gradle.properties index 0d33efc..7834ee2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true #Tue Jul 18 21:42:11 EDT 2023 -android.defaults.buildfeatures.buildconfig=true +#android.defaults.buildfeatures.buildconfig=true android.enableJetifier=false android.enableR8.fullMode=true android.useAndroidX=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 6fc794b..eca8e94 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ #Mon Jul 03 11:59:05 EDT 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-rc-2-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists