com.amanotes.gdk 0.2.67 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/Extra/AmaGDKInstaller.unitypackage +0 -0
- package/Extra/CheckDiskSpace.unitypackage +0 -0
- package/Extra/ForceUpdate.unitypackage +0 -0
- package/Extra/GoogleCMP.unitypackage +0 -0
- package/Extra/LegacyGDKUpdateHelper.unitypackage +0 -0
- package/Extra/PostProcessor.unitypackage +0 -0
- package/Packages/AmaGDKConfig.unitypackage +0 -0
- package/Packages/AmaGDKExample.unitypackage +0 -0
- package/Packages/AmaGDKTest.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.PurchaseConnector.unitypackage +0 -0
- package/Packages/AppsFlyerAdapter.unitypackage +0 -0
- package/Packages/FirebaseAnalyticsAdapter.unitypackage +0 -0
- package/Packages/FirebaseRemoteConfigAdapter.unitypackage +0 -0
- package/Packages/IronSourceAdapter.unitypackage +0 -0
- package/Packages/RevenueCatAdapter.unitypackage +0 -0
- package/Packages/SqliteAnalyticsAdapter.unitypackage +0 -0
- package/Runtime/AmaGDK.cs +6 -2
- package/Runtime/AudioToolkit/AmaGDK.Audio.cs +16 -0
- package/Runtime/AudioToolkit/Plugins/Android/GDKAudioDeviceDetector.java +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.68 - 2024-07-08]
|
|
4
|
+
- [Dev] Add IronSource setting to pause game during ad
|
|
5
|
+
- [Fix] Support Android API Version 24 and below
|
|
6
|
+
- [Dev] Add Audio Module flag
|
|
7
|
+
|
|
3
8
|
## [0.2.67 - 2024-07-04]
|
|
4
9
|
- [Fix] Do retry immediately when OnAdLoadFailed trigger regardless of reason
|
|
5
10
|
- Also: Update default ad request timeout to 30 secs
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/Runtime/AmaGDK.cs
CHANGED
|
@@ -17,7 +17,7 @@ namespace Amanotes.Core
|
|
|
17
17
|
{
|
|
18
18
|
public partial class AmaGDK : MonoBehaviour
|
|
19
19
|
{
|
|
20
|
-
public const string VERSION = "0.2.
|
|
20
|
+
public const string VERSION = "0.2.68";
|
|
21
21
|
|
|
22
22
|
internal static Status _status = Status.None;
|
|
23
23
|
private static ConfigAsset _config = null;
|
|
@@ -104,7 +104,11 @@ namespace Amanotes.Core
|
|
|
104
104
|
Ads.InitModule();
|
|
105
105
|
IAP.InitModule();
|
|
106
106
|
RemoteConfig.InitModule();
|
|
107
|
-
|
|
107
|
+
|
|
108
|
+
if (Config.enableAudioModule)
|
|
109
|
+
{
|
|
110
|
+
Audio.InitModule();
|
|
111
|
+
}
|
|
108
112
|
}
|
|
109
113
|
Profiler.EndSample();
|
|
110
114
|
}
|
|
@@ -4,6 +4,15 @@ using System.Collections;
|
|
|
4
4
|
using System.Text;
|
|
5
5
|
using Amanotes.Core.Internal;
|
|
6
6
|
|
|
7
|
+
namespace Amanotes.Core.Internal
|
|
8
|
+
{
|
|
9
|
+
public partial class ConfigAsset
|
|
10
|
+
{
|
|
11
|
+
[SerializeField]
|
|
12
|
+
public bool enableAudioModule;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
namespace Amanotes.Core
|
|
8
17
|
{
|
|
9
18
|
public partial class AmaGDK
|
|
@@ -40,6 +49,8 @@ namespace Amanotes.Core
|
|
|
40
49
|
/// </remarks>
|
|
41
50
|
public static void SetOnAudioDeviceChangeCallback(Action<AudioDeviceInfo> onAudioDeviceChange)
|
|
42
51
|
{
|
|
52
|
+
GDKUtils.ThrowIf(!Config.enableAudioModule, "Audio Module is disabled, Please enable it in the AmaGDKConfig");
|
|
53
|
+
|
|
43
54
|
if (onAudioDeviceChange == null)
|
|
44
55
|
{
|
|
45
56
|
Logging.LogWarning("Cannot add a null callback!");
|
|
@@ -51,6 +62,8 @@ namespace Amanotes.Core
|
|
|
51
62
|
|
|
52
63
|
public static void SetOnAudioInterruptedCallback(Action beginCallback, Action endCallback)
|
|
53
64
|
{
|
|
65
|
+
GDKUtils.ThrowIf(!Config.enableAudioModule, "Audio Module is disabled, Please enable it in the AmaGDKConfig");
|
|
66
|
+
|
|
54
67
|
if (beginCallback != null)
|
|
55
68
|
{
|
|
56
69
|
dispatcher.AddListener(Event.GDK_AUDIO_INTERRUPT_BEGIN, beginCallback);
|
|
@@ -129,6 +142,8 @@ namespace Amanotes.Core
|
|
|
129
142
|
{
|
|
130
143
|
public static bool IsConnectingBluetoothHeadset()
|
|
131
144
|
{
|
|
145
|
+
GDKUtils.ThrowIf(!Config.enableAudioModule, "Audio Module is disabled, Please enable it in the AmaGDKConfig");
|
|
146
|
+
|
|
132
147
|
return DeviceInfo != null
|
|
133
148
|
&& (DeviceInfo.RawType == "AVAudioSessionPortBluetoothA2DP"
|
|
134
149
|
|| DeviceInfo.RawType == "TYPE_BLUETOOTH_A2DP"
|
|
@@ -146,6 +161,7 @@ namespace Amanotes.Core
|
|
|
146
161
|
|
|
147
162
|
public static bool IsRecordingWithMicrophone()
|
|
148
163
|
{
|
|
164
|
+
GDKUtils.ThrowIf(!Config.enableAudioModule, "Audio Module is disabled, Please enable it in the AmaGDKConfig");
|
|
149
165
|
#if UNITY_IOS
|
|
150
166
|
string currentAudioInputs = GetCurrentRouteInputs();
|
|
151
167
|
return string.IsNullOrWhiteSpace(currentAudioInputs) == false;
|
|
@@ -243,7 +243,7 @@ public class GDKAudioDeviceDetector
|
|
|
243
243
|
|
|
244
244
|
private static String toTypeString(int AudioDeviceType)
|
|
245
245
|
{
|
|
246
|
-
return DEVICE_TYPE_MAP.
|
|
246
|
+
return DEVICE_TYPE_MAP.containsKey(AudioDeviceType) ? DEVICE_TYPE_MAP.get(AudioDeviceType) : "TYPE_UNKNOWN";
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// API For Version before M
|