diff --git a/Assets/BigoAds.meta b/Assets/BigoAds.meta
deleted file mode 100644
index c4a3cd5..0000000
--- a/Assets/BigoAds.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: bd0ef81b1482347b38905fab4f30e583
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts.meta b/Assets/BigoAds/Scripts.meta
deleted file mode 100644
index dc11939..0000000
--- a/Assets/BigoAds/Scripts.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 467aa0b9eadf04b22b5b3713a1b07bea
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api.meta b/Assets/BigoAds/Scripts/Api.meta
deleted file mode 100644
index 15c0daf..0000000
--- a/Assets/BigoAds/Scripts/Api.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 1dd438e36fdc745aaa018eac5d3b182c
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs b/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs
deleted file mode 100644
index 82e0447..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using System;
-using System.Collections.Generic;
-using BigoAds.Scripts.Api.Constant;
-using System.Collections.Generic;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoAdConfig
- {
- public const string EXTRA_KEY_HOST_RULES = "host_rules";
-
- ///
- /// the unique identifier of the App
- ///
- internal string AppId { get; }
-
- ///
- /// Custom set the debugLog to print debug Log.
- /// debugLog NO: close debug log, YES: open debug log.
- ///
- internal bool DebugLog { get; }
-
- ///
- /// Channels for publishing media applications
- ///
- internal string Channel { get; }
-
- internal int Age { get; }
-
- internal int Gender { get; }
-
- internal long ActivatedTime { get; }
-
- internal Dictionary ExtraDictionary { get; }
-
- private BigoAdConfig(BigoAdConfig.Builder builder)
- {
- AppId = builder.AppId;
- DebugLog = builder.DebugLog;
- Channel = builder.Channel;
- Age = builder.Age;
- Gender = (int)builder.Gender;
- ActivatedTime = builder.ActivatedTime;
- ExtraDictionary = builder.ExtraDictionary;
- }
-
- public class Builder
- {
- internal string AppId;
-
- internal bool DebugLog;
-
- internal string Channel;
-
- internal int Age;
-
- internal BGAdGender Gender;
-
- internal long ActivatedTime;
-
- internal Dictionary ExtraDictionary = new Dictionary();
-
- public Builder SetAppId(string appid)
- {
- this.AppId = appid;
- return this;
- }
-
- public Builder SetDebugLog(bool debugLog)
- {
- this.DebugLog = debugLog;
- return this;
- }
-
- public Builder SetChannel(string channel)
- {
- this.Channel = channel;
- return this;
- }
-
- public Builder SetAge(int age)
- {
- this.Age = age;
- return this;
- }
-
- public Builder SetGender(BGAdGender gender)
- {
- this.Gender = gender;
- return this;
- }
-
- public Builder SetActivatedTime(long activatedTime)
- {
- this.ActivatedTime = activatedTime;
- return this;
- }
-
- ///Only works on Android
- public Builder SetExtra(string key, string extra)
- {
- if (key != null && extra != null)
- {
- this.ExtraDictionary.Add(key, extra);
- }
- return this;
- }
-
- public BigoAdConfig Build()
- {
- return new BigoAdConfig(this);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs.meta b/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs.meta
deleted file mode 100644
index b457ea0..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoAdConfig.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b18497a84c58a49f385b63be54aff0cb
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs b/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs
deleted file mode 100644
index a630cc7..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-using BigoAds.Scripts.Common;
-using BigoAds.Scripts.Api.Constant;
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- public static class BigoAdSdk
- {
- private static IClientFactory _clientFactory;
-
- private static ISDK _sdk;
-
- internal static ISDK SDK
- {
- get
- {
- if (_sdk == null)
- {
- _sdk = GetClientFactory().BuildSDKClient();
- }
-
- return _sdk;
- }
- }
-
- internal static IClientFactory GetClientFactory()
- {
- if (_clientFactory != null)
- {
- return _clientFactory;
- }
-
- _clientFactory =
-#if UNITY_ANDROID
- new BigoAds.Scripts.Platforms.Android.AndroidClientFactory();
-#elif UNITY_IOS
- new BigoAds.Scripts.Platforms.iOS.IOSClientFactory();
-#else
- null;
- throw new PlatformNotSupportedException();
-#endif
- return _clientFactory;
- }
-
- public delegate void InitResultDelegate();
-
- public static event InitResultDelegate OnInitFinish;
-
- /// Starts the Bigo SDK
- /// @warning Call this method as early as possible to reduce ad request fail.
- /// @param config SDK configuration
- /// @param callback Callback for starting the Bigo SDK
- /// ////
- public static void Initialize(BigoAdConfig config)
- {
- if (IsInitSuccess())
- {
- OnInitFinish?.Invoke();
- return;
- }
-
- SDK.Init(config, (() => { OnInitFinish?.Invoke(); }));
- }
-
- ////
- /// The SDK initialization state
- ////
- public static bool IsInitSuccess()
- {
- return SDK.IsInitSuccess();
- }
-
- ///////
- /// Bigo SDK version
- /// ////
- public static string GetSDKVersion()
- {
- return SDK.GetSDKVersion();
- }
-
- ///////
- /// Bigo SDK version name
- /// ////
- public static string GetSDKVersionName()
- {
- return SDK.GetSDKVersionName();
- }
-
- ///////
- /// Bigo SDK set user consent
- /// ////
- public static void SetUserConsent(ConsentOptions option, bool consent)
- {
- SDK.SetUserConsent(option, consent);
- }
-
- ///////
- /// Only works on Android
- /// Bigo SDK set user consent
- /// ////
- public static void AddExtraHost(string country, string host)
- {
- SDK.AddExtraHost(country, host);
- }
-
- }
-}
diff --git a/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs.meta b/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs.meta
deleted file mode 100644
index 4672ff6..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoAdSdk.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e5ad9c8c265954d4e8f4f03312b5fa42
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs b/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs
deleted file mode 100644
index 598d5bb..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoBannerAd : BigoBaseAd
- {
- private readonly IBannerAd _bannerAdClient;
-
-
- ///
- /// create a banner ad
- ///
- ///
- public BigoBannerAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildBannerAdClient())
- {
- _bannerAdClient = (IBannerAd) ADClient;
- }
-
- ///
- /// set position for banner
- ///
- ///
- public void SetPosition(BigoPosition position)
- {
- _bannerAdClient?.SetPosition(position);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs.meta
deleted file mode 100644
index c20e587..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoBannerAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 5136d466cbb6c461f92fbd90b6fa157d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs b/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs
deleted file mode 100644
index a40d433..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using BigoAds.Scripts.Api.Constant;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
- public class BigoBannerRequest : BigoRequest
- {
- [SerializeField()]
- private BigoBannerSize size;
- public BigoBannerSize Size => size;
-
- public BigoPosition Position { get; }
-
- public BigoBannerRequest(BigoBannerSize size, BigoPosition position = BigoPosition.Bottom)
- {
- this.size = size;
- this.Position = position;
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs.meta
deleted file mode 100644
index b1bc7ba..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoBannerRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 159c6164853954739adbca1ae7592df7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs b/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs
deleted file mode 100644
index aadc6ff..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoInterstitialAd : BigoBaseAd
- {
- public BigoInterstitialAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildInterstitialAdClient())
- {
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs.meta
deleted file mode 100644
index ef2cffe..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoInterstitialAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1323eae1e03094d8281b23f5527a53db
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs b/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs
deleted file mode 100644
index 29fd866..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
-
- public class BigoInterstitialRequest : BigoRequest
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs.meta
deleted file mode 100644
index dab3ed2..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoInterstitialRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1947fd630823b4858af6c3a471497f70
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs b/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs
deleted file mode 100644
index d47b55b..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoNativeAd : BigoBaseAd
- {
- private readonly INativeAd _NativeAdClient;
-
- public BigoNativeAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildNativeAdClient())
- {
- _NativeAdClient = (INativeAd) ADClient;
- }
-
- ///
- /// set position for native
- ///
- ///
- public void SetPosition(BigoPosition position)
- {
- _NativeAdClient?.SetPosition(position);
- }
-
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs.meta
deleted file mode 100644
index 8660675..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoNativeAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1742d1ee2ff5e4d508ae81524cb94ade
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs b/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs
deleted file mode 100644
index fb99270..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
- public class BigoNativeRequest : BigoRequest
- {
-
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs.meta
deleted file mode 100644
index 304ad89..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoNativeRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 033c30386f5714bddb5dd41d7524979e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs b/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs
deleted file mode 100644
index 80a872b..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoPopupAd : BigoBaseAd
- {
- public BigoPopupAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildPopupAdClient())
- {
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs.meta
deleted file mode 100644
index ad93110..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoPopupAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2be0a8fe9e5aa4bea8970a47e617a076
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs b/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs
deleted file mode 100644
index c30c437..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
-
- public class BigoPopupRequest : BigoRequest
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs.meta
deleted file mode 100644
index 9b9e2ea..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoPopupRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 580aad20fbde543bab37a5e878c682cb
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoRequest.cs b/Assets/BigoAds/Scripts/Api/BigoRequest.cs
deleted file mode 100644
index fe217ba..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRequest.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-using UnityEngine;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
- public class BigoRequest
- {
- [SerializeField] private string extraInfo;
- [SerializeField] private int age;
- [SerializeField] private BGAdGender gender;
- [SerializeField] private long activatedTime;
-
- public string ExtraInfoJson
- {
- get => extraInfo;
- set => extraInfo = value;
- }
-
- /// Only works on Android
- public int Age
- {
- get => age;
- set => age = value;
- }
-
- /// Only works on Android
- public BGAdGender Gender
- {
- get => gender;
- set => gender = value;
- }
-
- /// Only works on Android
- public long ActivatedTime
- {
- get => activatedTime;
- set => activatedTime = value;
- }
-
- public string ToJson()
- {
- return JsonUtility.ToJson(this);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoRequest.cs.meta
deleted file mode 100644
index b054061..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2707ffe474e6443d6a5260876d5b1370
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs b/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs
deleted file mode 100644
index 8d594b2..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoRewardedAd : BigoBaseAd
- {
- public event Action OnUserEarnedReward;
-
- public BigoRewardedAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildRewardedAdClient())
- {
- var rewardedAdClient = (IRewardedAd) ADClient;
- rewardedAdClient.OnUserEarnedReward += InvokeOnUserEarnedReward;
- }
-
-
- private void InvokeOnUserEarnedReward()
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnUserEarnedReward?.Invoke(); }));
- }
- else
- {
- OnUserEarnedReward?.Invoke();
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs.meta
deleted file mode 100644
index 95f6da4..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRewardedAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2f745c8797b25430685a5a08b34f0d9f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs b/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs
deleted file mode 100644
index 9b36137..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
-
- public class BigoRewardedRequest : BigoRequest
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs.meta
deleted file mode 100644
index 2c3f5c6..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoRewardedRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 38f4a763a1fc9429ca87c62eed4b4645
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs b/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs
deleted file mode 100644
index 14dac42..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Api
-{
- public class BigoSplashAd : BigoBaseAd
- {
- public BigoSplashAd(string slotId) : base(slotId, BigoAdSdk.GetClientFactory().BuildSplashAdClient())
- {
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs.meta b/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs.meta
deleted file mode 100644
index 24bf412..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoSplashAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 61b62ca232d2e42788e61f33d7784209
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs b/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs
deleted file mode 100644
index e6d9239..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api
-{
- [Serializable]
-
- public class BigoSplashRequest : BigoRequest
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs.meta b/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs.meta
deleted file mode 100644
index 54ba905..0000000
--- a/Assets/BigoAds/Scripts/Api/BigoSplashRequest.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: afdf808922a744419b5db1fdd4ca18b9
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant.meta b/Assets/BigoAds/Scripts/Api/Constant.meta
deleted file mode 100644
index df5fa74..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 0762cd7e46c3c43e5a32b1558643eb74
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs b/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs
deleted file mode 100644
index 462edff..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-namespace BigoAds.Scripts.Api.Constant
-{
- [Serializable]
- public enum BGAdGender
- {
- Female = 1,
- Male = 2
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs.meta b/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs.meta
deleted file mode 100644
index f517742..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BGAdGender.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2784802c5b5b34470a0500118ccb7f55
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs b/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs
deleted file mode 100644
index 1e8b77e..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api.Constant
-{
- [Serializable]
- public enum BGAdLossReason
- {
- InternalError = 1,
- Timeout = 2,
- LowerThanFloorPrice = 100,
- LowerThanHighestPrice = 101
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs.meta b/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs.meta
deleted file mode 100644
index c16d048..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BGAdLossReason.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 303b2e25e09c44797a167b642310a319
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs b/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs
deleted file mode 100644
index 0d26ace..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Api.Constant
-{
- [Serializable]
- public struct BigoBannerSize
- {
- public static readonly BigoBannerSize BANNER_W_320_H_50 = new BigoBannerSize(320,50);
- public static readonly BigoBannerSize BANNER_W_300_H_250 = new BigoBannerSize(300,250);
-
- [SerializeField] private int width;
- [SerializeField] private int height;
- public int Width => width;
- public int Height => height;
-
- public BigoBannerSize(int width, int height)
- {
- this.width = width;
- this.height = height;
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs.meta b/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs.meta
deleted file mode 100644
index 2a3dff5..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BigoBannerSize.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4a4411a50cfc94717b30325ceed3d52f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs b/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs
deleted file mode 100644
index 44a6cdb..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api.Constant
-{
- [Serializable]
- public enum BigoPosition
- {
- Top = 0,
- Middle = 1,
- Bottom = 2
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs.meta b/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs.meta
deleted file mode 100644
index 409da19..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/BigoPosition.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 6511065ffc7f44235bacb3ee16a87f5a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs b/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs
deleted file mode 100644
index 5b49a5e..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace BigoAds.Scripts.Api.Constant
-{
- [Serializable]
- public enum ConsentOptions
- {
- GDPR,
- CCPA,
- LGPD,
- COPPA
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs.meta b/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs.meta
deleted file mode 100644
index c1ae974..0000000
--- a/Assets/BigoAds/Scripts/Api/Constant/ConsentOptions.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7867ac15c426649a6aa633a772d54879
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common.meta b/Assets/BigoAds/Scripts/Common.meta
deleted file mode 100644
index f8e8c89..0000000
--- a/Assets/BigoAds/Scripts/Common.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 8b4db2c2875384f11b89eb7dec28b823
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs b/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs
deleted file mode 100644
index 955822c..0000000
--- a/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs
+++ /dev/null
@@ -1,218 +0,0 @@
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Common
-{
- public class BigoBaseAd where T : BigoRequest
- {
- ///
- /// event for load ad success
- ///
- public event Action OnLoad;
-
- ///
- /// load ad failed with error code and error message
- ///
- public event Action OnLoadFailed;
-
- ///
- /// event for ad impression
- ///
- public event Action OnAdShowed;
-
- ///
- /// event for ad be clicked
- ///
- public event Action OnAdClicked;
-
- ///
- /// event for ad be closed
- ///
- public event Action OnAdDismissed;
-
- ///
- /// event for ad error
- ///
- public event Action OnAdError;
-
- private readonly string _slotId;
-
- private bool _isAdLoaded;
-
- protected readonly IBigoAd ADClient;
-
- public bool CallbackOnMainThread { get; set; } = true;
-
- private BigoAdBid _bid;
-
- protected BigoBaseAd(string id, IBigoAd adClient)
- {
- _slotId = id;
- ADClient = adClient;
- InitEvent(ADClient);
- }
-
- private void InitEvent(IBigoAd adClient)
- {
- adClient.OnLoad += InvokeOnLoad;
- adClient.OnLoadFailed += InvokeOnLoadFailed;
-
- adClient.OnAdShowed += InvokeOnAdShowed;
- adClient.OnAdClicked += InvokeOnAdClicked;
- adClient.OnAdDismissed += InvokeOnAdDismissed;
- adClient.OnAdError += InvokeOnAdError;
- }
-
- public void Load(T request)
- {
- if (_isAdLoaded)
- {
- InvokeOnLoad();
- }
- if (string.IsNullOrEmpty(_slotId))
- {
- InvokeOnLoadFailed(-1, "slotId must be not null");
- return;
- }
-
- if (!BigoAdSdk.IsInitSuccess())
- {
- InvokeOnLoadFailed(-1, "sdk has not init");
- return;
- }
- ADClient?.Load(_slotId, request);
- }
-
- public virtual void Show()
- {
- _isAdLoaded = false;
- ADClient?.Show();
- }
-
- public void DestroyAd()
- {
- ADClient?.Destroy();
- }
-
- public bool IsLoaded()
- {
- return _isAdLoaded;
- }
-
- public bool IsExpired()
- {
- return ADClient == null ? false : ADClient.IsExpired();
- }
-
- public string GetExtraInfo(String key)
- {
- return ADClient == null ? "" : ADClient.GetExtraInfo(key);
- }
-
- private void InvokeOnLoad()
- {
- OnLoad?.Invoke();
- _isAdLoaded = true;
- }
-
- protected void InvokeOnLoadFailed(int errorCode, string errorMessage)
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnLoadFailed?.Invoke(errorCode, errorMessage); }));
- }
- else
- {
- OnLoadFailed?.Invoke(errorCode, errorMessage);
- }
- }
-
-
- private void InvokeOnAdShowed()
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnAdShowed?.Invoke(); }));
- }
- else
- {
- OnAdShowed?.Invoke();
- }
- }
-
- private void InvokeOnAdClicked()
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnAdClicked?.Invoke(); }));
- }
- else
- {
- OnAdClicked?.Invoke();
- }
- }
-
- private void InvokeOnAdDismissed()
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnAdDismissed?.Invoke(); }));
- }
- else
- {
- OnAdDismissed?.Invoke();
- }
- }
-
- private void InvokeOnAdError(int errorCode, string errorMessage)
- {
- if (CallbackOnMainThread)
- {
- BigoDispatcher.PostTask((() => { OnAdError?.Invoke(errorCode, errorMessage); }));
- }
- else
- {
- OnAdError?.Invoke(errorCode, errorMessage);
- }
- }
-
- public BigoAdBid GetBid()
- {
- if (ADClient == null) return null;
- if (!ADClient.IsClientBidding()) return null;
- if (_bid == null)
- {
- _bid = new BigoAdBid(ADClient);
- }
- return _bid;
- }
-
- public class BigoAdBid : IClientBidding
- {
- protected readonly IBigoAd _ADClient;
-
- public BigoAdBid(IBigoAd ADClient)
- {
- _ADClient = ADClient;
- }
- /// get price
- public double getPrice()
- {
- return _ADClient == null ? 0 : _ADClient.getPrice();
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- _ADClient?.notifyWin(secPrice, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- _ADClient?.notifyLoss(firstPrice, firstBidder, lossReason);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs.meta b/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs.meta
deleted file mode 100644
index f0dae98..0000000
--- a/Assets/BigoAds/Scripts/Common/BigoBaseAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8554386bfcec3403cb6fab89c7a35f31
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs b/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs
deleted file mode 100644
index 18f0d61..0000000
--- a/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-namespace BigoAds.Scripts.Common
-{
- using System;
- using System.Collections.Generic;
- using UnityEngine;
-
- ///
- /// The unity thread dispatcher.
- ///
- [DisallowMultipleComponent]
- internal sealed class BigoDispatcher : MonoBehaviour
- {
- private static bool _instanceCreated;
-
- // The thread safe task queue.
- private static readonly List PostTasks = new List();
-
- // The executing buffer.
- private static readonly List Executing = new List();
-
- static BigoDispatcher()
- {
- CreateInstance();
- }
-
- ///
- /// Work thread post a task to the main thread.
- ///
- public static void PostTask(Action task)
- {
- lock (PostTasks)
- {
- PostTasks.Add(task);
- }
- }
-
- ///
- /// Start to run this dispatcher.
- ///
- [RuntimeInitializeOnLoadMethod]
- private static void CreateInstance()
- {
- if (_instanceCreated || !Application.isPlaying) return;
- var go = new GameObject(
- "BigoDispatcher", typeof(BigoDispatcher));
- DontDestroyOnLoad(go);
- _instanceCreated = true;
- }
-
- private void OnDestroy()
- {
- lock (PostTasks)
- {
- PostTasks.Clear();
- }
-
- Executing.Clear();
- }
-
- private void Update()
- {
- lock (PostTasks)
- {
- if (PostTasks.Count > 0)
- {
- Executing.AddRange(PostTasks);
- PostTasks.Clear();
- }
- }
-
- foreach (var task in Executing)
- {
- try
- {
- task();
- }
- catch (Exception e)
- {
- Debug.LogError(e.Message, this);
- }
- }
-
- Executing.Clear();
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs.meta b/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs.meta
deleted file mode 100644
index 95d2986..0000000
--- a/Assets/BigoAds/Scripts/Common/BigoDispatcher.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2d1af23e5ee93476382ea747bb4b6985
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IBannerAd.cs b/Assets/BigoAds/Scripts/Common/IBannerAd.cs
deleted file mode 100644
index b47ae5d..0000000
--- a/Assets/BigoAds/Scripts/Common/IBannerAd.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IBannerAd : IBigoAd
- {
- void SetPosition(BigoPosition position);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IBannerAd.cs.meta b/Assets/BigoAds/Scripts/Common/IBannerAd.cs.meta
deleted file mode 100644
index 07400ff..0000000
--- a/Assets/BigoAds/Scripts/Common/IBannerAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9632da3a0b8674b539385af7fec47c33
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IBigoAd.cs b/Assets/BigoAds/Scripts/Common/IBigoAd.cs
deleted file mode 100644
index 8bebc72..0000000
--- a/Assets/BigoAds/Scripts/Common/IBigoAd.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using BigoAds.Scripts.Api;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IBigoAd : IClientBidding where T : BigoRequest
- {
- event Action OnLoad;
- event Action OnLoadFailed;
- event Action OnAdShowed;
- event Action OnAdClicked;
- event Action OnAdDismissed;
- event Action OnAdError;
- void Load(string slotId, T request);
- bool IsLoaded();
- bool IsExpired();
- void Show();
- void Destroy();
- bool IsClientBidding();
- string GetExtraInfo(String key);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IBigoAd.cs.meta b/Assets/BigoAds/Scripts/Common/IBigoAd.cs.meta
deleted file mode 100644
index aedaab2..0000000
--- a/Assets/BigoAds/Scripts/Common/IBigoAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ac3c835ae5b8f421192fb72d32c9c6c1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IClientBidding.cs b/Assets/BigoAds/Scripts/Common/IClientBidding.cs
deleted file mode 100644
index 941cb45..0000000
--- a/Assets/BigoAds/Scripts/Common/IClientBidding.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IClientBidding
- {
- /// get price
- double getPrice();
-
- ///notify win
- void notifyWin(double secPrice, string secBidder);
-
- ///notify loss
- void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IClientBidding.cs.meta b/Assets/BigoAds/Scripts/Common/IClientBidding.cs.meta
deleted file mode 100644
index d02114a..0000000
--- a/Assets/BigoAds/Scripts/Common/IClientBidding.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: be474d5a8f44740eeac370fd98153d15
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IClientFactory.cs b/Assets/BigoAds/Scripts/Common/IClientFactory.cs
deleted file mode 100644
index 9dd9700..0000000
--- a/Assets/BigoAds/Scripts/Common/IClientFactory.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace BigoAds.Scripts.Common
-{
- public interface IClientFactory
- {
- ISDK BuildSDKClient();
- IBannerAd BuildBannerAdClient();
- INativeAd BuildNativeAdClient();
- IInterstitialAd BuildInterstitialAdClient();
- IPopupAd BuildPopupAdClient();
- ISplashAd BuildSplashAdClient();
- IRewardedAd BuildRewardedAdClient();
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IClientFactory.cs.meta b/Assets/BigoAds/Scripts/Common/IClientFactory.cs.meta
deleted file mode 100644
index 4061cfb..0000000
--- a/Assets/BigoAds/Scripts/Common/IClientFactory.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b2cb5f6ac1b7f463db75ac0bfa7d7fbe
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs b/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs
deleted file mode 100644
index 7678caf..0000000
--- a/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using BigoAds.Scripts.Api;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IInterstitialAd : IBigoAd
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs.meta b/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs.meta
deleted file mode 100644
index 4b86fca..0000000
--- a/Assets/BigoAds/Scripts/Common/IInterstitialAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2d31ee1df8a074b81a5575e9a7735b2a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/INativeAd.cs b/Assets/BigoAds/Scripts/Common/INativeAd.cs
deleted file mode 100644
index 530387d..0000000
--- a/Assets/BigoAds/Scripts/Common/INativeAd.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Common
-{
- public interface INativeAd : IBigoAd
- {
- void SetPosition(BigoPosition position);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/INativeAd.cs.meta b/Assets/BigoAds/Scripts/Common/INativeAd.cs.meta
deleted file mode 100644
index 2c2e818..0000000
--- a/Assets/BigoAds/Scripts/Common/INativeAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: eef5c6b4f590c4ceaac635a2992576ef
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IPopupAd.cs b/Assets/BigoAds/Scripts/Common/IPopupAd.cs
deleted file mode 100644
index 9cf8489..0000000
--- a/Assets/BigoAds/Scripts/Common/IPopupAd.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using BigoAds.Scripts.Api;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IPopupAd : IBigoAd
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IPopupAd.cs.meta b/Assets/BigoAds/Scripts/Common/IPopupAd.cs.meta
deleted file mode 100644
index f0866ad..0000000
--- a/Assets/BigoAds/Scripts/Common/IPopupAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9e767b9004c4f4ca19baa6f54c409c5d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/IRewardedAd.cs b/Assets/BigoAds/Scripts/Common/IRewardedAd.cs
deleted file mode 100644
index 2b549ab..0000000
--- a/Assets/BigoAds/Scripts/Common/IRewardedAd.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-using BigoAds.Scripts.Api;
-
-namespace BigoAds.Scripts.Common
-{
- public interface IRewardedAd : IBigoAd
- {
- event Action OnUserEarnedReward;
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/IRewardedAd.cs.meta b/Assets/BigoAds/Scripts/Common/IRewardedAd.cs.meta
deleted file mode 100644
index a705be0..0000000
--- a/Assets/BigoAds/Scripts/Common/IRewardedAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0b3baa8d362724d19997664f34f4320d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/ISDK.cs b/Assets/BigoAds/Scripts/Common/ISDK.cs
deleted file mode 100644
index 67113a0..0000000
--- a/Assets/BigoAds/Scripts/Common/ISDK.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Common
-{
- public interface ISDK
- {
- ///
- /// Starts the Bigo SDK
- ///
- void Init(BigoAdConfig config, BigoAdSdk.InitResultDelegate initResultDelegate);
-
- ////
- /// The SDK initialization state
- ////
- bool IsInitSuccess();
-
- ///////
- /// Bigo SDK version
- /// ////
- string GetSDKVersion();
-
-
- ///////
- /// Bigo SDK version name
- /// ////
- string GetSDKVersionName();
-
- ///////
- /// Bigo SDK set user consent
- /// ////
- void SetUserConsent(ConsentOptions option, bool consent);
-
- ///////
- /// Only works on Android
- /// Bigo SDK set user consent
- /// ////
- void AddExtraHost(string country, string host);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/ISDK.cs.meta b/Assets/BigoAds/Scripts/Common/ISDK.cs.meta
deleted file mode 100644
index 5b97bc8..0000000
--- a/Assets/BigoAds/Scripts/Common/ISDK.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 00ad18b48fa1047ee98bd415dd127f65
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Common/ISplashAd.cs b/Assets/BigoAds/Scripts/Common/ISplashAd.cs
deleted file mode 100644
index 3cf05a6..0000000
--- a/Assets/BigoAds/Scripts/Common/ISplashAd.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using BigoAds.Scripts.Api;
-
-namespace BigoAds.Scripts.Common
-{
- public interface ISplashAd:IBigoAd
- {
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Common/ISplashAd.cs.meta b/Assets/BigoAds/Scripts/Common/ISplashAd.cs.meta
deleted file mode 100644
index 6aa7ff1..0000000
--- a/Assets/BigoAds/Scripts/Common/ISplashAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e1105e67678354e71850311744a989c3
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms.meta b/Assets/BigoAds/Scripts/Platforms.meta
deleted file mode 100644
index 842ddfd..0000000
--- a/Assets/BigoAds/Scripts/Platforms.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: f730f3e43d10941928ac676ed88c7ee4
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android.meta b/Assets/BigoAds/Scripts/Platforms/Android.meta
deleted file mode 100644
index 9103522..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: e595ff25130d84811aae9bbe30751d78
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs b/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs
deleted file mode 100644
index 89fef60..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using UnityEngine;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Common;
-using BigoAds.Scripts.Api.Constant;
-
-public class AdHelper
-{
- public static void ShowBannerAd(AndroidJavaObject bannerAd)
- {
- ShowBannerAd(bannerAd, BigoPosition.Bottom);
- }
-
- public static void ShowBannerAd(AndroidJavaObject bannerAd, BigoPosition position)
- {
- if (bannerAd == null) return;
- var adView = bannerAd.Call("adView");
- SetViewPosition(adView, position);
- }
-
- public static void ShowNativeAd(AndroidJavaObject nativeAd)
- {
- ShowNativeAd(nativeAd, BigoPosition.Bottom);
- }
-
- public static void RemoveAdView()
- {
- var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
- var activity = unityPlayer.GetStatic("currentActivity");
- new AndroidJavaClass("sg.bigo.ads.AdHelper").CallStatic("removeAdView", activity);
- }
-
- public static void ShowNativeAd(AndroidJavaObject nativeAd, BigoPosition position)
- {
- if (nativeAd == null) return;
- var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
- var activity = unityPlayer.GetStatic("currentActivity");
- var adView = new AndroidJavaClass("sg.bigo.ads.AdHelper").CallStatic("renderNativeAdView", activity, nativeAd, "layout_bigo_native_ad");
- SetViewPosition(adView, position);
- }
-
- public static void SetViewPosition(AndroidJavaObject adView, BigoPosition position)
- {
- var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
- var activity = unityPlayer.GetStatic("currentActivity");
- int positionInt;
- switch (position)
- {
- case BigoPosition.Top:
- positionInt = 48;
- break;
- case BigoPosition.Middle:
- positionInt = 16;
- break;
- case BigoPosition.Bottom:
- default:
- positionInt = 80;
- break;
- }
- new AndroidJavaClass("sg.bigo.ads.AdHelper").CallStatic("addAdView", activity, adView, positionInt);
- }
-
-
- public abstract class Task : AndroidJavaProxy
- {
- public Task() : base("java.lang.Runnable")
- {
- }
-
- public abstract void run();
- }
-
- public static void DestroyAd(AndroidJavaObject ad)
- {
- if (ad != null) {
- PostToAndroidMainThread(new DestryAdTask(ad));
- }
- }
-
- private class DestryAdTask : Task
- {
- public AndroidJavaObject Ad;
-
- public DestryAdTask(AndroidJavaObject ad)
- {
- this.Ad = ad;
- }
-
- public override void run()
- {
- Ad.Call("destroy");
- AdHelper.RemoveAdView();
- }
- }
-
- public static void PostToAndroidMainThread(Task task)
- {
- new AndroidJavaClass("sg.bigo.ads.AdHelper").CallStatic("postToAndroidMainThread", task);
- }
-}
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs.meta
deleted file mode 100644
index a1fed7c..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: c7b17fadc228c48b6900058970865c98
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java b/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java
deleted file mode 100755
index 6900850..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java
+++ /dev/null
@@ -1,106 +0,0 @@
-package sg.bigo.ads;
-
-import android.app.Activity;
-import android.content.Context;
-import android.os.Handler;
-import android.os.Looper;
-import android.util.Log;
-import android.view.Gravity;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.Button;
-import android.widget.FrameLayout;
-import android.widget.ImageView;
-import android.widget.TextView;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import sg.bigo.ads.api.AdOptionsView;
-import sg.bigo.ads.api.AdTag;
-import sg.bigo.ads.api.MediaView;
-import sg.bigo.ads.api.NativeAd;
-
-public class AdHelper {
-
- public static void postToAndroidMainThread(Runnable runnable) {
- new Handler(Looper.getMainLooper()).post(runnable);
- }
-
- public static void addAdView(Activity activity, View adView, int position) {
- if (adView == null) return;
- ViewGroup contentView = activity.findViewById(android.R.id.content);
- String tag = "ad_container";
- ViewGroup adContainer = contentView.findViewWithTag(tag);
- if (adContainer == null) {
- adContainer = new FrameLayout(activity);
- adContainer.setTag(tag);
- }
- contentView.removeView(adContainer);
- FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, position);
- contentView.addView(adContainer, layoutParams);
- adContainer.removeAllViews();
- adContainer.addView(adView);
- }
-
- public static void removeAdView(Activity activity)
- {
- ViewGroup contentView = activity.findViewById(android.R.id.content);
- String tag = "ad_container";
- ViewGroup adContainer = contentView.findViewWithTag(tag);
- if (adContainer == null) return;
- adContainer.removeAllViews();
- }
-
- public static int getLayoutIdByResName(Activity activity, String resName) {
- return activity.getResources().getIdentifier(resName, "layout", activity.getPackageName());
- }
-
- public static int getDrawableIdByResName(Activity activity, String resName) {
- return activity.getResources().getIdentifier(resName, "drawable", activity.getPackageName());
- }
-
- public static View renderNativeAdView(Activity activity, NativeAd nativeAd, String layoutResName) {
- int layoutId = getLayoutIdByResName(activity, layoutResName);
- if (layoutId <= 0) {
- Log.w("BigoAds-Unity", "Invalid res name: " + layoutResName);
- return null;
- }
- View view = LayoutInflater.from(activity).inflate(layoutId, null, false);
- if (!(view instanceof ViewGroup)) {
- return view;
- }
- ViewGroup nativeView = (ViewGroup) view;
- TextView titleView = findViewByIdName(nativeView, "native_title");
- TextView descriptionView = findViewByIdName(nativeView, "native_description");
- TextView warningView = findViewByIdName(nativeView, "native_warning");
- Button ctaButton = findViewByIdName(nativeView, "native_cta");
- MediaView mediaView = findViewByIdName(nativeView, "native_media_view");
- ImageView iconView = findViewByIdName(nativeView, "native_icon_view");
- AdOptionsView optionsView = findViewByIdName(nativeView, "native_option_view");
-
- titleView.setTag(AdTag.TITLE);
- descriptionView.setTag(AdTag.DESCRIPTION);
- warningView.setTag(AdTag.WARNING);
- ctaButton.setTag(AdTag.CALL_TO_ACTION);
-
- titleView.setText(nativeAd.getTitle());
- descriptionView.setText(nativeAd.getDescription());
- warningView.setText(nativeAd.getWarning());
- ctaButton.setText(nativeAd.getCallToAction());
-
- List clickableViews = new ArrayList<>();
- clickableViews.add(titleView);
- clickableViews.add(descriptionView);
- clickableViews.add(ctaButton);
- nativeAd.registerViewForInteraction(nativeView, mediaView, iconView, optionsView, clickableViews);
- return nativeView;
- }
-
- private static T findViewByIdName(ViewGroup parent, String name) {
- Context context = parent.getContext();
- int id = context.getResources().getIdentifier(name, "id", context.getPackageName());
- return parent.findViewById(id);
- }
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java.meta b/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java.meta
deleted file mode 100644
index ab4bd1d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdHelper.java.meta
+++ /dev/null
@@ -1,32 +0,0 @@
-fileFormatVersion: 2
-guid: 0edf95022edcd4f9d8919629603eb5e1
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs b/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs
deleted file mode 100644
index 3735717..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#if UNITY_ANDROID
-
-using System;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- public class AdInteractionCallback : AndroidJavaProxy
- {
- private readonly Action OnAdShowed;
- protected readonly Action OnAdDismissed;
- private readonly Action OnAdClicked;
- private readonly Action OnAdError;
- private const string ListenerName = AndroidPlatformTool.ClassPackage + ".api.AdInteractionListener";
-
- public AdInteractionCallback(Action onAdShowed, Action onAdClicked, Action onAdDismissed, Action onAdError,
- string listenerName = ListenerName) : base(listenerName)
- {
- OnAdShowed = onAdShowed;
- OnAdDismissed = onAdDismissed;
- OnAdClicked = onAdClicked;
- OnAdError = onAdError;
- }
-
- public void onAdImpression()
- {
- OnAdShowed?.Invoke();
- }
-
- public void onAdClosed()
- {
- OnAdDismissed?.Invoke();
- }
-
- public void onAdClicked()
- {
- OnAdClicked?.Invoke();
- }
-
- public void onAdError(AndroidJavaObject error)
- {
- var code = error.Call("getCode");
- var message = error.Call("getMessage");
- OnAdError?.Invoke(code, message);
- }
-
- public void onAdOpened()
- {
-
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs.meta
deleted file mode 100644
index 9524d94..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdInteractionCallback.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: eeaf0303131624578b3997f9db6cb014
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs b/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs
deleted file mode 100644
index 96565b4..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- public class AdLoadCallback : AndroidJavaProxy
- {
- private readonly Action onLoad;
- private readonly Action onLoadFailed;
-
- public AdLoadCallback(Action onLoad, Action onLoadFailed) : base(
- AndroidPlatformTool.ClassPackage + ".api.AdLoadListener")
- {
- this.onLoad = onLoad;
- this.onLoadFailed = onLoadFailed;
- }
-
- public void onError(AndroidJavaObject error)
- {
- var code = error.Call("getCode");
- var message = error.Call("getMessage");
- onLoadFailed?.Invoke(code, message);
- }
-
- public void onAdLoaded(AndroidJavaObject ad)
- {
- onLoad?.Invoke(ad);
- }
- }
-
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs.meta
deleted file mode 100644
index 0fb8eef..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AdLoadCallback.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b4d06d46018574b7bae1c9dc60ef6122
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs
deleted file mode 100644
index d541307..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidBannerAd : IBannerAd
- {
- private const string BannerAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.BannerAdLoader$Builder";
- private const string BannerAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.BannerAdRequest$Builder";
- private const string BannerSizeClassName = AndroidPlatformTool.ClassPackage + ".api.AdSize";
- private const string BannerBuildMethod = "build";
- private const string BannerAdLoaderBuildMethod = "withAdLoadListener";
- private const string BannerAdLoaderExtMethod = "withExt";
-
-
- private AndroidJavaObject BannerAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
-
- public AndroidBannerAd()
- {
- OnAdLoad += ((ad) =>
- {
- BannerAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoBannerRequest request)
- {
- if (request == null)
- {
- return;
- }
- var bannerLoaderBuilder = new AndroidJavaObject(BannerAdLoaderClassName);
- bannerLoaderBuilder?.Call(BannerAdLoaderExtMethod, request.ExtraInfoJson);
- bannerLoaderBuilder?.Call(BannerAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var bannerLoader = bannerLoaderBuilder?.Call(BannerBuildMethod);
-
- var bannerRequestBuilder = new AndroidJavaObject(BannerAdRequestClassName);
- bannerRequestBuilder?.Call("withSlotId", slotId);
- bannerRequestBuilder?.Call("withAge", request.Age);
- bannerRequestBuilder?.Call("withGender", (int)(request.Gender));
- bannerRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var bannerSize = new AndroidJavaClass(BannerSizeClassName).GetStatic("BANNER");
- int width = request.Size.Width;
- int height = request.Size.Height;
- if (width == 300 && height == 250) {
- bannerSize = new AndroidJavaClass(BannerSizeClassName).GetStatic("MEDIUM_RECTANGLE");
- }
- AndroidJavaClass arrayClass = new AndroidJavaClass("java.lang.reflect.Array");
- AndroidJavaObject arrayObject = arrayClass.CallStatic("newInstance", new AndroidJavaClass(BannerSizeClassName), 1);
- arrayClass.CallStatic("set", arrayObject, 0, bannerSize);
-
- bannerRequestBuilder?.Call("withAdSizes", arrayObject);
-
- var bannerRequest = bannerRequestBuilder?.Call(BannerBuildMethod);
-
- bannerLoader?.Call("loadAd", bannerRequest);
- }
-
- public bool IsLoaded()
- {
- return BannerAd != null;
- }
-
- public void Show()
- {
- BannerAd?.Call("setAdInteractionListener", new AdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError));
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- AdHelper.ShowBannerAd(BannerAd);
- });
- }
-
- public void Destroy()
- {
- //post to main
- AdHelper.DestroyAd(BannerAd);
- }
-
- public bool IsExpired()
- {
-
- return BannerAd != null && BannerAd.Call("isExpired");
- }
-
- public void SetPosition(BigoPosition position)
- {
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- AdHelper.ShowBannerAd(BannerAd, position);
- });
- }
-
- public bool IsClientBidding()
- {
- if (BannerAd == null) return false;
- AndroidJavaObject bid = BannerAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (BannerAd == null) return "";
- return BannerAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (BannerAd == null) return 0;
- AndroidJavaObject bid = BannerAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (BannerAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- BannerAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (BannerAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- BannerAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
-
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs.meta
deleted file mode 100644
index 133fd1f..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidBannerAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 46ee6aacd6a2546ce8e23dd89e5d27d4
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs
deleted file mode 100644
index 45d6f26..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-#if UNITY_ANDROID
-
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidClientFactory : IClientFactory
- {
- ///
- ///
- ///
- ///
- public ISDK BuildSDKClient()
- {
- return new BigoSdkClient();
- }
-
- public IBannerAd BuildBannerAdClient()
- {
- return new AndroidBannerAd();
- }
-
- public INativeAd BuildNativeAdClient()
- {
- return new AndroidNativeAd();
- }
-
- public IInterstitialAd BuildInterstitialAdClient()
- {
- return new AndroidInterstitialAd();
- }
-
- public IPopupAd BuildPopupAdClient()
- {
- return new AndroidPopupAd();
- }
-
- public ISplashAd BuildSplashAdClient()
- {
- return new AndroidSplashAd();
- }
-
- public IRewardedAd BuildRewardedAdClient()
- {
- return new AndroidRewardedAd();
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs.meta
deleted file mode 100644
index 8e800fb..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidClientFactory.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1809d4d3a8b034fa88284da804f66a71
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs
deleted file mode 100644
index 0beed80..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidInterstitialAd : IInterstitialAd
- {
- private const string InterstitialAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.InterstitialAdLoader$Builder";
- private const string InterstitialAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.InterstitialAdRequest$Builder";
- private const string InterstitialBuildMethod = "build";
- private const string InterstitialAdLoaderBuildMethod = "withAdLoadListener";
- private const string InterstitialAdLoaderExtMethod = "withExt";
-
- private AndroidJavaObject InterstitialAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
-
- public AndroidInterstitialAd()
- {
- OnAdLoad += ((ad) =>
- {
- InterstitialAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoInterstitialRequest request)
- {
- if (request == null)
- {
- return;
- }
- var InterstitialLoaderBuilder = new AndroidJavaObject(InterstitialAdLoaderClassName);
- InterstitialLoaderBuilder?.Call(InterstitialAdLoaderExtMethod, request.ExtraInfoJson);
- InterstitialLoaderBuilder?.Call(InterstitialAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var InterstitialLoader = InterstitialLoaderBuilder?.Call(InterstitialBuildMethod);
-
- var InterstitialRequestBuilder = new AndroidJavaObject(InterstitialAdRequestClassName);
- InterstitialRequestBuilder?.Call("withSlotId", slotId);
- InterstitialRequestBuilder?.Call("withAge", request.Age);
- InterstitialRequestBuilder?.Call("withGender", (int)(request.Gender));
- InterstitialRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var InterstitialRequest = InterstitialRequestBuilder?.Call(InterstitialBuildMethod);
-
- InterstitialLoader?.Call("loadAd", InterstitialRequest);
- }
-
- public bool IsLoaded()
- {
- return InterstitialAd != null;
- }
-
- public void Show()
- {
- InterstitialAd?.Call("setAdInteractionListener", new AdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError));
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- InterstitialAd?.Call("show");
- });
-
- }
-
- public void Destroy()
- {
- //post to main
- AdHelper.DestroyAd(InterstitialAd);
- }
-
- public bool IsExpired()
- {
- return InterstitialAd != null && InterstitialAd.Call("isExpired");
- }
-
- public bool IsClientBidding()
- {
- if (InterstitialAd == null) return false;
- AndroidJavaObject bid = InterstitialAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (InterstitialAd == null) return "";
- return InterstitialAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (InterstitialAd == null) return 0;
- AndroidJavaObject bid = InterstitialAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (InterstitialAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- InterstitialAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (InterstitialAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- InterstitialAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs.meta
deleted file mode 100644
index 2218096..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidInterstitialAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 087385bbddf0541e5be511be304caee8
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs
deleted file mode 100644
index 9cbd5a7..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidNativeAd : INativeAd
- {
- private const string NativeAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.NativeAdLoader$Builder";
- private const string NativeAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.NativeAdRequest$Builder";
- private const string NativeBuildMethod = "build";
- private const string NativeAdLoaderBuildMethod = "withAdLoadListener";
- private const string NativeAdLoaderExtMethod = "withExt";
-
- private AndroidJavaObject NativeAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
-
- public AndroidNativeAd()
- {
- OnAdLoad += ((ad) =>
- {
- NativeAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoNativeRequest request)
- {
- if (request == null)
- {
- return;
- }
- var nativeLoaderBuilder = new AndroidJavaObject(NativeAdLoaderClassName);
- nativeLoaderBuilder?.Call(NativeAdLoaderExtMethod, request.ExtraInfoJson);
- nativeLoaderBuilder?.Call(NativeAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var nativeLoader = nativeLoaderBuilder?.Call(NativeBuildMethod);
-
- var nativeRequestBuilder = new AndroidJavaObject(NativeAdRequestClassName);
- nativeRequestBuilder?.Call("withSlotId", slotId);
- nativeRequestBuilder?.Call("withAge", request.Age);
- nativeRequestBuilder?.Call("withGender", (int)(request.Gender));
- nativeRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var nativeRequest = nativeRequestBuilder?.Call(NativeBuildMethod);
-
- nativeLoader?.Call("loadAd", nativeRequest);
- }
-
- public bool IsLoaded()
- {
- return NativeAd != null;
- }
-
- public void Show()
- {
- NativeAd?.Call("setAdInteractionListener", new AdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError));
-
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- AdHelper.ShowNativeAd(NativeAd);
- });
-
- }
-
- public void Destroy()
- {
- AdHelper.DestroyAd(NativeAd);
- }
-
- public bool IsExpired()
- {
-
- return NativeAd != null && NativeAd.Call("isExpired");
- }
-
- public void SetPosition(BigoPosition position)
- {
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- AdHelper.ShowNativeAd(NativeAd, position);
- });
- }
-
- public bool IsClientBidding()
- {
- if (NativeAd == null) return false;
- AndroidJavaObject bid = NativeAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (NativeAd == null) return "";
- return NativeAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (NativeAd == null) return 0;
- AndroidJavaObject bid = NativeAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (NativeAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- NativeAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (NativeAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- NativeAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs.meta
deleted file mode 100644
index 0369f2d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidNativeAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 04dd9e8545a394cc0b0bd15cfe325045
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs
deleted file mode 100644
index 208fcbb..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-#if UNITY_ANDROID
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- internal static class AndroidPlatformTool
- {
- public const string ClassPackage = "sg.bigo.ads";
- private const string UnityPlayerClassName = "com.unity3d.player.UnityPlayer";
- private const string CurrentActivityMethod = "currentActivity";
- private const string ResourceUtilClassName = ClassPackage + ".ResourceUtil";
- private const string AdConfigClassName = ClassPackage + ".api.AdConfig$Builder";
-
- public static AndroidJavaObject GetGameActivity()
- {
- return new AndroidJavaClass(UnityPlayerClassName).GetStatic(CurrentActivityMethod);
- }
-
- public static AndroidJavaObject GetBigoConfig(BigoAdConfig config)
- {
- var builder = new AndroidJavaObject(AdConfigClassName);
- if (config != null)
- {
- void CallNativeFunction(string methodName, T arg)
- {
- builder.Call(methodName, arg);
- }
-
- if (!string.IsNullOrEmpty(config.AppId))
- {
- CallNativeFunction("setAppId", config.AppId);
- }
-
- if (config.DebugLog) //default value is false
- {
- Debug.Log("set debug true");
- CallNativeFunction("setDebug", true);
- }
-
- if (!string.IsNullOrEmpty(config.Channel))
- {
- CallNativeFunction("setChannel", config.Channel);
- }
-
- if (config.Age > 0)
- {
- CallNativeFunction("setAge", config.Age);
- }
-
- if (config.Gender > 0)
- {
- CallNativeFunction("setGender", config.Gender);
- }
-
- if (config.ActivatedTime > 0)
- {
- CallNativeFunction("setActivatedTime", config.ActivatedTime);
- }
-
- foreach (KeyValuePair item in config.ExtraDictionary)
- {
- Debug.Log($"bigo sdk config extra:" + item.Key + "=" + item.Value);
- builder.Call("addExtra", item.Key, item.Value);
- }
- }
-
- return builder.Call("build");
- }
-
- public static AndroidJavaObject GetAdRequest(BigoRequest request)
- {
- switch (request)
- {
- case BigoBannerRequest _:
- break;
- case BigoNativeRequest _:
- break;
- case BigoSplashRequest _:
- break;
- case BigoInterstitialRequest _:
- break;
- case BigoRewardedRequest _:
- break;
- }
-
- return null;
- }
-
- public static void CallMethodOnMainThread(Action task)
- {
- GetGameActivity()?.Call("runOnUiThread", new AndroidJavaRunnable(task));
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs.meta
deleted file mode 100644
index f643aef..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPlatformTool.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ec73d6fa8edaa4c619d96f6db2789dd1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs
deleted file mode 100644
index 81382d7..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidPopupAd : IPopupAd
- {
- private const string PopupAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.popup.PopupAdLoader$Builder";
- private const string PopupAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.popup.PopupAdRequest$Builder";
- private const string PopupBuildMethod = "build";
- private const string PopupAdLoaderBuildMethod = "withAdLoadListener";
- private const string PopupAdLoaderExtMethod = "withExt";
-
- private AndroidJavaObject PopupAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
-
- public AndroidPopupAd()
- {
- OnAdLoad += ((ad) =>
- {
- PopupAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoPopupRequest request)
- {
- if (request == null)
- {
- return;
- }
- var PopupLoaderBuilder = new AndroidJavaObject(PopupAdLoaderClassName);
- PopupLoaderBuilder?.Call(PopupAdLoaderExtMethod, request.ExtraInfoJson);
- PopupLoaderBuilder?.Call(PopupAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var PopupLoader = PopupLoaderBuilder?.Call(PopupBuildMethod);
-
- var PopupRequestBuilder = new AndroidJavaObject(PopupAdRequestClassName);
- PopupRequestBuilder?.Call("withSlotId", slotId);
- PopupRequestBuilder?.Call("withAge", request.Age);
- PopupRequestBuilder?.Call("withGender", (int)(request.Gender));
- PopupRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var PopupRequest = PopupRequestBuilder?.Call(PopupBuildMethod);
-
- PopupLoader?.Call("loadAd", PopupRequest);
- }
-
- public bool IsLoaded()
- {
- return PopupAd != null;
- }
-
- public void Show()
- {
- PopupAd?.Call("setAdInteractionListener", new AdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError));
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- PopupAd?.Call("show");
- });
-
- }
-
- public void Destroy()
- {
- //post to main
- AdHelper.DestroyAd(PopupAd);
- }
-
- public bool IsExpired()
- {
- return PopupAd != null && PopupAd.Call("isExpired");
- }
-
- public bool IsClientBidding()
- {
- if (PopupAd == null) return false;
- AndroidJavaObject bid = PopupAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (PopupAd == null) return "";
- return PopupAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (PopupAd == null) return 0;
- AndroidJavaObject bid = PopupAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (PopupAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- PopupAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (PopupAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- PopupAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs.meta
deleted file mode 100644
index 595df40..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidPopupAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 34628c2993e174780bc5786dff90c900
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs
deleted file mode 100644
index 3e2f204..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidRewardedAd : IRewardedAd
- {
- private const string RewardedAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.RewardVideoAdLoader$Builder";
- private const string RewardedAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.RewardVideoAdRequest$Builder";
- private const string RewardedAdBuildMethod = "build";
- private const string RewardedAdLoaderBuildMethod = "withAdLoadListener";
- private const string RewardedAdLoaderExtMethod = "withExt";
-
- private AndroidJavaObject RewardedAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
- public event Action OnUserEarnedReward;
-
- public AndroidRewardedAd()
- {
- OnAdLoad += ((ad) =>
- {
- RewardedAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoRewardedRequest request)
- {
- if (request == null)
- {
- return;
- }
- var rewardedAdLoaderBuilder = new AndroidJavaObject(RewardedAdLoaderClassName);
- rewardedAdLoaderBuilder?.Call(RewardedAdLoaderExtMethod, request.ExtraInfoJson);
- rewardedAdLoaderBuilder?.Call(RewardedAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var rewardedAdLoader = rewardedAdLoaderBuilder?.Call(RewardedAdBuildMethod);
-
- var rewardedAdRequestBuilder = new AndroidJavaObject(RewardedAdRequestClassName);
- rewardedAdRequestBuilder?.Call("withSlotId", slotId);
- rewardedAdRequestBuilder?.Call("withAge", request.Age);
- rewardedAdRequestBuilder?.Call("withGender", (int)(request.Gender));
- rewardedAdRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var RewardedAdRequest = rewardedAdRequestBuilder?.Call(RewardedAdBuildMethod);
-
- rewardedAdLoader?.Call("loadAd", RewardedAdRequest);
- }
-
- public bool IsLoaded()
- {
- return RewardedAd != null;
- }
-
- public void Show()
- {
- RewardedAd?.Call("setAdInteractionListener", new RewardedAdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError, OnUserEarnedReward));
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- RewardedAd?.Call("show");
- });
-
- }
-
- public void Destroy()
- {
- //post to main
- AdHelper.DestroyAd(RewardedAd);
- }
-
- public bool IsExpired()
- {
- return RewardedAd != null && RewardedAd.Call("isExpired");
- }
-
- public bool IsClientBidding()
- {
- if (RewardedAd == null) return false;
- AndroidJavaObject bid = RewardedAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (RewardedAd == null) return "";
- return RewardedAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (RewardedAd == null) return 0;
- AndroidJavaObject bid = RewardedAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (RewardedAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- RewardedAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (RewardedAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- RewardedAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs.meta
deleted file mode 100644
index d075733..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidRewardedAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 6bca6ddceb592449c9606175e8f5f77e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs b/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs
deleted file mode 100644
index ae9afce..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class AndroidSplashAd : ISplashAd
- {
- private const string SplashAdLoaderClassName = AndroidPlatformTool.ClassPackage + ".api.SplashAdLoader$Builder";
- private const string SplashAdRequestClassName = AndroidPlatformTool.ClassPackage + ".api.SplashAdRequest$Builder";
- private const string SplashBuildMethod = "build";
- private const string SplashAdLoaderBuildMethod = "withAdLoadListener";
- private const string SplashAdLoaderExtMethod = "withExt";
-
- private AndroidJavaObject SplashAd;
-
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
-
- public AndroidSplashAd()
- {
- OnAdLoad += ((ad) =>
- {
- SplashAd = ad;
- OnLoad?.Invoke();
- });
- }
-
- private event Action OnAdLoad;
-
- public void Load(string slotId, BigoSplashRequest request)
- {
- if (request == null)
- {
- return;
- }
- var SplashLoaderBuilder = new AndroidJavaObject(SplashAdLoaderClassName);
- SplashLoaderBuilder?.Call(SplashAdLoaderExtMethod, request.ExtraInfoJson);
- SplashLoaderBuilder?.Call(SplashAdLoaderBuildMethod, new AdLoadCallback(OnAdLoad, OnLoadFailed));
- var SplashLoader = SplashLoaderBuilder?.Call(SplashBuildMethod);
-
- var SplashRequestBuilder = new AndroidJavaObject(SplashAdRequestClassName);
- SplashRequestBuilder?.Call("withSlotId", slotId);
- SplashRequestBuilder?.Call("withAge", request.Age);
- SplashRequestBuilder?.Call("withGender", (int)(request.Gender));
- SplashRequestBuilder?.Call("withActivatedTime", request.ActivatedTime);
-
- var SplashRequest = SplashRequestBuilder?.Call(SplashBuildMethod);
-
- SplashLoader?.Call("loadAd", SplashRequest);
- }
-
- public bool IsLoaded()
- {
- return SplashAd != null;
- }
-
- public void Show()
- {
- SplashAd?.Call("setAdInteractionListener", new SplashAdInteractionCallback(OnAdShowed, OnAdClicked, OnAdDismissed, OnAdError));
- AndroidPlatformTool.CallMethodOnMainThread(() =>
- {
- SplashAd?.Call("show");
- });
-
- }
-
- public void Destroy()
- {
- //post to main
- AdHelper.DestroyAd(SplashAd);
- }
-
- public bool IsExpired()
- {
- return SplashAd != null && SplashAd.Call("isExpired");
- }
-
- public bool IsClientBidding()
- {
- if (SplashAd == null) return false;
- AndroidJavaObject bid = SplashAd.Call("getBid");
- return bid != null;
- }
-
- public string GetExtraInfo(string key)
- {
- if (SplashAd == null) return "";
- return SplashAd.Call("getExtraInfo", key);
- }
-
- /// get price
- public double getPrice()
- {
- if (SplashAd == null) return 0;
- AndroidJavaObject bid = SplashAd.Call("getBid");
- return bid == null ? 0 : bid.Call("getPrice");
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- if (SplashAd == null) return;
- var secPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", secPrice);
- SplashAd.Call("getBid")?.Call("notifyWin", secPriceDouble, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- if (SplashAd == null) return;
- var firstPriceDouble = new AndroidJavaClass("java.lang.Double").CallStatic ("valueOf", firstPrice);
- SplashAd.Call("getBid")?.Call("notifyLoss", firstPriceDouble, firstBidder, (int)lossReason);
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs.meta
deleted file mode 100644
index 23d0ec2..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/AndroidSplashAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cdf1866c87531416d8159aae83c6e470
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs b/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs
deleted file mode 100644
index 98acbc9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-#if UNITY_ANDROID
-
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- class BigoSdkClient : ISDK
- {
- private const string SDKClientClassName = AndroidPlatformTool.ClassPackage + ".BigoAdSdk";
- private const string InitMethod = "initialize";
- private const string InitSuccessMethod = "isInitialized";
- private const string SDKVersionMethod = "getSDKVersion";
- private const string InitListenerInterfaceName = AndroidPlatformTool.ClassPackage + ".BigoAdSdk$InitListener";
- private const string ConsentOptionsClassName = AndroidPlatformTool.ClassPackage + ".ConsentOptions";
-
-
- public void Init(BigoAdConfig config, BigoAdSdk.InitResultDelegate initResultDelegate)
- {
- InvokeNativeMethod(InitMethod, AndroidPlatformTool.GetGameActivity(),
- AndroidPlatformTool.GetBigoConfig(config),
- new InitCallBack(initResultDelegate));
- }
-
- public bool IsInitSuccess()
- {
- return InvokeNativeMethod(InitSuccessMethod);
- }
-
- public string GetSDKVersion()
- {
- return InvokeNativeMethod("getSDKVersion");
- }
-
- public string GetSDKVersionName()
- {
- return InvokeNativeMethod("getSDKVersionName");
- }
-
- public void SetUserConsent(ConsentOptions option, bool consent)
- {
- var clazz = new AndroidJavaClass(ConsentOptionsClassName);
- AndroidJavaObject obj = null;
- switch (option)
- {
- case ConsentOptions.GDPR:
- obj = clazz.GetStatic("GDPR");
- break;
- case ConsentOptions.CCPA:
- obj = clazz.GetStatic("CCPA");
- break;
- case ConsentOptions.LGPD:
- obj = clazz.GetStatic("LGPD");
- break;
- case ConsentOptions.COPPA:
- obj = clazz.GetStatic("COPPA");
- break;
- default:
- break;
- }
-
- InvokeNativeMethod("setUserConsent", AndroidPlatformTool.GetGameActivity(), obj, consent);
- }
-
- public void AddExtraHost(string country, string host)
- {
- InvokeNativeMethod("addExtraHost", country, host);
- }
-
-
- private static void InvokeNativeMethod(string methodName, params object[] args)
- {
- new AndroidJavaClass(SDKClientClassName).CallStatic(methodName, args);
- }
-
- private static T InvokeNativeMethod(string methodName, params object[] args)
- {
- return new AndroidJavaClass(SDKClientClassName).CallStatic(methodName, args);
- }
-
- private class InitCallBack : AndroidJavaProxy
- {
- private event BigoAdSdk.InitResultDelegate InitListener;
-
- public InitCallBack(BigoAdSdk.InitResultDelegate initResultDelegate) : base(InitListenerInterfaceName)
- {
- this.InitListener = initResultDelegate;
- }
-
- public void onInitialized()
- {
- InitListener?.Invoke();
- }
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs.meta
deleted file mode 100644
index aa9e2ee..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/BigoSdkClient.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: a768d78eefdf84ba4bcbfa8077fe6a62
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs b/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs
deleted file mode 100644
index 6774e3e..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- public class RewardedAdInteractionCallback : AdInteractionCallback
- {
- private event Action OnUserEarnedReward;
-
- private const string ListenerName = AndroidPlatformTool.ClassPackage + ".api.RewardAdInteractionListener";
-
- public RewardedAdInteractionCallback(Action onAdShowed, Action onAdClicked, Action onAdDismissed, Action onAdError,
- Action userEarnedReward) : base(
- onAdShowed, onAdClicked, onAdDismissed, onAdError, ListenerName)
- {
- OnUserEarnedReward = userEarnedReward;
- }
-
- public void onAdRewarded()
- {
- OnUserEarnedReward?.Invoke();
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs.meta
deleted file mode 100644
index 6645f1d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/RewardedAdInteractionCallback.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 679833dea127f43cebbb043ff2a1c2f2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs b/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs
deleted file mode 100644
index 854829d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-#if UNITY_ANDROID
-using System;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.Android
-{
- public class SplashAdInteractionCallback : AdInteractionCallback
- {
- private const string ListenerName = AndroidPlatformTool.ClassPackage + ".api.SplashAdInteractionListener";
-
- public SplashAdInteractionCallback(Action onAdShowed, Action onAdClicked, Action onAdDismissed, Action onAdError) : base(
- onAdShowed, onAdClicked, onAdDismissed, onAdError, ListenerName)
- {
-
- }
-
- public void onAdSkipped()
- {
-
- }
-
- public void onAdFinished()
- {
-
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs.meta b/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs.meta
deleted file mode 100644
index 8e4456f..0000000
--- a/Assets/BigoAds/Scripts/Platforms/Android/SplashAdInteractionCallback.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 02f23872f0193427487d67e2373c8e41
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS.meta b/Assets/BigoAds/Scripts/Platforms/iOS.meta
deleted file mode 100644
index d66d3ec..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: cc250d638e6404797a830f56c2b7e40e
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter.meta
deleted file mode 100644
index 0abfc3e..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: e1921a1c99c3c47ae95c0103939e6ffa
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd.meta
deleted file mode 100644
index 1935887..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 7eed132e5c97a47718143d7e692cafda
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner.meta
deleted file mode 100644
index 3b590a4..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: aaf596d8ee1bd409e831a2c8c6919580
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs
deleted file mode 100644
index 3fb5612..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-#if UNITY_IOS
-using System;
-using System.Threading;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- using System;
- using BigoAds.Scripts.Api;
- using BigoAds.Scripts.Common;
- using BigoAds.Scripts.Platforms.iOS;
- using System.Runtime.InteropServices;
- public class BigoUnityBannerAd: BigoIOSBaseAd, IBannerAd
- {
- private BigoBannerRequest bannerRequest;
- //TODO:线程问题需要考虑下
- public void Load(string slotId, BigoBannerRequest request)
- {
- bannerRequest = request;
- adType = 2;
- this.unityAdPtr = (IntPtr)GCHandle.Alloc (this);
- IntPtr ptr = this.unityAdPtr;
-
- int width = request.Size.Width;
- int height = request.Size.Height;
-
- int x = CalculateMiddleX(width);
- int y = CalculatePositionY(request.Position,height);
-
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"calculate-origin:{x},{y}-size:{width},{height}");
- BigoIOS_loadBannerAdData(ptr,
- slotId,
- request.ToJson(),
- x,
- y,
- width,
- height,
- cs_adDidLoadCallback,
- cs_adLoadFailCallBack,
- cs_adDidShowCallback,
- cs_adDidClickCallback,
- cs_adDidDismissCallback,
- cs_adDidErrorCallBack
- );
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"request.position:{request.Position},slotId:{slotId}");
- }
-
- private int CalculatePositionY(BigoPosition position, int bannerHeight)
- {
- int screenHeight = BigoIOS_getScreenHeight();
- float y = BigoIOS_getScreenSafeTop();
- if (position == BigoPosition.Middle)
- {
- y = (float)((screenHeight - bannerHeight) * 0.5);
- }
- else if (position == BigoPosition.Bottom)
- {
- y = (float)(screenHeight - bannerHeight - BigoIOS_getScreenSafeBottom());
- }
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"position:{position},screenHeight:{screenHeight}-y:{y}");
- return (int)y;
- }
-
- private int CalculateMiddleX(int bannerWidth)
- {
- int screenWidth = BigoIOS_getScreenWidth();
- int x = (int)((screenWidth - bannerWidth) * 0.5);
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"screenWidth:{screenWidth}-x:{x}");
- return x;
- }
-
- public void SetPosition(BigoPosition position)
- {
- int x = CalculateMiddleX(bannerRequest.Size.Width);
- int y = CalculatePositionY(position, bannerRequest.Size.Height);
- BigoIOS_SetBannerAdPosition(unityAdPtr,x,y);
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"position-{position}");
- }
- //MARK: c# - oc
- [DllImport("__Internal")]
- static extern void BigoIOS_loadBannerAdData(IntPtr unityAdPtr,
- string slotId,
- string requestJson,
- int x,
- int y,
- int width,
- int height,
- adDidLoadCallback_delegate successCallback,
- adLoadFailCallBack_delegate failCallback,
- adDidShowCallback_delegate showCallback,
- adDidClickCallback_delegate clickCallback,
- adDidDismissCallback_delegate dismissCallback,
- adDidErrorCallback_delegate adErrorCallback
- );
-
- [DllImport("__Internal")]
- static extern void BigoIOS_SetBannerAdPosition(IntPtr unityAdPtr, int x, int y);
-
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenWidth();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenHeight();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenSafeTop();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenSafeBottom();
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs.meta
deleted file mode 100644
index 2928e7d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1f3106d1522ac4b95a8f73c101387f8a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h
deleted file mode 100644
index 006c016..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load banner Ad
- void BigoIOS_loadBannerAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- int x,
- int y,
- int width,
- int height,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- );
- //show banner ad
- void BigoIOS_showBannerAd(UnityAd unityAd);
- void BigoIOS_SetBannerAdPosition(UnityAd unityAd,int x, int y);
- void BigoIOS_removeBannerView(UnityAd unityAd);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h.meta
deleted file mode 100644
index d82d603..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: a86c122698a834a0e868b3d38d576442
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm
deleted file mode 100644
index a2ff068..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm
+++ /dev/null
@@ -1,133 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-
-extern "C"{
-
-
-int BigoIOS_getScreenWidth () {
- __block int width = 0;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- width = (int)vc.view.frame.size.width;
- });
- return width;
-}
-
-int BigoIOS_getScreenHeight () {
- __block int height = 0;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- height = (int)vc.view.frame.size.height;
- });
- return height;
-}
-
-int BigoIOS_getScreenSafeBottom() {
- __block int bottom = 0;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- bottom = (int)vc.view.safeAreaInsets.bottom;
- });
- return bottom;
-}
-
-int BigoIOS_getScreenSafeTop() {
- __block int top = 0;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- top = (int)vc.view.safeAreaInsets.top;
- });
- return top;
-}
-
-//load Banner ad
-void BigoIOS_loadBannerAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- int x,
- int y,
- int width,
- int height,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- ) {
- BigoIOS_dispatchSyncMainQueue(^{
- BigoAdSize *size = BigoAdSize.BANNER;
- if (width == 300 && height == 250) {
- size = BigoAdSize.MEDIUM_RECTANGLE;
- }
- NSDictionary *requestDict = BigoIOS_requestJsonObjectFromJsonString(requestJson);
- BigoUnityBannerAdHandler *adHandler = [[BigoUnityBannerAdHandler alloc] init];
- BigoBannerAdRequest *request = [[BigoBannerAdRequest alloc] initWithSlotId:BigoIOS_transformNSStringForm(slotId) adSizes:@[size]];
- request.age = [requestDict[@"age"] intValue];
- request.gender = (BigoAdGender)[requestDict[@"gender"] intValue];
- request.activatedTime = [requestDict[@"activatedTime"] longLongValue];
- BigoBannerAdLoader *adLoader = [[BigoBannerAdLoader alloc] initWithBannerAdLoaderDelegate:adHandler];
- adLoader.ext = requestDict[@"extraInfo"];
- adHandler.adLoader = adLoader;
- adHandler.unityAd = unityAd;
- adHandler.showCallback = showCallback;
- adHandler.clickCallback = clickCallback;
- adHandler.dismissCallback = dismissCallback;
- adHandler.adErrorCallback = adErrorCallback;
- adHandler.successCallback = successCallback;
- adHandler.failCallback = failCallback;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager saveAdHandler:adHandler withKey:unityAdKey];
- [adLoader loadAd:request];
- });
-
-}
-
-BigoUnityBannerAdHandler* BigoIOS_getBannerAdHandler(UnityAd unityAd) {
- if (!unityAd) return nil;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBannerAdHandler *handler = (BigoUnityBannerAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- if (!handler || ![handler isMemberOfClass:[BigoUnityBannerAdHandler class]]) {
- return nil;
- }
- return handler;
-}
-
-void BigoIOS_showBannerAd(UnityAd unityAd) {
- BigoUnityBannerAdHandler *handler = BigoIOS_getBannerAdHandler(unityAd);
- if (!handler) return;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- BigoBannerAd *ad = (BigoBannerAd *)handler.ad;
- [vc.view addSubview:ad.adView];
- });
-}
-
-void BigoIOS_SetBannerAdPosition(UnityAd unityAd,int x, int y) {
- BigoUnityBannerAdHandler *handler = BigoIOS_getBannerAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- BigoBannerAd *ad = (BigoBannerAd *)handler.ad;
- CGRect frame = ad.adView.frame;
- frame.origin.x = x;
- frame.origin.y = y;
- ad.adView.frame = frame;
- });
-}
-
-void BigoIOS_removeBannerView(UnityAd unityAd) {
- BigoUnityBannerAdHandler *handler = BigoIOS_getBannerAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- BigoBannerAd *ad = (BigoBannerAd *)handler.ad;
- [ad.adView removeFromSuperview];
- });
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm.meta
deleted file mode 100644
index 7b0acc0..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Banner/BigoUnityBannerAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: fd1772b6ab58f4e74ac7e89d3fd471c3
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs
deleted file mode 100644
index 5ff22cc..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs
+++ /dev/null
@@ -1,265 +0,0 @@
-#if UNITY_IOS
-
-using System.Collections.Generic;
-using AOT;
-using UnityEngine;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- using System;
- using BigoAds.Scripts.Api;
- using BigoAds.Scripts.Common;
- using BigoAds.Scripts.Platforms.iOS;
- using System.Runtime.InteropServices;
- public class BigoIOSBaseAd : IBigoAd
- {
- public event Action OnLoad;
- public event Action OnLoadFailed;
- public event Action OnAdShowed;
- public event Action OnAdClicked;
- public event Action OnAdDismissed;
- public event Action OnAdError;
- public void Load(string slotId, BigoRequest request)
- {
-
- }
-
- protected void LoadAdData(string slotId, BigoRequest request) {
- this.unityAdPtr = (IntPtr)GCHandle.Alloc (this);
- IntPtr ptr = this.unityAdPtr;
-
- BigoIOS_loadAdData(adType,
- ptr,
- slotId,
- request.ToJson(),
- cs_adDidLoadCallback,
- cs_adLoadFailCallBack,
- cs_adDidShowCallback,
- cs_adDidClickCallback,
- cs_adDidDismissCallback,
- cs_adDidErrorCallBack
- );
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"slotId:{slotId},request{request}");
- }
-
- public bool IsLoaded()
- {
- return bigoAdLoaded;
- }
-
- public virtual void Show()
- {
- LOGWithMessage("Show");
- BigoIOS_showAd(adType,this.unityAdPtr);
- }
-
- public virtual bool IsExpired()
- {
- return BigoIOS_IsExpired(unityAdPtr);
- }
-
- public void Destroy()
- {
- BigoIOS_destroyAd(adType,unityAdPtr);
- if (unityAdPtr != IntPtr.Zero)
- {
- GCHandle unityAdhandle = (GCHandle)this.unityAdPtr;
- unityAdhandle.Free();
- }
- unityAdPtr = IntPtr.Zero;
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"unityPtr:{unityAdPtr}");
- }
-
- public bool IsClientBidding()
- {
- return BigoIOS_IsClientBidding(unityAdPtr);
- }
-
- public string GetExtraInfo(String key)
- {
- //todo
- return "";
- }
-
- /// get price
- public double getPrice()
- {
- return BigoIOS_GetPrice(unityAdPtr);
- }
-
- ///notify win
- public void notifyWin(double secPrice, string secBidder)
- {
- BigoIOS_NotifyWin(unityAdPtr, secPrice, secBidder);
- }
-
- ///notify loss
- public void notifyLoss(double firstPrice, string firstBidder, BGAdLossReason lossReason)
- {
- BigoIOS_NotifyLoss(unityAdPtr, firstPrice, firstBidder, (int)lossReason);
- }
-
- protected void LOGWithMessage(string method)
- {
- LOGWithMessage(method,string.Empty);
- }
- protected void LOGWithMessage(string method,string msg)
- {
- //native = 1, banner = 2, interstitial = 3, rewarded = 4, appOpen = 5
- int adtype = adType;
- string adTypeString = "unknown";
- if (adtype == 1)
- {
- adTypeString = "native";
- }
- else if (adtype == 2)
- {
- adTypeString = "banner";
- }
- else if (adtype == 3)
- {
- adTypeString = "interstitial";
- }
- else if (adtype == 4)
- {
- adTypeString = "rewarded";
- }
- else if (adtype == 5)
- {
- adTypeString = "appOpen";
- }
-
- //System.Reflection.MethodBase.GetCurrentMethod()?.Name
- Type classType = this.GetType();
- string className = $"{adTypeString}-{classType.Name}";
- BigoUnityTools.LOGWithMessage(className,method,msg);
- }
-
- protected static BigoIOSBaseAd GetUnityAd(IntPtr unityAdPtr)
- {
- GCHandle handle = (GCHandle) unityAdPtr;
- BigoIOSBaseAd unityAd = handle.Target as BigoIOSBaseAd;
- // handle.Free ();
- return unityAd;
- }
-
- protected int adType = 0;
- private bool bigoAdLoaded = false;
- protected IntPtr unityAdPtr = IntPtr.Zero;
- //MARK: c --> oc
- [DllImport("__Internal")]
- static extern void BigoIOS_loadAdData(int adType,
- IntPtr unityAdPtr,
- string slotId,
- string requestJson,
- adDidLoadCallback_delegate successCallback,
- adLoadFailCallBack_delegate failCallback,
- adDidShowCallback_delegate showCallback,
- adDidClickCallback_delegate clickCallback,
- adDidDismissCallback_delegate dismissCallback,
- adDidErrorCallback_delegate adErrorCallback);
- [DllImport("__Internal")]
- static extern void BigoIOS_showAd(int adType,IntPtr unityAdPtr);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_destroyAd(int adType, IntPtr unityAdPtr);
-
- [DllImport("__Internal")]
- static extern bool BigoIOS_IsExpired(IntPtr unityAdPtr);
-
- [DllImport("__Internal")]
- static extern bool BigoIOS_IsClientBidding(IntPtr unityAdPtr);
-
- [DllImport("__Internal")]
- static extern double BigoIOS_GetPrice(IntPtr unityAdPtr);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_NotifyWin(IntPtr unityAdPtr, double secPrice, string secBidder);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_NotifyLoss(IntPtr unityAdPtr, double firstPrice, string firstBidder, int lossReason);
-
- //callback method
- protected delegate void adDidLoadCallback_delegate(IntPtr unityAdPtr);
- protected delegate void adLoadFailCallBack_delegate(IntPtr unityAdPtr, int code, string msg);
-
- protected delegate void adDidShowCallback_delegate(IntPtr unityAdPtr);
- protected delegate void adDidClickCallback_delegate(IntPtr unityAdPtr);
- protected delegate void adDidDismissCallback_delegate(IntPtr unityAdPtr);
- protected delegate void adDidErrorCallback_delegate(IntPtr unityAdPtr, int code, string msg);
-
- [MonoPInvokeCallback(typeof(adDidLoadCallback_delegate))]
- protected static void cs_adDidLoadCallback(IntPtr unityAdPtr)
- {
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd == null)
- {
- return;
- }
- unityAd.bigoAdLoaded = true;
- unityAd.OnLoad?.Invoke();
- unityAd.LOGWithMessage("cs_adDidLoad");
- }
-
- [MonoPInvokeCallback(typeof(adLoadFailCallBack_delegate))]
- protected static void cs_adLoadFailCallBack(IntPtr unityAdPtr, int code, string msg)
- {
-
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd.OnLoadFailed != null)
- {
- unityAd.OnLoadFailed(code, msg);
- }
- unityAd.LOGWithMessage("cs_adLoadFail",$"code:{code},msg:{msg}");
- }
-
- [MonoPInvokeCallback(typeof(adDidShowCallback_delegate))]
- protected static void cs_adDidShowCallback(IntPtr unityAdPtr)
- {
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd == null)
- {
- return;
- }
- unityAd.OnAdShowed?.Invoke();
- unityAd.LOGWithMessage($"cs_show");
- }
-
- [MonoPInvokeCallback(typeof(adDidClickCallback_delegate))]
- protected static void cs_adDidClickCallback(IntPtr unityAdPtr)
- {
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd == null)
- {
- return;
- }
- unityAd.OnAdClicked?.Invoke();
- unityAd.LOGWithMessage("cs_click");
- }
-
- [MonoPInvokeCallback(typeof(adDidDismissCallback_delegate))]
- protected static void cs_adDidDismissCallback(IntPtr unityAdPtr)
- {
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd == null)
- {
- return;
- }
- unityAd.OnAdDismissed?.Invoke();
- unityAd.LOGWithMessage("cs_dismiss");
- }
-
- [MonoPInvokeCallback(typeof(adDidErrorCallback_delegate))]
- protected static void cs_adDidErrorCallBack(IntPtr unityAdPtr, int code, string msg)
- {
- BigoIOSBaseAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr);
- if (unityAd.OnAdError != null)
- {
- unityAd.OnAdError(code, msg);
- }
- unityAd.LOGWithMessage("cs_aderror",$"code:{code},msg:{msg}");
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs.meta
deleted file mode 100644
index 68b37d0..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9b8d512f4ea0948bb8110a2eee062858
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm
deleted file mode 100644
index 43f18d4..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm
+++ /dev/null
@@ -1,109 +0,0 @@
-#import
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdHandlerManager.h"
-#import "BigoUnityBannerAd.h"
-#import "BigoUnityInterstitialAd.h"
-#import "BigoUnityRewardedAd.h"
-#import "BigoUnitySplashAd.h"
-#import "BigoUnityNativeAd.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityPopupAd.h"
-
-extern "C" {
-enum BigoIOSAdType {
- native = 1, banner = 2, interstitial = 3, rewarded = 4, splash = 5, popup = 6
-};
-void BigoIOS_loadAdData(int adType,
- UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback) {
- if (adType == rewarded || adType == banner) {//custom load
- return;
- }
-
- if (adType == interstitial) {
- BigoIOS_loadInterstitialAdData(unityAd, slotId, requestJson, successCallback, failCallback, showCallback, clickCallback, dismissCallback, adErrorCallback);
- }
- else if (adType == splash) {
- BigoIOS_loadSplashAdData(unityAd, slotId, requestJson, successCallback, failCallback, showCallback, clickCallback, dismissCallback, adErrorCallback);
- }
- else if (adType == native) {
- BigoIOS_loadNativeAdData(unityAd, slotId, requestJson, successCallback, failCallback, showCallback, clickCallback, dismissCallback, adErrorCallback);
- } else if (adType == popup) {
- BigoIOS_loadPopupAdData(unityAd, slotId, requestJson, successCallback, failCallback, showCallback, clickCallback, dismissCallback, adErrorCallback);
- }
-
-}
-void BigoIOS_showAd(int adType, UnityAd unityAd) {
- if (adType == interstitial) {
- BigoIOS_showInterstitialAd(unityAd);
- }
- else if (adType == splash) {
- BigoIOS_showSplashAd(unityAd);
- }
- else if (adType == rewarded) {
- BigoIOS_showRewardedAd(unityAd);
- }
- else if (adType == banner) {
- BigoIOS_showBannerAd(unityAd);
- }
- else if (adType == native) {
- BigoIOS_showNativeAd(unityAd);
- }
-}
-
-void BigoIOS_destroyAd(int adType, UnityAd unityAd) {
- if (adType == banner) {
- BigoIOS_removeBannerView(unityAd);
- }
- else if (adType == native) {
- BigoIOS_removeNativeView(unityAd);
- }
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager removeAdHandlerWithKey:unityAdKey];
-}
-
-BOOL BigoIOS_IsExpired(UnityAd unityAd) {
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBaseAdHandler *handler = (BigoUnityBaseAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- BigoAd *ad = (BigoAd *)(handler.ad);
- return ad.isExpired;
-}
-
-BOOL BigoIOS_IsClientBidding(UnityAd unityAd) {
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBaseAdHandler *handler = (BigoUnityBaseAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- BigoAd *ad = (BigoAd *)(handler.ad);
- return ad.getBid != nil;
-}
-
-CGFloat BigoIOS_GetPrice(UnityAd unityAd) {
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBaseAdHandler *handler = (BigoUnityBaseAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- BigoAd *ad = (BigoAd *)(handler.ad);
- return ad.getBid.getPrice;
-}
-
-void BigoIOS_NotifyWin(UnityAd unityAd, CGFloat secPrice, const char* secBidder) {
- NSString *secBidderString = BigoIOS_transformNSStringForm(secBidder);
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBaseAdHandler *handler = (BigoUnityBaseAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- BigoAd *ad = (BigoAd *)(handler.ad);
- [ad.getBid notifyWinWithSecPrice:secPrice secBidder:secBidderString];
-}
-
-void BigoIOS_NotifyLoss(UnityAd unityAd, CGFloat firstPrice , const char* firstBidder, int lossReason) {
- NSString *firstBidderString = BigoIOS_transformNSStringForm(firstBidder);
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityBaseAdHandler *handler = (BigoUnityBaseAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- BigoAd *ad = (BigoAd *)(handler.ad);
- [ad.getBid notifyLossWithFirstPrice:firstPrice firstBidder:firstBidderString lossReason:(BGAdLossReasonType)lossReason];
-}
-
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm.meta
deleted file mode 100644
index 00a8018..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoIOSBaseAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 75401cc01b4054f97931486033a4c690
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h
deleted file mode 100644
index acf3ece..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h
+++ /dev/null
@@ -1,22 +0,0 @@
-
-#import
-#import "BigoUnityBaseAdHandler.h"
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface BigoUnityAdHandlerManager : NSObject
-
-+ (void)saveAdHandler:(BigoUnityBaseAdHandler *)adhandler withKey:(NSString *)key;
-
-+ (void)removeAdHandlerWithKey:(NSString *)key;
-
-+ (NSString *)createKeyUnityAd:(UnityAd)unityAd;
-
-+ (nullable BigoUnityBaseAdHandler *)handlerWithKey:(NSString *)key;
-
-+ (void)printList;
-
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h.meta
deleted file mode 100644
index 4aa61d9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: f39924fa7a4d144ee93ad3242f4c5e9f
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m
deleted file mode 100644
index 2abc066..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m
+++ /dev/null
@@ -1,70 +0,0 @@
-#import "BigoUnityAdHandlerManager.h"
-
-@interface BigoUnityAdHandlerManager()
-
-@property (nonatomic, strong) dispatch_semaphore_t semaphore;
-@property (nonatomic, strong) NSMutableDictionary *dictionary;
-
-@end
-
-@implementation BigoUnityAdHandlerManager
-
-+ (instancetype)sharedInstance {
- static BigoUnityAdHandlerManager *manager = nil;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- manager = [[BigoUnityAdHandlerManager alloc] init];
- });
- return manager;
-}
-
-- (instancetype)init
-{
- self = [super init];
- if (self) {
- self.dictionary = [NSMutableDictionary new];
- self.semaphore = dispatch_semaphore_create(1);
- }
- return self;
-}
-
-+ (void)saveAdHandler:(BigoUnityBaseAdHandler *)adhandler withKey:(NSString *)key {
- if (!adhandler || key.length == 0) {
- return;
- }
- BigoUnityAdHandlerManager *manager = [BigoUnityAdHandlerManager sharedInstance];
- dispatch_semaphore_wait(manager.semaphore, DISPATCH_TIME_FOREVER);
- [manager.dictionary setObject:adhandler forKey:key];
- dispatch_semaphore_signal(manager.semaphore);
-}
-
-+ (void)removeAdHandlerWithKey:(NSString *)key {
- if (key.length == 0) {
- return;
- }
- BigoUnityAdHandlerManager *manager = [BigoUnityAdHandlerManager sharedInstance];
- dispatch_semaphore_wait(manager.semaphore, DISPATCH_TIME_FOREVER);
- [manager.dictionary removeObjectForKey:key];
- dispatch_semaphore_signal(manager.semaphore);
-}
-
-+ (NSString *)createKeyUnityAd:(UnityAd)unityAd {
- return [NSString stringWithFormat:@"%p",unityAd];
-}
-
-+ (nullable BigoUnityBaseAdHandler *)handlerWithKey:(NSString *)key {
- if (key.length == 0) {
- return nil;
- }
- BigoUnityAdHandlerManager *manager = [BigoUnityAdHandlerManager sharedInstance];
- dispatch_semaphore_wait(manager.semaphore, DISPATCH_TIME_FOREVER);
- BigoUnityBaseAdHandler *handler = [manager.dictionary objectForKey:key];
- dispatch_semaphore_signal(manager.semaphore);
- return handler;
-}
-
-+ (void)printList {
- NSLog(@"bigo-ios-list:%@",[BigoUnityAdHandlerManager sharedInstance].dictionary);
-}
-
-@end
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m.meta
deleted file mode 100644
index dcae4b1..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityAdHandlerManager.m.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 053a4c32bd9344bcd9a22f2e0c87f777
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h
deleted file mode 100644
index f703364..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h
+++ /dev/null
@@ -1,62 +0,0 @@
-
-#import
-#import
-#import
-
-typedef void* UnityAd;//unity ad
-typedef void* BigoAdSdkAd;//bigo ad
-//int
-
-//callback of ad load
-typedef void(*AdDidLoadCallback)(UnityAd unityAd);
-typedef void (*AdLoadFailCallBack)(UnityAd unityAd, int code, const char *msg);
-
-//callback of ad event
-typedef void(*AdDidShowCallback)(UnityAd unityAd);
-typedef void(*AdDidClickCallback)(UnityAd unityAd);
-typedef void(*AdDidDismissCallback)(UnityAd unityAd);
-typedef void (*AdDidErrorCallback)(UnityAd unityAd, int code, const char *msg);
-
-typedef void (*AdDidEarnRewardCallback)(UnityAd unityA);
-
-@interface BigoUnityBaseAdHandler : NSObject
-
-@property (nonatomic, assign) UnityAd unityAd;
-@property (nonatomic, strong) BigoAd *ad;
-
-@property (nonatomic, assign) AdDidShowCallback showCallback;
-@property (nonatomic, assign) AdDidClickCallback clickCallback;
-@property (nonatomic, assign) AdDidDismissCallback dismissCallback;
-@property (nonatomic, assign) AdDidErrorCallback adErrorCallback;
-
-//强持有AdLoader
-@property (nonatomic, strong) BigoAdLoader *adLoader;
-@property (nonatomic, assign) AdDidLoadCallback successCallback;
-@property (nonatomic, assign) AdLoadFailCallBack failCallback;
-
-@end
-
-@interface BigoUnityBannerAdHandler : BigoUnityBaseAdHandler
-
-@end
-
-
-@interface BigoUnityInterstitialAdHandler : BigoUnityBaseAdHandler
-
-@end
-
-@interface BigoUnityRewardedAdHandler : BigoUnityBaseAdHandler
-
-@property (nonatomic, assign) AdDidEarnRewardCallback earnCallback;
-
-@end
-
-@interface BigoUnitySplashAdHandler : BigoUnityBaseAdHandler
-
-@end
-
-@interface BigoUnityNativeAdHandler : BigoUnityBaseAdHandler
-
-@property (nonatomic, strong) UIView *nativeView;
-
-@end
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h.meta
deleted file mode 100644
index 7c85306..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 0f898c08506444b2cae9b6fb32656a61
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm
deleted file mode 100644
index d6c46ad..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm
+++ /dev/null
@@ -1,170 +0,0 @@
-
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdHandlerManager.h"
-
-@implementation BigoUnityBaseAdHandler
-
-//广告异常
-- (void)onAd:(BigoAd *)ad error:(BigoAdError *)error {
-
-}
-
-//广告展示
-- (void)onAdImpression:(BigoAd *)ad {
- if (self.showCallback) {
- self.showCallback(self.unityAd);
- }
-}
-
-//广告点击
-- (void)onAdClicked:(BigoAd *)ad {
- if (self.clickCallback) {
- self.clickCallback(self.unityAd);
- }
-}
-
-//广告打开
-- (void)onAdOpened:(BigoAd *)ad {
-
-}
-
-//广告关闭
-- (void)onAdClosed:(BigoAd *)ad {
- if (self.dismissCallback) {
- self.dismissCallback(self.unityAd);
- }
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:self.unityAd];
- [BigoUnityAdHandlerManager removeAdHandlerWithKey:unityAdKey];
-}
-
-- (void)dealloc {
- NSLog(@"BigoAd-iOS-[BigoUnityBaseAdHandler]-[dealloc]");
-}
-
-@end
-
-@implementation BigoUnityBannerAdHandler
-
-
-#pragma mark - BigoBannerAdLoaderDelegate
-- (void)onBannerAdLoaded:(BigoBannerAd *)ad {
- [ad setAdInteractionDelegate:self];
- self.ad = ad;
- if (self.successCallback) {
- self.successCallback(self.unityAd);
- }
-}
-
-
-- (void)onBannerAdLoadError:(BigoAdError *)error {
- if (self.failCallback) {
- self.failCallback(self.unityAd, error.errorCode, error.errorMsg.UTF8String);
- }
-}
-
-@end
-
-@implementation BigoUnityInterstitialAdHandler
-
-#pragma mark - BigoInterstitialAdLoaderDelegate
-- (void)onInterstitialAdLoaded:(BigoInterstitialAd *)ad {
- [ad setAdInteractionDelegate:self];
- self.ad = ad;
- if (self.successCallback) {
- self.successCallback(self.unityAd);
- }
-}
-
-- (void)onInterstitialAdLoadError:(BigoAdError *)error {
- if (self.failCallback) {
- self.failCallback(self.unityAd, error.errorCode, error.errorMsg.UTF8String);
- }
-}
-
-@end
-
-@implementation BigoUnityRewardedAdHandler
-
-#pragma mark - BigoRewardVideoAdLoaderDelegate
-- (void)onRewardVideoAdLoaded:(BigoRewardVideoAd *)ad {
- [ad setRewardVideoAdInteractionDelegate:self];
- self.ad = ad;
- if (self.successCallback) {
- self.successCallback(self.unityAd);
- }
-}
-
-
-- (void)onRewardVideoAdLoadError:(BigoAdError *)error {
- if (self.failCallback) {
- self.failCallback(self.unityAd, error.errorCode, error.errorMsg.UTF8String);
- }
-}
-
-#pragma mark - BigoRewardVideoAdInteractionDelegate
-//激励视频激励回调
-- (void)onAdRewarded:(BigoRewardVideoAd *)ad {
- if (self.earnCallback) {
- self.earnCallback(self.unityAd);
- }
-}
-@end
-
-@implementation BigoUnitySplashAdHandler
-
-#pragma mark - BigoSplashAdLoaderDelegate
-- (void)onSplashAdLoaded:(BigoSplashAd *)ad {
- [ad setSplashAdInteractionDelegate:self];
- self.ad = ad;
- if (self.successCallback) {
- self.successCallback(self.unityAd);
- }
-}
-
-
-- (void)onSplashAdLoadError:(BigoAdError *)error {
- if (self.failCallback) {
- self.failCallback(self.unityAd, error.errorCode, error.errorMsg.UTF8String);
- }
-}
-
-#pragma mark - BigoSplashAdInteractionDelegate
-
-/**
- * 广告可跳过回调,通常是由用户点击了右上角 SKIP 按钮所触发
- */
-- (void)onAdSkipped:(BigoAd *)ad {
- if (self.dismissCallback) {
- self.dismissCallback(self.unityAd);
- }
-}
-
-/**
- * 广告倒计时结束回调
- */
-- (void)onAdFinished:(BigoAd *)ad {
- if (self.dismissCallback) {
- self.dismissCallback(self.unityAd);
- }
-}
-
-@end
-
-@implementation BigoUnityNativeAdHandler
-
-#pragma mark - BigoNativeAdLoaderDelegate
-- (void)onNativeAdLoaded:(BigoNativeAd *)ad {
- [ad setAdInteractionDelegate:self];
- self.ad = ad;
- if (self.successCallback) {
- self.successCallback(self.unityAd);
- }
-}
-
-- (void)onNativeAdLoadError:(BigoAdError *)error {
- if (self.failCallback) {
- self.failCallback(self.unityAd, error.errorCode, error.errorMsg.UTF8String);
- }
-}
-
- @end
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm.meta
deleted file mode 100644
index 94c261f..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityBaseAdHandler.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 956299e395371425abfa788d6f80bad9
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs
deleted file mode 100644
index 2dcae70..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-#if UNITY_IOS
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Runtime.InteropServices;
-using System.Text;
-using BigoAds.Scripts.Api;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- class BigoUnityConfig
- {
- private IntPtr _config;
- internal void Init(BigoAdConfig config)
- {
- _config = BigoIOS_config(config.AppId);
- BigoIOS_configSetInfo(_config, config.DebugLog, config.Age, config.Gender, config.ActivatedTime);
- // set extra
- foreach (KeyValuePair item in config.ExtraDictionary)
- {
- BigoIOS_configSetExtra(_config, item.Key, item.Value);
- }
-
- }
-
- public IntPtr getInternalConfig()
- {
- return _config;
- }
-
- //c# - > oc
- [DllImport("__Internal")]
- private static extern IntPtr BigoIOS_config(string appID);
-
- [DllImport(dllName: "__Internal")]
- private static extern void BigoIOS_configSetInfo(IntPtr configPt, bool debugLog, int age, int gender, long activatedTime);
-
- [DllImport(dllName: "__Internal")]
- private static extern void BigoIOS_configSetExtra(IntPtr configPt, string key, string extra);
-
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs.meta
deleted file mode 100644
index 7bcbb35..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: dd95f8f9cd401477c8b11db40da15a59
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm
deleted file mode 100644
index a48bef4..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm
+++ /dev/null
@@ -1,30 +0,0 @@
-#import
-#import
-#import "BigoUnityAdapterTools.h"
-
-extern "C" {
-
-BigoAdConfig* BigoIOS_config(const char* appID) {
- NSString *appId = BigoIOS_transformNSStringForm(appID);
- return [[BigoAdConfig alloc] initWithAppId:appId];
-}
-BigoAdConfig* BigoIOS_GetConfig(void* __nullable config) {
- BigoAdConfig *bigoConfig = config ? (__bridge BigoAdConfig*)config : nil;
- return bigoConfig;
-}
-
-void BigoIOS_configSetExtra(void* __nullable config, const char* key, const char* extra) {
- BigoAdConfig *bigoConfig = BigoIOS_GetConfig(config);
- NSString *keyString = BigoIOS_transformNSStringForm(key);
- NSString *extraString = BigoIOS_transformNSStringForm(extra);
- [bigoConfig addExtraWithKey:keyString extra:extraString];
-}
-
-void BigoIOS_configSetInfo(void* config, bool debugLog, int age, int gender, long activatedTime) {
- BigoIOS_GetConfig(config).testMode = debugLog;
- BigoIOS_GetConfig(config).age = age;
- BigoIOS_GetConfig(config).gender = (BigoAdGender)gender;
- BigoIOS_GetConfig(config).activatedTime = activatedTime;
-}
-
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm.meta
deleted file mode 100644
index f9b5fbb..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityConfig.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: d89226cd1e10648008bd21184cd89fe0
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs
deleted file mode 100644
index 0db3486..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-#if UNITY_IOS
-using AOT;
-using UnityEngine;
-using BigoAds.Scripts.Api.Constant;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- using System;
- using BigoAds.Scripts.Api;
- using BigoAds.Scripts.Common;
- using BigoAds.Scripts.Platforms.iOS;
- using System.Runtime.InteropServices;
-
- class BigoUnitySdk : ISDK
- {
- private BigoAdSdk.InitResultDelegate resultDelegate;
-
- public void Init(BigoAdConfig config, BigoAdSdk.InitResultDelegate initResultDelegate)
- {
- BigoUnityConfig unityConfig = new BigoUnityConfig();
- unityConfig.Init(config);
- resultDelegate = initResultDelegate;
- IntPtr ptr = (IntPtr)GCHandle.Alloc(this);
- BigoIOS_initSDK(ptr, unityConfig.getInternalConfig(), cs_successCallback);
- }
-
- public bool IsInitSuccess()
- {
- return BigoIOS_sdkInitializationState();
- }
-
- public string GetSDKVersion()
- {
- return BigoIOS_sdkVersion();
- }
-
- public string GetSDKVersionName()
- {
- return BigoIOS_sdkVersionName();
- }
-
- public void SetUserConsent(ConsentOptions option, bool consent)
- {
- if (option == ConsentOptions.GDPR) {
- BigoIOS_setConsentGDPR(consent);
- } else if (option == ConsentOptions.CCPA) {
- BigoIOS_setConsentCCPA(consent);
- } else if (option == ConsentOptions.LGPD) {
- BigoIOS_setConsentLGPD(consent);
- } else if (option == ConsentOptions.COPPA) {
- BigoIOS_setConsentCOPPA(consent);
- }
- }
-
- public void AddExtraHost(string country, string host)
- {
- BigoIOS_addExtraHost(country, host);
- }
-
- [DllImport("__Internal")]
- static extern void BigoIOS_initSDK(IntPtr unitySDK, IntPtr config, SuccessCallbackDelegate successCallback);
-
- [DllImport("__Internal")]
- static extern bool BigoIOS_sdkInitializationState();
-
- [DllImport("__Internal")]
- static extern string BigoIOS_sdkVersion();
-
- [DllImport("__Internal")]
- static extern string BigoIOS_sdkVersionName();
-
- [DllImport("__Internal")]
- static extern void BigoIOS_setConsentGDPR(bool consent);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_setConsentCCPA(bool consent);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_setConsentLGPD(bool consent);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_setConsentCOPPA(bool consent);
-
- [DllImport("__Internal")]
- static extern void BigoIOS_addExtraHost(string country, string host);
-
- private delegate void SuccessCallbackDelegate(IntPtr unitySDK);
-
- [MonoPInvokeCallback(typeof(SuccessCallbackDelegate))]
- private static void cs_successCallback(IntPtr unitySDK)
- {
- BigoUnitySdk sdk = GetUnitySdk(unitySDK);
- sdk.resultDelegate();
- }
-
- private static BigoUnitySdk GetUnitySdk(IntPtr unitySdkPtr)
- {
- GCHandle handle = (GCHandle) unitySdkPtr;
- BigoUnitySdk unitysdk = handle.Target as BigoUnitySdk;
- return unitysdk;
- }
- }
-}
-
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs.meta
deleted file mode 100644
index b71493a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0119df06271854e9497b8cab7cc3ef1b
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm
deleted file mode 100644
index e416a88..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm
+++ /dev/null
@@ -1,58 +0,0 @@
-
-#import
-#import "BigoUnityAdapterTools.h"
-
-char* MakeStringCopy(const char* string) {
- if (string == NULL) return NULL;
- char* res = (char*)malloc(strlen(string) + 1);
- strcpy(res, string);
- return res;
-}
-
-extern "C" {
-
- typedef void (*BigoSDKInitSuccessCallBack)(void* unitySDK);
-
- void BigoIOS_initSDK(void* unitySDK, void* config, BigoSDKInitSuccessCallBack successCallback) {
- BigoAdConfig *adConfig = config ? (__bridge BigoAdConfig*)config : nil;
- [[BigoAdSdk sharedInstance] initializeSdkWithAdConfig:adConfig completion:^{
- successCallback(unitySDK);
- }];
- }
-
- BOOL BigoIOS_sdkInitializationState() {
- return [[BigoAdSdk sharedInstance] isInitialized];
- }
-
- const char* BigoIOS_sdkVersion() {
- NSString *version = [[BigoAdSdk sharedInstance] getSDKVersion];
- return MakeStringCopy([version UTF8String]);
- }
-
- const char* BigoIOS_sdkVersionName() {
- NSString *versionName = [[BigoAdSdk sharedInstance] getSDKVersionName];
- return MakeStringCopy([versionName UTF8String]);
- }
-
- void BigoIOS_setConsentGDPR(bool consent) {
- [BigoAdSdk setUserConsentWithOption:BigoConsentOptionsGDPR consent:consent];
- }
-
- void BigoIOS_setConsentCCPA(bool consent) {
- [BigoAdSdk setUserConsentWithOption:BigoConsentOptionsCCPA consent:consent];
- }
-
- void BigoIOS_setConsentCOPPA(bool consent) {
- [BigoAdSdk setUserConsentWithOption:BigoConsentOptionsCOPPA consent:consent];
- }
-
- void BigoIOS_setConsentLGPD(bool consent) {
- [BigoAdSdk setUserConsentWithOption:BigoConsentOptionsLGPD consent:consent];
- }
-
- void BigoIOS_addExtraHost(const char* country, const char* host) {
- NSString *countryString = BigoIOS_transformNSStringForm(country);
- NSString *hostString = BigoIOS_transformNSStringForm(host);
- [BigoAdSdk addExtraHostWithCountry:countryString host:hostString];
- }
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm.meta
deleted file mode 100644
index 69f7ba3..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnitySdk.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 2a926ae7c93f34a81ad8c0dca79dbe9f
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs
deleted file mode 100644
index 584ffe2..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-#if UNITY_IOS
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- public class BigoUnityTools
- {
- private static int mainThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- internal static bool isMainThread()
- {
- return System.Threading.Thread.CurrentThread.ManagedThreadId == mainThreadID;
- }
-
- internal static void LOGWithMessage(string className,string methodName,string msg)
- {
- Debug.Log($"BigoAds-iOS-[{className}]-[{methodName}]-{msg}");
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs.meta
deleted file mode 100644
index 71bc64c..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/BigoUnityTools.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: a2171856213534228be217d8b18397ee
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial.meta
deleted file mode 100644
index 80d9b73..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 3d154fcfff71f4a50bbcb02fe73c8a63
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs
deleted file mode 100644
index eb1f860..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-#if UNITY_IOS
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
-
- class BigoUnityinterstitialAd : BigoIOSBaseAd, IInterstitialAd
- {
- public void Load(string slotId, BigoInterstitialRequest request)
- {
- adType = 3;
- LoadAdData(slotId,request);
- }
- }
-}
-#endif
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs.meta
deleted file mode 100644
index 8887e68..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 439e9f1b2a72c4d52bbba125c8625121
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h
deleted file mode 100644
index a6152f3..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load appOpen Ad
- void BigoIOS_loadInterstitialAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback);
- //show open ad
- void BigoIOS_showInterstitialAd(UnityAd unityAd);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h.meta
deleted file mode 100644
index 220ea50..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 09b930587afa743ca93ec5ae2d427b8a
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm
deleted file mode 100644
index 9ae2677..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm
+++ /dev/null
@@ -1,67 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-
-extern "C"{
-
-//load interstitial ad
-void BigoIOS_loadInterstitialAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- ) {
- BigoIOS_dispatchSyncMainQueue(^{
-
- BigoUnityInterstitialAdHandler *adHandler = [[BigoUnityInterstitialAdHandler alloc] init];
- BigoInterstitialAdRequest *request = [[BigoInterstitialAdRequest alloc] initWithSlotId:BigoIOS_transformNSStringForm(slotId)];
- NSDictionary *requestDict = BigoIOS_requestJsonObjectFromJsonString(requestJson);
- request.age = [requestDict[@"age"] intValue];
- request.gender = (BigoAdGender)[requestDict[@"gender"] intValue];
- request.activatedTime = [requestDict[@"activatedTime"] longLongValue];
- BigoInterstitialAdLoader *adLoader = [[BigoInterstitialAdLoader alloc] initWithInterstitialAdLoaderDelegate:adHandler];
- adLoader.ext = requestDict[@"extraInfo"];
- adHandler.adLoader = adLoader;
- adHandler.unityAd = unityAd;
- adHandler.showCallback = showCallback;
- adHandler.clickCallback = clickCallback;
- adHandler.dismissCallback = dismissCallback;
- adHandler.adErrorCallback = adErrorCallback;
- adHandler.successCallback = successCallback;
- adHandler.failCallback = failCallback;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager saveAdHandler:adHandler withKey:unityAdKey];
- [adLoader loadAd:request];
- });
-
-}
-
-BigoUnityInterstitialAdHandler* BigoIOS_getInterstitialAdHandler(UnityAd unityAd) {
- if (!unityAd) return nil;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityInterstitialAdHandler *handler = (BigoUnityInterstitialAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- if (!handler || ![handler isMemberOfClass:[BigoUnityInterstitialAdHandler class]]) {
- return nil;
- }
- return handler;
-}
-
-void BigoIOS_showInterstitialAd(UnityAd unityAd) {
- BigoUnityInterstitialAdHandler *handler = BigoIOS_getInterstitialAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- BigoInterstitialAd *ad = (BigoInterstitialAd *)handler.ad;
- [ad show:vc];
- });
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm.meta
deleted file mode 100644
index 793758a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Interstitial/BigoUnityInterstitialAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 0ed50328a865a41e6a0c4c862dfc3a20
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native.meta
deleted file mode 100644
index 0c6a97d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 91d71cd2823ff4f758ffc2f9340dd36a
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs
deleted file mode 100644
index d4ee571..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-#if UNITY_IOS
-using System;
-using System.Threading;
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Api.Constant;
-using BigoAds.Scripts.Common;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- using System;
- using BigoAds.Scripts.Api;
- using BigoAds.Scripts.Common;
- using BigoAds.Scripts.Platforms.iOS;
- using System.Runtime.InteropServices;
- public class BigoUnityNativeAd : BigoIOSBaseAd, INativeAd
- {
- public void Load(string slotId, BigoNativeRequest request)
- {
- adType = 1;
- LoadAdData(slotId,request);
- }
-
- private int CalculatePositionY(BigoPosition position, int nativeHeight)
- {
- int screenHeight = BigoIOS_getScreenHeight();
- float y = BigoIOS_getScreenSafeTop();
- if (position == BigoPosition.Middle)
- {
- y = (float)((screenHeight - nativeHeight) * 0.5);
- }
- else if (position == BigoPosition.Bottom)
- {
- y = (float)(screenHeight - nativeHeight - BigoIOS_getScreenSafeBottom());
- }
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"position:{position},screenHeight:{screenHeight}-y:{y}");
- return (int)y;
- }
-
- private int CalculateMiddleX(int nativeWidth)
- {
- int screenWidth = BigoIOS_getScreenWidth();
- int x = (int)((screenWidth - nativeWidth) * 0.5);
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"screenWidth:{screenWidth}-x:{x}");
- return x;
- }
-
- public void SetPosition(BigoPosition position)
- {
- int x = 0;
- int y = CalculatePositionY(position, 300); //dafault 300
- BigoIOS_SetNativeAdPosition(unityAdPtr,x,y);
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"position-{position}");
- }
- //MARK: c# - oc
- [DllImport("__Internal")]
- static extern void BigoIOS_loadNativeAdData(IntPtr unityAdPtr,
- string slotId,
- string requestJson,
- int x,
- int y,
- int width,
- int height,
- adDidLoadCallback_delegate successCallback,
- adLoadFailCallBack_delegate failCallback,
- adDidShowCallback_delegate showCallback,
- adDidClickCallback_delegate clickCallback,
- adDidDismissCallback_delegate dismissCallback
- );
-
- [DllImport("__Internal")]
- static extern void BigoIOS_SetNativeAdPosition(IntPtr unityAdPtr, int x, int y);
-
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenWidth();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenHeight();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenSafeTop();
- [DllImport("__Internal")]
- static extern int BigoIOS_getScreenSafeBottom();
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs.meta
deleted file mode 100644
index 772f5dd..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2826ac57d309146a69194c7d0ba5764b
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h
deleted file mode 100644
index 1b150d9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load Native ad
- void BigoIOS_loadNativeAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- );
-
- void BigoIOS_SetNativeAdPosition(UnityAd unityAd,int x, int y);
- void BigoIOS_showNativeAd(UnityAd unityAd);
- void BigoIOS_removeNativeView(UnityAd unityAd);
-
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h.meta
deleted file mode 100644
index fba7f26..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 7e57a1c9615984eaa8fcabfd30911db3
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm
deleted file mode 100644
index 3b58da9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm
+++ /dev/null
@@ -1,102 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-#import "BigoUnityNativeCustomView.h"
-
-extern "C"{
-
-//load interstitial ad
-void BigoIOS_loadNativeAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- ) {
- BigoIOS_dispatchSyncMainQueue(^{
-
- UIViewController *vc = GetAppController().rootViewController;
- BigoUnityNativeCustomView *nativeView = [[BigoUnityNativeCustomView alloc] initWithFrame:CGRectMake(0, 0, vc.view.frame.size.width, 300)];
- NSDictionary *requestDict = BigoIOS_requestJsonObjectFromJsonString(requestJson);
- BigoUnityNativeAdHandler *adHandler = [[BigoUnityNativeAdHandler alloc] init];
- BigoNativeAdRequest *request = [[BigoNativeAdRequest alloc] initWithSlotId:BigoIOS_transformNSStringForm(slotId)];
- request.age = [requestDict[@"age"] intValue];
- request.gender = (BigoAdGender)[requestDict[@"gender"] intValue];
- request.activatedTime = [requestDict[@"activatedTime"] longLongValue];
- BigoNativeAdLoader *adLoader = [[BigoNativeAdLoader alloc] initWithNativeAdLoaderDelegate:adHandler];
- adLoader.ext = requestDict[@"extraInfo"];
- adHandler.nativeView = nativeView;
- adHandler.adLoader = adLoader;
- adHandler.unityAd = unityAd;
- adHandler.showCallback = showCallback;
- adHandler.clickCallback = clickCallback;
- adHandler.dismissCallback = dismissCallback;
- adHandler.adErrorCallback = adErrorCallback;
- adHandler.successCallback = successCallback;
- adHandler.failCallback = failCallback;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager saveAdHandler:adHandler withKey:unityAdKey];
- [adLoader loadAd:request];
- });
-
-}
-
-BigoUnityNativeAdHandler* BigoIOS_getNativeAdHandler(UnityAd unityAd) {
- if (!unityAd) return nil;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityNativeAdHandler *handler = (BigoUnityNativeAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- if (!handler || ![handler isMemberOfClass:[BigoUnityNativeAdHandler class]]) {
- return nil;
- }
- return handler;
-}
-
-void BigoIOS_showNativeAd(UnityAd unityAd) {
- BigoUnityNativeAdHandler *handler = BigoIOS_getNativeAdHandler(unityAd);
- if (!handler) return;
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- BigoNativeAd *ad = (BigoNativeAd *)handler.ad;
- //render
- BigoUnityNativeCustomView *nativeView = (BigoUnityNativeCustomView *)handler.nativeView;
- [ad registerViewForInteraction:nativeView mediaView:nativeView.mediaView adIconView:nativeView.adIconView adOptionsView:nativeView.adOptionsView clickableViews:nativeView.clickAbleViews];
- [nativeView refreshNativeView:ad];
-
- CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
- CGRect frame = nativeView.frame;
- frame.origin.y = screenHeight - frame.size.height;
- nativeView.frame = frame;
-
- [vc.view addSubview:handler.nativeView];
-
- });
-}
-
-void BigoIOS_SetNativeAdPosition(UnityAd unityAd,int x, int y) {
- BigoUnityNativeAdHandler *handler = BigoIOS_getNativeAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- CGRect frame = handler.nativeView.frame;
- frame.origin.x = x;
- frame.origin.y = y;
- handler.nativeView.frame = frame;
- });
-}
-
-void BigoIOS_removeNativeView(UnityAd unityAd) {
- BigoUnityNativeAdHandler *handler = BigoIOS_getNativeAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- [handler.nativeView removeFromSuperview];
- });
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm.meta
deleted file mode 100644
index 1609c82..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 6e061b29b36eb4be7a56af7098092fb3
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h
deleted file mode 100644
index ffbdb68..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#import
-#import
-
-@interface BigoUnityNativeCustomView : UIView
-
-@property (nonatomic, strong) BigoAdMediaView *mediaView;
-@property (nonatomic, strong) UIImageView *adIconView;
-@property (nonatomic, strong) BigoAdOptionsView *adOptionsView;
-@property (nonatomic, strong) UILabel *titleLabel;
-@property (nonatomic, strong) UILabel *detailLabel;
-@property (nonatomic, strong) UIButton *cta;
-
-- (NSArray *)clickAbleViews;
-
-- (void)refreshNativeView:(BigoNativeAd *)nativeAd;
-
-@end
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h.meta
deleted file mode 100644
index 10dea82..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 1d74138abaf434fd38dce6301cac1107
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m
deleted file mode 100644
index 87accfe..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m
+++ /dev/null
@@ -1,72 +0,0 @@
-
-#import "BigoUnityNativeCustomView.h"
-
-@implementation BigoUnityNativeCustomView
-
-- (instancetype)initWithFrame:(CGRect)frame {
-
- if (self = [super initWithFrame:frame]) {
-
- self.backgroundColor = UIColor.whiteColor;
-
- self.mediaView = [BigoAdMediaView new];
- self.mediaView.bigoNativeAdViewTag = BigoNativeAdViewTagMedia;
- self.mediaView.frame = CGRectMake(0, 50, CGRectGetWidth(self.bounds) , CGRectGetHeight(self.bounds) - 100);
-
- self.adIconView = [UIImageView new];
- self.adIconView.bigoNativeAdViewTag = BigoNativeAdViewTagIcon;
- self.adIconView.frame = CGRectMake(0, 0, 50, 50);
-
- self.cta = [UIButton new];
- self.cta.bigoNativeAdViewTag = BigoNativeAdViewTagCallToAction;
- self.cta.titleLabel.textColor = [UIColor colorWithRed:0 green:0 blue:255 alpha:255];
- self.cta.bigoNativeAdViewTag = BigoNativeAdViewTagCallToAction;
- [self.cta setBackgroundColor:[UIColor grayColor]];
-
- self.adOptionsView = [BigoAdOptionsView new];
- self.adOptionsView.bigoNativeAdViewTag = BigoNativeAdViewTagOption;
- self.adOptionsView.frame = CGRectMake(CGRectGetWidth(self.bounds) - 20, 0, 20, 20);
-
- [self addSubview:self.mediaView];
- [self addSubview:self.adOptionsView];
- [self addSubview:self.adIconView];
- [self addSubview:self.cta];
-
- self.titleLabel = UILabel.new;
- self.titleLabel.textColor = UIColor.blackColor;
- self.titleLabel.bigoNativeAdViewTag = BigoNativeAdViewTagTitle;
- self.titleLabel.font = [UIFont systemFontOfSize:18];
- [self addSubview:self.titleLabel];
-
- self.detailLabel = UILabel.new;
- self.detailLabel.textColor = UIColor.lightGrayColor;
- self.detailLabel.bigoNativeAdViewTag = BigoNativeAdViewTagDescription;
- self.detailLabel.font = [UIFont systemFontOfSize:18];
- [self addSubview:self.detailLabel];
-
- self.titleLabel.frame = CGRectMake(65, 5, CGRectGetWidth(self.bounds)-95, 20);
- self.detailLabel.frame = CGRectMake(65, 30, CGRectGetWidth(self.bounds)-95, 20);
-
- self.cta.frame = CGRectMake(CGRectGetWidth(self.bounds)-100, 250, 100, 50);
-
-
- }
- return self;
-}
-
-- (NSArray *)clickAbleViews {
- return @[self.adIconView, self.titleLabel, self.detailLabel, self.cta];
-}
-
-- (void)refreshNativeView:(BigoNativeAd *)nativeAd {
- self.titleLabel.text = nativeAd.title;
- self.detailLabel.text = nativeAd.adDescription;
- NSString *ctaTitle = nativeAd.callToAction.length > 0 ? nativeAd.callToAction : @"Install";
- [self.cta setTitle:ctaTitle forState:UIControlStateNormal];
- //设置按钮选择状态下的标题
- [self.cta setTitle:ctaTitle forState:UIControlStateSelected];
- //设置按钮高亮状态下的标题
- [self.cta setTitle:ctaTitle forState:UIControlStateHighlighted];
-}
-
-@end
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m.meta
deleted file mode 100644
index 0fe8a60..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Native/BigoUnityNativeCustomView.m.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: d9e95ef6076f8408a98e195f9786007a
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup.meta
deleted file mode 100644
index 1be8634..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 24e19875a9807479e8e67ede8568a37d
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs
deleted file mode 100644
index dcca3b9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-#if UNITY_IOS
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
-
- class BigoUnitypopupAd : BigoIOSBaseAd, IPopupAd
- {
- public void Load(string slotId, BigoPopupRequest request)
- {
- adType = 6;
- LoadAdData(slotId,request);
- }
- }
-}
-#endif
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs.meta
deleted file mode 100644
index b015e0d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 6db3f7d6fb1a84a6eb484a3a8de4498a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h
deleted file mode 100644
index ed0d768..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load appOpen Ad
- void BigoIOS_loadPopupAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback);
- //show open ad
- void BigoIOS_showPopupAd(UnityAd unityAd);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h.meta
deleted file mode 100644
index d0d26d0..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 60f143a983fcf474f9c68938033d595e
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm
deleted file mode 100644
index 83ce26a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm
+++ /dev/null
@@ -1,29 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-
-extern "C"{
-
-//load popup ad
-void BigoIOS_loadPopupAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- ) {
-
-
-}
-
-void BigoIOS_showPopupAd(UnityAd unityAd) {
-
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm.meta
deleted file mode 100644
index 3e2fce7..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Popup/BigoUnityPopupAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 1216b7bb5404a4e478138d98a4ceabc8
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded.meta
deleted file mode 100644
index 83e47cd..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: fc24c03453ca84472831cbe13d0cd70d
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs
deleted file mode 100644
index 42bcde8..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-#if UNITY_IOS
-using System.Collections.Generic;
-using AOT;
-using UnityEngine;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
- using System;
- using BigoAds.Scripts.Api;
- using BigoAds.Scripts.Common;
- using BigoAds.Scripts.Platforms.iOS;
- using System.Runtime.InteropServices;
- class BigoUnityRewardedAd : BigoIOSBaseAd, IRewardedAd
- {
- public event Action OnUserEarnedReward;
-
- public void Load(string slotId, BigoRewardedRequest request)
- {
- adType = 4;
- this.unityAdPtr = (IntPtr)GCHandle.Alloc (this);
- IntPtr ptr = this.unityAdPtr;
-
- BigoIOS_loadRewardedAdData(ptr,
- slotId,
- request.ToJson(),
- cs_adDidLoadCallback,
- cs_adLoadFailCallBack,
- cs_adDidShowCallback,
- cs_adDidClickCallback,
- cs_adDidDismissCallback,
- cs_adDidErrorCallBack,
- cs_adDidEarnRewardCallback);
- LOGWithMessage(System.Reflection.MethodBase.GetCurrentMethod()?.Name,$"slotId:{slotId},request{request}");
- }
-
- // c-> oc
- [DllImport("__Internal")]
- static extern void BigoIOS_loadRewardedAdData(IntPtr unityAd,
- string slotId,
- string requestJson,
- adDidLoadCallback_delegate successCallback,
- adLoadFailCallBack_delegate failCallback,
- adDidShowCallback_delegate showCallback,
- adDidClickCallback_delegate clickCallback,
- adDidDismissCallback_delegate dismissCallback,
- adDidErrorCallback_delegate adErrorCallback,
- adDidEarnRewardCallback_delegate earnCallback);
-
- private delegate void adDidEarnRewardCallback_delegate(IntPtr unityAdPtr);
-
- [MonoPInvokeCallback(typeof(adDidEarnRewardCallback_delegate))]
- private static void cs_adDidEarnRewardCallback(IntPtr unityAdPtr)
- {
- BigoUnityRewardedAd unityAd = BigoIOSBaseAd.GetUnityAd(unityAdPtr) as BigoUnityRewardedAd;
- if (unityAd == null)
- {
- return;
- }
- unityAd.OnUserEarnedReward?.Invoke();
- }
- }
-}
-#endif
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs.meta
deleted file mode 100644
index cdab5d2..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 63ac6f7f8298c4f2585c4847b19ae90d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h
deleted file mode 100644
index efe9083..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load Rewarded Ad
- void BigoIOS_loadRewardedAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback,
- AdDidEarnRewardCallback earnCallback);
- //show open ad
- void BigoIOS_showRewardedAd(UnityAd unityAd);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h.meta
deleted file mode 100644
index 1963bd9..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: 780f30ce3796b4a89a92aa7e746d76bd
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm
deleted file mode 100644
index 339e78b..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm
+++ /dev/null
@@ -1,69 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-
-extern "C"{
-
-//load rewarded ad
-void BigoIOS_loadRewardedAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback,
- AdDidEarnRewardCallback earnCallback
- ) {
- BigoIOS_dispatchSyncMainQueue(^{
-
- BigoUnityRewardedAdHandler *adHandler = [[BigoUnityRewardedAdHandler alloc] init];
- BigoRewardVideoAdRequest *request = [[BigoRewardVideoAdRequest alloc] initWithSlotId:BigoIOS_transformNSStringForm(slotId)];
- NSDictionary *requestDict = BigoIOS_requestJsonObjectFromJsonString(requestJson);
- request.age = [requestDict[@"age"] intValue];
- request.gender = (BigoAdGender)[requestDict[@"gender"] intValue];
- request.activatedTime = [requestDict[@"activatedTime"] longLongValue];
- BigoRewardVideoAdLoader *adLoader = [[BigoRewardVideoAdLoader alloc] initWithRewardVideoAdLoaderDelegate:adHandler];
- adLoader.ext = requestDict[@"extraInfo"];
- adHandler.adLoader = adLoader;
- adHandler.unityAd = unityAd;
- adHandler.showCallback = showCallback;
- adHandler.clickCallback = clickCallback;
- adHandler.dismissCallback = dismissCallback;
- adHandler.adErrorCallback = adErrorCallback;
- adHandler.successCallback = successCallback;
- adHandler.failCallback = failCallback;
- adHandler.earnCallback = earnCallback;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager saveAdHandler:adHandler withKey:unityAdKey];
- [adLoader loadAd:request];
- });
-
-}
-
-BigoUnityRewardedAdHandler* BigoIOS_getRewardedAdHandler(UnityAd unityAd) {
- if (!unityAd) return nil;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnityRewardedAdHandler *handler = (BigoUnityRewardedAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- if (!handler || ![handler isMemberOfClass:[BigoUnityRewardedAdHandler class]]) {
- return nil;
- }
- return handler;
-}
-
-void BigoIOS_showRewardedAd(UnityAd unityAd) {
- BigoUnityRewardedAdHandler *handler = BigoIOS_getRewardedAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- UIViewController *vc = GetAppController().rootViewController;
- BigoRewardVideoAd *ad = (BigoRewardVideoAd *)handler.ad;
- [ad show:vc];
- });
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm.meta
deleted file mode 100644
index 71a5f96..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Rewarded/BigoUnityRewardedAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: d8fabace3a5bc43d1909e6d2e3d11b76
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash.meta
deleted file mode 100644
index 2dca882..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 7f81b17e4602f4d049f2f1679dd986df
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h
deleted file mode 100644
index 0dd0477..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// BGSplashAdViewController.h
-// demo
-//
-// Created by cai on 2022/5/23.
-//
-
-#import
-#import
-#import "BigoUnityBaseAdHandler.h"
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface BGSplashAdViewController : UIViewController
-
-@property (nonatomic, strong) UIViewController *rootVC;
-
-@property (nonatomic, strong) BigoSplashAd *ad;
-
-@property (nonatomic, weak) BigoUnitySplashAdHandler *adHandle;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h.meta
deleted file mode 100644
index 6a06c0e..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: fb04cd43cee464aaca615d708992dd8c
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m
deleted file mode 100644
index 2ab13ff..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// BGSplashAdViewController.m
-// demo
-//
-// Created by cai on 2022/5/23.
-//
-
-#import "BGSplashAdViewController.h"
-
-@interface BGSplashAdViewController ()
-
-@end
-
-@implementation BGSplashAdViewController
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.view.backgroundColor = [UIColor whiteColor];
-
- [self.ad setSplashAdInteractionDelegate:self];
- [self.ad showInAdContainer:self.view];
-}
-
-- (void)dismissSplashController:(BigoAd *)ad {
- [self.adHandle onAdClosed:ad];
- [[UIApplication sharedApplication].keyWindow setRootViewController:self.rootVC];
-}
-
-/**
- * 广告可跳过回调,通常是由用户点击了右上角 SKIP 按钮所触发
- */
-- (void)onAdSkipped:(BigoAd *)ad {
- [self dismissSplashController:ad];
-}
-
-/**
- * 广告倒计时结束回调
- */
-- (void)onAdFinished:(BigoAd *)ad {
-
-}
-
-- (void)onAd:(BigoAd *)ad error:(BigoAdError *)error {
- [self dismissSplashController:ad];
-}
-
-//广告展示
-- (void)onAdImpression:(BigoAd *)ad {
- [self.adHandle onAdImpression:ad];
-}
-
-//广告点击
-- (void)onAdClicked:(BigoAd *)ad {
- [self.adHandle onAdClicked:ad];
-}
-
-- (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [self.navigationController setNavigationBarHidden:YES animated:animated];
-}
-
-- (void)viewWillDisappear:(BOOL)animated {
- [super viewWillDisappear:animated];
- [self.navigationController setNavigationBarHidden:NO animated:animated];
-}
-
-- (BOOL)prefersStatusBarHidden {
- return YES;
-}
-
-@end
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m.meta
deleted file mode 100644
index 21558bd..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BGSplashAdViewController.m.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 39e7476be840e4443b46b46741933efe
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs
deleted file mode 100644
index 3d524cf..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-#if UNITY_IOS
-using BigoAds.Scripts.Api;
-using BigoAds.Scripts.Common;
-
-namespace BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd
-{
-
- class BigoUnitySplashAd : BigoIOSBaseAd, ISplashAd
- {
- public void Load(string slotId, BigoSplashRequest request)
- {
- adType = 5;
- LoadAdData(slotId,request);
- }
- }
-}
-#endif
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs.meta
deleted file mode 100644
index f7fd32d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 75707b903f9fd4fdaa3146b0ec0fad6b
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h
deleted file mode 100644
index f2a616a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#import "BigoUnityBaseAdHandler.h"
-
-extern "C" {
-
- //load appOpen Ad
- void BigoIOS_loadSplashAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback);
- //show open ad
- void BigoIOS_showSplashAd(UnityAd unityAd);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h.meta
deleted file mode 100644
index 265c352..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: b558ab701b1ae4f74a9bf6908be239c4
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm
deleted file mode 100644
index 4024579..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm
+++ /dev/null
@@ -1,71 +0,0 @@
-#import
-#import "UnityAppController.h"
-#import "BigoUnityBaseAdHandler.h"
-#import "BigoUnityAdapterTools.h"
-#import "BigoUnityAdHandlerManager.h"
-#import "BGSplashAdViewController.h"
-
-extern "C"{
-
-//load splash ad
-void BigoIOS_loadSplashAdData(UnityAd unityAd,
- const char *slotId,
- const char *requestJson,
- AdDidLoadCallback successCallback,
- AdLoadFailCallBack failCallback,
- AdDidShowCallback showCallback,
- AdDidClickCallback clickCallback,
- AdDidDismissCallback dismissCallback,
- AdDidErrorCallback adErrorCallback
- ) {
- BigoIOS_dispatchSyncMainQueue(^{
-
- BigoUnitySplashAdHandler *adHandler = [[BigoUnitySplashAdHandler alloc] init];
- BigoSplashAdRequest *request = [[BigoSplashAdRequest alloc] initWithSlotId:BigoIOS_transformNSStringForm(slotId)];
- NSDictionary *requestDict = BigoIOS_requestJsonObjectFromJsonString(requestJson);
- request.age = [requestDict[@"age"] intValue];
- request.gender = (BigoAdGender)[requestDict[@"gender"] intValue];
- request.activatedTime = [requestDict[@"activatedTime"] longLongValue];
- BigoSplashAdLoader *adLoader = [[BigoSplashAdLoader alloc] initWithSplashAdLoaderDelegate:adHandler];
- adLoader.ext = requestDict[@"extraInfo"];
- adHandler.adLoader = adLoader;
- adHandler.unityAd = unityAd;
- adHandler.showCallback = showCallback;
- adHandler.clickCallback = clickCallback;
- adHandler.dismissCallback = dismissCallback;
- adHandler.adErrorCallback = adErrorCallback;
- adHandler.successCallback = successCallback;
- adHandler.failCallback = failCallback;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- [BigoUnityAdHandlerManager saveAdHandler:adHandler withKey:unityAdKey];
- [adLoader loadAd:request];
- });
-
-}
-
-BigoUnitySplashAdHandler* BigoIOS_getSplashAdHandler(UnityAd unityAd) {
- if (!unityAd) return nil;
- NSString *unityAdKey = [BigoUnityAdHandlerManager createKeyUnityAd:unityAd];
- BigoUnitySplashAdHandler *handler = (BigoUnitySplashAdHandler*)[BigoUnityAdHandlerManager handlerWithKey:unityAdKey];
- if (!handler || ![handler isMemberOfClass:[BigoUnitySplashAdHandler class]]) {
- return nil;
- }
- return handler;
-}
-
-void BigoIOS_showSplashAd(UnityAd unityAd) {
- BigoUnitySplashAdHandler *handler = BigoIOS_getSplashAdHandler(unityAd);
- if (!handler) return;
-
- BigoIOS_dispatchSyncMainQueue(^{
- BGSplashAdViewController *vc = [BGSplashAdViewController new];
- BigoSplashAd *ad = (BigoSplashAd *)handler.ad;
- vc.ad = ad;
- vc.adHandle = handler;
- vc.rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
- [[UIApplication sharedApplication].keyWindow setRootViewController:vc];
- });
-}
-
-}
-
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm.meta
deleted file mode 100644
index fad9286..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoAd/Splash/BigoUnitySplashAd.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 8235e7e5bc3aa4161911cbb121a01ed6
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h
deleted file mode 100644
index d78de0d..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h
+++ /dev/null
@@ -1,6 +0,0 @@
-extern "C" {
- NSString* BigoIOS_transformNSStringForm(const char * string);
- void BigoIOS_dispatchSyncMainQueue(void (^block)(void));
- NSDictionary* BigoIOS_jsonObjectFromJsonString(NSString *jsonString);
- NSDictionary* BigoIOS_requestJsonObjectFromJsonString(const char * json);
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h.meta
deleted file mode 100644
index a39f59f..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.h.meta
+++ /dev/null
@@ -1,27 +0,0 @@
-fileFormatVersion: 2
-guid: b79d02d93f49840b7ad17017bcb5f3fe
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm
deleted file mode 100644
index 36c107a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm
+++ /dev/null
@@ -1,43 +0,0 @@
-#import
-
-extern "C" {
-//字符串转化工具
-NSString* BigoIOS_transformNSStringForm(const char * string)
-{
- if (!string)
- {
- string = "";
- }
- return [NSString stringWithUTF8String:string];
-}
-
-void BigoIOS_dispatchSyncMainQueue(void (^block)(void)) {
- if (!block) return;
- if ([[NSThread currentThread] isMainThread]){
- block();
- return;
- }
- dispatch_sync(dispatch_get_main_queue(), ^{ block(); });
-}
-
-NSDictionary* BigoIOS_jsonObjectFromJsonString(NSString *jsonString) {
- if (jsonString.length == 0) {
- return [[NSDictionary alloc] init];
- }
- NSData *data = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
- NSError *error = nil;
- id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
- if (error || ![obj isKindOfClass:[NSDictionary class]]) {
- return [[NSDictionary alloc] init];
- }
- return obj;
-}
-
-NSDictionary* BigoIOS_requestJsonObjectFromJsonString(const char * json) {
- NSString *string = BigoIOS_transformNSStringForm(json);
- return BigoIOS_jsonObjectFromJsonString(string);
-}
-
-
-
-}
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm.meta b/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm.meta
deleted file mode 100644
index d1965c5..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/Adapter/BigoUnityAdapterTools.mm.meta
+++ /dev/null
@@ -1,37 +0,0 @@
-fileFormatVersion: 2
-guid: 486cb19aab9734f3182b6ff6dc3d23b4
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs b/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs
deleted file mode 100644
index 8f03a0a..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-#if UNITY_IOS
-using BigoAds.Scripts.Common;
-using BigoAds.Scripts.Platforms.iOS;
-using BigoAds.Scripts.Platforms.iOS.Adapter.BigoAd;
-
-namespace BigoAds.Scripts.Platforms.iOS
-{
- class IOSClientFactory : IClientFactory
- {
-
- public ISDK BuildSDKClient()
- {
- return new BigoUnitySdk();
- }
-
- public IBannerAd BuildBannerAdClient()
- {
- return new BigoUnityBannerAd();
- }
-
- public INativeAd BuildNativeAdClient()
- {
- return new BigoUnityNativeAd();
- }
-
- public IInterstitialAd BuildInterstitialAdClient()
- {
- return new BigoUnityinterstitialAd();
- }
-
- public ISplashAd BuildSplashAdClient()
- {
- return new BigoUnitySplashAd();
- }
-
- public IRewardedAd BuildRewardedAdClient()
- {
- return new BigoUnityRewardedAd();
- }
- public IPopupAd BuildPopupAdClient()
- {
- return new BigoUnitypopupAd();
- }
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs.meta b/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs.meta
deleted file mode 100644
index 3c9b051..0000000
--- a/Assets/BigoAds/Scripts/Platforms/iOS/IOSClientFactory.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 19b9b3ee98a034640a2530047c2a4d7a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoSDK.meta b/Assets/BigoSDK.meta
deleted file mode 100644
index ba780c9..0000000
--- a/Assets/BigoSDK.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 2154e3fcfcb7f460db1c13464bb1355f
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoSDK/Editor.meta b/Assets/BigoSDK/Editor.meta
deleted file mode 100644
index 39c97da..0000000
--- a/Assets/BigoSDK/Editor.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: ec31bab3b8560467a9ec89b7934596bd
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/BigoSDK/Editor/Dependencies.xml b/Assets/BigoSDK/Editor/Dependencies.xml
deleted file mode 100644
index 4627456..0000000
--- a/Assets/BigoSDK/Editor/Dependencies.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
- https://repo1.maven.org/maven2/
-
-
-
-
diff --git a/Assets/BigoSDK/Editor/Dependencies.xml.meta b/Assets/BigoSDK/Editor/Dependencies.xml.meta
deleted file mode 100644
index f60ea08..0000000
--- a/Assets/BigoSDK/Editor/Dependencies.xml.meta
+++ /dev/null
@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 1b669f66367be4697b7819f165f9842b
-TextScriptImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK.meta b/Assets/EFSDK.meta
deleted file mode 100644
index 55b5bec..0000000
--- a/Assets/EFSDK.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 6aee787c9d4ba4cce841a8bee8c9c726
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android.meta b/Assets/EFSDK/Android.meta
deleted file mode 100755
index a3881df..0000000
--- a/Assets/EFSDK/Android.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: fa22f34439f14c8cbaa5fae4c4dc402b
-timeCreated: 1742203865
\ No newline at end of file
diff --git a/Assets/EFSDK/Android/res.meta b/Assets/EFSDK/Android/res.meta
deleted file mode 100755
index 9bc542b..0000000
--- a/Assets/EFSDK/Android/res.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: f322db129aac4ea1aa9919e8c8f92a08
-timeCreated: 1756693458
\ No newline at end of file
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi.meta
deleted file mode 100644
index 5a19b78..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 8af1d23b4bce430aa8bfb3e1b6b3b291
-timeCreated: 1756693481
\ No newline at end of file
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png
deleted file mode 100644
index 72889b2..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png.meta
deleted file mode 100644
index bf71aab..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_icon_1024.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 22d4b822110d1bd43932b2b737f61dce
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png
deleted file mode 100644
index 8e98b90..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png.meta
deleted file mode 100644
index 10b727d..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 63a7e60d370bb1c48a1138e45315d8aa
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png
deleted file mode 100644
index 20bd84f..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png.meta
deleted file mode 100644
index 62b2479..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_1_txt_bg.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: a8e21c257c84fda4189e3fed8c70f5bf
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png
deleted file mode 100644
index 335dee8..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png.meta
deleted file mode 100644
index 531e8a0..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 9cb4efb8034485741852541144c5a7a0
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png
deleted file mode 100644
index 20bd84f..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png.meta
deleted file mode 100644
index b806bb6..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_2_txt_bg.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: bbc3d4b96ecfd6a4ba5369f9bce4af83
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png
deleted file mode 100644
index 39f6fd0..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png.meta
deleted file mode 100644
index 4bac722..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 9934c44d94c1030438702e646cc1a5b1
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png
deleted file mode 100644
index 20bd84f..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png.meta
deleted file mode 100644
index 6c2b2de..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_3_txt_bg.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 80bd20381adc2bd4e9618ef94f172637
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png
deleted file mode 100644
index a4c8f44..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png.meta
deleted file mode 100644
index ac4ebc2..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 9cfb6b46fea6c7845999842064fef0dd
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png
deleted file mode 100644
index 20bd84f..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png.meta
deleted file mode 100644
index 13644ec..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_notice_4_txt_bg.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: aa07182c81a5b6b4aac5efad02e407fa
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png
deleted file mode 100644
index 03b85c3..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png.meta
deleted file mode 100644
index 2153a13..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_en.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: a0fa3d13d2c47b64c8a10c49839f888c
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png
deleted file mode 100644
index 3368d75..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png.meta
deleted file mode 100644
index 4f7c2b8..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_push_big_pic_es.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 10def9eb660635b468ed7fc2277a4e6f
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png
deleted file mode 100644
index 81c0bf1..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png.meta
deleted file mode 100644
index 1b59afc..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_toast_bg.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: f2d7efc9e85a47e98bae42a19e1d52a3
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png
deleted file mode 100644
index 0843785..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png.meta
deleted file mode 100644
index 2a5ca80..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bg.9.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: a8d31fbeeee87204e88e6c444284262e
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png
deleted file mode 100644
index 632e110..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png.meta
deleted file mode 100644
index e2618f2..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_big_pic_bx.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 4886e0d9173712146b255852a9672dfe
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png
deleted file mode 100644
index 3c28c57..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png.meta
deleted file mode 100644
index 803fef8..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_bx.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: 213035b3454d9394598755a9d193e711
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png
deleted file mode 100644
index fbee552..0000000
Binary files a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png and /dev/null differ
diff --git a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png.meta b/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png.meta
deleted file mode 100644
index 8544ed5..0000000
--- a/Assets/EFSDK/Android/res/drawable-xxhdpi/_sdk_widget_dollor.png.meta
+++ /dev/null
@@ -1,127 +0,0 @@
-fileFormatVersion: 2
-guid: aacf2638ee9d7ef4d86faa3688b8ff67
-TextureImporter:
- internalIDToNameTable: []
- externalObjects: {}
- serializedVersion: 13
- mipmaps:
- mipMapMode: 0
- enableMipMap: 1
- sRGBTexture: 1
- linearTexture: 0
- fadeOut: 0
- borderMipMap: 0
- mipMapsPreserveCoverage: 0
- alphaTestReferenceValue: 0.5
- mipMapFadeDistanceStart: 1
- mipMapFadeDistanceEnd: 3
- bumpmap:
- convertToNormalMap: 0
- externalNormalMap: 0
- heightScale: 0.25
- normalMapFilter: 0
- flipGreenChannel: 0
- isReadable: 0
- streamingMipmaps: 0
- streamingMipmapsPriority: 0
- vTOnly: 0
- ignoreMipmapLimit: 0
- grayScaleToAlpha: 0
- generateCubemap: 6
- cubemapConvolution: 0
- seamlessCubemap: 0
- textureFormat: 1
- maxTextureSize: 2048
- textureSettings:
- serializedVersion: 2
- filterMode: 1
- aniso: 1
- mipBias: 0
- wrapU: 0
- wrapV: 0
- wrapW: 0
- nPOTScale: 1
- lightmap: 0
- compressionQuality: 50
- spriteMode: 0
- spriteExtrude: 1
- spriteMeshType: 1
- alignment: 0
- spritePivot: {x: 0.5, y: 0.5}
- spritePixelsToUnits: 100
- spriteBorder: {x: 0, y: 0, z: 0, w: 0}
- spriteGenerateFallbackPhysicsShape: 1
- alphaUsage: 1
- alphaIsTransparency: 0
- spriteTessellationDetail: -1
- textureType: 0
- textureShape: 1
- singleChannelComponent: 0
- flipbookRows: 1
- flipbookColumns: 1
- maxTextureSizeSet: 0
- compressionQualitySet: 0
- textureFormatSet: 0
- ignorePngGamma: 0
- applyGammaDecoding: 0
- swizzle: 50462976
- cookieLightType: 0
- platformSettings:
- - serializedVersion: 3
- buildTarget: DefaultTexturePlatform
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Standalone
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- - serializedVersion: 3
- buildTarget: Android
- maxTextureSize: 2048
- resizeAlgorithm: 0
- textureFormat: -1
- textureCompression: 1
- compressionQuality: 50
- crunchedCompression: 0
- allowsAlphaSplitting: 0
- overridden: 0
- ignorePlatformSupport: 0
- androidETC2FallbackOverride: 0
- forceMaximumCompressionQuality_BC6H_BC7: 0
- spriteSheet:
- serializedVersion: 2
- sprites: []
- outline: []
- physicsShape: []
- bones: []
- spriteID:
- internalID: 0
- vertices: []
- indices:
- edges: []
- weights: []
- secondaryTextures: []
- nameFileIdTable: {}
- mipmapLimitGroupName:
- pSDRemoveMatte: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/AutoSetEFSdk.cs b/Assets/EFSDK/AutoSetEFSdk.cs
deleted file mode 100755
index 8aacbe7..0000000
--- a/Assets/EFSDK/AutoSetEFSdk.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using UnityEngine;
-
-namespace EFSDK
-{
- public static class AutoSetEFSdk
- {
- [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
- public static void SetupCommunicationObject()
- {
- try
- {
- GameObject communicationObject = new GameObject("EFSdkAndroid");
- if (communicationObject != null)
- {
- EFSdkAndroid communicationComponent = communicationObject.AddComponent();
- if (communicationComponent == null)
- {
- Debug.LogError("Failed to add EFSdkAndroid component to the GameObject.");
- }
- Object.DontDestroyOnLoad(communicationObject);
- }
- else
- {
- Debug.LogError("Failed to create the EFSdkAndroid GameObject.");
- }
- }
- catch (System.Exception e)
- {
- Debug.LogError($"An error occurred while setting up the communication object: {e.Message}");
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/EFSDK/AutoSetEFSdk.cs.meta b/Assets/EFSDK/AutoSetEFSdk.cs.meta
deleted file mode 100755
index 5e19232..0000000
--- a/Assets/EFSDK/AutoSetEFSdk.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 9937d38cb2014e1e94087f6216eacd62
-timeCreated: 1742202739
\ No newline at end of file
diff --git a/Assets/EFSDK/EFSdk.cs b/Assets/EFSDK/EFSdk.cs
deleted file mode 100755
index 1a66ea4..0000000
--- a/Assets/EFSDK/EFSdk.cs
+++ /dev/null
@@ -1,541 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Security.Cryptography;
-using System.Text;
-using UnityEngine;
-
-namespace EFSDK
-{
- ///
- /// TKG Native SDK Android platform interface call
- ///
- public class EFSdk
- {
- private static EFSdk _mEfSdk;
-
- private static string Unity_SDK_Ver = "0.0.17";
- // 保持变量名不变
- private static string mappingInfo = "";
-
- public static EFSdk get()
- {
- if (_mEfSdk == null)
- {
- _mEfSdk = new EFSdk();
- }
-
- return _mEfSdk;
- }
-
-
- private AndroidJavaObject jo;
-
- public EFSdk()
- {
- Debug.Log($"GetNewSDKClass():{GetNewSDKClass()}");
- Debug.Log($"initSDK():{GenerateAndroidName("initSDK")}");
-
- // java interface class
- using (AndroidJavaClass jc = new AndroidJavaClass(GetNewSDKClass()))
- {
- jo = jc.GetStatic("INSTANCE");
- }
- }
-
- private static string oriSDKPName = "com.earn.push";
- private static string oriSDK = "_SDK";
-
- private static string GetNewSDKClass()
- {
- return GetSDKPackage() + GenerateAndroidName(oriSDK);
- }
-
- private static string GetSDKPackage()
- {
- string[] parts = oriSDKPName.Split('.');
- string[] parts2 = new string[parts.Length];
- for (int i = 0; i < parts.Length; i++)
- {
- parts2[i] = GenerateAndroidName(parts[i]);
- }
-
- string newPName = "";
- for (int i = 0; i < parts2.Length; i++)
- {
- newPName += parts2[i] + ".";
- }
-
- return newPName;
- }
-
- private static string GenerateAndroidName(string oriString)
- {
- string md5Str = GetFirstEightWithUnderscore(GetMD5Hash(Application.identifier + oriString));
- return md5Str;
- }
-
- public static string GetMD5Hash(string input)
- {
- using (var md5 = MD5.Create())
- {
- var inputBytes = Encoding.ASCII.GetBytes(input);
- var hashBytes = md5.ComputeHash(inputBytes);
-
- var builder = new StringBuilder();
- foreach (var t in hashBytes)
- {
- builder.Append(t.ToString("x2")); // Convert byte to hexadecimal string
- }
-
- return builder.ToString();
- }
- }
-
- static string GetFirstEightWithUnderscore(string str)
- {
- if (string.IsNullOrEmpty(str)) return str;
- string sub = str.Length <= 8 ? str : str.Substring(0, 8);
- if (char.IsDigit(sub[0]))
- {
- sub = "a" + sub;
- }
-
- return sub;
- }
-
- private T SDKCall(string _method, params object[] _param)
- {
- try
- {
- string newMethod = GenerateAndroidName(_method);
- Debug.Log($"SDKCall newMethod:{newMethod}");
- return jo.Call(newMethod, _param);
- }
- catch (Exception e)
- {
- Debug.LogError(e);
- }
-
- return default(T);
- }
-
- private void SDKCall(string _method, params object[] _param)
- {
- try
- {
- string newMethod = GenerateAndroidName(_method);
- Debug.Log($"SDKCall newMethod:{newMethod}");
- jo.Call(newMethod, _param);
- }
- catch (Exception e)
- {
- Debug.LogError(e);
- }
- }
-
- public enum ActionType
- {
- SDK_INIT_Succ, //GAM页面加载成功
- H5_Load_Succ, //H5页面加载成功
- ON_RESUME, //游戏可见时回调,
- // CAN_GOBACK, //游戏可见时回调,
- }
-
- public Action ActionCallback;
- public Action> ActionSDKEventCallback;
- public Action HdH5ImpressionAction;
- public Action mCanGobackAction;
- public Action mReqNotifyPermissionAction;
- public Action mReqFloatPermissionAction;
-
- ///
- /// 在Init方法之后调用这个方法,设置SDK上报事件回调, 将SDK传过来的事件上报到Firebase,数数等
- ///
- ///
- /// 事件ID,事件属性
- ///
- public void SetSDKEventCallback(Action> eventKeyDict)
- {
- ActionSDKEventCallback = eventKeyDict;
- }
-
- ///
- /// 互动广告展示回调,此时可以计算上报互动广告展示次数和收益
- ///
- /// string 是互动广告的url
- public void SetHdH5ImpressionCallback(Action callback)
- {
- HdH5ImpressionAction = callback;
- }
-
-
- ///
- /// 初始化
- ///
- /// ActionType 回调类型 ; string msg
- public void Init(Action actionCallbvack)
- {
- ActionCallback = actionCallbvack;
- SDKInit();
- }
-
- private void SDKInit()
- {
- SDKCall("initSDK", mappingInfo);
- ActionCallback?.Invoke(ActionType.SDK_INIT_Succ, string.Empty);
- }
-
- ///
- /// 当游戏进程启动之后,可以接收响应的时候(一般在游戏内事件上报相关内容初始化完毕调用即可,参数传true),调用这个方法通知SDK,
- /// SDK收到通知后会开始将SDK侧的事件回传给游戏,作事件上报
- ///
- /// 传 true
- public void SetGameActive(bool active)
- {
- SDKCall("onGameActive", active);
- }
-
- ///
- /// 展示WebView
- ///
- /// 标签id
- /// 网址
- ///
- ///
- public void ShowWebView(int id, string url, RectTransform pRect, Camera pCam = null)
- {
- Vector3[] tWorldCorners = new Vector3[4];
- pRect.GetWorldCorners(tWorldCorners);
- Vector2 tTopLeft = RectTransformUtility.WorldToScreenPoint(pCam, tWorldCorners[1]);
- Vector2 tBottomRight = RectTransformUtility.WorldToScreenPoint(pCam, tWorldCorners[3]);
- int tWidth = (int)Mathf.Abs(tBottomRight.x - tTopLeft.x);
- int tHeight = (int)Mathf.Abs(tBottomRight.y - tTopLeft.y);
- SDKCall("showWebViewToActivity", id, url, (int)tTopLeft.x, (int)(Screen.height - tTopLeft.y), tWidth,
- tHeight);
- }
-
- ///
- /// 移除所有原生View, 回到游戏时调用
- ///
- ///
- public void RemoveAll()
- {
- SDKCall("removeAll");
- }
-
- ///
- /// 刷新当前页面
- ///
- ///
- public void Refresh()
- {
- SDKCall("refresh");
- }
-
- ///
- /// 回上一页
- ///
- ///
- public void GoBack()
- {
- SDKCall("goBack");
- }
-
- ///
- /// 回首页
- ///
- ///
- public void GoHome()
- {
- SDKCall("goHome");
- }
-
-
- ///
- ///
- ///
- /// 消息文案
- /// 消息文本颜色,十六进制字符串
- public void ShowToast(string message,string textColor = "#FFFFFF")
- {
- SDKCall("showToast", message,textColor);
- }
-
- ///
- /// 判断当前网页是否还能返回上一页, true:可以返回,此时页面不在首页 false: 不能返回了,当前页面就在首页
- ///
- public void CanGoback(Action canGobackAction)
- {
- mCanGobackAction = canGobackAction;
- SDKCall("canGoback");
- }
-
- #region 推送通知
-
- ///
- /// 启用v2版本常驻通知样式
- ///
- /// rue:启用v2版本常驻通知样式,false:禁用 (禁用将使用V1版本常驻通知样式)
- public void EnablePersistentStyleV2(bool enable)
- {
- SDKCall("enablePersistentStyleV2", enable);
- }
-
- ///
- /// 设置v2版本常驻通知的文案
- ///
- /// 图标 1 文案
- /// 图标 2 文案
- /// 图标 3 文案
- /// 图标 4 文案
- public void SetPersistentStyleV2Text(string text1, string text2, string text3, string text4)
- {
- SDKCall("setPersistentStyleV2Text", text1, text2, text3, text4);
- }
-
- ///
- /// 满足条件:未领取 R$0.1 的 买量用户, 调用这个方法
- ///
- public void SubscribeUnclaimed01()
- {
- SDKCall("subscribeUnclaimed01");
- }
-
- ///
- /// 不满足条件:未领取 R$0.1 的 买量用户, 调用这个方法
- ///
- public void UnSubscribeUnclaimed01()
- {
- SDKCall("unSubscribeUnclaimed01");
- }
-
- ///
- // 满足条件: 在排队中 且 当日R$1 未领取 的买量用户, 调用这个方法
- ///
- public void SubscribePending1()
- {
- SDKCall("subscribePending1");
- }
-
- ///
- /// 不满足条件: 在排队中 且 当日R$1 未领取 的买量用户, 调用这个方法
- ///
- public void UnSubscribePending1()
- {
- SDKCall("unSubscribePending1");
- }
-
- ///
- /// 订阅Firebase推送主题
- ///
- /// 主题名称
- public void SubscribeToTopic(string topic)
- {
- SDKCall("subscribeToTopic", topic);
- }
-
- ///
- /// 取消订阅Firebase推送主题
- ///
- /// 主题名称
- public void UnSubscribeToTopic(string topic)
- {
- SDKCall("UnSubscribeToTopic", topic);
- }
-
-
- ///
- /// 向SDK上报当前金币总数,每次金币变化都要调用一次
- ///
- ///
- public void SendTotalGold2SDK(int totalGold)
- {
- SDKCall("setGoldNum", totalGold.ToString());
- }
-
- ///
- /// 向SDK上报当前要提现的现金额,每次变化都要调用一次
- ///
- ///
- public void SendCashNum2SDK(double cashNum)
- {
- SDKCall("setCashNum", cashNum.ToString("0.00"));
- }
-
- ///
- /// 向SDK上报 游戏名字(当前语言的),每次语言变化都上报
- ///
- ///
- public void SetGameName(string gameName)
- {
- SDKCall("setGameName", gameName);
- }
-
-
- ///
- /// 设置当前游戏语言是否是 西班牙语
- ///
- ///
- /// 西班牙语传 true, 其他的都传 false
- public void SetCurrLang(bool isEs)
- {
- SDKCall("setCurrLang", isEs);
- }
-
- ///
- /// 获取当前是否有通知权限
- ///
- public bool HasNotifyPermission()
- {
- return SDKCall("hasNotifyPermission");
- }
-
- ///
- /// 请求获取通知权限
- ///
- public void ReqNotifyPermission()
- {
- SDKCall("reqNotifyPermission");
- }
-
- ///
- /// 请求获取通知权限
- /// 授权弹窗关闭回调 bool:表示用户是否允许了权限 true:有权限 false:无权限
- ///
- public void ReqNotifyPermission(Action action)
- {
- mReqNotifyPermissionAction = action;
- SDKCall("reqNotifyPermission");
- }
-
- ///
- /// 设置推送开关, SDK默认关闭通知
- ///
- ///
- public void SetPushSwitch(bool isOpen)
- {
- SDKCall("pushSwitch", isOpen);
- }
-
- ///
- /// 消息类通知弹出间隔设置为60秒(在线参数控制)-Key: messagenotif Value:60
- ///
- ///
- public void SetPushMessagenotif(int timeSeconds)
- {
- SDKCall("setPushMessagenotif", timeSeconds);
- }
-
- ///
- /// 持续性通知在进入游戏时弹出的时间间隔设置为300秒(在线参数控制 )-Key:persistentnotif Value:300
- ///
- ///
- public void SetPushPersistentnotif(int timeSeconds)
- {
- SDKCall("setPushPersistentnotif", timeSeconds);
- }
-
-
- ///
- /// 每次回调游戏的onResume的时候都调用一次,获取游戏要跳转的页面
- ///
- ///
- /// 0 不需要进行任何跳转
- /// 1 进行游戏主页
- /// 2 进入游戏的金币提现界面
- /// 3 进入对应小游戏1界面
- /// 4 进入对应小游戏2界面
- ///
- public int GetJumpPage()
- {
- return SDKCall("getJumpPage");
- }
-
- #endregion
-
- #region 小组件
-
- public enum WidgetType
- {
- Widget3X2 = 1,
- Widget5X1 = 2,
- }
-
- ///
- /// 获取指定类型的小组件是否已添加到桌面
- ///
- ///
- ///
- public bool IsWidgetAdded(WidgetType type)
- {
- return SDKCall("isWidgetAdded", (int)type);
- }
-
- public Action actionRequestAddWidgetResult = null;
-
- ///
- /// 将指定类型的小组件添加到桌面(小组件采用默认样式)
- ///
- ///
- /// 小组件添加结果回调
- ///
- public void RequestAddWidget(WidgetType type, Action action)
- {
- actionRequestAddWidgetResult = action;
- SDKCall("requestAddWidget", (int)type);
- }
-
- ///
- /// 请求将Widget3X2添加到桌面,并自定义文案
- ///
- /// 标题1文案
- /// 标题2文案
- /// 进度条上的文案
- /// 按钮的文案
- /// 小组件添加结果回调
- public void RequestAddWidget3x2(string title1, string title2, string progressStr, string buttonStr,
- Action action)
- {
- actionRequestAddWidgetResult = action;
- SDKCall("requestAddWidget3x2", title1, title2, progressStr, buttonStr);
- }
-
- ///
- /// 请求将 Widget5X1 添加到桌面,并自定义文案
- ///
- /// 内容文案
- /// 小组件添加结果回调
- /// 文案文字十六进制颜色值,如: #FFFFFF
- public void RequestAddWidget5x1(string content, Action action, string contentTextColor = "#FFFFFF")
- {
- actionRequestAddWidgetResult = action;
- SDKCall("requestAddWidget5x1", content, contentTextColor);
- }
-
- #endregion
-
- #region 悬浮窗
-
- ///
- /// 判断是否有悬浮窗权限
- ///
- ///
- public bool HasFloatWindowPermission()
- {
- return SDKCall("hasFloatWindowPermission");
- }
-
- ///
- /// 申请悬浮窗权限
- ///
- /// 申请权限的位置
- /// bool 是否被授予权限
- public void RequestFloatWindowPermission(String position,Action callback)
- {
- mReqFloatPermissionAction = callback;
- SDKCall("requestFloatWindowPermission",position);
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Assets/EFSDK/EFSdk.cs.meta b/Assets/EFSDK/EFSdk.cs.meta
deleted file mode 100755
index 8d8c165..0000000
--- a/Assets/EFSDK/EFSdk.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 3cf9c70ade0a42e08c9ea06733912dd2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/EFSDK/EFSdkAndroid.cs b/Assets/EFSDK/EFSdkAndroid.cs
deleted file mode 100755
index 48d8a23..0000000
--- a/Assets/EFSDK/EFSdkAndroid.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-using System.Collections.Generic;
-
-namespace EFSDK
-{
- using UnityEngine;
-
- public class EFSdkAndroid : MonoBehaviour
- {
- private string H5_Load_Succ = "H5_Load_Succ";
- private string On_Resume = "onResume";
- private string Can_Goback = "canGoback";
- private string reqNotifyPermission = "reqNotifyPermission";
- private string REQUEST_ADD_WIDGET_RESULT = "requestAddWidgetResult";
- private string REQUEST_FLOAT_WINDOW_PERMISSION = "requestFloatWindowPermission";
-
- public void OnReceiverAnd(string message)
- {
- WLoom.QueueOnMainThread(_ =>
- {
- Debug.Log("Received message from Android: " + message);
- if (message.Contains(On_Resume))
- {
- EFSdk.get().ActionCallback?.Invoke(EFSdk.ActionType.ON_RESUME, message);
- }
- if (message.Contains(Can_Goback))
- {
- EFSdk.get().mCanGobackAction?.Invoke(bool.Parse(message.Split('#')[1]));
- }
-
- if (message.Contains(H5_Load_Succ))
- {
- //GAM页面加载成功 Gam_Load_Succ@id
- string[] parts = message.Split('@');
- EFSdk.get().ActionCallback?.Invoke(EFSdk.ActionType.H5_Load_Succ, parts[1]);
- }
-
- if (message.StartsWith(reqNotifyPermission))
- {
- string[] flag = message.Split('#');
- EFSdk.get().mReqNotifyPermissionAction?.Invoke(flag[1].Equals("1"));
- }
-
- if (message.StartsWith(REQUEST_ADD_WIDGET_RESULT))
- {
- string[] flag = message.Split('#');
- EFSdk.get().actionRequestAddWidgetResult?.Invoke(flag[2].Equals("true"));
- }
- if (message.StartsWith(REQUEST_FLOAT_WINDOW_PERMISSION))
- {
- string[] flag = message.Split('#');
- EFSdk.get().mReqFloatPermissionAction?.Invoke(flag[1].Equals("true"));
- }
-
- if (message.StartsWith("Event#"))
- {
- string[] eventKeys = message.Split('#');
- if (eventKeys.Length > 0)
- {
- if (message.Contains("hd_h5_impression"))
- {
- //互动广告展示
- string url = eventKeys[2];
- EFSdk.get().HdH5ImpressionAction?.Invoke(url);
- }
- else if (eventKeys.Length == 2)
- {
- // 只有一个事件key
- string eventKey = eventKeys[1];
- EFSdk.get().ActionSDKEventCallback?.Invoke(eventKey, null);
- }
- else if (eventKeys.Length == 3)
- {
- // key-value事件
- string eventKey = eventKeys[1];
- string value = eventKeys[2];
- }
- else
- {
- //多属性事件
- string eventKey = eventKeys[1];
- Dictionary attrs = new Dictionary();
- for (int i = 2; i < eventKeys.Length - 1; i += 2)
- {
- string key = eventKeys[i];
- string value = eventKeys[i + 1];
- attrs[key] = value;
- }
-
- EFSdk.get().ActionSDKEventCallback?.Invoke(eventKey, attrs);
- }
- }
- }
- }, "");
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/EFSDK/EFSdkAndroid.cs.meta b/Assets/EFSDK/EFSdkAndroid.cs.meta
deleted file mode 100755
index c8b9b28..0000000
--- a/Assets/EFSDK/EFSdkAndroid.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 40a70c7c94e6494d947902b87c809b30
-timeCreated: 1742202547
\ No newline at end of file
diff --git a/Assets/EFSDK/Editor.meta b/Assets/EFSDK/Editor.meta
deleted file mode 100644
index 9e42853..0000000
--- a/Assets/EFSDK/Editor.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: e4d0b212325940748840950d8c400f9f
-timeCreated: 1756628120
\ No newline at end of file
diff --git a/Assets/EFSDK/Editor/AndroidResAarBuilder.cs b/Assets/EFSDK/Editor/AndroidResAarBuilder.cs
deleted file mode 100755
index 8cca933..0000000
--- a/Assets/EFSDK/Editor/AndroidResAarBuilder.cs
+++ /dev/null
@@ -1,237 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.IO;
-using System.Collections.Generic;
-using System.Security.Cryptography;
-using System.Text;
-using IOCompression = System.IO.Compression;
-
-namespace EFSDK
-{
- public class AndroidResAarBuilder
- {
- private static readonly string ResDir = "Assets/EFSDK/Android";
- private static readonly string OutputDir = "Assets/Plugins/Android";
- private static readonly string TempDir = "Temp/AndroidResAar";
- private static readonly string EFSdk_FILE = "Assets/EFSDK/EFSdk.cs";
-
- [MenuItem("EFSDK/!!提示:不需要悬浮窗功能的不要构建带悬浮窗的SDK!!")]
- public static void Tips()
- {
- Debug.Log($"不需要悬浮窗功能的不要构建带悬浮窗的SDK");
- }
-
- [MenuItem("EFSDK/构建当前包名的推送SDK(小组件)")]
- public static void BuildPushSdk()
- {
- Debug.Log($"构建当前包名的推送SDK(小组件) 当前包名: {Application.identifier}");
- string result = SDKEditorNetworkTool.HttpGetText(
- $"http://v4.9ms.co:58080/generic-webhook-trigger/invoke?token=pushsdk&target_package_name={Application.identifier}&branch_name=dev-widget");
- Debug.Log($"{result}\n成功发起推送SDK构建请求,请稍等3分钟之后,重新打包即可");
- }
- [MenuItem("EFSDK/构建当前包名的推送SDK(小组件+悬浮窗)")]
- public static void BuildPushSdkWf()
- {
- Debug.Log($"构建当前包名的推送SDK(小组件+悬浮窗) 当前包名: {Application.identifier}");
- string result = SDKEditorNetworkTool.HttpGetText(
- $"http://v4.9ms.co:58080/generic-webhook-trigger/invoke?token=pushsdk&target_package_name={Application.identifier}&branch_name=dev-alert-window");
- Debug.Log($"{result}\n成功发起推送SDK构建请求,请稍等3分钟之后,重新打包即可");
- }
-
- [MenuItem("EFSDK/Build Android Res AAR")]
- public static void BuildAAR()
- {
- if (!Directory.Exists(ResDir))
- {
- Debug.LogError($"Res folder not found: {ResDir}");
- return;
- }
-
- // 清理临时目录
- if (Directory.Exists(TempDir)) Directory.Delete(TempDir, true);
- Directory.CreateDirectory(TempDir);
-
- // 复制资源并重命名
- CopyAndRenameFiles(ResDir, TempDir, out Dictionary mapping);
- string manifestPath = Path.Combine(TempDir, "AndroidManifest.xml");
- File.WriteAllText(manifestPath,
- @$"
-
-");
-
- // 打包 AAR
- string aarPath = Path.Combine(OutputDir, "efsdk_res.aar");
- if (!Directory.Exists(OutputDir)) Directory.CreateDirectory(OutputDir);
- if (File.Exists(aarPath)) File.Delete(aarPath);
-
- IOCompression.ZipFile.CreateFromDirectory(TempDir, aarPath, IOCompression.CompressionLevel.Optimal, false);
- Debug.Log($"✅ AAR built:"+aarPath);
-
- // 生成压缩 JSON (key 只保留文件名)
- Dictionary simpleMapping = new Dictionary();
- foreach (var kv in mapping)
- {
- string fileName = Path.GetFileName(kv.Key);
- simpleMapping[fileName] = kv.Value;
- }
-
- string mappingJson = GenerateMappingJson(mapping);
- // 更新 mappingInfo
- // UpdateMappingInEFSdk_LineByLine(mappingJson);
- // 映射文件
- string mappingPath = Path.Combine(TempDir, "res_mapping.json");
- File.WriteAllText(mappingPath, mappingJson);
- Debug.Log($"✅ AAR 资源文件构建成功! mappingJson:"+mappingJson);
-
- // 清理临时目录
- Directory.Delete(TempDir, true);
- AssetDatabase.Refresh();
- }
-
- private static void CopyAndRenameFiles(string srcDir, string dstDir, out Dictionary mapping)
- {
- mapping = new Dictionary();
-
- foreach (var filePath in Directory.GetFiles(srcDir, "*", SearchOption.AllDirectories))
- {
- if (filePath.EndsWith(".meta")) continue;
-
- // 相对于源目录的路径
- string relativePath = filePath.Substring(srcDir.Length + 1).Replace("\\", "/");
-
- // 获取文件夹路径
- string relativeDir = Path.GetDirectoryName(relativePath).Replace("\\", "/");
-
- // 生成随机文件名
- string newName = GenerateRandomAndroidName(filePath);
-
- // 保存映射关系 (相对路径 + 原始文件名 -> 随机名)
- string key = Path.GetFileNameWithoutExtension(relativePath); // 可以保留目录信息
- string value = string.IsNullOrEmpty(relativeDir) ? newName : $"{relativeDir}/{newName}";
- string fileNameWithoutExt = Path.GetFileNameWithoutExtension(value);
- // mapping[key] = fileNameWithoutExt;
- mapping.Add(key, fileNameWithoutExt);
- // 目标路径
- string dstPath = Path.Combine(dstDir, value.Replace("/", Path.DirectorySeparatorChar.ToString()));
-
- // 确保目录存在
- string dstFolder = Path.GetDirectoryName(dstPath);
- if (!Directory.Exists(dstFolder)) Directory.CreateDirectory(dstFolder);
-
- // 复制文件
- File.Copy(filePath, dstPath);
- }
-
- Debug.Log("✅ Files copied and renamed (directory structure preserved)");
- }
-
- private static string GenerateMappingJson(Dictionary mapping)
- {
- var items = new List();
- foreach (var kv in mapping)
- {
- items.Add(new MappingItem { key = kv.Key, value = kv.Value });
- }
-
- MappingListWrapper wrapper = new MappingListWrapper { items = items };
- return JsonUtility.ToJson(wrapper, false);
- }
-
- [System.Serializable]
- private class MappingItem
- {
- public string key;
- public string value;
- }
-
- [System.Serializable]
- private class MappingListWrapper
- {
- public List