Skip to content

Commit

Permalink
Fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhael-Danilov committed Jan 4, 2025
1 parent 13778e5 commit 4081792
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import android.media.AudioManager;
import android.media.MediaPlayer;

import com.nyrds.pixeldungeon.game.GamePreferences;
import com.nyrds.platform.EventCollector;
import com.nyrds.platform.game.Game;
import com.nyrds.util.ModdingMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
import android.media.AudioManager;
import android.media.SoundPool;



import com.nyrds.pixeldungeon.game.GameLoop;
import com.nyrds.pixeldungeon.game.GamePreferences;
import com.nyrds.platform.EventCollector;
import com.nyrds.platform.game.Game;
import com.nyrds.util.ModdingMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public enum Preferences {

INSTANCE;

public static final String KEY_LANDSCAPE = "landscape";
public static final String KEY_USE_PLAY_GAMES = "use_play_games";
public static final String KEY_EU_CONSENT_LEVEL = "eu_consent_level";

private SharedPreferences prefs;

private final Map<String, Integer> intCache = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.nyrds.platform;

import com.nyrds.platform.storage.CommonPrefs;
import com.nyrds.platform.storage.Preferences;
import com.nyrds.util.Util;
import com.watabou.pixeldungeon.utils.GLog;
Expand All @@ -13,7 +14,7 @@
public class EventCollector {

private static boolean analyticsUsable() {
return Preferences.INSTANCE.getInt(Preferences.KEY_COLLECT_STATS, 1) > 0;
return Preferences.INSTANCE.getInt(CommonPrefs.KEY_COLLECT_STATS, 1) > 0;
}

static public void init() {
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencyResolutionManagement {
maven { url 'https://developer.huawei.com/repo/' }
}
}
//include ':RemixedDungeon'
include ':RemixedDungeonDesktop'
include ':RemixedDungeon'
//include ':RemixedDungeonDesktop'

0 comments on commit 4081792

Please sign in to comment.