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 {