1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-12-08 05:05:40 +00:00

Modify app id for Android debug builds[ci skip]

Also debug builds have `(debug)` in the app name, documents provider label and authority. This is done to make it possible to install custom debug builds without uninstalling the official one.
This commit is contained in:
biroder 2025-02-05 23:02:06 +02:00
parent 71452113ac
commit 6973573721
3 changed files with 15 additions and 7 deletions

View file

@ -36,13 +36,12 @@ android {
}
def documentsAuthorityValue = applicationId + ".documents"
manifestPlaceholders =
[documentsAuthority: documentsAuthorityValue]
manifestPlaceholders = [documentsAuthority: documentsAuthorityValue]
buildConfigField "String",
"DOCUMENTS_AUTHORITY",
"\"${documentsAuthorityValue}\""
resValue "string", "app_name", "doukutsu-rs"
}
buildTypes {
@ -62,8 +61,18 @@ android {
}
}
debug {
applicationIdSuffix ".debug"
resValue "string", "app_name", "doukutsu-rs (debug)"
jniDebuggable true
renderscriptDebuggable true
def documentsAuthorityValue =
android.defaultConfig.applicationId + applicationIdSuffix + ".documents"
manifestPlaceholders = [documentsAuthority: documentsAuthorityValue]
buildConfigField "String",
"DOCUMENTS_AUTHORITY",
"\"${documentsAuthorityValue}\""
}
}

View file

@ -21,7 +21,7 @@
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="true"
android:label="doukutsu-rs"
android:label="@string/app_name"
android:launchMode="standard"
android:screenOrientation="sensorLandscape"
android:theme="@style/Theme.Doukutsurs.NoActionBar">
@ -51,7 +51,7 @@
<provider
android:name=".DoukutsuDocumentsProvider"
android:authorities="${documentsAuthority}"
android:authorities="${applicationId}.documents"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS">

View file

@ -1,5 +1,4 @@
<resources>
<string name="app_name" translatable="false">doukutsu-rs</string>
<string name="app_description">A faithful and open-source remake of Cave Story engine written in Rust.</string>
<string name="missing_data_title">Missing data files</string>