Avoid authority clashing between debug and release builds of Pojav

This commit is contained in:
artdeell 2021-08-20 11:33:33 +03:00
parent e97ba8cc63
commit 45ecd61f64
2 changed files with 7 additions and 3 deletions

View File

@ -76,6 +76,7 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.customDebug
resValue 'string', 'storageProviderAuthorities', 'net.kdt.pojavlaunch.scoped.gamefolder.debug'
}
release {
@ -85,6 +86,7 @@ android {
// defaultConfig already set
// multiDexEnabled = true
// debuggable = true
resValue 'string', 'storageProviderAuthorities', 'net.kdt.pojavlaunch.scoped.gamefolder'
}
gplay {
initWith release

View File

@ -3,8 +3,10 @@
package="net.kdt.pojavlaunch">
<uses-feature android:glEsVersion="0x00020000"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="28"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@ -77,7 +79,7 @@
android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"/>
<provider
android:name=".scoped.GameFolderProvider"
android:authorities="net.kdt.pojavlaunch.scoped.gamefolder"
android:authorities="@string/storageProviderAuthorities"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS"