Commit 068d74e7 authored by 無名の凝泪's avatar 無名の凝泪

Update library-release.aar(libgdiplus.so)、add x86 | (完整立绘功能只支持Android M以上)

parent af0f2863
......@@ -40,7 +40,6 @@ AI_core_vs2017solution/bin/
AI_core_vs2017solution/obj/
AI_core_vs2017solution/build/android/libs/
AI_core_vs2017solution/build/android/obj/
Assets/Plugins/Android/libs/x86*
# ygopro
cdb/
......
fileFormatVersion: 2
guid: 450e0a9c89bf4a040b26f1fef13f5655
folderAsset: yes
timeCreated: 1445131378
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 53795d48a20b9524180c4bf4481385f1
timeCreated: 1526547438
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: fa9cbdc3a67e5fd4baeb5d0dd3f4cf71
timeCreated: 1445131383
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
......@@ -277,6 +277,12 @@ public class Program : MonoBehaviour
//YGOMobile Paths (https://github.com/Unicorn369/YGOPro2_Droid)
public static string ANDROID_GAME_PATH = "/storage/emulated/0/ygopro2/";
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
public static bool ANDROID_SDK_M = true;
#elif UNITY_ANDROID || UNITY_IPHONE //Mobile Platform
public static bool ANDROID_SDK_M = false;
#endif
void initialize()
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
......@@ -395,6 +401,17 @@ public class Program : MonoBehaviour
jo.Call("showToast", "没有发现卡图包,是否未安装YGOMobile");
}
}
/*
* 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android)
* 经测试,只有Android M以上才能正常使用。为了让Android M以下的也能使用,只好多做一下判断
*/
bool SDK = jo.Call<bool>("SdkInt");
if (SDK == true) { //Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
ANDROID_SDK_M = true;
} else {
ANDROID_SDK_M = false;
}
#endif
});
......
......@@ -149,7 +149,7 @@ PlayerSettings:
buildNumber:
iOS:
AndroidBundleVersionCode: 2
AndroidMinSdkVersion: 21
AndroidMinSdkVersion: 16
AndroidTargetSdkVersion: 0
AndroidPreferredInstallLocation: 0
aotOptions:
......@@ -225,7 +225,7 @@ PlayerSettings:
iOSManualSigningProvisioningProfileID:
tvOSManualSigningProvisioningProfileID:
appleEnableAutomaticSigning: 0
AndroidTargetDevice: 3
AndroidTargetDevice: 0
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName: ygopro.jks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment