fix(build): inject Android proguard rules, closes #7016 (#7017)

This commit is contained in:
Lucas Fernandes Nogueira 2023-05-20 22:03:20 -07:00 committed by GitHub
parent b0f947752a
commit 3256a37263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Fixes injection of the proguard rules on the Android project.

View File

@ -105,7 +105,7 @@ fn main() {
}
}
if let Some(project_dir) = var_os("WRY_ANDROID_PROJECT_PATH").map(PathBuf::from) {
if let Some(project_dir) = var_os("TAURI_ANDROID_PROJECT_PATH").map(PathBuf::from) {
let tauri_proguard = include_str!("./mobile/proguard-tauri.pro").replace(
"$PACKAGE",
&var("WRY_ANDROID_PACKAGE").expect("missing `WRY_ANDROID_PACKAGE` environment variable"),