update core

This commit is contained in:
2023-09-04 16:57:46 +08:00
parent 0ff31be7c4
commit 6567d59019
394 changed files with 5659 additions and 7144 deletions

View File

@@ -0,0 +1,95 @@
using System;
using UnityEngine;
namespace AnyThinkAds.Common
{
public class ATLogger
{
private static bool isDebug = false;
public static bool IsDebug
{
get {
return isDebug;
}
set {
isDebug = value;
}
}
// public static void Log(string msg)
// {
// Log(msg, null);
// }
// public static void Log(string format, object obj)
// {
// Log(format, obj, null);
// }
public static void Log(string format, object obj1 = null, object obj2 = null)
{
if (!isDebug) {
return;
}
try {
if (obj1 == null && obj2 == null)
{
Debug.Log(format);
}
else if (obj1 != null && obj2 == null)
{
Debug.Log(String.Format(format, obj1));
}
else if (obj1 == null && obj2 != null)
{
Debug.Log(String.Format(format, obj2));
}
else {
Debug.Log(String.Format(format, obj1, obj2));
}
} catch(Exception e)
{
Debug.LogError("Log error: " + e.Message);
}
}
// public static void LogError(string msg)
// {
// LogError(msg, null);
// }
// public static void LogError(string format, object obj)
// {
// LogError(format, obj, null);
// }
public static void LogError(string format, object obj1 = null, object obj2 = null)
{
if (!isDebug) {
return;
}
try {
if (obj1 == null && obj2 == null)
{
Debug.LogError(format);
}
else if (obj1 != null && obj2 == null)
{
Debug.LogError(String.Format(format, obj1));
}
else if (obj1 == null && obj2 != null)
{
Debug.LogError(String.Format(format, obj2));
}
else {
Debug.LogError(String.Format(format, obj1, obj2));
}
} catch(Exception e)
{
Debug.LogError("Log error: " + e.Message);
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7bfb781b1a104468281d3a841725635c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AnyThinkAds.Api;
namespace AnyThinkAds.Common
{
public interface IATSplashAdClient : IATSplashEvents
{
// void loadSplashAd(string placementId, string mapJson);
void loadSplashAd(string placementId, int fetchAdTimeout, string defaultAdSourceConfig, string mapJson);
void setListener(ATSplashAdListener listener);
bool hasSplashAdReady(string placementId);
string checkAdStatus(string placementId);
void showSplashAd(string placementId, string mapJson);
string getValidAdCaches(string placementId);
void entryScenarioWithPlacementID(string placementId, string scenarioID);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 59530a01ad60b463e8097f851649c20d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: