diff --git a/popcorn/Assets/Joypac/Plugins/Android/libs/unitybridge.jar b/popcorn/Assets/Joypac/Plugins/Android/libs/unitybridge.jar index 0ac14a1e..c276bc7c 100644 Binary files a/popcorn/Assets/Joypac/Plugins/Android/libs/unitybridge.jar and b/popcorn/Assets/Joypac/Plugins/Android/libs/unitybridge.jar differ diff --git a/popcorn/Assets/Joypac/Scripts/JPSDK/AndroidJPSDK/JoyPacCurrentcyAdSingle.cs b/popcorn/Assets/Joypac/Scripts/JPSDK/AndroidJPSDK/JoyPacCurrentcyAdSingle.cs index 66a8eb52..066080f4 100644 --- a/popcorn/Assets/Joypac/Scripts/JPSDK/AndroidJPSDK/JoyPacCurrentcyAdSingle.cs +++ b/popcorn/Assets/Joypac/Scripts/JPSDK/AndroidJPSDK/JoyPacCurrentcyAdSingle.cs @@ -322,6 +322,12 @@ public class JoyPacCurrentcyAdSingle _currentcyAdSinglePlugin.Call("nofityPush", delayTime); } + public int getAndroidVersion() + { + + return _currentcyAdSinglePlugin.Call("getAndroidVersion"); + } + } #endif diff --git a/popcorn/Assets/USAYAUnityLib/Scripts/Managers/VibrationManager.cs b/popcorn/Assets/USAYAUnityLib/Scripts/Managers/VibrationManager.cs index 813b4742..20d3dbbb 100644 --- a/popcorn/Assets/USAYAUnityLib/Scripts/Managers/VibrationManager.cs +++ b/popcorn/Assets/USAYAUnityLib/Scripts/Managers/VibrationManager.cs @@ -12,7 +12,15 @@ public class VibrationManager : SingletonMonoBehaviour { void Awake(){ if(CheckInstance()){ return; + } +#if UNITY_ANDROID + JoyPacCurrentcyAdSingle currAdSingleTemp = new JoyPacCurrentcyAdSingle(); + if (currAdSingleTemp.getAndroidVersion() <= 10 && CryptoPrefs.GetInt("getAndroidVersion",0)==0) + { + SaveEnable(false); + CryptoPrefs.SetInt("getAndroidVersion", 10); } +#endif isEnable = UsayaStorageManager.LoadOrDefault(UsayaStorageFilename.Settings_Data, Const.VibrationTag, true); }