v0.7.5b: SPD-classes and core are no longer android-specific modules!
This commit is contained in:
parent
b985ed3bf5
commit
2aaf18b0b8
|
@ -1,22 +1,12 @@
|
|||
//FIXME currently an android library while small amounts of android-specific code remain
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'java-library'
|
||||
|
||||
android {
|
||||
compileSdkVersion appAndroidCompileSDK
|
||||
|
||||
defaultConfig {
|
||||
//noinspection MinSdkTooLow
|
||||
minSdkVersion appAndroidMinSDK
|
||||
}
|
||||
}
|
||||
|
||||
configurations { natives }
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
|
||||
dependencies {
|
||||
//TODO migrate this to implementation from api
|
||||
//in order to do this I have to remove 100% of libGDX API access from core
|
||||
api "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
|
||||
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
|
||||
implementation "org.json:json:20190722"
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.watabou">
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
|
||||
<uses-feature android:glEsVersion="0x00020000"/>
|
||||
|
||||
</manifest>
|
|
@ -22,7 +22,7 @@
|
|||
package com.watabou.utils;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.watabou.BuildConfig;
|
||||
import com.watabou.noosa.Game;
|
||||
|
||||
//TODO migrate to platformSupport class
|
||||
public class DeviceCompat {
|
||||
|
@ -50,7 +50,7 @@ public class DeviceCompat {
|
|||
}
|
||||
|
||||
public static boolean isDebug(){
|
||||
return BuildConfig.DEBUG;
|
||||
return Game.version.contains("INDEV");
|
||||
}
|
||||
|
||||
public static void openURI( String URI ){
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
package="com.shatteredpixel.shatteredpixeldungeon.android"
|
||||
android:installLocation="auto">
|
||||
|
||||
<uses-feature
|
||||
android:glEsVersion="0x00020000"/>
|
||||
<uses-feature android:glEsVersion="0x00020000"/>
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<!-- Note that the game doesn't truly support small screen resolutions,
|
||||
it instead forces downscaling to work on these displays.-->
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
//FIXME currently an android library while small amounts of android-specific code remain in SPD-classes
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'java-library'
|
||||
|
||||
android {
|
||||
compileSdkVersion appAndroidCompileSDK
|
||||
|
||||
defaultConfig {
|
||||
//noinspection MinSdkTooLow
|
||||
minSdkVersion appAndroidMinSDK
|
||||
}
|
||||
}
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
|
||||
dependencies {
|
||||
api project(':SPD-classes')
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.shatteredpixel.shatteredpixeldungeon">
|
||||
|
||||
<uses-feature android:glEsVersion="0x00020000"/>
|
||||
|
||||
</manifest>
|
Loading…
Reference in New Issue
Block a user