Skip to content

Commit 3256a37

Browse files
authored
fix(build): inject Android proguard rules, closes #7016 (#7017)
1 parent b0f9477 commit 3256a37

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/fix-proguard-injection.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-build": patch
3+
---
4+
5+
Fixes injection of the proguard rules on the Android project.

core/tauri/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn main() {
105105
}
106106
}
107107

108-
if let Some(project_dir) = var_os("WRY_ANDROID_PROJECT_PATH").map(PathBuf::from) {
108+
if let Some(project_dir) = var_os("TAURI_ANDROID_PROJECT_PATH").map(PathBuf::from) {
109109
let tauri_proguard = include_str!("./mobile/proguard-tauri.pro").replace(
110110
"$PACKAGE",
111111
&var("WRY_ANDROID_PACKAGE").expect("missing `WRY_ANDROID_PACKAGE` environment variable"),

0 commit comments

Comments
 (0)