Skip to content

Commit

Permalink
Merge branch 'dev' into wry-0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 14, 2024
2 parents 3b4f053 + b4d615f commit 1cafc88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changes/deprecated-gradle-identifiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cargo-mobile2": "patch"
---

Remove deprecated options from gradle file in the generated android template.
6 changes: 5 additions & 1 deletion src/config/app/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ impl Defaults {
.to_str()
.ok_or_else(|| DefaultsError::CurrentDirInvalidUtf8(cwd.clone()))?;
let name = name::transliterate(&dir_name.to_kebab_case());
let dot_name = name.as_ref().map(|n| format!(".{n}")).unwrap_or_default();
let dot_name = name
.as_ref()
.map(|n| format!(".{n}"))
.unwrap_or_default()
.replace("-", "_");
Ok(Self {
identifier: default_identifier(wrapper, &dot_name)
.ok()
Expand Down
7 changes: 2 additions & 5 deletions templates/platforms/android-studio/app/build.gradle.kts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -38,9 +38,6 @@ android {
)
}
}
kotlinOptions {
jvmTarget = "1.8"
}
}

rust {
Expand Down

0 comments on commit 1cafc88

Please sign in to comment.