mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-07 05:50:54 +07:00
Edits to make GWT compilation work
This commit is contained in:
parent
154247a461
commit
922ab26b0d
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="io.anuke.mindustry"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
android:versionCode="2"
|
||||
android:versionName="1.01" >
|
||||
|
||||
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="25" />
|
||||
|
||||
|
@ -77,8 +77,8 @@ project(":core") {
|
||||
apply plugin: "java"
|
||||
|
||||
dependencies {
|
||||
//compile fileTree(dir: '../core/lib', include: '*.jar')
|
||||
compile 'com.github.Anuken:ucore:b58e4bd'
|
||||
compile fileTree(dir: '../core/lib', include: '*.jar')
|
||||
//compile 'com.github.Anuken:ucore:b58e4bd'
|
||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
|
||||
}
|
||||
|
@ -43,6 +43,7 @@ public class Control extends RendererModule{
|
||||
Sounds.load("shoot.wav", "place.wav", "explosion.wav", "enemyshoot.wav",
|
||||
"corexplode.wav", "break.wav", "spawn.wav", "flame.wav", "die.wav",
|
||||
"respawn.wav", "purchase.wav", "flame2.wav");
|
||||
|
||||
Musics.load("1.mp3", "2.mp3", "3.mp3");
|
||||
|
||||
Generator.loadMaps();
|
||||
|
@ -3,7 +3,7 @@ apply plugin: "jetty"
|
||||
|
||||
gwt {
|
||||
gwtVersion='2.8.0' // Should match the gwt version used for building the gwt backend
|
||||
maxHeapSize="1G" // Default 256m is not enough for gwt compiler. GWT is HUNGRY
|
||||
maxHeapSize="2G" // Default 256m is not enough for gwt compiler. GWT is HUNGRY
|
||||
minHeapSize="1G"
|
||||
|
||||
src = files(file("src/")) // Needs to be in front of "modules" below.
|
||||
@ -13,6 +13,7 @@ gwt {
|
||||
|
||||
compiler {
|
||||
strict = true;
|
||||
//enableClosureCompiler = true;
|
||||
disableCastChecking = true;
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,5 @@
|
||||
|
||||
<entry-point class='io.anuke.mindustry.client.HtmlLauncher' />
|
||||
<set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
|
||||
<set-configuration-property name="gdx.assetpath" value="../core/assets" />
|
||||
<set-configuration-property name="gdx.assetpath" value="../android/assets" />
|
||||
</module>
|
||||
|
Loading…
Reference in New Issue
Block a user