From b4d615f7798afcb7c15aca02883bb931c5fa3431 Mon Sep 17 00:00:00 2001 From: Jeremy Metz Date: Mon, 14 Oct 2024 13:22:47 +0200 Subject: [PATCH] fix: removes deprecated gradle options (#404) --- .changes/deprecated-gradle-identifiers.md | 5 +++++ .../platforms/android-studio/app/build.gradle.kts.hbs | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .changes/deprecated-gradle-identifiers.md diff --git a/.changes/deprecated-gradle-identifiers.md b/.changes/deprecated-gradle-identifiers.md new file mode 100644 index 00000000..4c46c813 --- /dev/null +++ b/.changes/deprecated-gradle-identifiers.md @@ -0,0 +1,5 @@ +--- +"cargo-mobile2": "patch" +--- + +Remove deprecated options from gradle file in the generated android template. \ No newline at end of file diff --git a/templates/platforms/android-studio/app/build.gradle.kts.hbs b/templates/platforms/android-studio/app/build.gradle.kts.hbs index e6e10395..7c90c790 100644 --- a/templates/platforms/android-studio/app/build.gradle.kts.hbs +++ b/templates/platforms/android-studio/app/build.gradle.kts.hbs @@ -7,11 +7,11 @@ plugins { android { namespace="{{app.identifier}}"{{#if has-asset-packs}} assetPacks += mutableSetOf({{quote-and-join-colon-prefix asset-packs}}){{/if}} - compileSdk = 33 + compileSdk = 34 defaultConfig { applicationId = "{{app.identifier}}" minSdk = {{android.min-sdk-version}} - targetSdk = 33 + targetSdk = 34 versionCode = 1 versionName = "1.0" }{{#if android-vulkan-validation}} @@ -38,9 +38,6 @@ android { ) } } - kotlinOptions { - jvmTarget = "1.8" - } } rust {