Skip to content

Commit

Permalink
remove java 17 support
Browse files Browse the repository at this point in the history
as java 17+21 is broken
  • Loading branch information
SolDev69 committed Apr 16, 2024
1 parent b22193d commit 1bd2b80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 111 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ jobs:
branch: buildjre8
name: jre8-pojav

- name: Get JRE17
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
path: app_pojavlauncher/src/main/assets/components/jre-new
workflow_conclusion: success
repo: PojavLauncherTeam/android-openjdk-build-multiarch
branch: buildjre17
name: jre17-pojav

- name: Get JRE21
uses: dawidd6/action-download-artifact@v2
with:
Expand Down
98 changes: 0 additions & 98 deletions app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/JRE17Util.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import net.kdt.pojavlaunch.JAssetInfo;
import net.kdt.pojavlaunch.JAssets;
import net.kdt.pojavlaunch.JMinecraftVersionList;
import net.kdt.pojavlaunch.JRE17Util;
import net.kdt.pojavlaunch.JRE21Util;
import net.kdt.pojavlaunch.R;
import net.kdt.pojavlaunch.Tools;
Expand Down Expand Up @@ -191,7 +190,7 @@ private MinecraftClientInfo getClientInfo(JMinecraftVersionList.Version verInfo)
* @param activity Activity, used for automatic installation of JRE 17 if needed
* @param verInfo The JMinecraftVersionList.Version from the version list, if available
* @param versionName The version ID (necessary)
* @return false if JRE17 installation failed, true otherwise
* @return false if JRE21 installation failed, true otherwise
* @throws IOException if the download of any of the metadata files fails
*/
private boolean downloadAndProcessMetadata(Activity activity, JMinecraftVersionList.Version verInfo, String versionName) throws IOException, MirrorTamperedException {
Expand All @@ -204,7 +203,7 @@ private boolean downloadAndProcessMetadata(Activity activity, JMinecraftVersionL
throw new IOException("Unable to read Version JSON for version " + versionName);
}

if(activity != null && !JRE17Util.installNewJreIfNeeded(activity, verInfo) && !JRE21Util.installNewJreIfNeeded(activity, verInfo)){
if(activity != null && !JRE21Util.installNewJreIfNeeded(activity, verInfo)){
return false;
}

Expand Down

0 comments on commit 1bd2b80

Please sign in to comment.