Unverified Commit 6a127052 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

ed-odyssey-materials-helper: 3.1.12 -> 3.6.6 (#509623)

parents 33d21309 b6848108
Loading
Loading
Loading
Loading
+569 −329

File changed.

Preview size limit exceeded, changes collapsed.

+35 −0
Original line number Diff line number Diff line
diff --git a/application/src/main/java/nl/jixxed/eliteodysseymaterials/service/EDDNService.java b/application/src/main/java/nl/jixxed/eliteodysseymaterials/service/EDDNService.java
index e6d0e84d..aeaa32af 100644
--- a/application/src/main/java/nl/jixxed/eliteodysseymaterials/service/EDDNService.java
+++ b/application/src/main/java/nl/jixxed/eliteodysseymaterials/service/EDDNService.java
@@ -408,7 +408,7 @@ public class EDDNService {
     private static void send(final Object message, final Event event, final String schemaName, final int delaySecondsAllowed) {
         final boolean isLive = ApplicationState.getInstance().getGameVersion().equals(GameVersion.LIVE);
         final boolean isNew = isNew(event, delaySecondsAllowed);
-        final Boolean isEnabled = PreferencesService.getPreference(PreferenceConstants.EDDN_ENABLED, Boolean.FALSE);
+        final Boolean isEnabled = false;
         if (isLive && isNew && isEnabled) {
             final Runnable run = () -> {
                 try {
diff --git a/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/settings/SettingsTab.java b/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/settings/SettingsTab.java
index f39a7a17..0dd77370 100644
--- a/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/settings/SettingsTab.java
+++ b/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/settings/SettingsTab.java
@@ -43,16 +43,13 @@ public class SettingsTab extends MainTab implements DestroyableTemplate {
                         new HorizonsWishlist(),
                         new HorizonsShips(),
                         new HorizonsColonisation(),
-                        new Notifications(),
-                        new FrontierAPI()
+                        new Notifications()
                 )
                 .buildVBox();
         //AR
         if (OsCheck.isWindows()) {
             settings.getNodes().add(new AugmentedReality());
         }
-        //Tracking
-        settings.getNodes().add(new Tracking());
 
         ScrollPane scrollPane = register(ScrollPaneBuilder.builder()
                 .withStyleClass("settings-tab-content")
+13 −0
Original line number Diff line number Diff line
diff --git a/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/dialog/StartDialog.java b/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/dialog/StartDialog.java
index 260ecd78..7b5c5649 100644
--- a/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/dialog/StartDialog.java
+++ b/application/src/main/java/nl/jixxed/eliteodysseymaterials/templates/dialog/StartDialog.java
@@ -61,7 +61,7 @@ public class StartDialog extends DestroyableVBox implements DestroyableTemplate
                 .withStyleClass("buttons")
                 .withNodes(createButtons())
                 .buildHBox();
-        this.getNodes().addAll(whatsNewTitle, whatsNewContent, policyTitle, policyContent, eulaTitle, eulaContent, buttonsBox);
+        this.getNodes().addAll(whatsNewTitle, whatsNewContent, policyTitle, policyContent, buttonsBox);
         if(!VersionService.isDev()){
             PreferencesService.setPreference(PreferenceConstants.WHATS_NEW_VERSION, VersionService.getBuildVersion());
         }
+16 −13
Original line number Diff line number Diff line
@@ -15,19 +15,20 @@
  copyDesktopItems,
  makeDesktopItem,
  writeScript,
  writeText,
}:
let
  gradle = gradle_9;
in
stdenv.mkDerivation rec {
  pname = "ed-odyssey-materials-helper";
  version = "3.1.12";
  version = "3.6.6";

  src = fetchFromGitHub {
    owner = "jixxed";
    repo = "ed-odyssey-materials-helper";
    tag = version;
    hash = "sha256-QqwLM2fiPmtFehB83M3yvLp8M1DKywlCxQcG4mclBkk=";
    hash = "sha256-ljCN2tW7iH+kTiSXwUt+OsAhjYKlAy0W5x/JDmQeR6M=";
  };

  nativeBuildInputs = [
@@ -41,6 +42,9 @@ stdenv.mkDerivation rec {
    # so this removes 1) the popup about it when you first start the program, 2) the option in the settings
    # and makes the program always know that it is set up
    ./remove-urlscheme-settings.patch

    ./eula.patch # EULA doesn't apply to nixpkgs build, only the upstream build, don't show it
    ./disable-broken-features.patch # some features require things not included in the source code, we'll disable/hide those
  ];
  postPatch = ''
    # oslib doesn't seem to do releases and hasn't had a change since 2021, so always use commit d6ee6549bb
@@ -50,14 +54,15 @@ stdenv.mkDerivation rec {
    substituteInPlace application/src/main/java/module-info.java \
      --replace-fail 'requires oslib.master.SNAPSHOT;' 'requires oslib.d6ee6549bb;'

    # remove "new version available" popup
    # remove "new version available" (not needed) and eddn question (eddn doesn't work in this build) popups
    substituteInPlace application/src/main/java/nl/jixxed/eliteodysseymaterials/FXApplication.java \
      --replace-fail 'versionPopup();' ""
      --replace-fail 'versionPopup();' "" \
      --replace-fail 'eddnPopup();' ""

    for f in build.gradle */build.gradle; do
      substituteInPlace $f \
    substituteInPlace build.gradle bootstrap/build.gradle application/build.gradle \
      --replace-fail 'vendor = JvmVendorSpec.AZUL' ""
    done

    echo "This nixpkgs-packaged version of Elite Dangerous Odyssey Materials Helper doesn't upload any data." > application/src/main/resources/text/privacy.txt
  '';

  mitmCache = gradle.fetchDeps {
@@ -70,14 +75,12 @@ stdenv.mkDerivation rec {
    "--stacktrace"
  ];

  gradleBuildTask = "application:jpackage";
  gradleInitScript = writeText "empty-init-script.gradle" ""; # fixes build by making it possibly not reproducible, though it still seems to be

  env = {
    EDDN_SOFTWARE_NAME = "EDO Materials Helper";
  };
  gradleBuildTask = "application:jpackage";

  preBuild = ''
    # required to make EDDN_SOFTWARE_NAME work and for the program to know its own version
    # required for the program to know its own version
    gradle $gradleFlags application:generateSecrets
  '';