Set the target sdk to 31, remove legacy storage request, re-enable Forge splash disabler

This commit is contained in:
artdeell 2021-08-23 11:33:18 +03:00
parent 8a44a9688b
commit cb7fe80673
3 changed files with 3 additions and 12 deletions

View File

@ -64,7 +64,7 @@ android {
defaultConfig { defaultConfig {
applicationId "net.kdt.pojavlaunch" applicationId "net.kdt.pojavlaunch"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 31
versionCode getDateSeconds() versionCode getDateSeconds()
versionName getVersionName() versionName getVersionName()
multiDexEnabled true //important multiDexEnabled true //important

View File

@ -18,8 +18,7 @@
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"
android:roundIcon="@drawable/ic_launcher" android:roundIcon="@drawable/ic_launcher"
android:resizeableActivity="true" android:resizeableActivity="true"
android:hasFragileUserData="true" android:hasFragileUserData="true">
android:requestLegacyExternalStorage="true">
<meta-data <meta-data
android:name="android.max_aspect" android:name="android.max_aspect"
@ -35,14 +34,6 @@
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="ms-xal-00000000402b5328" android:host="auth"/>
</intent-filter>
</activity> </activity>
<activity <activity

View File

@ -120,7 +120,7 @@ public final class Tools {
if(pvcConfig != null && pvcConfig.gamePath != null && !pvcConfig.gamePath.isEmpty()) gamedirPath = pvcConfig.gamePath; if(pvcConfig != null && pvcConfig.gamePath != null && !pvcConfig.gamePath.isEmpty()) gamedirPath = pvcConfig.gamePath;
else gamedirPath = Tools.DIR_GAME_NEW; else gamedirPath = Tools.DIR_GAME_NEW;
if(pvcConfig != null && pvcConfig.jvmArgs != null && !pvcConfig.jvmArgs.isEmpty()) LauncherPreferences.PREF_CUSTOM_JAVA_ARGS = pvcConfig.jvmArgs; if(pvcConfig != null && pvcConfig.jvmArgs != null && !pvcConfig.jvmArgs.isEmpty()) LauncherPreferences.PREF_CUSTOM_JAVA_ARGS = pvcConfig.jvmArgs;
//PojavLoginActivity.disableSplash(gamedirPath); PojavLoginActivity.disableSplash(gamedirPath);
String[] launchArgs = getMinecraftArgs(profile, versionInfo, gamedirPath); String[] launchArgs = getMinecraftArgs(profile, versionInfo, gamedirPath);
// ctx.appendlnToLog("Minecraft Args: " + Arrays.toString(launchArgs)); // ctx.appendlnToLog("Minecraft Args: " + Arrays.toString(launchArgs));