mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 00:05:34 +01:00
Android: Give Debug and Benchmark builds unique names
on the launcher and for the DocumentsProvider
This commit is contained in:
parent
d5b811dd7f
commit
1596b13743
@ -40,7 +40,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO If this is ever modified, change application_id in strings.xml
|
|
||||||
applicationId "org.dolphinemu.dolphinemu"
|
applicationId "org.dolphinemu.dolphinemu"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
@ -74,6 +73,7 @@ android {
|
|||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resValue 'string', 'app_name_suffixed', 'Dolphin Emulator'
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile(
|
proguardFiles getDefaultProguardFile(
|
||||||
@ -86,13 +86,14 @@ android {
|
|||||||
// Signed by debug key disallowing distribution on Play Store.
|
// Signed by debug key disallowing distribution on Play Store.
|
||||||
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
|
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
|
||||||
debug {
|
debug {
|
||||||
// TODO If this is ever modified, change application_id in debug/strings.xml
|
resValue 'string', 'app_name_suffixed', 'Dolphin Debug'
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
versionNameSuffix '-debug'
|
versionNameSuffix '-debug'
|
||||||
jniDebuggable true
|
jniDebuggable true
|
||||||
}
|
}
|
||||||
|
|
||||||
benchmark {
|
benchmark {
|
||||||
|
resValue 'string', 'app_name_suffixed', 'Dolphin Benchmark'
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
matchingFallbacks = ['release']
|
matchingFallbacks = ['release']
|
||||||
debuggable false
|
debuggable false
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".DolphinApplication"
|
android:name=".DolphinApplication"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name_suffixed"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:preserveLegacyExternalStorage="true"
|
android:preserveLegacyExternalStorage="true"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activities.CustomFilePickerActivity"
|
android:name=".activities.CustomFilePickerActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name_suffixed"
|
||||||
android:theme="@style/Theme.Dolphin.FilePicker">
|
android:theme="@style/Theme.Dolphin.FilePicker">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
@ -59,7 +59,7 @@ class DocumentProvider : DocumentsProvider() {
|
|||||||
|
|
||||||
result.newRow().apply {
|
result.newRow().apply {
|
||||||
add(DocumentsContract.Root.COLUMN_ROOT_ID, ROOT_ID)
|
add(DocumentsContract.Root.COLUMN_ROOT_ID, ROOT_ID)
|
||||||
add(DocumentsContract.Root.COLUMN_TITLE, context!!.getString(R.string.app_name))
|
add(DocumentsContract.Root.COLUMN_TITLE, context!!.getString(R.string.app_name_suffixed))
|
||||||
add(DocumentsContract.Root.COLUMN_ICON, R.drawable.ic_dolphin)
|
add(DocumentsContract.Root.COLUMN_ICON, R.drawable.ic_dolphin)
|
||||||
add(
|
add(
|
||||||
DocumentsContract.Root.COLUMN_FLAGS,
|
DocumentsContract.Root.COLUMN_FLAGS,
|
||||||
@ -171,7 +171,7 @@ class DocumentProvider : DocumentsProvider() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val name = if (file == rootDirectory) {
|
val name = if (file == rootDirectory) {
|
||||||
context!!.getString(R.string.app_name)
|
context!!.getString(R.string.app_name_suffixed)
|
||||||
} else {
|
} else {
|
||||||
file.name
|
file.name
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ public final class MainActivity extends AppCompatActivity
|
|||||||
setInsets();
|
setInsets();
|
||||||
ThemeHelper.enableStatusBarScrollTint(this, mBinding.appbarMain);
|
ThemeHelper.enableStatusBarScrollTint(this, mBinding.appbarMain);
|
||||||
|
|
||||||
|
mBinding.toolbarMain.setTitle(R.string.app_name);
|
||||||
setSupportActionBar(mBinding.toolbarMain);
|
setSupportActionBar(mBinding.toolbarMain);
|
||||||
|
|
||||||
// Set up the FAB.
|
// Set up the FAB.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user