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:
parent
71452113ac
commit
6973573721
|
|
@ -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}\""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue