接入原生地球暂存
This commit is contained in:
parent
aa0c8d4fb6
commit
27c438aa3f
@ -124,7 +124,7 @@ public class AndroidUpdate : PFUIPanel
|
|||||||
var activity = jc.GetStatic<AndroidJavaObject>("currentActivity");
|
var activity = jc.GetStatic<AndroidJavaObject>("currentActivity");
|
||||||
//Debug.Log("打开apk"+ "file://" + path);
|
//Debug.Log("打开apk"+ "file://" + path);
|
||||||
activity.Call("OpenApk", path);
|
activity.Call("OpenApk", path);
|
||||||
Application.Quit();
|
//Application.Quit();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,10 +20,9 @@
|
|||||||
<data android:scheme="powerfunx" android:host="app" />
|
<data android:scheme="powerfunx" android:host="app" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity android:name="com.unityplugins.mapbox.GlobeActivity"
|
||||||
android:launchMode="singleInstance"
|
android:theme="@style/Theme.AppCompat.NoActionBar"
|
||||||
android:name="com.unityplugins.imageselector.SelectActivity">
|
android:screenOrientation="landscape"></activity>
|
||||||
</activity>
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||||
|
|||||||
Binary file not shown.
BIN
Assets/Plugins/Android/PowerFunAndroidPlugin-release.aar
Normal file
BIN
Assets/Plugins/Android/PowerFunAndroidPlugin-release.aar
Normal file
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 9722f205596f2fd499991ea299119cc8
|
guid: 45c099ff5c5f8e5488a5aafe1b3e4859
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -20,6 +20,19 @@ allprojects {
|
|||||||
repositories {**ARTIFACTORYREPOSITORY**
|
repositories {**ARTIFACTORYREPOSITORY**
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven {
|
||||||
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
||||||
|
authentication {
|
||||||
|
basic(BasicAuthentication)
|
||||||
|
}
|
||||||
|
credentials {
|
||||||
|
// Do not change the username below.
|
||||||
|
// This should always be `mapbox` (not your username).
|
||||||
|
username = 'mapbox'
|
||||||
|
// Use the secret token you stored in gradle.properties as the password
|
||||||
|
password = "sk.eyJ1IjoidGFsZXNmYW4iLCJhIjoiY2t3ZDg4bmV4NDFubjJucm9nMDZsNnFyZyJ9._ukjbjSdzXFsF-4rZ1sPeA"
|
||||||
|
}
|
||||||
|
}
|
||||||
flatDir {
|
flatDir {
|
||||||
dirs "${project(':unityLibrary').projectDir}/libs"
|
dirs "${project(':unityLibrary').projectDir}/libs"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,20 +4,13 @@ apply plugin: 'com.android.library'
|
|||||||
**APPLY_PLUGINS**
|
**APPLY_PLUGINS**
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
||||||
implementation(name: 'animated-vector-drawable-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'appcompat-v7-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'com.mapbox.android.unity-debug', ext:'aar')
|
|
||||||
implementation(name: 'libcore-release', ext:'aar')
|
|
||||||
implementation(name: 'libtelemetry-full-release', ext:'aar')
|
|
||||||
implementation(name: 'support-compat-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'support-core-ui-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'support-core-utils-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'support-media-compat-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'support-v4-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'support-vector-drawable-25.1.0', ext:'aar')
|
|
||||||
implementation(name: 'UnityCallWechatShare-release', ext:'aar')
|
implementation(name: 'UnityCallWechatShare-release', ext:'aar')
|
||||||
implementation files ('libs/ImageSelector-release.aar')
|
implementation files ("libs/unity-classes.jar")
|
||||||
|
implementation files ("libs/unityandroidbluetoothlelib.jar")
|
||||||
|
implementation files ('libs/PowerFunAndroidPlugin-release.aar')
|
||||||
|
implementation ('com.mapbox.maps:android:10.2.0-beta.1'){
|
||||||
|
exclude group: 'group_name', module: 'module_name'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|||||||
@ -126,6 +126,7 @@ namespace Assets.Scripts.Devices.Ant
|
|||||||
if (response.responseID == (byte)ANT_Managed_Library.ANT_ReferenceLibrary.ANTMessageID.BROADCAST_DATA_0x4E)
|
if (response.responseID == (byte)ANT_Managed_Library.ANT_ReferenceLibrary.ANTMessageID.BROADCAST_DATA_0x4E)
|
||||||
{
|
{
|
||||||
var pageNumber = response.messageContents[1];
|
var pageNumber = response.messageContents[1];
|
||||||
|
|
||||||
switch (pageNumber)
|
switch (pageNumber)
|
||||||
{
|
{
|
||||||
case 16: //Page 16 - General Page
|
case 16: //Page 16 - General Page
|
||||||
@ -223,6 +224,7 @@ namespace Assets.Scripts.Devices.Ant
|
|||||||
|
|
||||||
private void HandleTrainerDataPage(byte[] dataPayload)
|
private void HandleTrainerDataPage(byte[] dataPayload)
|
||||||
{
|
{
|
||||||
|
Debug.Log("ant+数据" + string.Join(",", dataPayload));
|
||||||
//if (response.messageContents.Length < 11) break;
|
//if (response.messageContents.Length < 11) break;
|
||||||
//double value = 0;
|
//double value = 0;
|
||||||
//for (int i = 0; i < response.messageContents.Length; i++)
|
//for (int i = 0; i < response.messageContents.Length; i++)
|
||||||
|
|||||||
@ -29,6 +29,7 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
|
|||||||
UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third/otherContainer/Wechat").gameObject,
|
UIManager.AddEvent(loginScrollView.content.Find("FormContainer-Login/Mask/FormContainer-third/otherContainer/Wechat").gameObject,
|
||||||
UnityEngine.EventSystems.EventTriggerType.PointerClick,
|
UnityEngine.EventSystems.EventTriggerType.PointerClick,
|
||||||
(b) => goWxLogin());
|
(b) => goWxLogin());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -837,23 +837,26 @@ public class UIManager : MonoBehaviour
|
|||||||
static GameObject earthPanel = null;
|
static GameObject earthPanel = null;
|
||||||
public static void ShowEarthPanel(double lat = 0, double lon = 0)
|
public static void ShowEarthPanel(double lat = 0, double lon = 0)
|
||||||
{
|
{
|
||||||
if (UIManager.Instance.MainPanel != null)
|
//if (UIManager.Instance.MainPanel != null)
|
||||||
{
|
//{
|
||||||
UIManager.Instance.MainPanel.gameObject.SetActive(false);
|
// UIManager.Instance.MainPanel.gameObject.SetActive(false);
|
||||||
}
|
//}
|
||||||
if (earthPanel == null)
|
#if UNITY_ANDROID
|
||||||
{
|
Utils.CallAndroidMethod("OpenGlobe");
|
||||||
#if (UNITY_ANDROID || UNITY_IOS)
|
|
||||||
var obj = Resources.Load("UI/Prefab/Panel/Mobile/EarthPanel");
|
|
||||||
#else
|
|
||||||
var obj = Resources.Load("UI/Prefab/Panel/EarthPanel");
|
|
||||||
#endif
|
#endif
|
||||||
//var root = UIManager.Instance.MainPanel.transform.parent.parent;
|
// if (earthPanel == null)
|
||||||
earthPanel = (GameObject)Instantiate(obj, UIManager.Instance.Root.transform);
|
// {
|
||||||
}
|
//#if (UNITY_ANDROID || UNITY_IOS)
|
||||||
stack.Push(null);
|
// var obj = Resources.Load("UI/Prefab/Panel/Mobile/EarthPanel");
|
||||||
App.pageName = "earth";
|
//#else
|
||||||
earthPanel.GetComponent<EarthController>().Show(lat, lon);
|
// var obj = Resources.Load("UI/Prefab/Panel/EarthPanel");
|
||||||
|
//#endif
|
||||||
|
// //var root = UIManager.Instance.MainPanel.transform.parent.parent;
|
||||||
|
// earthPanel = (GameObject)Instantiate(obj, UIManager.Instance.Root.transform);
|
||||||
|
// }
|
||||||
|
// stack.Push(null);
|
||||||
|
// App.pageName = "earth";
|
||||||
|
// earthPanel.GetComponent<EarthController>().Show(lat, lon);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Texture2D cursor;
|
static Texture2D cursor;
|
||||||
|
|||||||
@ -225,15 +225,20 @@ namespace Assets.Scripts
|
|||||||
var a = currentVersion.Split('.');
|
var a = currentVersion.Split('.');
|
||||||
var b = realVersion.Split('.');
|
var b = realVersion.Split('.');
|
||||||
if (a.Length != 3 || b.Length != 3) return false;
|
if (a.Length != 3 || b.Length != 3) return false;
|
||||||
|
//2.1.0 2.0.8
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
var f1 = int.TryParse(a[i], out int ai);
|
var f1 = int.TryParse(a[i], out int ai);
|
||||||
var f2 = int.TryParse(b[i], out int bi);
|
var f2 = int.TryParse(b[i], out int bi);
|
||||||
if (!f1 || !f2) return false;
|
if (!f1 || !f2) return false;
|
||||||
if (ai < bi)
|
if (ai < bi)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (ai > bi)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,7 @@ GraphicsSettings:
|
|||||||
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
m_PreloadedShaders: []
|
m_PreloadedShaders: []
|
||||||
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
||||||
type: 0}
|
type: 0}
|
||||||
|
|||||||
@ -133,7 +133,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 2.0.8
|
bundleVersion: 2.1.0
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
@ -180,7 +180,7 @@ PlayerSettings:
|
|||||||
Android: com.ZhiXingPai.PowerFunUnity
|
Android: com.ZhiXingPai.PowerFunUnity
|
||||||
buildNumber:
|
buildNumber:
|
||||||
iPhone: 2.0.7.0
|
iPhone: 2.0.7.0
|
||||||
AndroidBundleVersionCode: 12
|
AndroidBundleVersionCode: 14
|
||||||
AndroidMinSdkVersion: 24
|
AndroidMinSdkVersion: 24
|
||||||
AndroidTargetSdkVersion: 30
|
AndroidTargetSdkVersion: 30
|
||||||
AndroidPreferredInstallLocation: 1
|
AndroidPreferredInstallLocation: 1
|
||||||
@ -256,7 +256,7 @@ PlayerSettings:
|
|||||||
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
|
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
|
||||||
templatePackageId: com.unity.template.3d@4.2.8
|
templatePackageId: com.unity.template.3d@4.2.8
|
||||||
templateDefaultScene: Assets/Scenes/SampleScene.unity
|
templateDefaultScene: Assets/Scenes/SampleScene.unity
|
||||||
AndroidTargetArchitectures: 3
|
AndroidTargetArchitectures: 1
|
||||||
AndroidSplashScreenScale: 0
|
AndroidSplashScreenScale: 0
|
||||||
androidSplashScreen: {fileID: 0}
|
androidSplashScreen: {fileID: 0}
|
||||||
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
|
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
|
||||||
@ -868,7 +868,7 @@ PlayerSettings:
|
|||||||
platformArchitecture:
|
platformArchitecture:
|
||||||
iPhone: 1
|
iPhone: 1
|
||||||
scriptingBackend:
|
scriptingBackend:
|
||||||
Android: 1
|
Android: 0
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
il2cppCompilerConfiguration:
|
il2cppCompilerConfiguration:
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user