Skip to content

Commit

Permalink
Diferentiate the release and debug versions of uni. (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroafmonteiro authored Nov 27, 2024
2 parents e30a31c + 8c5e78a commit fc5a786
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/uni_app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ android {
"proguard-rules.pro"
)
}
debug {
applicationIdSuffix ".dev"
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions packages/uni_app/android/app/src/debug/res/values/string.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">uni (dev)</string>
</resources>
2 changes: 1 addition & 1 deletion packages/uni_app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
<application
android:label="uni"
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true">
Expand Down
4 changes: 4 additions & 0 deletions packages/uni_app/android/app/src/main/res/values/string.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">uni</string>
</resources>

0 comments on commit fc5a786

Please sign in to comment.