mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 17:13:50 +01:00
DroidFish: Removed support for android 1.5.
This commit is contained in:
parent
6b129e2930
commit
bfef649156
|
@ -10,7 +10,7 @@
|
|||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-sdk android:minSdkVersion="3"
|
||||
<uses-sdk android:minSdkVersion="4"
|
||||
android:targetSdkVersion="10"/>
|
||||
<application android:icon="@drawable/icon"
|
||||
android:label="@string/app_name"
|
||||
|
|
Binary file not shown.
|
@ -18,7 +18,6 @@
|
|||
|
||||
package org.petero.droidfish.engine;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.os.Build;
|
||||
|
||||
public class EngineUtil {
|
||||
|
@ -29,7 +28,6 @@ public class EngineUtil {
|
|||
/** Return number of physical processors, i.e. hyper-threading ignored. */
|
||||
final static native int getNPhysicalProcessors();
|
||||
|
||||
@TargetApi(4)
|
||||
private static final class CpuAbi {
|
||||
static final String get() { return Build.CPU_ABI; }
|
||||
}
|
||||
|
@ -37,9 +35,6 @@ public class EngineUtil {
|
|||
/** Return file name of the internal stockfish executable,
|
||||
* or null if the internal stockfish engine is not supported. */
|
||||
public static String internalStockFishName() {
|
||||
final int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
|
||||
if (sdkVersion < 4)
|
||||
return "stockfish15.mygz";
|
||||
String abi = CpuAbi.get();
|
||||
if (!abi.equals("x86") &&
|
||||
!abi.equals("armeabi-v7a") &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user