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