You've already forked Commercialization.topon
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3761057b3e | |||
| 30da59caa8 | |||
| bc0f1d72c1 | |||
| c56a4667ae | |||
| da2d233cee |
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b60b708af5e340558538fb89bf1ad69
|
||||
guid: c75a10c31aaa348b4a030c4caabc60bd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b97598ecf1ac41ae8a6e0eee94608f4
|
||||
guid: 002e19684018e4c0287914f3970da311
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fae71ee84b92049808278fa6136d7df6
|
||||
guid: b9db3427a8881406f9b7da625247c0e4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c93c0c14cd404be996bcf059100b463
|
||||
guid: 70dd039af17f84740841c936f5021082
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b26a8704722c46babeea74f3987c69d
|
||||
guid: 357112570f17745ec8287700969b5857
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56dcbba2145654405b16127bddded05a
|
||||
guid: f397e1571653b4f909de35ecd27e25a6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61212f78425314ddf82ce67401332cbc
|
||||
guid: baba4e8729e3d4e99bb742620b957127
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8eb2c48fff706415897ff05ee871d29b
|
||||
guid: 401f3f72eaa384ecebf7fb06d380c9f3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f82d7548575e4785813857cc3af2560
|
||||
guid: 987cbef3a8a42464e9fe32624f08ec82
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1556c57dc2f9145beb17f8971ffc7d54
|
||||
guid: f5a6614e3827f44edb1c7a5412cf6863
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36fdba1e893634f0e996c56f9aaf8af4
|
||||
guid: 9dddccc0f4402419eba44458d9075782
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 985c207868dc84dd8a02d16d2d203bdd
|
||||
guid: 52d5dd611a7ba4e8ca6c688ad4987bb5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5dfea32a3220f4ff0b52af1e0c9f0f37
|
||||
guid: 6f645156118af4f77934a7b79743cb00
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 449f93d5988674ac0bf3d01fce8b40af
|
||||
guid: eaad21e4abd854be3a34341ea0118fa7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3cfc0715bf4e418c8185e81824a3951
|
||||
guid: 884e06e3cad554df0af477f0211fd97e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9452d40d6d58a443a9de0a893dcd23c5
|
||||
guid: 3f2571c1daafd47a4a9b39d148e67184
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 907d2c40069d74e4497ac4259e61a0b4
|
||||
guid: dae05acc2ea674329944023bb798f046
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3785b3f4f63d441b9964d109ad0c0eb1
|
||||
guid: 911d845f67e694a038cc2d85c86329d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 765e71648fb324c22af60e7d4269b7f5
|
||||
guid: 07584f2ac39714cafbf91dc3f7199f37
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11dc3169fecba4718a711508c79ff3ea
|
||||
guid: 88a35eb670a0e4da2978eda939b8d14d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 899c4c12dc20d4847b2c902dbc6d083d
|
||||
guid: 167fb755fd59444ef864ebabd898ff7b
|
||||
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: 01222258a75e14c76a2b7803c24cd0ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d638f5a77e3fb44589978034d550ae48
|
||||
guid: 8c85ccef2c75348d2a824173f5c6641c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a239d301e22f4ab9bb1fab7a8b7be3a
|
||||
guid: c5196f0fee3834f3f9a1728ed2f57b13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 303f9d84876fe468d8800abe78fc59c1
|
||||
guid: d16e9791f346240b58344d4d6372b4fc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 481cb536df3414d5996de09dc3d93f27
|
||||
guid: cb4b69d48493d4554a5c5fa5c5339f39
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea61e5a90a3874a97bb25388556a634f
|
||||
guid: b50fc48df837a46fe8cbe86f4eae7ffd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb52de4904a0241deacbc13164605b9a
|
||||
guid: cee7c1bbb0ef941d188379c77d780457
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ca423c96597e414a9696e534160eaa6
|
||||
guid: c27b85cb143584d0ba8801179cbaea43
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca2cc2e235e7f4c6b9d6df05890fee83
|
||||
guid: a30e2e904b2b74a0eb28f19bd328f5b7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a883f68b421b746b4b386d2323b8bd70
|
||||
guid: 9be0d831a3fc3460b8f295348f4d5a1c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9447b44b60e964f1fb25c2f09c31e178
|
||||
guid: 9eb74e818b581419b867c18f564accfa
|
||||
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: 43b209adee5c64bce84d3188ebc0f0b1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a4b7cb850fe447f9980f860ad314b7a
|
||||
guid: 4f7a8598d743e4ba882400e6f205c5dc
|
||||
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: cbcf690f571ee45478aae3f6ef73b46d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90dbd7456e6124557975885ffe10f3a9
|
||||
guid: 80e0331161ce748b684c7b3465890805
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f3cedb25774f4e35812850b16bdc513
|
||||
guid: 8e468840b1c864035bf7429b6f79c60f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29efa7f20db6a498dac09b319bda9933
|
||||
guid: 09704d4a9a249454ca28515f8dfd3a07
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
25
AnyThinkAds/Platform/Android/ATGDPRConsentDismissListener.cs
Normal file
25
AnyThinkAds/Platform/Android/ATGDPRConsentDismissListener.cs
Normal file
@@ -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: 6e5096ebc4e1742698452ec60f74b58b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c850120fc39e4e98a4eddd0401c9dd6
|
||||
guid: c6f71db9f63744a59be5df53303a706b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf17f096c3ea74e6c844e4853edaa7a4
|
||||
guid: ddf8d9d3b1ebb4f21b2c2c3e02b5845e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1bd144bb8c54a4fbbaecdf49ee696391
|
||||
guid: f0ac44483a8564e5d9428ed8267d913b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2903f5baf1ad44538c552d99ef462b2
|
||||
guid: dd1ce5cf512924c57846d8f3f379fcf8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b62935f38b76841139a556d293fc6af1
|
||||
guid: cd0149348eca7449f8cbc48ab9e2498c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5fd0fd9d36b8346598b43cd3ee66060c
|
||||
guid: 7c61d4a12a1bc4447a211961cc6867ac
|
||||
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: 574bd4316cdbf4b118c89ffa1e5f086d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5d900a3e2db7482a8f8ad05737decd3
|
||||
guid: 078be7445a3c3461a811882dd62c1602
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 30779b649671a471c83e73ac95e9ec79
|
||||
guid: e574a07ae76c342a8bdc1dea719b9ad9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48f3ab04729004d958850a6c063f1980
|
||||
guid: 83d182fe17f2f414987f2538906c20e5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b8ba9d3acdab4b11a91b5d592e20160
|
||||
guid: d6530769c410e488cb8d3a16a70551fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 083e1df4f2bfe4088a98d20c9340df49
|
||||
guid: cf2ded1709e664d5a8b2f75a9e16dca4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbe0fbc7b367d4e63b0017b9eec6cddd
|
||||
guid: b84fb181c2949404bb596489b45717c9
|
||||
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: b6985e2d8821a4acaaa03772b2679da3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a33306df39ab941a197485f5c3e6fcb3
|
||||
guid: a127654c3c9934294aa3dad0d5d01bc8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58082d61418354016aed95f4b3e46582
|
||||
guid: 329be1a5f047c4064b83e8e227cab255
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a2df6de5e3a24cf28ac16ead6649bd1
|
||||
guid: 51884bd21fdee4c22861d1f2e3737ef5
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37ba9b7ff061d4ddd87073240d8a3962
|
||||
guid: f7e50faa4b66a45d4beb3292142bbbe3
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d135ed70f7ae64ca3974325b813941a3
|
||||
guid: b43a0ea2add1e42719661c1efe22f6f0
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a670c7a6d0134ee2bd8c721fb1c0799
|
||||
guid: e41c93f1d65af414a870503c680c33b6
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d77cd4de7860c492c8209b566af75147
|
||||
guid: 42a35ed2985164a3b945006b76e367cb
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0084a9d6950b45d2a3c68228ad71ea6
|
||||
guid: dc580f04ce67f437a88461f335105325
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb4f4c173602a49be90b8790c297b6d8
|
||||
guid: 98379c144cb4f4245b6a80c423c55ffa
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e68d78dfe048e44ad90beb377bfcafcd
|
||||
guid: 3f378118b531c4a4fa06102812235b02
|
||||
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: 3bcd29d3da90a41f294ae578bab3af13
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 13941195b5cc54944b0997be835d3592
|
||||
guid: 118f33a76ed81440280824ff7513bb12
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f561b3d93a743426faa85303f6b4a878
|
||||
guid: 9bdc3e67b94b143a8821f928dec0de4b
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 401f817ea7ca545d59ec5e9224b8618f
|
||||
guid: f823a545ce85344148ea239596a83a50
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4cb07de3afc5542389f01caedcb8c7a0
|
||||
guid: 23b3dce638f4b485c93f9fb2fa809d88
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 632398635319749f79c0e1a6da11698a
|
||||
guid: b0d6519543b154bc396006aff1bf5247
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98286377884d24ff2b3ac3aa5d38c4e5
|
||||
guid: 273cc637a0e864629bf318f9aeea45cd
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28a7ba6a7ec01457ab3debf6a91beeac
|
||||
guid: 4b8ab3430763f48c999ef3f68eec1aee
|
||||
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: 2cbcf061d486c4da192c7bb5d73c1778
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb3693d55ac954074a5926d522c192dc
|
||||
guid: ed743e455c2ab46fba88245fa08fb79a
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f3619463364e42fcbf1f37b11942f5b
|
||||
guid: d97e68496c47c44719d126f815d0e606
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2914dc8221944f11b55b21b320f722a
|
||||
guid: dfa8f30fcaa004aa5bd38772d48cf4b4
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 71a5913f35ee24951a39655edd55ad4e
|
||||
guid: bb5d6de79978a402a94b11337e8c75e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e918ed2f8c37c42c1acfd0231932d496
|
||||
guid: 14df6ab9442184e8baf711beae78c59d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a2e0710ad925468d9be90e176f7b2c9
|
||||
guid: b3085281fb9ba45f4ab34ad7665ab322
|
||||
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: 5d137e79bd0184b1e8e7d0c4831ed6cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10ca1153705f449fbb2af0871a9f7256
|
||||
guid: bfbf77fe7c23442e6a389314ed248820
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b91143ddda52c45e5be65ea97911b09f
|
||||
guid: 4256cead974b048859394b1956406b72
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d557255f9008040b89f0ceb4e652b331
|
||||
guid: 90baa28b8a86a4833b95352b6372d7e0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eab3cb8dce3804f09892093ec4e88e75
|
||||
guid: 8c475a7f6b75147f4ae360b704a4fed5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4af69b3f3c3a843869ee76a8c2f43e8e
|
||||
guid: 2bc47912295f64dd7b23bbebec70545a
|
||||
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: 0cb73db20daa54b93b1e944e6aac6730
|
||||
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: 367810073798f482c89ef670d09b8bc2
|
||||
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