mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
update
This commit is contained in:
@@ -46,6 +46,13 @@
|
|||||||
<finalName>forge-android-${alpha-version}</finalName>
|
<finalName>forge-android-${alpha-version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jitpack.io</id>
|
||||||
|
<url>https://jitpack.io</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.android</groupId>
|
<groupId>com.google.android</groupId>
|
||||||
@@ -106,6 +113,12 @@
|
|||||||
<artifactId>sentry-android</artifactId>
|
<artifactId>sentry-android</artifactId>
|
||||||
<version>1.7.30</version>
|
<version>1.7.30</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.raeleus.TenPatch</groupId>
|
||||||
|
<artifactId>tenpatch</artifactId>
|
||||||
|
<version>5.2.0</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
-keep class io.sentry.event.Event { *; }
|
-keep class io.sentry.event.Event { *; }
|
||||||
-keep class io.netty.util.internal.logging.** { *; }
|
-keep class io.netty.util.internal.logging.** { *; }
|
||||||
-keep class net.jpountz.** { *; }
|
-keep class net.jpountz.** { *; }
|
||||||
|
-keep class com.ray3k.** { *; }
|
||||||
|
|
||||||
-keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
|
-keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
|
||||||
<init>(com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
|
<init>(com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
|
||||||
|
|||||||
@@ -151,6 +151,8 @@ public class Forge implements ApplicationListener {
|
|||||||
graphics = new Graphics();
|
graphics = new Graphics();
|
||||||
splashScreen = new SplashScreen();
|
splashScreen = new SplashScreen();
|
||||||
frameRate = new FrameRate();
|
frameRate = new FrameRate();
|
||||||
|
animationBatch = new SpriteBatch();
|
||||||
|
transitionTexture = new Texture(Config.instance().getFile("ui/transition.png"));
|
||||||
Gdx.input.setInputProcessor(new MainInputProcessor());
|
Gdx.input.setInputProcessor(new MainInputProcessor());
|
||||||
/*
|
/*
|
||||||
Set CatchBackKey here and exit the app when you hit the
|
Set CatchBackKey here and exit the app when you hit the
|
||||||
@@ -245,10 +247,6 @@ public class Forge implements ApplicationListener {
|
|||||||
return graphics;
|
return graphics;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initialize() {
|
|
||||||
animationBatch = new SpriteBatch();
|
|
||||||
transitionTexture = new Texture(Config.instance().getFile("ui/transition.png"));
|
|
||||||
}
|
|
||||||
public static Scene getCurrentScene() {
|
public static Scene getCurrentScene() {
|
||||||
return currentScene;
|
return currentScene;
|
||||||
}
|
}
|
||||||
@@ -308,9 +306,7 @@ public class Forge implements ApplicationListener {
|
|||||||
for (SceneType sceneType : SceneType.values()) {
|
for (SceneType sceneType : SceneType.values()) {
|
||||||
sceneType.instance.resLoaded();
|
sceneType.instance.resLoaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
switchScene(SceneType.StartScene.instance);
|
switchScene(SceneType.StartScene.instance);
|
||||||
initialize();
|
|
||||||
} catch (Exception e) { e.printStackTrace(); }
|
} catch (Exception e) { e.printStackTrace(); }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user