You've already forked Commercialization.topon
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 48130ad432 | |||
| 6d45d90190 | |||
| a59eef7cc7 |
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b60b708af5e340558538fb89bf1ad69
|
||||
guid: 12f339b796c324a02bb7cc6824674f46
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b97598ecf1ac41ae8a6e0eee94608f4
|
||||
guid: a2bc6da2b903e43a1b38fa69364a3d5b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fae71ee84b92049808278fa6136d7df6
|
||||
guid: ba89873589d1a4ee4b9f0bd831e49f3b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c93c0c14cd404be996bcf059100b463
|
||||
guid: 0c6aad9e5b90c4da7bd930d6f32d1904
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b26a8704722c46babeea74f3987c69d
|
||||
guid: ab130cb05ee6548fa9bcc3ce4853fcc3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56dcbba2145654405b16127bddded05a
|
||||
guid: 5fc8038ed89644a509b258232cdb4783
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61212f78425314ddf82ce67401332cbc
|
||||
guid: 10cd59c46c2a74f7d94432b405a111ab
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8eb2c48fff706415897ff05ee871d29b
|
||||
guid: 1d0ec14e9cebf477086653c3a9aaf7d1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f82d7548575e4785813857cc3af2560
|
||||
guid: 96dd9084d6bfb4d44b84a204d1ee3332
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1556c57dc2f9145beb17f8971ffc7d54
|
||||
guid: 7022bf2fbbc5849b59c2de39e55415d4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36fdba1e893634f0e996c56f9aaf8af4
|
||||
guid: dae8f0349900a43cc9479b887bca18dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 985c207868dc84dd8a02d16d2d203bdd
|
||||
guid: 5df19e9be8bea411e8de2926f39a78b7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5dfea32a3220f4ff0b52af1e0c9f0f37
|
||||
guid: c44a18df7c6184bfaa35163f571ad9f7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 449f93d5988674ac0bf3d01fce8b40af
|
||||
guid: 08d4d477e25294725acf10a60c0df944
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3cfc0715bf4e418c8185e81824a3951
|
||||
guid: a959ca9d08c7b4793b9a704f26b9e8ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9452d40d6d58a443a9de0a893dcd23c5
|
||||
guid: 91d346d3aa4ea44fe95d0a1bbdddd5ed
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 907d2c40069d74e4497ac4259e61a0b4
|
||||
guid: 59accedf6879f42d2a0eb25c8b9685ff
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3785b3f4f63d441b9964d109ad0c0eb1
|
||||
guid: b8eeae77a201a4945a5831246e4ffe68
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 765e71648fb324c22af60e7d4269b7f5
|
||||
guid: 08bbdf64d0b664135b1dca638fcb56cc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11dc3169fecba4718a711508c79ff3ea
|
||||
guid: 7b4f1081df8444a7981bd3c10559a908
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 899c4c12dc20d4847b2c902dbc6d083d
|
||||
guid: 7c9a00125c0e049fbb37b4b8be6e6d12
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -17,6 +17,12 @@ namespace AnyThinkAds.Api
|
||||
void didGetUserLocation(int location);
|
||||
}
|
||||
|
||||
public interface ATConsentDismissListener
|
||||
{
|
||||
void onConsentDismiss();
|
||||
}
|
||||
|
||||
|
||||
public interface ATGetAreaListener
|
||||
{
|
||||
void onArea(string area);
|
||||
@@ -130,6 +136,11 @@ namespace AnyThinkAds.Api
|
||||
client.showGDPRAuth();
|
||||
}
|
||||
|
||||
public static void showGDPRConsentDialog(ATConsentDismissListener listener)
|
||||
{
|
||||
client.showGDPRConsentDialog(listener);
|
||||
}
|
||||
|
||||
public static void setLogDebug(bool isDebug)
|
||||
{
|
||||
client.setLogDebug(isDebug);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5459d05d6e7d74bddbfdfd593624c02a
|
||||
guid: 8f3e3d1ca97154cfe8734a75b6f15dcd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d638f5a77e3fb44589978034d550ae48
|
||||
guid: cf1f418115a244459be8c842af74351d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a239d301e22f4ab9bb1fab7a8b7be3a
|
||||
guid: 1aeba014e6d0a4ba7859676b916bd9dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 303f9d84876fe468d8800abe78fc59c1
|
||||
guid: 4e2ccdf9b6e604a65908815706e9f051
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 481cb536df3414d5996de09dc3d93f27
|
||||
guid: 7cc7f1b6c7bd04e3789079e05044fddb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea61e5a90a3874a97bb25388556a634f
|
||||
guid: f1746e786eb1d48498da8bf445317ac6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb52de4904a0241deacbc13164605b9a
|
||||
guid: faac0e5085e80410cb05a83ad609e307
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ca423c96597e414a9696e534160eaa6
|
||||
guid: 1a9a493b6ff364c968f3b331051b4218
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca2cc2e235e7f4c6b9d6df05890fee83
|
||||
guid: f255243d0b71f4e5e974404c8c74659f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a883f68b421b746b4b386d2323b8bd70
|
||||
guid: 3f931cd1cf2284ec895c9b642fb55003
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9447b44b60e964f1fb25c2f09c31e178
|
||||
guid: dc721c33736c04c45a3d9bca70938761
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace AnyThinkAds.Common
|
||||
void getUserLocation(ATGetUserLocationListener listener);
|
||||
void setGDPRLevel(int level);
|
||||
void showGDPRAuth();
|
||||
void showGDPRConsentDialog(ATConsentDismissListener listener);
|
||||
void addNetworkGDPRInfo(int networkType, string mapJson);
|
||||
void setChannel(string channel);
|
||||
void setSubChannel(string subchannel);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c9f6614fa9d340f6aac85b26808f013
|
||||
guid: 9a96dc1eba48941ed9e076cddbb59167
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a4b7cb850fe447f9980f860ad314b7a
|
||||
guid: ceb7b4f4fa4b14b2ebcccba3fde080bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -146,6 +146,7 @@ namespace AnyThinkAds
|
||||
public void getUserLocation(ATGetUserLocationListener listener){ }
|
||||
public void setGDPRLevel(int level){ }
|
||||
public void showGDPRAuth(){ }
|
||||
public void showGDPRConsentDialog(ATConsentDismissListener listener){ }
|
||||
public void addNetworkGDPRInfo(int networkType, string mapJson){ }
|
||||
public void setChannel(string channel){ }
|
||||
public void setSubChannel(string subchannel){ }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 981b262fb83e54eeabfd486e41f29be2
|
||||
guid: 1ada6dd9eac1445219ee66b6f0ce27af
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90dbd7456e6124557975885ffe10f3a9
|
||||
guid: 92072aedc3bed4adba2e62dcd10c4fa1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f3cedb25774f4e35812850b16bdc513
|
||||
guid: 5503a4dfdfdae4c049ebf256603214f4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29efa7f20db6a498dac09b319bda9933
|
||||
guid: 5123daaa0aef24cc38feb675ab999e45
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AnyThinkAds.Api;
|
||||
|
||||
namespace AnyThinkAds.Android
|
||||
{
|
||||
public class ATGDPRConsentDismissListener : AndroidJavaProxy
|
||||
{
|
||||
ATConsentDismissListener mListener;
|
||||
public ATGDPRConsentDismissListener(ATConsentDismissListener listener): base("com.anythink.unitybridge.sdkinit.SDKConsentDismissListener")
|
||||
{
|
||||
mListener = listener;
|
||||
}
|
||||
|
||||
public void onConsentDismiss()
|
||||
{
|
||||
if (mListener != null)
|
||||
{
|
||||
mListener.onConsentDismiss();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1817e3153be5d4a25bede8f80ec538fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c850120fc39e4e98a4eddd0401c9dd6
|
||||
guid: 193da1251899744ba827d58296b854fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf17f096c3ea74e6c844e4853edaa7a4
|
||||
guid: fcf851441fece473ebf4b8fb046ba16f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1bd144bb8c54a4fbbaecdf49ee696391
|
||||
guid: 55d34ac1b08d14075a94c32456dda57d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2903f5baf1ad44538c552d99ef462b2
|
||||
guid: 675ff3d3366524e6d8bf441095e94885
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b62935f38b76841139a556d293fc6af1
|
||||
guid: 66e94a1b9eb0d4f3dbbf0f97857ee4c6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5fd0fd9d36b8346598b43cd3ee66060c
|
||||
guid: ae61f6450a8534df58e3c6bea609cad1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -85,6 +85,21 @@ namespace AnyThinkAds.Android
|
||||
}
|
||||
}
|
||||
|
||||
public void showGDPRConsentDialog(ATConsentDismissListener listener)
|
||||
{
|
||||
Debug.Log ("showGDPRConsentDialog....");
|
||||
ATGDPRConsentDismissListener gdprConsentDismissListener = new ATGDPRConsentDismissListener(listener);
|
||||
try{
|
||||
if (this.sdkInitHelper != null) {
|
||||
this.sdkInitHelper.Call ("showGDPRConsentDialog", gdprConsentDismissListener);
|
||||
}
|
||||
}catch(System.Exception e){
|
||||
System.Console.WriteLine("Exception caught: {0}", e);
|
||||
Debug.Log ("ATSDKAPIClient : error."+e.Message);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void setChannel(string channel)
|
||||
{
|
||||
Debug.Log("setChannel....");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1171cfa63deb643d9a1c39bab8a00929
|
||||
guid: 42480fbac11d04facb4c6d78db032974
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5d900a3e2db7482a8f8ad05737decd3
|
||||
guid: fc526cb4cac504d87ac5b1b33902ce40
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 30779b649671a471c83e73ac95e9ec79
|
||||
guid: 38675c03b65cd47e3be46e74701ae713
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48f3ab04729004d958850a6c063f1980
|
||||
guid: b6f578b8879524ead90547b51cacbabb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b8ba9d3acdab4b11a91b5d592e20160
|
||||
guid: fafa0f42a77934ec1aa34943fa9beecb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 083e1df4f2bfe4088a98d20c9340df49
|
||||
guid: 1ddd325e170ee4e0b8007a1a7d1e0a74
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbe0fbc7b367d4e63b0017b9eec6cddd
|
||||
guid: 1eba5b4dd12cb44b4bfc1d988ec40a36
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -12,6 +12,8 @@ namespace AnyThinkAds.iOS {
|
||||
static private ATGetUserLocationListener locationListener;
|
||||
static private ATGetAreaListener areaListener;
|
||||
|
||||
static private ATConsentDismissListener umpListener;
|
||||
|
||||
public ATSDKAPIClient () {
|
||||
Debug.Log("Unity:ATSDKAPIClient::ATSDKAPIClient()");
|
||||
}
|
||||
@@ -43,6 +45,13 @@ namespace AnyThinkAds.iOS {
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallback(typeof(Func<string, int>))]
|
||||
static public int DidUMP(string location)
|
||||
{
|
||||
if (umpListener != null) { umpListener.onConsentDismiss(); }
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallback(typeof(Func<string, int>))]
|
||||
static public int GetAreaInfo(string msg)
|
||||
{
|
||||
@@ -81,10 +90,17 @@ namespace AnyThinkAds.iOS {
|
||||
|
||||
public void showGDPRAuth() {
|
||||
Debug.Log("Unity:ATSDKAPIClient::showGDPRAuth()");
|
||||
ATManager.ShowGDPRAuthDialog();
|
||||
// ATManager.showGDPRAuth();
|
||||
}
|
||||
|
||||
public void setPurchaseFlag() {
|
||||
public void showGDPRConsentDialog(ATConsentDismissListener listener)
|
||||
{
|
||||
Debug.Log("Unity:ATSDKAPIClient::showGDPRConsentDialog()");
|
||||
ATSDKAPIClient.umpListener = listener;
|
||||
ATManager.showGDPRConsentDialog(DidUMP);
|
||||
}
|
||||
|
||||
public void setPurchaseFlag() {
|
||||
ATManager.setPurchaseFlag();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9ec2cfb53d9b401f82480607a59e8e9
|
||||
guid: 4a7d69c9f558e46c98341dfc1bc57ca1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a33306df39ab941a197485f5c3e6fcb3
|
||||
guid: 1f0c9795994ed4061b011d3513a6adce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58082d61418354016aed95f4b3e46582
|
||||
guid: 8993b1a1b54d44b13b53f95199149f02
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a2df6de5e3a24cf28ac16ead6649bd1
|
||||
guid: ec2e2e53ab94c4b128b2c42212f6329d
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37ba9b7ff061d4ddd87073240d8a3962
|
||||
guid: 6e2c5a04f2264475daa844ca2bd3b252
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d135ed70f7ae64ca3974325b813941a3
|
||||
guid: 86380dcd812ab438cb2c2555b18f7611
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a670c7a6d0134ee2bd8c721fb1c0799
|
||||
guid: ede50b2779e4c47739271e7bc30f2598
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d77cd4de7860c492c8209b566af75147
|
||||
guid: cc7aa85baa5154f9ba64fd37f76a0d79
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0084a9d6950b45d2a3c68228ad71ea6
|
||||
guid: fd3d5314272da4126b166640ab3dcee8
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb4f4c173602a49be90b8790c297b6d8
|
||||
guid: 492c5b484db744b6087232216007aedb
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e68d78dfe048e44ad90beb377bfcafcd
|
||||
guid: 35f92a7af1cc942ee9c8e30cc8f1cd5d
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -200,8 +200,7 @@ UIEdgeInsets SafeAreaInsets_ATUnityNative() {
|
||||
kATNativeAdConfigurationContextNetworkLogoViewFrameKey:[NSValue valueWithCGRect:CGRectMake(CGRectGetWidth(configuration.ADFrame) - 54.0f, CGRectGetHeight(configuration.ADFrame) - 18.0f, 54.0f, 18.0f)]
|
||||
};
|
||||
|
||||
|
||||
ATNativeAdOffer *offer = [[ATAdManager sharedManager] getNativeAdOfferWithPlacementID:placementID];
|
||||
ATNativeAdOffer *offer = [[ATAdManager sharedManager] getNativeAdOfferWithPlacementID:placementID scene:extraDict[kATUnityUtilitiesAdShowingExtraScenarioKey]];
|
||||
|
||||
ATNativeSelfRenderView *selfRenderView = [self getSelfRenderViewOffer:offer withMetrics:parsedMetrics];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db52f669f3e0044b9a7430805e25d86a
|
||||
guid: 9b7d0630ed9b2491a974466fd11bce29
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 13941195b5cc54944b0997be835d3592
|
||||
guid: 448e708c0980148298bcf70228028566
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f561b3d93a743426faa85303f6b4a878
|
||||
guid: ce42b5dfb2e9b49ff8e98e5401410ce9
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 401f817ea7ca545d59ec5e9224b8618f
|
||||
guid: dc495f05548a84943a7c574227eca542
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4cb07de3afc5542389f01caedcb8c7a0
|
||||
guid: 08bf6f78a022c41e48ac4c28c42d9032
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 632398635319749f79c0e1a6da11698a
|
||||
guid: 35568f88b0ee1472daea65783f251f13
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98286377884d24ff2b3ac3aa5d38c4e5
|
||||
guid: ded4f0e6bc02d42569871e66507c2403
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28a7ba6a7ec01457ab3debf6a91beeac
|
||||
guid: 118e91473cd53442f9c919c52ea7ce7a
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -101,6 +101,8 @@ char * at_get_string_message_for_unity(const char *msg, void(*callback)(const ch
|
||||
return [NSNumber numberWithBool:[self subjectToGDPR]];
|
||||
} else if ([selector isEqualToString:@"presentDataConsentDialog"]) {
|
||||
[self presentDataConsentDialog];
|
||||
} else if ([selector isEqualToString:@"showGDPRConsentDialog:"]) {
|
||||
[self showGDPRConsentDialog:callback];
|
||||
} else if ([selector isEqualToString:@"getUserLocation:"]) {
|
||||
[self getUserLocation:callback];
|
||||
} else if ([selector isEqualToString:@"setPurchaseFlag"]) {
|
||||
@@ -162,6 +164,12 @@ char * at_get_string_message_for_unity(const char *msg, void(*callback)(const ch
|
||||
}];
|
||||
}
|
||||
|
||||
-(void) showGDPRConsentDialog:(void(*)(const char*))callback {
|
||||
[[ATAPI sharedInstance] showGDPRConsentDialogInViewController:[UIApplication sharedApplication].delegate.window.rootViewController dismissalCallback:^{
|
||||
if (callback != NULL) { callback(@"".UTF8String); }
|
||||
}];
|
||||
}
|
||||
|
||||
-(void) getUserLocation:(void(*)(const char*))callback {
|
||||
[[ATAPI sharedInstance] getUserLocationWithCallback:^(ATUserLocation location) {
|
||||
if (callback != NULL) { callback(@(location).stringValue.UTF8String); }
|
||||
@@ -230,27 +238,28 @@ char * at_get_string_message_for_unity(const char *msg, void(*callback)(const ch
|
||||
*
|
||||
*/
|
||||
-(void) setDataConsent:(NSString*)consentJsonString network:(NSNumber*)network {
|
||||
NSLog(@"constenJsonString = %@, network = %@", consentJsonString, network);
|
||||
NSDictionary *networks = @{@1:kATNetworkNameFacebook, @2:kATNetworkNameAdmob, @3:kATNetworkNameInmobi, @4:kATNetworkNameFlurry, @5:kATNetworkNameApplovin, @6:kATNetworkNameMintegral, @8:kATNetworkNameGDT, @9:kATNetworkNameChartboost, @10:kATNetworkNameTapjoy, @11:kATNetworkNameIronSource, @12:kATNetworkNameUnityAds, @13:kATNetworkNameVungle, @14:kATNetworkNameAdColony, @1:kATNetworkNameOneway, @18:kATNetworkNameMobPower, @20:kATNetworkNameYeahmobi, @21:kATNetworkNameAppnext, @22:kATNetworkNameBaidu};
|
||||
if ([networks containsObjectForKey:network]) {
|
||||
if (([consentJsonString isKindOfClass:[NSString class]] && [consentJsonString dataUsingEncoding:NSUTF8StringEncoding] != nil)) {
|
||||
NSDictionary *consentDict = [NSJSONSerialization JSONObjectWithData:[consentJsonString dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingAllowFragments error:nil];
|
||||
_consentInfo[networks[network]] = [consentDict containsObjectForKey:@"value"] ? consentDict[@"value"] : consentDict;
|
||||
} else {
|
||||
[_consentInfo removeObjectForKey:networks[network]];
|
||||
}
|
||||
NSLog(@"consentInfo = %@", _consentInfo);
|
||||
if ([_consentInfo[kATNetworkNameMintegral] isKindOfClass:[NSDictionary class]]) {
|
||||
NSMutableDictionary<NSNumber*, NSNumber*>* mintegralInfo = [NSMutableDictionary<NSNumber*, NSNumber*> dictionary];
|
||||
[_consentInfo[kATNetworkNameMintegral] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
||||
if ([key respondsToSelector:@selector(integerValue)] && [obj respondsToSelector:@selector(integerValue)]) mintegralInfo[@([key integerValue])] = @([obj integerValue]);
|
||||
}];
|
||||
NSLog(@"consentInfo = %@, %@", [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allKeys[0] class], [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allValues[0] class]);
|
||||
_consentInfo[kATNetworkNameMintegral] = mintegralInfo;
|
||||
NSLog(@"consentInfo = %@, %@", [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allKeys[0] class], [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allValues[0] class]);
|
||||
}
|
||||
[[ATAPI sharedInstance] setNetworkConsentInfo:_consentInfo];
|
||||
}
|
||||
NSLog(@"API was deprecated, please use SetDataConsent(int consent)");
|
||||
// NSLog(@"constenJsonString = %@, network = %@", consentJsonString, network);
|
||||
// NSDictionary *networks = @{@1:kATNetworkNameFacebook, @2:kATNetworkNameAdmob, @3:kATNetworkNameInmobi, @4:kATNetworkNameFlurry, @5:kATNetworkNameApplovin, @6:kATNetworkNameMintegral, @8:kATNetworkNameGDT, @9:kATNetworkNameChartboost, @10:kATNetworkNameTapjoy, @11:kATNetworkNameIronSource, @12:kATNetworkNameUnityAds, @13:kATNetworkNameVungle, @14:kATNetworkNameAdColony, @1:kATNetworkNameOneway, @18:kATNetworkNameMobPower, @20:kATNetworkNameYeahmobi, @21:kATNetworkNameAppnext, @22:kATNetworkNameBaidu};
|
||||
// if ([networks containsObjectForKey:network]) {
|
||||
// if (([consentJsonString isKindOfClass:[NSString class]] && [consentJsonString dataUsingEncoding:NSUTF8StringEncoding] != nil)) {
|
||||
// NSDictionary *consentDict = [NSJSONSerialization JSONObjectWithData:[consentJsonString dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingAllowFragments error:nil];
|
||||
// _consentInfo[networks[network]] = [consentDict containsObjectForKey:@"value"] ? consentDict[@"value"] : consentDict;
|
||||
// } else {
|
||||
// [_consentInfo removeObjectForKey:networks[network]];
|
||||
// }
|
||||
// NSLog(@"consentInfo = %@", _consentInfo);
|
||||
// if ([_consentInfo[kATNetworkNameMintegral] isKindOfClass:[NSDictionary class]]) {
|
||||
// NSMutableDictionary<NSNumber*, NSNumber*>* mintegralInfo = [NSMutableDictionary<NSNumber*, NSNumber*> dictionary];
|
||||
// [_consentInfo[kATNetworkNameMintegral] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
||||
// if ([key respondsToSelector:@selector(integerValue)] && [obj respondsToSelector:@selector(integerValue)]) mintegralInfo[@([key integerValue])] = @([obj integerValue]);
|
||||
// }];
|
||||
// NSLog(@"consentInfo = %@, %@", [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allKeys[0] class], [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allValues[0] class]);
|
||||
// _consentInfo[kATNetworkNameMintegral] = mintegralInfo;
|
||||
// NSLog(@"consentInfo = %@, %@", [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allKeys[0] class], [((NSDictionary*)_consentInfo[kATNetworkNameMintegral]).allValues[0] class]);
|
||||
// }
|
||||
// [[ATAPI sharedInstance] setNetworkConsentInfo:_consentInfo];
|
||||
// }
|
||||
}
|
||||
|
||||
-(void) setExcludeBundleIdArray:(NSString*)bundleIds {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 59cb717d3e61243b1b31f4c66dc5c988
|
||||
guid: 2d7de97c29c484bb4b223792bca82a2e
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb3693d55ac954074a5926d522c192dc
|
||||
guid: a78f0aaba1b554b47a6279870c478713
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f3619463364e42fcbf1f37b11942f5b
|
||||
guid: 975cee5a14bff41e8b49fe463fca50bf
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2914dc8221944f11b55b21b320f722a
|
||||
guid: 2e1ff5345df9f4b7091c46fa2dd59f9c
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 71a5913f35ee24951a39655edd55ad4e
|
||||
guid: 183257e53ddbe437b8527d5487310665
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e918ed2f8c37c42c1acfd0231932d496
|
||||
guid: a89e56ab43cc6424183b41bffb8f7644
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a2e0710ad925468d9be90e176f7b2c9
|
||||
guid: c7068c64efc7844d28c09eb3fe5016a1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -127,4 +127,10 @@ public class ATManager {
|
||||
ATUnityCBridge.SendMessageToC("ATUnityManager", "showDebuggerUI", null);
|
||||
}
|
||||
|
||||
public static void showGDPRConsentDialog(Func<string, int> callback)
|
||||
{
|
||||
Debug.Log("Unity:ATManager::showGDPRConsentDialog()");
|
||||
ATUnityCBridge.SendMessageToCWithCallBack("ATUnityManager", "showGDPRConsentDialog:", new object[] { }, callback);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 945865c1cf8744a1ba3c8586c2c05acd
|
||||
guid: 4dee89fd761954cf7935d37937e888a7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10ca1153705f449fbb2af0871a9f7256
|
||||
guid: ef4e77b096b0b4403980f80eb0ca14a3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b91143ddda52c45e5be65ea97911b09f
|
||||
guid: 66718b9acc63e42318f62317987114a5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d557255f9008040b89f0ceb4e652b331
|
||||
guid: 4ce4411a38fcf4ff7a436fbd0ba06dc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eab3cb8dce3804f09892093ec4e88e75
|
||||
guid: 8f2ddc358f3a540c2b5d4b9570228c0c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4af69b3f3c3a843869ee76a8c2f43e8e
|
||||
guid: 9ee29a59d3e464da5ad08392d08ff860
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 063c2379fd28a4ea9b8113386f6e2a94
|
||||
guid: 763b6ccc1c6f8412a9e710befb0b1c1c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e527773949304897adb1e66604eba04
|
||||
guid: 00d7f6a296a714fb3a128db33940537d
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
||||
</repositories>
|
||||
|
||||
<androidPackage spec="com.pangle.cn:mediation-sdk:5.8.0.7"/>
|
||||
<androidPackage spec="com.pangle.cn:mediation-sdk:5.9.2.8"/>
|
||||
|
||||
</androidPackages>
|
||||
</dependencies>
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0b639822d913a42d08a8da694163cad7
|
||||
guid: 3e0e84c2aca5e4de3aa3b1b3bb33a7b6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc7e166a22fcf47c9984655146dc8c15
|
||||
guid: 1b9d8e4f1ceb34f228f77a0f0d46091a
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user