增加sdk
@@ -1,3 +1,8 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b9fa183d82b44f6795290513d09d9522
|
guid: b9fa183d82b44f6795290513d09d9522
|
||||||
timeCreated: 1730188675
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace AppsFlyerSDK
|
||||||
|
{
|
||||||
|
public enum MediationNetwork : ulong
|
||||||
|
{
|
||||||
|
GoogleAdMob = 1,
|
||||||
|
IronSource = 2,
|
||||||
|
ApplovinMax = 3,
|
||||||
|
Fyber = 4,
|
||||||
|
Appodeal = 5,
|
||||||
|
Admost = 6,
|
||||||
|
Topon = 7,
|
||||||
|
Tradplus = 8,
|
||||||
|
Yandex = 9,
|
||||||
|
ChartBoost = 10,
|
||||||
|
Unity = 11,
|
||||||
|
ToponPte = 12,
|
||||||
|
Custom = 13,
|
||||||
|
DirectMonetization = 14
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class AdRevenueScheme
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* code ISO 3166-1 format
|
||||||
|
*/
|
||||||
|
public const string COUNTRY = "country";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID of the ad unit for the impression
|
||||||
|
*/
|
||||||
|
public const string AD_UNIT = "ad_unit";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the ad
|
||||||
|
*/
|
||||||
|
public const string AD_TYPE = "ad_type";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID of the ad placement for the impression
|
||||||
|
*/
|
||||||
|
public const string PLACEMENT = "placement";
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
// Data class representing ad revenue information.
|
||||||
|
//
|
||||||
|
// @property monetizationNetwork The name of the network that monetized the ad.
|
||||||
|
// @property mediationNetwork An instance of MediationNetwork representing the mediation service used.
|
||||||
|
// @property currencyIso4217Code The ISO 4217 currency code describing the currency of the revenue.
|
||||||
|
// @property eventRevenue The amount of revenue generated by the ad.
|
||||||
|
/// </summary>
|
||||||
|
public class AFAdRevenueData
|
||||||
|
{
|
||||||
|
public string monetizationNetwork { get; private set; }
|
||||||
|
public MediationNetwork mediationNetwork { get; private set; }
|
||||||
|
public string currencyIso4217Code { get; private set; }
|
||||||
|
public double eventRevenue { get; private set; }
|
||||||
|
|
||||||
|
public AFAdRevenueData(string monetization, MediationNetwork mediation, string currency, double revenue)
|
||||||
|
{
|
||||||
|
monetizationNetwork = monetization;
|
||||||
|
mediationNetwork = mediation;
|
||||||
|
currencyIso4217Code = currency;
|
||||||
|
eventRevenue = revenue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 409fe14211f31433da09f5b4bd5467b9
|
guid: bfaf3c472135a4349a780a0ea35a0b74
|
||||||
labels:
|
|
||||||
- al_max
|
|
||||||
- al_max_export_path-MaxSdk/Scripts/MaxTargetingData.cs
|
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@@ -10,24 +10,19 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
//
|
/// Purchase details class matching Android SDK AFPurchaseDetails
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AFPurchaseDetailsAndroid
|
public class AFPurchaseDetailsAndroid
|
||||||
|
|
||||||
{
|
{
|
||||||
public AFPurchaseType purchaseType { get; private set; }
|
public AFPurchaseType purchaseType { get; private set; }
|
||||||
public string purchaseToken { get; private set; }
|
public string purchaseToken { get; private set; }
|
||||||
public string productId { get; private set; }
|
public string productId { get; private set; }
|
||||||
public string price { get; private set; }
|
|
||||||
public string currency { get; private set; }
|
|
||||||
|
|
||||||
public AFPurchaseDetailsAndroid(AFPurchaseType type, String purchaseToken, String productId, String price, String currency)
|
public AFPurchaseDetailsAndroid(AFPurchaseType type, String purchaseToken, String productId)
|
||||||
{
|
{
|
||||||
this.purchaseType = type;
|
this.purchaseType = type;
|
||||||
this.purchaseToken = purchaseToken;
|
this.purchaseToken = purchaseToken;
|
||||||
this.productId = productId;
|
this.productId = productId;
|
||||||
this.price = price;
|
|
||||||
this.currency = currency;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,26 +4,33 @@ using System.Collections.Generic;
|
|||||||
namespace AppsFlyerSDK
|
namespace AppsFlyerSDK
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
//
|
/// Purchase type enum matching iOS SDK AFSDKPurchaseType
|
||||||
|
/// </summary>
|
||||||
|
public enum AFSDKPurchaseType
|
||||||
|
{
|
||||||
|
Subscription,
|
||||||
|
OneTimePurchase
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Purchase details class matching iOS SDK AFSDKPurchaseDetails
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AFSDKPurchaseDetailsIOS
|
public class AFSDKPurchaseDetailsIOS
|
||||||
{
|
{
|
||||||
public string productId { get; private set; }
|
public string productId { get; private set; }
|
||||||
public string price { get; private set; }
|
|
||||||
public string currency { get; private set; }
|
|
||||||
public string transactionId { get; private set; }
|
public string transactionId { get; private set; }
|
||||||
|
public AFSDKPurchaseType purchaseType { get; private set; }
|
||||||
|
|
||||||
private AFSDKPurchaseDetailsIOS(string productId, string price, string currency, string transactionId)
|
private AFSDKPurchaseDetailsIOS(string productId, string transactionId, AFSDKPurchaseType purchaseType)
|
||||||
{
|
{
|
||||||
this.productId = productId;
|
this.productId = productId;
|
||||||
this.price = price;
|
|
||||||
this.currency = currency;
|
|
||||||
this.transactionId = transactionId;
|
this.transactionId = transactionId;
|
||||||
|
this.purchaseType = purchaseType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AFSDKPurchaseDetailsIOS Init(string productId, string price, string currency, string transactionId)
|
public static AFSDKPurchaseDetailsIOS Init(string productId, string transactionId, AFSDKPurchaseType purchaseType)
|
||||||
{
|
{
|
||||||
return new AFSDKPurchaseDetailsIOS(productId, price, currency, transactionId);
|
return new AFSDKPurchaseDetailsIOS(productId, transactionId, purchaseType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace AppsFlyerSDK
|
|||||||
{
|
{
|
||||||
public class AppsFlyer : MonoBehaviour
|
public class AppsFlyer : MonoBehaviour
|
||||||
{
|
{
|
||||||
public static readonly string kAppsFlyerPluginVersion = "6.14.4";
|
public static readonly string kAppsFlyerPluginVersion = "6.17.91";
|
||||||
public static string CallBackObjectName = null;
|
public static string CallBackObjectName = null;
|
||||||
private static EventHandler onRequestResponse;
|
private static EventHandler onRequestResponse;
|
||||||
private static EventHandler onInAppResponse;
|
private static EventHandler onInAppResponse;
|
||||||
@@ -332,6 +332,19 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Logs ad revenue data along with additional parameters if provided.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name = "adRevenueData" >instance of AFAdRevenueData containing ad revenue information.</param>
|
||||||
|
/// <param name = "additionalParameters" >An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters.</param>
|
||||||
|
public static void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary<string, string> additionalParameters)
|
||||||
|
{
|
||||||
|
if (instance != null)
|
||||||
|
{
|
||||||
|
instance.logAdRevenue(adRevenueData, additionalParameters);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Manually record the location of the user.
|
/// Manually record the location of the user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -755,6 +768,11 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// [Deprecated] Validates an in-app purchase on iOS.
|
||||||
|
/// Use the V2 overload with AFSDKPurchaseDetailsIOS instead.
|
||||||
|
/// </summary>
|
||||||
|
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||||
public static void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
public static void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
if (instance != null && instance is IAppsFlyerIOSBridge)
|
if (instance != null && instance is IAppsFlyerIOSBridge)
|
||||||
@@ -764,16 +782,23 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// V2
|
/// <summary>
|
||||||
public static void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> extraEventValues, MonoBehaviour gameObject)
|
/// Validates an in-app purchase on iOS using the V2 API.
|
||||||
|
/// </summary>
|
||||||
|
public static void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
if (instance != null && instance is IAppsFlyerIOSBridge)
|
if (instance != null && instance is IAppsFlyerIOSBridge)
|
||||||
{
|
{
|
||||||
IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance;
|
IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance;
|
||||||
appsFlyeriOSInstance.validateAndSendInAppPurchase(details, extraEventValues, gameObject);
|
appsFlyeriOSInstance.validateAndSendInAppPurchase(details, purchaseAdditionalDetails, gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// [Deprecated] Validates an in-app purchase on Android.
|
||||||
|
/// Use the V2 overload with AFPurchaseDetailsAndroid instead.
|
||||||
|
/// </summary>
|
||||||
|
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||||
public static void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
public static void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
||||||
@@ -783,13 +808,15 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// V2
|
/// <summary>
|
||||||
public static void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
/// Validates an in-app purchase on Android using the V2 API.
|
||||||
|
/// </summary>
|
||||||
|
public static void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
||||||
{
|
{
|
||||||
IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance;
|
IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance;
|
||||||
appsFlyerAndroidInstance.validateAndSendInAppPurchase(details, additionalParameters, gameObject);
|
appsFlyerAndroidInstance.validateAndSendInAppPurchase(details, purchaseAdditionalDetails, gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -398,7 +398,23 @@ namespace AppsFlyerSDK
|
|||||||
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
|
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
appsFlyerAndroid.CallStatic("setConsentData", appsFlyerConsent.isUserSubjectToGDPR, appsFlyerConsent.hasConsentForDataUsage, appsFlyerConsent.hasConsentForAdsPersonalization);
|
string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null";
|
||||||
|
|
||||||
|
appsFlyerAndroid.CallStatic("setConsentData", isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Logs ad revenue data along with additional parameters if provided.
|
||||||
|
/// <param name = "adRevenueData" >instance of AFAdRevenueData containing ad revenue information.</param>
|
||||||
|
/// <param name = "additionalParameters" >An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters.</param>
|
||||||
|
public void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary<string, string> additionalParameters)
|
||||||
|
{
|
||||||
|
#if !UNITY_EDITOR
|
||||||
|
appsFlyerAndroid.CallStatic("logAdRevenue", adRevenueData.monetizationNetwork, getMediationNetwork(adRevenueData.mediationNetwork), adRevenueData.currencyIso4217Code, adRevenueData.eventRevenue, convertDictionaryToJavaMap(additionalParameters));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -468,7 +484,7 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// API for server verification of in-app purchases.
|
/// [Deprecated] API for server verification of in-app purchases - please use V2 with AFPurchaseDetailsAndroid instead.
|
||||||
/// An af_purchase event with the relevant values will be automatically sent if the validation is successful.
|
/// An af_purchase event with the relevant values will be automatically sent if the validation is successful.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="publicKey">License Key obtained from the Google Play Console.</param>
|
/// <param name="publicKey">License Key obtained from the Google Play Console.</param>
|
||||||
@@ -477,6 +493,7 @@ namespace AppsFlyerSDK
|
|||||||
/// <param name="price">Purchase price, should be derived from <code>skuDetails.getStringArrayList("DETAILS_LIST")</code></param>
|
/// <param name="price">Purchase price, should be derived from <code>skuDetails.getStringArrayList("DETAILS_LIST")</code></param>
|
||||||
/// <param name="currency">Purchase currency, should be derived from <code>skuDetails.getStringArrayList("DETAILS_LIST")</code></param>
|
/// <param name="currency">Purchase currency, should be derived from <code>skuDetails.getStringArrayList("DETAILS_LIST")</code></param>
|
||||||
/// <param name="additionalParameters">additionalParameters Freehand parameters to be sent with the purchase (if validated).</param>
|
/// <param name="additionalParameters">additionalParameters Freehand parameters to be sent with the purchase (if validated).</param>
|
||||||
|
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||||
public void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
public void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
@@ -485,15 +502,15 @@ namespace AppsFlyerSDK
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// API for server verification of in-app purchases.
|
/// V2 - API for server verification of in-app purchases.
|
||||||
/// An af_purchase event with the relevant values will be automatically sent if the validation is successful.
|
/// An af_purchase event with the relevant values will be automatically sent if the validation is successful.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="details">AFPurchaseDetailsAndroid instance.</param>
|
/// <param name="details">AFPurchaseDetailsAndroid instance.</param>
|
||||||
/// <param name="additionalParameters">additionalParameters Freehand parameters to be sent with the purchase (if validated).</param>
|
/// <param name="purchaseAdditionalDetails">purchaseAdditionalDetails Freehand parameters to be sent with the purchase (if validated).</param>
|
||||||
public void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
public void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
appsFlyerAndroid.CallStatic("validateAndTrackInAppPurchaseV2", (int)details.purchaseType, details.purchaseToken, details.productId, details.price, details.currency, convertDictionaryToJavaMap(additionalParameters), gameObject ? gameObject.name : null);
|
appsFlyerAndroid.CallStatic("validateAndTrackInAppPurchaseV2", (int)details.purchaseType, details.purchaseToken, details.productId, convertDictionaryToJavaMap(purchaseAdditionalDetails), gameObject ? gameObject.name : null);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -749,6 +766,65 @@ namespace AppsFlyerSDK
|
|||||||
return emailsCryptType;
|
return emailsCryptType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Internal Helper Method.
|
||||||
|
/// </summary>
|
||||||
|
private static AndroidJavaObject getMediationNetwork(MediationNetwork mediationNetwork)
|
||||||
|
{
|
||||||
|
AndroidJavaClass mediationNetworkEnumClass = new AndroidJavaClass("com.appsflyer.MediationNetwork");
|
||||||
|
AndroidJavaObject mediationNetworkObject;
|
||||||
|
|
||||||
|
switch (mediationNetwork)
|
||||||
|
{
|
||||||
|
case MediationNetwork.IronSource:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("IRONSOURCE");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.ApplovinMax:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("APPLOVIN_MAX");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.GoogleAdMob:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("GOOGLE_ADMOB");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Fyber:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("FYBER");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Appodeal:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("APPODEAL");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Admost:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("ADMOST");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Topon:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("TOPON");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Tradplus:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("TRADPLUS");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Yandex:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("YANDEX");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.ChartBoost:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("CHARTBOOST");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Unity:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("UNITY");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.ToponPte:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("TOPON_PTE");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.Custom:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("CUSTOM_MEDIATION");
|
||||||
|
break;
|
||||||
|
case MediationNetwork.DirectMonetization:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("DIRECT_MONETIZATION_NETWORK");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
mediationNetworkObject = mediationNetworkEnumClass.GetStatic<AndroidJavaObject>("NONE");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return mediationNetworkObject;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Internal Helper Method.
|
/// Internal Helper Method.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -771,9 +847,6 @@ namespace AppsFlyerSDK
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -10,26 +10,45 @@ namespace AppsFlyerSDK
|
|||||||
// This class should be used to notify and record the user's applicability
|
// This class should be used to notify and record the user's applicability
|
||||||
// under GDPR, their general consent to data usage, and their consent to personalized
|
// under GDPR, their general consent to data usage, and their consent to personalized
|
||||||
// advertisements based on user data.
|
// advertisements based on user data.
|
||||||
|
|
||||||
// Note that the consent for data usage and ads personalization pair is only applicable when the user is
|
|
||||||
// subject to GDPR guidelines. Therefore, the following factory methods should be used accordingly:
|
|
||||||
// - Use [forGDPRUser] when the user is subject to GDPR.
|
|
||||||
// - Use [forNonGDPRUser] when the user is not subject to GDPR.
|
|
||||||
|
|
||||||
// @property isUserSubjectToGDPR Indicates whether GDPR regulations apply to the user (true if the user is
|
/// ## Properties:
|
||||||
// a subject of GDPR). It also serves as a flag for compliance with relevant aspects of DMA regulations.
|
/// - `isUserSubjectToGDPR` (optional) - Indicates whether GDPR regulations apply to the user.
|
||||||
// @property hasConsentForDataUsage Indicates whether the user has consented to the use of their data for advertising
|
/// This may also serve as a general compliance flag for other regional regulations.
|
||||||
// purposes under both GDPR and DMA guidelines (true if the user has consented, nullable if not subject to GDPR).
|
/// - `hasConsentForDataUsage` (optional) - Indicates whether the user consents to the processing
|
||||||
// @property hasConsentForAdsPersonalization Indicates whether the user has consented to the use of their data for
|
/// of their data for advertising purposes.
|
||||||
// personalized advertising within the boundaries of GDPR and DMA rules (true if the user has consented to
|
/// - `hasConsentForAdsPersonalization` (optional) - Indicates whether the user consents to the
|
||||||
// personalized ads, nullable if not subject to GDPR).
|
/// use of their data for personalized advertising.
|
||||||
|
/// - `hasConsentForAdStorage` (optional) - Indicates whether the user consents to ad-related storage access.
|
||||||
|
///
|
||||||
|
/// **Usage Example:**
|
||||||
|
/// ```csharp
|
||||||
|
/// var consent = new AppsFlyerConsent(
|
||||||
|
/// isUserSubjectToGDPR: true,
|
||||||
|
/// hasConsentForDataUsage: true,
|
||||||
|
/// hasConsentForAdsPersonalization: false,
|
||||||
|
/// hasConsentForAdStorage: true
|
||||||
|
/// );
|
||||||
|
/// **Deprecated APIs:**
|
||||||
|
/// - `ForGDPRUser(...)` and `ForNonGDPRUser(...)` should no longer be used.
|
||||||
|
/// - Use `new AppsFlyerConsent(...)` instead with relevant consent fields.
|
||||||
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AppsFlyerConsent
|
public class AppsFlyerConsent
|
||||||
{
|
{
|
||||||
public bool isUserSubjectToGDPR { get; private set; }
|
public bool? isUserSubjectToGDPR { get; private set; }
|
||||||
public bool hasConsentForDataUsage { get; private set; }
|
public bool? hasConsentForDataUsage { get; private set; }
|
||||||
public bool hasConsentForAdsPersonalization { get; private set; }
|
public bool? hasConsentForAdsPersonalization { get; private set; }
|
||||||
|
public bool? hasConsentForAdStorage { get; private set; }
|
||||||
|
|
||||||
|
public AppsFlyerConsent( bool? isUserSubjectToGDPR = null, bool? hasConsentForDataUsage = null, bool? hasConsentForAdsPersonalization = null, bool? hasConsentForAdStorage = null)
|
||||||
|
{
|
||||||
|
this.isUserSubjectToGDPR = isUserSubjectToGDPR;
|
||||||
|
this.hasConsentForDataUsage = hasConsentForDataUsage;
|
||||||
|
this.hasConsentForAdsPersonalization = hasConsentForAdsPersonalization;
|
||||||
|
this.hasConsentForAdStorage = hasConsentForAdStorage;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Obsolete("Use the new constructor with optional booleans instead.")]
|
||||||
private AppsFlyerConsent(bool isGDPR, bool hasForDataUsage, bool hasForAdsPersonalization)
|
private AppsFlyerConsent(bool isGDPR, bool hasForDataUsage, bool hasForAdsPersonalization)
|
||||||
{
|
{
|
||||||
isUserSubjectToGDPR = isGDPR;
|
isUserSubjectToGDPR = isGDPR;
|
||||||
@@ -37,15 +56,16 @@ namespace AppsFlyerSDK
|
|||||||
hasConsentForAdsPersonalization = hasForAdsPersonalization;
|
hasConsentForAdsPersonalization = hasForAdsPersonalization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete("Use new AppsFlyerConsent(...) instead.")]
|
||||||
public static AppsFlyerConsent ForGDPRUser(bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization)
|
public static AppsFlyerConsent ForGDPRUser(bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization)
|
||||||
{
|
{
|
||||||
return new AppsFlyerConsent(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
|
return new AppsFlyerConsent(true, hasConsentForDataUsage, hasConsentForAdsPersonalization);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete("Use new AppsFlyerConsent(...) instead.")]
|
||||||
public static AppsFlyerConsent ForNonGDPRUser()
|
public static AppsFlyerConsent ForNonGDPRUser()
|
||||||
{
|
{
|
||||||
return new AppsFlyerConsent(false, false, false);
|
return new AppsFlyerConsent(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,426 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using UnityEngine;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace AppsFlyerSDK
|
||||||
|
{
|
||||||
|
|
||||||
|
public interface IAppsFlyerPurchaseRevenueDataSource
|
||||||
|
{
|
||||||
|
Dictionary<string, object> PurchaseRevenueAdditionalParametersForProducts(HashSet<object> products, HashSet<object> transactions);
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IAppsFlyerPurchaseRevenueDataSourceStoreKit2
|
||||||
|
{
|
||||||
|
Dictionary<string, object> PurchaseRevenueAdditionalParametersStoreKit2ForProducts(HashSet<object> products, HashSet<object> transactions);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class AppsFlyerPurchaseRevenueBridge : MonoBehaviour
|
||||||
|
{
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void RegisterUnityPurchaseRevenueParamsCallback(Func<string, string, string> callback);
|
||||||
|
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void RegisterUnityPurchaseRevenueParamsCallbackSK2(Func<string, string, string> callback);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
private static IAppsFlyerPurchaseRevenueDataSource _dataSource;
|
||||||
|
private static IAppsFlyerPurchaseRevenueDataSourceStoreKit2 _dataSourceSK2;
|
||||||
|
|
||||||
|
public static void RegisterDataSource(IAppsFlyerPurchaseRevenueDataSource dataSource)
|
||||||
|
{
|
||||||
|
_dataSource = dataSource;
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
RegisterUnityPurchaseRevenueParamsCallback(GetAdditionalParameters);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
using (AndroidJavaClass jc = new AndroidJavaClass("com.appsflyer.unity.PurchaseRevenueBridge"))
|
||||||
|
{
|
||||||
|
jc.CallStatic("setUnityBridge", new UnityPurchaseRevenueBridgeProxy());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void RegisterDataSourceStoreKit2(IAppsFlyerPurchaseRevenueDataSourceStoreKit2 dataSource)
|
||||||
|
{
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_dataSourceSK2 = dataSource;
|
||||||
|
RegisterUnityPurchaseRevenueParamsCallbackSK2(GetAdditionalParametersSK2);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Dictionary<string, object> GetAdditionalParametersForAndroid(HashSet<object> products, HashSet<object> transactions)
|
||||||
|
{
|
||||||
|
return _dataSource?.PurchaseRevenueAdditionalParametersForProducts(products, transactions)
|
||||||
|
?? new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
[AOT.MonoPInvokeCallback(typeof(Func<string, string, string>))]
|
||||||
|
public static string GetAdditionalParameters(string productsJson, string transactionsJson)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
HashSet<object> products = new HashSet<object>();
|
||||||
|
HashSet<object> transactions = new HashSet<object>();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(productsJson))
|
||||||
|
{
|
||||||
|
var dict = AFMiniJSON.Json.Deserialize(productsJson) as Dictionary<string, object>;
|
||||||
|
if (dict != null)
|
||||||
|
{
|
||||||
|
if (dict.TryGetValue("products", out var productsObj) && productsObj is List<object> productList)
|
||||||
|
products = new HashSet<object>(productList);
|
||||||
|
|
||||||
|
if (dict.TryGetValue("transactions", out var transactionsObj) && transactionsObj is List<object> transactionList)
|
||||||
|
transactions = new HashSet<object>(transactionList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var parameters = _dataSource?.PurchaseRevenueAdditionalParametersForProducts(products, transactions)
|
||||||
|
?? new Dictionary<string, object>();
|
||||||
|
return AFMiniJSON.Json.Serialize(parameters);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogError($"[AppsFlyer] Exception in GetAdditionalParameters: {e}");
|
||||||
|
return "{}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
[AOT.MonoPInvokeCallback(typeof(Func<string, string, string>))]
|
||||||
|
public static string GetAdditionalParametersSK2(string productsJson, string transactionsJson)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
HashSet<object> products = new HashSet<object>();
|
||||||
|
HashSet<object> transactions = new HashSet<object>();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(productsJson))
|
||||||
|
{
|
||||||
|
var dict = AFMiniJSON.Json.Deserialize(productsJson) as Dictionary<string, object>;
|
||||||
|
if (dict != null && dict.TryGetValue("products", out var productsObj) && productsObj is List<object> productList)
|
||||||
|
products = new HashSet<object>(productList);
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(transactionsJson))
|
||||||
|
{
|
||||||
|
var dict = AFMiniJSON.Json.Deserialize(transactionsJson) as Dictionary<string, object>;
|
||||||
|
if (dict != null && dict.TryGetValue("transactions", out var transactionsObj) && transactionsObj is List<object> transactionList)
|
||||||
|
transactions = new HashSet<object>(transactionList);
|
||||||
|
}
|
||||||
|
|
||||||
|
var parameters = _dataSourceSK2?.PurchaseRevenueAdditionalParametersStoreKit2ForProducts(products, transactions)
|
||||||
|
?? new Dictionary<string, object>();
|
||||||
|
return AFMiniJSON.Json.Serialize(parameters);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogError($"[AppsFlyer] Exception in GetAdditionalParametersSK2: {e}");
|
||||||
|
return "{}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public class UnityPurchaseRevenueBridgeProxy : AndroidJavaProxy
|
||||||
|
{
|
||||||
|
public UnityPurchaseRevenueBridgeProxy() : base("com.appsflyer.unity.PurchaseRevenueBridge$UnityPurchaseRevenueBridge") { }
|
||||||
|
|
||||||
|
public string getAdditionalParameters(string productsJson, string transactionsJson)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Create empty sets if JSON is null or empty
|
||||||
|
HashSet<object> products = new HashSet<object>();
|
||||||
|
HashSet<object> transactions = new HashSet<object>();
|
||||||
|
|
||||||
|
// Only try to parse if we have valid JSON
|
||||||
|
if (!string.IsNullOrEmpty(productsJson))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// First try to parse as a simple array
|
||||||
|
var parsedProducts = AFMiniJSON.Json.Deserialize(productsJson);
|
||||||
|
if (parsedProducts is List<object> productList)
|
||||||
|
{
|
||||||
|
products = new HashSet<object>(productList);
|
||||||
|
}
|
||||||
|
else if (parsedProducts is Dictionary<string, object> dict)
|
||||||
|
{
|
||||||
|
if (dict.ContainsKey("events") && dict["events"] is List<object> eventsList)
|
||||||
|
{
|
||||||
|
products = new HashSet<object>(eventsList);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// If it's a dictionary but doesn't have events, add the whole dict
|
||||||
|
products.Add(dict);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogError($"Error parsing products JSON: {e.Message}\nJSON: {productsJson}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(transactionsJson))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// First try to parse as a simple array
|
||||||
|
var parsedTransactions = AFMiniJSON.Json.Deserialize(transactionsJson);
|
||||||
|
if (parsedTransactions is List<object> transactionList)
|
||||||
|
{
|
||||||
|
transactions = new HashSet<object>(transactionList);
|
||||||
|
}
|
||||||
|
else if (parsedTransactions is Dictionary<string, object> dict)
|
||||||
|
{
|
||||||
|
if (dict.ContainsKey("events") && dict["events"] is List<object> eventsList)
|
||||||
|
{
|
||||||
|
transactions = new HashSet<object>(eventsList);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// If it's a dictionary but doesn't have events, add the whole dict
|
||||||
|
transactions.Add(dict);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogError($"Error parsing transactions JSON: {e.Message}\nJSON: {transactionsJson}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var parameters = AppsFlyerPurchaseRevenueBridge.GetAdditionalParametersForAndroid(products, transactions);
|
||||||
|
return AFMiniJSON.Json.Serialize(parameters);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogError($"Error in getAdditionalParameters: {e.Message}\nProducts JSON: {productsJson}\nTransactions JSON: {transactionsJson}");
|
||||||
|
return "{}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class AppsFlyerPurchaseConnector : MonoBehaviour {
|
||||||
|
|
||||||
|
private static AppsFlyerPurchaseConnector instance;
|
||||||
|
private Dictionary<string, object> pendingParameters;
|
||||||
|
private Action<Dictionary<string, object>> pendingCallback;
|
||||||
|
|
||||||
|
public static AppsFlyerPurchaseConnector Instance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (instance == null)
|
||||||
|
{
|
||||||
|
GameObject go = new GameObject("AppsFlyerPurchaseConnector");
|
||||||
|
instance = go.AddComponent<AppsFlyerPurchaseConnector>();
|
||||||
|
DontDestroyOnLoad(go);
|
||||||
|
}
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
if (instance == null)
|
||||||
|
{
|
||||||
|
instance = this;
|
||||||
|
DontDestroyOnLoad(gameObject);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
private static AndroidJavaClass appsFlyerAndroidConnector = new AndroidJavaClass("com.appsflyer.unity.AppsFlyerAndroidWrapper");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
public static void init(MonoBehaviour unityObject, Store s) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_initPurchaseConnector(unityObject.name);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
int store = mapStoreToInt(s);
|
||||||
|
appsFlyerAndroidConnector.CallStatic("initPurchaseConnector", unityObject ? unityObject.name : null, store);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void build() {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
//not for iOS
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
appsFlyerAndroidConnector.CallStatic("build");
|
||||||
|
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void startObservingTransactions() {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_startObservingTransactions();
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
appsFlyerAndroidConnector.CallStatic("startObservingTransactions");
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void stopObservingTransactions() {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_stopObservingTransactions();
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
appsFlyerAndroidConnector.CallStatic("stopObservingTransactions");
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setIsSandbox(bool isSandbox) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_setIsSandbox(isSandbox);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
appsFlyerAndroidConnector.CallStatic("setIsSandbox", isSandbox);
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPurchaseRevenueValidationListeners(bool enableCallbacks) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_setPurchaseRevenueDelegate();
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
appsFlyerAndroidConnector.CallStatic("setPurchaseRevenueValidationListeners", enableCallbacks);
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setAutoLogPurchaseRevenue(params AppsFlyerAutoLogPurchaseRevenueOptions[] autoLogPurchaseRevenueOptions) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
int option = 0;
|
||||||
|
foreach (AppsFlyerAutoLogPurchaseRevenueOptions op in autoLogPurchaseRevenueOptions) {
|
||||||
|
option = option | (int)op;
|
||||||
|
}
|
||||||
|
_setAutoLogPurchaseRevenue(option);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
if (autoLogPurchaseRevenueOptions.Length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
foreach (AppsFlyerAutoLogPurchaseRevenueOptions op in autoLogPurchaseRevenueOptions) {
|
||||||
|
switch(op) {
|
||||||
|
case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsDisabled:
|
||||||
|
break;
|
||||||
|
case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions:
|
||||||
|
appsFlyerAndroidConnector.CallStatic("setAutoLogSubscriptions", true);
|
||||||
|
break;
|
||||||
|
case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsInAppPurchases:
|
||||||
|
appsFlyerAndroidConnector.CallStatic("setAutoLogInApps", true);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPurchaseRevenueDataSource(IAppsFlyerPurchaseRevenueDataSource dataSource)
|
||||||
|
{
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
|
||||||
|
if (dataSource != null)
|
||||||
|
{
|
||||||
|
_setPurchaseRevenueDataSource(dataSource.GetType().Name);
|
||||||
|
AppsFlyerPurchaseRevenueBridge.RegisterDataSource(dataSource);
|
||||||
|
}
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
if (dataSource != null)
|
||||||
|
{
|
||||||
|
AppsFlyerPurchaseRevenueBridge.RegisterDataSource(dataSource);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void setPurchaseRevenueDataSourceStoreKit2(IAppsFlyerPurchaseRevenueDataSourceStoreKit2 dataSourceSK2)
|
||||||
|
{
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
if (dataSourceSK2 != null)
|
||||||
|
{
|
||||||
|
AppsFlyerPurchaseRevenueBridge.RegisterDataSourceStoreKit2(dataSourceSK2);
|
||||||
|
_setPurchaseRevenueDataSource("AppsFlyerObjectScript_StoreKit2");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static int mapStoreToInt(Store s) {
|
||||||
|
switch(s) {
|
||||||
|
case(Store.GOOGLE):
|
||||||
|
return 0;
|
||||||
|
default:
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setStoreKitVersion(StoreKitVersion storeKitVersion) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_setStoreKitVersion((int)storeKitVersion);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
// Android doesn't use StoreKit
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void logConsumableTransaction(string transactionJson) {
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
_logConsumableTransaction(transactionJson);
|
||||||
|
#elif UNITY_ANDROID && !UNITY_EDITOR
|
||||||
|
// Android doesn't use StoreKit
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_IOS && !UNITY_EDITOR
|
||||||
|
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _startObservingTransactions();
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _stopObservingTransactions();
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _setIsSandbox(bool isSandbox);
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _setPurchaseRevenueDelegate();
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _setPurchaseRevenueDataSource(string dataSourceName);
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _setAutoLogPurchaseRevenue(int option);
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _initPurchaseConnector(string objectName);
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _setStoreKitVersion(int storeKitVersion);
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
private static extern void _logConsumableTransaction(string transactionJson);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum Store {
|
||||||
|
GOOGLE = 0
|
||||||
|
}
|
||||||
|
public enum AppsFlyerAutoLogPurchaseRevenueOptions
|
||||||
|
{
|
||||||
|
AppsFlyerAutoLogPurchaseRevenueOptionsDisabled = 0,
|
||||||
|
AppsFlyerAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions = 1 << 0,
|
||||||
|
AppsFlyerAutoLogPurchaseRevenueOptionsInAppPurchases = 1 << 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum StoreKitVersion {
|
||||||
|
SK1 = 0,
|
||||||
|
SK2 = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: c85c3812a13e04838951767c1285e4da
|
guid: d8dfcbbd998db6945aa839bfe5a0b66b
|
||||||
labels:
|
|
||||||
- al_max
|
|
||||||
- al_max_export_path-MaxSdk/Scripts/IntegrationManager/Editor/AppLovinDownloadHandler.cs
|
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@@ -215,7 +215,24 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
|
|||||||
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
|
public void setConsentData(AppsFlyerConsent appsFlyerConsent)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
_setConsentData(appsFlyerConsent.isUserSubjectToGDPR, appsFlyerConsent.hasConsentForDataUsage, appsFlyerConsent.hasConsentForAdsPersonalization);
|
string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null";
|
||||||
|
string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null";
|
||||||
|
|
||||||
|
_setConsentData(isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Logs ad revenue data along with additional parameters if provided.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name = "adRevenueData" >instance of AFAdRevenueData containing ad revenue information.</param>
|
||||||
|
/// <param name = "additionalParameters" >An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters.</param>
|
||||||
|
public void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary<string, string> additionalParameters)
|
||||||
|
{
|
||||||
|
#if !UNITY_EDITOR
|
||||||
|
_logAdRevenue(adRevenueData.monetizationNetwork, adRevenueData.mediationNetwork, adRevenueData.currencyIso4217Code, adRevenueData.eventRevenue, AFMiniJSON.Json.Serialize(additionalParameters));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,13 +335,14 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To send and validate in app purchases you can call this method from the processPurchase method - please use v2.
|
/// [Deprecated] To send and validate in app purchases - please use V2 with AFSDKPurchaseDetailsIOS instead.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="productIdentifier">The product identifier.</param>
|
/// <param name="productIdentifier">The product identifier.</param>
|
||||||
/// <param name="price">The product price.</param>
|
/// <param name="price">The product price.</param>
|
||||||
/// <param name="currency">The product currency.</param>
|
/// <param name="currency">The product currency.</param>
|
||||||
/// <param name="transactionId">The purchase transaction Id.</param>
|
/// <param name="transactionId">The purchase transaction Id.</param>
|
||||||
/// <param name="additionalParameters">The additional param, which you want to receive it in the raw reports.</param>
|
/// <param name="additionalParameters">The additional param, which you want to receive it in the raw reports.</param>
|
||||||
|
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||||
public void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
public void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
@@ -333,15 +351,14 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// V2
|
/// V2 - To send and validate in app purchases you can call this method from the processPurchase method.
|
||||||
/// To send and validate in app purchases you can call this method from the processPurchase method.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="details">The AFSDKPurchaseDetailsIOS instance.</param>
|
/// <param name="details">The AFSDKPurchaseDetailsIOS instance.</param>
|
||||||
/// <param name="extraEventValues">The extra params, which you want to receive it in the raw reports.</param>
|
/// <param name="purchaseAdditionalDetails">The additional params, which you want to receive it in the raw reports.</param>
|
||||||
public void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> extraEventValues, MonoBehaviour gameObject)
|
public void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
_validateAndSendInAppPurchaseV2(details.productId, details.price, details.currency, details.transactionId, AFMiniJSON.Json.Serialize(extraEventValues), gameObject ? gameObject.name : null);
|
_validateAndSendInAppPurchaseV2(details.productId, details.transactionId, (int)details.purchaseType, AFMiniJSON.Json.Serialize(purchaseAdditionalDetails), gameObject ? gameObject.name : null);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -748,7 +765,14 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
|
|||||||
#elif UNITY_STANDALONE_OSX
|
#elif UNITY_STANDALONE_OSX
|
||||||
[DllImport("AppsFlyerBundle")]
|
[DllImport("AppsFlyerBundle")]
|
||||||
#endif
|
#endif
|
||||||
private static extern void _setConsentData(bool isUserSubjectToGDPR, bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization);
|
private static extern void _setConsentData(string isUserSubjectToGDPR, string hasConsentForDataUsage, string hasConsentForAdsPersonalization, string hasConsentForAdStorage);
|
||||||
|
|
||||||
|
#if UNITY_IOS
|
||||||
|
[DllImport("__Internal")]
|
||||||
|
#elif UNITY_STANDALONE_OSX
|
||||||
|
[DllImport("AppsFlyerBundle")]
|
||||||
|
#endif
|
||||||
|
private static extern void _logAdRevenue(string monetizationNetwork, MediationNetwork mediationNetwork, string currencyIso4217Code, double eventRevenue, string additionalParameters);
|
||||||
|
|
||||||
#if UNITY_IOS
|
#if UNITY_IOS
|
||||||
[DllImport("__Internal")]
|
[DllImport("__Internal")]
|
||||||
@@ -819,7 +843,7 @@ public void startSDK(bool shouldCallback, string CallBackObjectName)
|
|||||||
#elif UNITY_STANDALONE_OSX
|
#elif UNITY_STANDALONE_OSX
|
||||||
[DllImport("AppsFlyerBundle")]
|
[DllImport("AppsFlyerBundle")]
|
||||||
#endif
|
#endif
|
||||||
private static extern void _validateAndSendInAppPurchaseV2(string product, string price, string currency, string transactionId, string extraEventValues, string objectName);
|
private static extern void _validateAndSendInAppPurchaseV2(string product, string transactionId, int purchaseType, string purchaseAdditionalDetails, string objectName);
|
||||||
|
|
||||||
#if UNITY_IOS
|
#if UNITY_IOS
|
||||||
[DllImport("__Internal")]
|
[DllImport("__Internal")]
|
||||||
|
|||||||
@@ -2,17 +2,15 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<androidPackages>
|
<androidPackages>
|
||||||
<androidPackage spec="com.appsflyer:af-android-sdk:6.14.2">
|
<androidPackage spec="com.appsflyer:af-android-sdk:6.17.6"></androidPackage>
|
||||||
</androidPackage>
|
<androidPackage spec="com.appsflyer:unity-wrapper:6.17.91"></androidPackage>
|
||||||
<androidPackage spec="com.appsflyer:unity-wrapper:6.14.4">
|
<androidPackage spec="com.android.installreferrer:installreferrer:2.1"></androidPackage>
|
||||||
</androidPackage>
|
<androidPackage spec="com.appsflyer:purchase-connector:2.2.0"></androidPackage>
|
||||||
<androidPackage spec="com.android.installreferrer:installreferrer:2.1">
|
|
||||||
</androidPackage>
|
|
||||||
</androidPackages>
|
</androidPackages>
|
||||||
|
|
||||||
<iosPods>
|
<iosPods>
|
||||||
<iosPod name="AppsFlyerFramework" version="6.14.4" minTargetSdk="12.0">
|
<iosPod name="AppsFlyerFramework" version="6.17.9" minTargetSdk="12.0"></iosPod>
|
||||||
</iosPod>
|
<iosPod name="PurchaseConnector" version="6.17.9" minTargetSdk="12.0"></iosPod>
|
||||||
</iosPods>
|
</iosPods>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class AppsFlyerObjectEditor : Editor
|
|||||||
{
|
{
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
GUILayout.Box((Texture)AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(AssetDatabase.FindAssets("appsflyer_logo")[0]), typeof(Texture)), new GUILayoutOption[] { GUILayout.Width(600) });
|
DrawLogo();
|
||||||
|
|
||||||
EditorGUILayout.Separator();
|
EditorGUILayout.Separator();
|
||||||
EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id \nMac OS app id - For MacOS app only.", MessageType.Info);
|
EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id \nMac OS app id - For MacOS app only.", MessageType.Info);
|
||||||
@@ -80,5 +80,25 @@ public class AppsFlyerObjectEditor : Editor
|
|||||||
serializedObject.ApplyModifiedProperties();
|
serializedObject.ApplyModifiedProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DrawLogo()
|
||||||
|
{
|
||||||
|
var guids = AssetDatabase.FindAssets("appsflyer_logo");
|
||||||
|
if (guids.Length == 0) return;
|
||||||
|
|
||||||
|
Texture logo = (Texture)AssetDatabase.LoadAssetAtPath(
|
||||||
|
AssetDatabase.GUIDToAssetPath(guids[0]),
|
||||||
|
typeof(Texture));
|
||||||
|
|
||||||
|
if (logo == null) return;
|
||||||
|
|
||||||
|
float maxWidth = Mathf.Min(200, EditorGUIUtility.currentViewWidth - 40);
|
||||||
|
float aspect = (float)logo.height / logo.width;
|
||||||
|
float height = maxWidth * aspect;
|
||||||
|
|
||||||
|
Rect rect = GUILayoutUtility.GetRect(maxWidth, height, GUILayout.ExpandWidth(false));
|
||||||
|
rect.x = (EditorGUIUtility.currentViewWidth - maxWidth) * 0.5f;
|
||||||
|
rect.width = maxWidth;
|
||||||
|
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 7.0 KiB |
@@ -22,7 +22,7 @@ namespace AppsFlyerSDK
|
|||||||
string getAttributionId();
|
string getAttributionId();
|
||||||
void handlePushNotifications();
|
void handlePushNotifications();
|
||||||
void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
|
void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
|
||||||
void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
|
void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject);
|
||||||
void setCollectOaid(bool isCollect);
|
void setCollectOaid(bool isCollect);
|
||||||
void setDisableAdvertisingIdentifiers(bool disable);
|
void setDisableAdvertisingIdentifiers(bool disable);
|
||||||
void setDisableNetworkData(bool disable);
|
void setDisableNetworkData(bool disable);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace AppsFlyerSDK
|
|||||||
void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox);
|
void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox);
|
||||||
void setUseUninstallSandbox(bool useUninstallSandbox);
|
void setUseUninstallSandbox(bool useUninstallSandbox);
|
||||||
void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
|
void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
|
||||||
void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> extraEventValues, MonoBehaviour gameObject);
|
void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject);
|
||||||
void registerUninstall(byte[] deviceToken);
|
void registerUninstall(byte[] deviceToken);
|
||||||
void handleOpenUrl(string url, string sourceApplication, string annotation);
|
void handleOpenUrl(string url, string sourceApplication, string annotation);
|
||||||
void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval);
|
void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval);
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ namespace AppsFlyerSDK
|
|||||||
|
|
||||||
void setConsentData(AppsFlyerConsent appsFlyerConsent);
|
void setConsentData(AppsFlyerConsent appsFlyerConsent);
|
||||||
|
|
||||||
|
void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary<string, string> additionalParameters);
|
||||||
|
|
||||||
void setMinTimeBetweenSessions(int seconds);
|
void setMinTimeBetweenSessions(int seconds);
|
||||||
|
|
||||||
void setHost(string hostPrefixName, string hostName);
|
void setHost(string hostPrefixName, string hostName);
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
namespace AppsFlyerSDK
|
||||||
|
{
|
||||||
|
public interface IAppsFlyerPurchaseValidation
|
||||||
|
{
|
||||||
|
void didReceivePurchaseRevenueValidationInfo(string validationInfo);
|
||||||
|
void didReceivePurchaseRevenueError(string error);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0e8edcd5a60a897449e53281f5e3a6e7
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
//
|
|
||||||
// AFUnityUtils.h
|
|
||||||
//
|
|
||||||
// Created by Andrii H. and Dmitry O. on 16 Oct 2023
|
|
||||||
//
|
|
||||||
|
|
||||||
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
|
|
||||||
#import <AppsFlyerLib/AppsFlyerLib.h>
|
|
||||||
#else
|
|
||||||
#import "AppsFlyerLib.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static NSString* stringFromChar(const char *str);
|
|
||||||
static NSDictionary* dictionaryFromJson(const char *jsonString);
|
|
||||||
static const char* stringFromdictionary(NSDictionary* dictionary);
|
|
||||||
static NSArray<NSString*> *NSArrayFromCArray(int length, const char **arr);
|
|
||||||
static char* getCString(const char* string);
|
|
||||||
static AppsFlyerLinkGenerator* generatorFromDictionary(NSDictionary* dictionary, AppsFlyerLinkGenerator* generator);
|
|
||||||
static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt);
|
|
||||||
static NSString* stringFromDeepLinkResultStatus(AFSDKDeepLinkResultStatus deepLinkResult);
|
|
||||||
static NSString* stringFromDeepLinkResultError(AppsFlyerDeepLinkResult *result);
|
|
||||||
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
//
|
|
||||||
// AFUnityUtils.mm
|
|
||||||
// Unity-iPhone
|
|
||||||
//
|
|
||||||
// Created by Jonathan Wesfield on 24/07/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "AFUnityUtils.h"
|
|
||||||
|
|
||||||
static NSString* stringFromChar(const char *str) {
|
|
||||||
return str ? [NSString stringWithUTF8String:str] : nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
static NSDictionary* dictionaryFromJson(const char *jsonString) {
|
|
||||||
if(jsonString){
|
|
||||||
NSData *jsonData = [[NSData alloc] initWithBytes:jsonString length:strlen(jsonString)];
|
|
||||||
NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:nil];
|
|
||||||
return dictionary;
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char* stringFromdictionary(NSDictionary* dictionary) {
|
|
||||||
if(dictionary){
|
|
||||||
NSError * err;
|
|
||||||
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:dictionary options:0 error:&err];
|
|
||||||
NSString * myString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
||||||
return [myString UTF8String];
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
static NSDictionary* dictionaryFromNSError(NSError* error) {
|
|
||||||
if(error){
|
|
||||||
NSInteger code = [error code];
|
|
||||||
NSString *localizedDescription = [error localizedDescription];
|
|
||||||
|
|
||||||
NSDictionary *errorDictionary = @{
|
|
||||||
@"code" : @(code) ?: @(-1),
|
|
||||||
@"localizedDescription" : localizedDescription,
|
|
||||||
};
|
|
||||||
return errorDictionary;
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static NSArray<NSString*> *NSArrayFromCArray(int length, const char **arr) {
|
|
||||||
NSMutableArray<NSString *> *res = [[NSMutableArray alloc] init];
|
|
||||||
for(int i = 0; i < length; i++) {
|
|
||||||
if (arr[i]) {
|
|
||||||
[res addObject:[NSString stringWithUTF8String:arr[i]]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
static char* getCString(const char* string){
|
|
||||||
if (string == NULL){
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
char* res = (char*)malloc(strlen(string) + 1);
|
|
||||||
strcpy(res, string);
|
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
static AppsFlyerLinkGenerator* generatorFromDictionary(NSDictionary* dictionary, AppsFlyerLinkGenerator* generator) {
|
|
||||||
|
|
||||||
NSArray* generatorKeys = @[@"channel", @"customerID", @"campaign", @"referrerName", @"referrerImageUrl", @"deeplinkPath", @"baseDeeplink", @"brandDomain"];
|
|
||||||
|
|
||||||
NSMutableDictionary* mutableDictionary = [dictionary mutableCopy];
|
|
||||||
|
|
||||||
[generator setChannel:[dictionary objectForKey: @"channel"]];
|
|
||||||
[generator setReferrerCustomerId:[dictionary objectForKey: @"customerID"]];
|
|
||||||
[generator setCampaign:[dictionary objectForKey: @"campaign"]];
|
|
||||||
[generator setReferrerName:[dictionary objectForKey: @"referrerName"]];
|
|
||||||
[generator setReferrerImageURL:[dictionary objectForKey: @"referrerImageUrl"]];
|
|
||||||
[generator setDeeplinkPath:[dictionary objectForKey: @"deeplinkPath"]];
|
|
||||||
[generator setBaseDeeplink:[dictionary objectForKey: @"baseDeeplink"]];
|
|
||||||
[generator setBrandDomain:[dictionary objectForKey: @"brandDomain"]];
|
|
||||||
|
|
||||||
|
|
||||||
[mutableDictionary removeObjectsForKeys:generatorKeys];
|
|
||||||
|
|
||||||
[generator addParameters:mutableDictionary];
|
|
||||||
|
|
||||||
return generator;
|
|
||||||
}
|
|
||||||
|
|
||||||
static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt){
|
|
||||||
|
|
||||||
EmailCryptType emailCryptType;
|
|
||||||
switch (emailCryptTypeInt){
|
|
||||||
case 1:
|
|
||||||
emailCryptType = EmailCryptTypeSHA256;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
emailCryptType = EmailCryptTypeNone;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return emailCryptType;
|
|
||||||
}
|
|
||||||
|
|
||||||
static NSString* stringFromDeepLinkResultStatus(AFSDKDeepLinkResultStatus deepLinkResult){
|
|
||||||
NSString* result;
|
|
||||||
switch (deepLinkResult){
|
|
||||||
case AFSDKDeepLinkResultStatusFound:
|
|
||||||
result = @"FOUND";
|
|
||||||
break;
|
|
||||||
case AFSDKDeepLinkResultStatusFailure:
|
|
||||||
result = @"ERROR";
|
|
||||||
break;
|
|
||||||
case AFSDKDeepLinkResultStatusNotFound:
|
|
||||||
result = @"NOT_FOUND";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
result = @"ERROR";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
static NSString* stringFromDeepLinkResultError(AppsFlyerDeepLinkResult *result){
|
|
||||||
NSString* res;
|
|
||||||
|
|
||||||
if (result && result.error){
|
|
||||||
if ([[result.error userInfo][NSUnderlyingErrorKey] code] == -1001) {
|
|
||||||
res = @"TIMEOUT";
|
|
||||||
} else if ([[result.error userInfo][NSUnderlyingErrorKey] code] == -1009) {
|
|
||||||
res = @"NETWORK";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
res = @"UNKNOWN";
|
|
||||||
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
//
|
|
||||||
// AppsFlyer+AppController.m
|
|
||||||
// Unity-iPhone
|
|
||||||
//
|
|
||||||
// Created by Jonathan Wesfield on 24/07/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <objc/runtime.h>
|
|
||||||
#import "UnityAppController.h"
|
|
||||||
#import "AppsFlyeriOSWrapper.h"
|
|
||||||
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
|
|
||||||
#import <AppsFlyerLib/AppsFlyerLib.h>
|
|
||||||
#else
|
|
||||||
#import "AppsFlyerLib.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
@implementation UnityAppController (AppsFlyerSwizzledAppController)
|
|
||||||
|
|
||||||
static BOOL didEnteredBackGround __unused;
|
|
||||||
static IMP __original_applicationDidBecomeActive_Imp __unused;
|
|
||||||
static IMP __original_applicationDidEnterBackground_Imp __unused;
|
|
||||||
static IMP __original_didReceiveRemoteNotification_Imp __unused;
|
|
||||||
static IMP __original_continueUserActivity_Imp __unused;
|
|
||||||
static IMP __original_openUrl_Imp __unused;
|
|
||||||
|
|
||||||
|
|
||||||
+ (void)load {
|
|
||||||
static dispatch_once_t onceToken;
|
|
||||||
dispatch_once(&onceToken, ^{
|
|
||||||
|
|
||||||
#if !AFSDK_SHOULD_SWIZZLE
|
|
||||||
|
|
||||||
id swizzleFlag = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppsFlyerShouldSwizzle"];
|
|
||||||
BOOL shouldSwizzle = swizzleFlag ? [swizzleFlag boolValue] : NO;
|
|
||||||
|
|
||||||
if(shouldSwizzle){
|
|
||||||
|
|
||||||
Method method1 = class_getInstanceMethod([self class], @selector(applicationDidBecomeActive:));
|
|
||||||
__original_applicationDidBecomeActive_Imp = method_setImplementation(method1, (IMP)__swizzled_applicationDidBecomeActive);
|
|
||||||
|
|
||||||
Method method2 = class_getInstanceMethod([self class], @selector(applicationDidEnterBackground:));
|
|
||||||
__original_applicationDidEnterBackground_Imp = method_setImplementation(method2, (IMP)__swizzled_applicationDidEnterBackground);
|
|
||||||
|
|
||||||
|
|
||||||
Method method3 = class_getInstanceMethod([self class], @selector(didReceiveRemoteNotification:));
|
|
||||||
__original_didReceiveRemoteNotification_Imp = method_setImplementation(method3, (IMP)__swizzled_didReceiveRemoteNotification);
|
|
||||||
|
|
||||||
|
|
||||||
Method method4 = class_getInstanceMethod([self class], @selector(application:openURL:options:));
|
|
||||||
__original_openUrl_Imp = method_setImplementation(method4, (IMP)__swizzled_openURL);
|
|
||||||
|
|
||||||
if (_AppsFlyerdelegate == nil) {
|
|
||||||
_AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init];
|
|
||||||
}
|
|
||||||
|
|
||||||
[self swizzleContinueUserActivity:[self class]];
|
|
||||||
}
|
|
||||||
#elif AFSDK_SHOULD_SWIZZLE
|
|
||||||
Method method1 = class_getInstanceMethod([self class], @selector(applicationDidBecomeActive:));
|
|
||||||
__original_applicationDidBecomeActive_Imp = method_setImplementation(method1, (IMP)__swizzled_applicationDidBecomeActive);
|
|
||||||
|
|
||||||
Method method2 = class_getInstanceMethod([self class], @selector(applicationDidEnterBackground:));
|
|
||||||
__original_applicationDidEnterBackground_Imp = method_setImplementation(method2, (IMP)__swizzled_applicationDidEnterBackground);
|
|
||||||
|
|
||||||
|
|
||||||
Method method3 = class_getInstanceMethod([self class], @selector(didReceiveRemoteNotification:));
|
|
||||||
__original_didReceiveRemoteNotification_Imp = method_setImplementation(method3, (IMP)__swizzled_didReceiveRemoteNotification);
|
|
||||||
|
|
||||||
|
|
||||||
Method method4 = class_getInstanceMethod([self class], @selector(application:openURL:options:));
|
|
||||||
__original_openUrl_Imp = method_setImplementation(method4, (IMP)__swizzled_openURL);
|
|
||||||
|
|
||||||
if (_AppsFlyerdelegate == nil) {
|
|
||||||
_AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init];
|
|
||||||
}
|
|
||||||
|
|
||||||
[self swizzleContinueUserActivity:[self class]];
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
+(void)swizzleContinueUserActivity:(Class)class {
|
|
||||||
|
|
||||||
SEL originalSelector = @selector(application:continueUserActivity:restorationHandler:);
|
|
||||||
|
|
||||||
Method defaultMethod = class_getInstanceMethod(class, originalSelector);
|
|
||||||
Method swizzledMethod = class_getInstanceMethod(class, @selector(__swizzled_continueUserActivity));
|
|
||||||
|
|
||||||
BOOL isMethodExists = !class_addMethod(class, originalSelector, method_getImplementation(swizzledMethod), method_getTypeEncoding(swizzledMethod));
|
|
||||||
|
|
||||||
if (isMethodExists) {
|
|
||||||
__original_continueUserActivity_Imp = method_setImplementation(defaultMethod, (IMP)__swizzled_continueUserActivity);
|
|
||||||
} else {
|
|
||||||
class_replaceMethod(class, originalSelector, (IMP)__swizzled_continueUserActivity, method_getTypeEncoding(swizzledMethod));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOL __swizzled_continueUserActivity(id self, SEL _cmd, UIApplication* application, NSUserActivity* userActivity, void (^restorationHandler)(NSArray*)) {
|
|
||||||
NSLog(@"swizzled continueUserActivity");
|
|
||||||
[[AppsFlyerAttribution shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
|
|
||||||
|
|
||||||
if(__original_continueUserActivity_Imp){
|
|
||||||
return ((BOOL(*)(id, SEL, UIApplication*, NSUserActivity*, void (^)(NSArray*)))__original_continueUserActivity_Imp)(self, _cmd, application, userActivity, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void __swizzled_applicationDidBecomeActive(id self, SEL _cmd, UIApplication* launchOptions) {
|
|
||||||
NSLog(@"swizzled applicationDidBecomeActive");
|
|
||||||
[[AppsFlyerLib shared] setDelegate:_AppsFlyerdelegate];
|
|
||||||
|
|
||||||
if(didEnteredBackGround && AppsFlyeriOSWarpper.didCallStart == YES){
|
|
||||||
[[AppsFlyerLib shared] start];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(__original_applicationDidBecomeActive_Imp){
|
|
||||||
((void(*)(id,SEL, UIApplication*))__original_applicationDidBecomeActive_Imp)(self, _cmd, launchOptions);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void __swizzled_applicationDidEnterBackground(id self, SEL _cmd, UIApplication* application) {
|
|
||||||
NSLog(@"swizzled applicationDidEnterBackground");
|
|
||||||
didEnteredBackGround = YES;
|
|
||||||
if(__original_applicationDidEnterBackground_Imp){
|
|
||||||
((void(*)(id,SEL, UIApplication*))__original_applicationDidEnterBackground_Imp)(self, _cmd, application);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BOOL __swizzled_didReceiveRemoteNotification(id self, SEL _cmd, UIApplication* application, NSDictionary* userInfo,void (^UIBackgroundFetchResult)(void) ) {
|
|
||||||
NSLog(@"swizzled didReceiveRemoteNotification");
|
|
||||||
|
|
||||||
[[AppsFlyerLib shared] handlePushNotification:userInfo];
|
|
||||||
|
|
||||||
if(__original_didReceiveRemoteNotification_Imp){
|
|
||||||
return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary*, int(UIBackgroundFetchResult)))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo, nil);
|
|
||||||
}
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BOOL __swizzled_openURL(id self, SEL _cmd, UIApplication* application, NSURL* url, NSDictionary * options) {
|
|
||||||
NSLog(@"swizzled openURL");
|
|
||||||
[[AppsFlyerAttribution shared] handleOpenUrl:url options:options];
|
|
||||||
if(__original_openUrl_Imp){
|
|
||||||
return ((BOOL(*)(id, SEL, UIApplication*, NSURL*, NSDictionary*))__original_openUrl_Imp)(self, _cmd, application, url, options);
|
|
||||||
}
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
//
|
|
||||||
// AppsFlyerAppController.mm
|
|
||||||
// Unity-iPhone
|
|
||||||
//
|
|
||||||
// Created by Jonathan Wesfield on 30/07/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#import "UnityAppController.h"
|
|
||||||
#import "AppDelegateListener.h"
|
|
||||||
#import "AppsFlyeriOSWrapper.h"
|
|
||||||
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
|
|
||||||
#import <AppsFlyerLib/AppsFlyerLib.h>
|
|
||||||
#else
|
|
||||||
#import "AppsFlyerLib.h"
|
|
||||||
#endif
|
|
||||||
#import <objc/message.h>
|
|
||||||
|
|
||||||
/**
|
|
||||||
Note if you would like to use method swizzeling see AppsFlyer+AppController.m
|
|
||||||
If you are using swizzeling then comment out the method that is being swizzeled in AppsFlyerAppController.mm
|
|
||||||
Only use swizzeling if there are conflicts with other plugins that needs to be resolved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
@interface AppsFlyerAppController : UnityAppController <AppDelegateListener>
|
|
||||||
{
|
|
||||||
BOOL didEnteredBackGround;
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation AppsFlyerAppController
|
|
||||||
|
|
||||||
- (instancetype)init
|
|
||||||
{
|
|
||||||
self = [super init];
|
|
||||||
if (self) {
|
|
||||||
|
|
||||||
id swizzleFlag = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppsFlyerShouldSwizzle"];
|
|
||||||
BOOL shouldSwizzle = swizzleFlag ? [swizzleFlag boolValue] : NO;
|
|
||||||
|
|
||||||
if(!shouldSwizzle){
|
|
||||||
UnityRegisterAppDelegateListener(self);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)didFinishLaunching:(NSNotification*)notification {
|
|
||||||
NSLog(@"got didFinishLaunching = %@",notification.userInfo);
|
|
||||||
|
|
||||||
|
|
||||||
if (_AppsFlyerdelegate == nil) {
|
|
||||||
_AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init];
|
|
||||||
}
|
|
||||||
[[AppsFlyerLib shared] setDelegate:_AppsFlyerdelegate];
|
|
||||||
|
|
||||||
if (notification.userInfo[@"url"]) {
|
|
||||||
[self onOpenURL:notification];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-(void)didBecomeActive:(NSNotification*)notification {
|
|
||||||
NSLog(@"got didBecomeActive(out) = %@", notification.userInfo);
|
|
||||||
if (didEnteredBackGround == YES && AppsFlyeriOSWarpper.didCallStart == YES) {
|
|
||||||
[[AppsFlyerLib shared] start];
|
|
||||||
didEnteredBackGround = NO;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)didEnterBackground:(NSNotification*)notification {
|
|
||||||
NSLog(@"got didEnterBackground = %@", notification.userInfo);
|
|
||||||
didEnteredBackGround = YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler {
|
|
||||||
[[AppsFlyerAttribution shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
- (void)onOpenURL:(NSNotification*)notification {
|
|
||||||
NSLog(@"got onOpenURL = %@", notification.userInfo);
|
|
||||||
NSURL *url = notification.userInfo[@"url"];
|
|
||||||
NSString *sourceApplication = notification.userInfo[@"sourceApplication"];
|
|
||||||
|
|
||||||
if (sourceApplication == nil) {
|
|
||||||
sourceApplication = @"";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (url != nil) {
|
|
||||||
[[AppsFlyerAttribution shared] handleOpenUrl:url sourceApplication:sourceApplication annotation:nil];
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)didReceiveRemoteNotification:(NSNotification*)notification {
|
|
||||||
NSLog(@"got didReceiveRemoteNotification = %@", notification.userInfo);
|
|
||||||
[[AppsFlyerLib shared] handlePushNotification:notification.userInfo];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
#if !(AFSDK_SHOULD_SWIZZLE)
|
|
||||||
|
|
||||||
IMPL_APP_CONTROLLER_SUBCLASS(AppsFlyerAppController)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
/**
|
|
||||||
Note if you would not like to use IMPL_APP_CONTROLLER_SUBCLASS you can replace it with the code below.
|
|
||||||
<code>
|
|
||||||
+(void)load
|
|
||||||
{
|
|
||||||
[AppsFlyerAppController plugin];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Singleton accessor.
|
|
||||||
+ (AppsFlyerAppController *)plugin
|
|
||||||
{
|
|
||||||
static AppsFlyerAppController *sharedInstance = nil;
|
|
||||||
static dispatch_once_t onceToken;
|
|
||||||
|
|
||||||
dispatch_once(&onceToken, ^{
|
|
||||||
|
|
||||||
sharedInstance = [[AppsFlyerAppController alloc] init];
|
|
||||||
});
|
|
||||||
|
|
||||||
return sharedInstance;
|
|
||||||
}
|
|
||||||
</code>
|
|
||||||
**/
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
//
|
|
||||||
// AppsFlyerAttribution.h
|
|
||||||
// UnityFramework
|
|
||||||
//
|
|
||||||
// Created by Margot Guetta on 11/04/2021.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef AppsFlyerAttribution_h
|
|
||||||
#define AppsFlyerAttribution_h
|
|
||||||
#endif /* AppsFlyerAttribution_h */
|
|
||||||
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
|
|
||||||
#import <AppsFlyerLib/AppsFlyerLib.h>
|
|
||||||
#else
|
|
||||||
#import "AppsFlyerLib.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
@interface AppsFlyerAttribution : NSObject
|
|
||||||
@property NSUserActivity*_Nullable userActivity;
|
|
||||||
@property (nonatomic, copy) void (^ _Nullable restorationHandler)(NSArray *_Nullable );
|
|
||||||
@property NSURL * _Nullable url;
|
|
||||||
@property NSDictionary * _Nullable options;
|
|
||||||
@property NSString* _Nullable sourceApplication;
|
|
||||||
@property id _Nullable annotation;
|
|
||||||
@property BOOL isBridgeReady;
|
|
||||||
|
|
||||||
+ (AppsFlyerAttribution *_Nullable)shared;
|
|
||||||
- (void) continueUserActivity: (NSUserActivity*_Nullable) userActivity restorationHandler: (void (^_Nullable)(NSArray * _Nullable))restorationHandler;
|
|
||||||
- (void) handleOpenUrl:(NSURL*_Nullable)url options:(NSDictionary*_Nullable) options;
|
|
||||||
- (void) handleOpenUrl: (NSURL *_Nonnull)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
static NSString * _Nullable const AF_BRIDGE_SET = @"bridge is set";
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
//
|
|
||||||
// NSObject+AppsFlyerAttribution.m
|
|
||||||
// UnityFramework
|
|
||||||
//
|
|
||||||
// Created by Margot Guetta on 11/04/2021.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#import "AppsFlyerAttribution.h"
|
|
||||||
|
|
||||||
@implementation AppsFlyerAttribution
|
|
||||||
|
|
||||||
+ (id)shared {
|
|
||||||
static AppsFlyerAttribution *shared = nil;
|
|
||||||
static dispatch_once_t onceToken;
|
|
||||||
dispatch_once(&onceToken, ^{
|
|
||||||
shared = [[self alloc] init];
|
|
||||||
});
|
|
||||||
return shared;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (id)init {
|
|
||||||
if (self = [super init]) {
|
|
||||||
self.options = nil;
|
|
||||||
self.restorationHandler = nil;
|
|
||||||
self.url = nil;
|
|
||||||
self.userActivity = nil;
|
|
||||||
self.annotation = nil;
|
|
||||||
self.sourceApplication = nil;
|
|
||||||
self.isBridgeReady = NO;
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
||||||
selector:@selector(receiveBridgeReadyNotification:)
|
|
||||||
name:AF_BRIDGE_SET
|
|
||||||
object:nil];
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) continueUserActivity: (NSUserActivity*_Nullable) userActivity restorationHandler: (void (^_Nullable)(NSArray * _Nullable))restorationHandler{
|
|
||||||
if(self.isBridgeReady == YES){
|
|
||||||
[[AppsFlyerLib shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
|
|
||||||
}else{
|
|
||||||
[AppsFlyerAttribution shared].userActivity = userActivity;
|
|
||||||
[AppsFlyerAttribution shared].restorationHandler = restorationHandler;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) handleOpenUrl:(NSURL *)url options:(NSDictionary *)options{
|
|
||||||
if(self.isBridgeReady == YES){
|
|
||||||
[[AppsFlyerLib shared] handleOpenUrl:url options:options];
|
|
||||||
}else{
|
|
||||||
[AppsFlyerAttribution shared].url = url;
|
|
||||||
[AppsFlyerAttribution shared].options = options;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) handleOpenUrl:(NSURL *)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation{
|
|
||||||
if(self.isBridgeReady == YES){
|
|
||||||
[[AppsFlyerLib shared] handleOpenURL:url sourceApplication:sourceApplication withAnnotation:annotation];
|
|
||||||
}else{
|
|
||||||
[AppsFlyerAttribution shared].url = url;
|
|
||||||
[AppsFlyerAttribution shared].sourceApplication = sourceApplication;
|
|
||||||
[AppsFlyerAttribution shared].annotation = annotation;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) receiveBridgeReadyNotification:(NSNotification *) notification
|
|
||||||
{
|
|
||||||
NSLog (@"AppsFlyer Debug: handle deep link");
|
|
||||||
if(self.url && self.sourceApplication){
|
|
||||||
[[AppsFlyerLib shared] handleOpenURL:self.url sourceApplication:self.sourceApplication withAnnotation:self.annotation];
|
|
||||||
self.url = nil;
|
|
||||||
self.sourceApplication = nil;
|
|
||||||
self.annotation = nil;
|
|
||||||
}else if(self.options && self.url){
|
|
||||||
[[AppsFlyerLib shared] handleOpenUrl:self.url options:self.options];
|
|
||||||
self.options = nil;
|
|
||||||
self.url = nil;
|
|
||||||
}else if(self.userActivity){
|
|
||||||
[[AppsFlyerLib shared] continueUserActivity:self.userActivity restorationHandler:nil];
|
|
||||||
self.userActivity = nil;
|
|
||||||
self.restorationHandler = nil;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
//
|
|
||||||
// AppsFlyeriOSWarpper.h
|
|
||||||
// Unity-iPhone
|
|
||||||
//
|
|
||||||
// Created by Jonathan Wesfield on 24/07/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "AFUnityUtils.mm"
|
|
||||||
#import "UnityAppController.h"
|
|
||||||
#import "AppsFlyerAttribution.h"
|
|
||||||
#if __has_include(<AppsFlyerLib/AppsFlyerLib.h>)
|
|
||||||
#import <AppsFlyerLib/AppsFlyerLib.h>
|
|
||||||
#else
|
|
||||||
#import "AppsFlyerLib.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@interface AppsFlyeriOSWarpper : NSObject <AppsFlyerLibDelegate, AppsFlyerDeepLinkDelegate>
|
|
||||||
+ (BOOL) didCallStart;
|
|
||||||
+ (void) setDidCallStart:(BOOL)val;
|
|
||||||
@end
|
|
||||||
|
|
||||||
|
|
||||||
static AppsFlyeriOSWarpper *_AppsFlyerdelegate;
|
|
||||||
static const int kPushNotificationSize = 32;
|
|
||||||
|
|
||||||
static NSString* ConversionDataCallbackObject = @"AppsFlyerObject";
|
|
||||||
|
|
||||||
static const char* VALIDATE_CALLBACK = "didFinishValidateReceipt";
|
|
||||||
static const char* VALIDATE_ERROR_CALLBACK = "didFinishValidateReceiptWithError";
|
|
||||||
static const char* GCD_CALLBACK = "onConversionDataSuccess";
|
|
||||||
static const char* GCD_ERROR_CALLBACK = "onConversionDataFail";
|
|
||||||
static const char* OAOA_CALLBACK = "onAppOpenAttribution";
|
|
||||||
static const char* OAOA_ERROR_CALLBACK = "onAppOpenAttributionFailure";
|
|
||||||
static const char* GENERATE_LINK_CALLBACK = "onInviteLinkGenerated";
|
|
||||||
static const char* OPEN_STORE_LINK_CALLBACK = "onOpenStoreLinkGenerated";
|
|
||||||
static const char* START_REQUEST_CALLBACK = "requestResponseReceived";
|
|
||||||
static const char* IN_APP_RESPONSE_CALLBACK = "inAppResponseReceived";
|
|
||||||
static const char* ON_DEEPLINKING = "onDeepLinking";
|
|
||||||
static const char* VALIDATE_AND_LOG_V2_CALLBACK = "onValidateAndLogComplete";
|
|
||||||
static const char* VALIDATE_AND_LOG_V2_ERROR_CALLBACK = "onValidateAndLogFailure";
|
|
||||||
|
|
||||||
|
|
||||||
static NSString* validateObjectName = @"";
|
|
||||||
static NSString* openStoreObjectName = @"";
|
|
||||||
static NSString* generateInviteObjectName = @"";
|
|
||||||
static NSString* validateAndLogObjectName = @"";
|
|
||||||
static NSString* startRequestObjectName = @"";
|
|
||||||
static NSString* inAppRequestObjectName = @"";
|
|
||||||
static NSString* onDeeplinkingObjectName = @"";
|
|
||||||
|
|
||||||
@@ -1,370 +0,0 @@
|
|||||||
//
|
|
||||||
// AppsFlyeriOSWarpper.mm
|
|
||||||
// Unity-iPhone
|
|
||||||
//
|
|
||||||
// Created by Jonathan Wesfield on 24/07/2019.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "AppsFlyeriOSWrapper.h"
|
|
||||||
|
|
||||||
|
|
||||||
static void unityCallBack(NSString* objectName, const char* method, const char* msg) {
|
|
||||||
if(objectName){
|
|
||||||
UnitySendMessage([objectName UTF8String], method, msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
|
|
||||||
const void _startSDK(bool shouldCallback, const char* objectName) {
|
|
||||||
[[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity
|
|
||||||
pluginVersion:@"6.14.4"
|
|
||||||
additionalParams:nil];
|
|
||||||
startRequestObjectName = stringFromChar(objectName);
|
|
||||||
AppsFlyeriOSWarpper.didCallStart = YES;
|
|
||||||
[AppsFlyerAttribution shared].isBridgeReady = YES;
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:AF_BRIDGE_SET object: [AppsFlyerAttribution shared]];
|
|
||||||
[[AppsFlyerLib shared] startWithCompletionHandler:^(NSDictionary<NSString *,id> *dictionary, NSError *error) {
|
|
||||||
if(shouldCallback){
|
|
||||||
if (error) {
|
|
||||||
NSDictionary *callbackDictionary = @{@"statusCode":[NSNumber numberWithLong:[error code]]};
|
|
||||||
unityCallBack(startRequestObjectName, START_REQUEST_CALLBACK, stringFromdictionary(callbackDictionary));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (dictionary) {
|
|
||||||
unityCallBack(startRequestObjectName, START_REQUEST_CALLBACK, stringFromdictionary(dictionary));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setCustomerUserID (const char* customerUserID) {
|
|
||||||
[[AppsFlyerLib shared] setCustomerUserID:stringFromChar(customerUserID)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setAdditionalData (const char* customData) {
|
|
||||||
[[AppsFlyerLib shared] setAdditionalData:dictionaryFromJson(customData)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setAppsFlyerDevKey (const char* appsFlyerDevKey) {
|
|
||||||
[AppsFlyerLib shared].appsFlyerDevKey = stringFromChar(appsFlyerDevKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setAppleAppID (const char* appleAppID) {
|
|
||||||
[AppsFlyerLib shared].appleAppID = stringFromChar(appleAppID);
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setCurrencyCode (const char* currencyCode) {
|
|
||||||
[[AppsFlyerLib shared] setCurrencyCode:stringFromChar(currencyCode)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setDisableCollectAppleAdSupport (bool disableAdvertisingIdentifier) {
|
|
||||||
[AppsFlyerLib shared].disableAdvertisingIdentifier = disableAdvertisingIdentifier;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setIsDebug (bool isDebug) {
|
|
||||||
[AppsFlyerLib shared].isDebug = isDebug;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setShouldCollectDeviceName (bool shouldCollectDeviceName) {
|
|
||||||
[AppsFlyerLib shared].shouldCollectDeviceName = shouldCollectDeviceName;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setAppInviteOneLinkID (const char* appInviteOneLinkID) {
|
|
||||||
[[AppsFlyerLib shared] setAppInviteOneLink:stringFromChar(appInviteOneLinkID)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setDeepLinkTimeout (long deepLinkTimeout) {
|
|
||||||
[AppsFlyerLib shared].deepLinkTimeout = deepLinkTimeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _anonymizeUser (bool anonymizeUser) {
|
|
||||||
[AppsFlyerLib shared].anonymizeUser = anonymizeUser;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _enableTCFDataCollection (bool shouldCollectTcfData) {
|
|
||||||
[[AppsFlyerLib shared] enableTCFDataCollection:shouldCollectTcfData];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setConsentData(bool isUserSubjectToGDPR, bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization) {
|
|
||||||
AppsFlyerConsent *consentData = nil;
|
|
||||||
if (isUserSubjectToGDPR) {
|
|
||||||
consentData = [[AppsFlyerConsent alloc] initForGDPRUserWithHasConsentForDataUsage:hasConsentForDataUsage hasConsentForAdsPersonalization:hasConsentForAdsPersonalization];
|
|
||||||
} else {
|
|
||||||
consentData = [[AppsFlyerConsent alloc] initNonGDPRUser];
|
|
||||||
}
|
|
||||||
[[AppsFlyerLib shared] setConsentData:consentData];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setDisableCollectIAd (bool disableCollectASA) {
|
|
||||||
[AppsFlyerLib shared].disableCollectASA = disableCollectASA;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setUseReceiptValidationSandbox (bool useReceiptValidationSandbox) {
|
|
||||||
[AppsFlyerLib shared].useReceiptValidationSandbox = useReceiptValidationSandbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setUseUninstallSandbox (bool useUninstallSandbox) {
|
|
||||||
[AppsFlyerLib shared].useUninstallSandbox = useUninstallSandbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setResolveDeepLinkURLs (int length, const char **resolveDeepLinkURLs) {
|
|
||||||
if(length > 0 && resolveDeepLinkURLs) {
|
|
||||||
[[AppsFlyerLib shared] setResolveDeepLinkURLs:NSArrayFromCArray(length, resolveDeepLinkURLs)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setOneLinkCustomDomains (int length, const char **oneLinkCustomDomains) {
|
|
||||||
if(length > 0 && oneLinkCustomDomains) {
|
|
||||||
[[AppsFlyerLib shared] setOneLinkCustomDomains:NSArrayFromCArray(length, oneLinkCustomDomains)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _afSendEvent (const char* eventName, const char* eventValues, bool shouldCallback, const char* objectName) {
|
|
||||||
inAppRequestObjectName = stringFromChar(objectName);
|
|
||||||
[[AppsFlyerLib shared] logEventWithEventName:stringFromChar(eventName) eventValues:dictionaryFromJson(eventValues) completionHandler:^(NSDictionary<NSString *,id> *dictionary, NSError *error) {
|
|
||||||
if(shouldCallback){
|
|
||||||
if (error) {
|
|
||||||
NSDictionary *callbackDictionary = @{@"statusCode":[NSNumber numberWithLong:[error code]]};
|
|
||||||
unityCallBack(inAppRequestObjectName, IN_APP_RESPONSE_CALLBACK, stringFromdictionary(callbackDictionary));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (dictionary) {
|
|
||||||
unityCallBack(inAppRequestObjectName, IN_APP_RESPONSE_CALLBACK, stringFromdictionary(dictionary));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _recordLocation (double longitude, double latitude) {
|
|
||||||
[[AppsFlyerLib shared] logLocation:longitude latitude:latitude];
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* _getAppsFlyerId () {
|
|
||||||
return getCString([[[AppsFlyerLib shared] getAppsFlyerUID] UTF8String]);
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _registerUninstall (unsigned char* deviceToken) {
|
|
||||||
if(deviceToken){
|
|
||||||
NSData* tokenData = [NSData dataWithBytes:(const void *)deviceToken length:sizeof(unsigned char)*kPushNotificationSize];
|
|
||||||
[[AppsFlyerLib shared] registerUninstall:tokenData];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _handlePushNotification (const char* pushPayload) {
|
|
||||||
[[AppsFlyerLib shared] handlePushNotification:dictionaryFromJson(pushPayload)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* _getSDKVersion () {
|
|
||||||
return getCString([[[AppsFlyerLib shared] getSDKVersion] UTF8String]);
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setHost (const char* host, const char* hostPrefix) {
|
|
||||||
[[AppsFlyerLib shared] setHost:stringFromChar(host) withHostPrefix:stringFromChar(hostPrefix)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setMinTimeBetweenSessions (int minTimeBetweenSessions) {
|
|
||||||
[AppsFlyerLib shared].minTimeBetweenSessions = minTimeBetweenSessions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _stopSDK (bool isStopped) {
|
|
||||||
[AppsFlyerLib shared].isStopped = isStopped;
|
|
||||||
}
|
|
||||||
|
|
||||||
const BOOL _isSDKStopped () {
|
|
||||||
return [AppsFlyerLib shared].isStopped;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _handleOpenUrl(const char *url, const char *sourceApplication, const char *annotation) {
|
|
||||||
[[AppsFlyerLib shared] handleOpenURL:[NSURL URLWithString:stringFromChar(url)] sourceApplication:stringFromChar(sourceApplication) withAnnotation:stringFromChar(annotation)]; }
|
|
||||||
|
|
||||||
const void _recordCrossPromoteImpression (const char* appID, const char* campaign, const char* parameters) {
|
|
||||||
[AppsFlyerCrossPromotionHelper logCrossPromoteImpression:stringFromChar(appID) campaign:stringFromChar(campaign) parameters:dictionaryFromJson(parameters)]; }
|
|
||||||
|
|
||||||
const void _attributeAndOpenStore (const char* appID, const char* campaign, const char* parameters, const char* objectName) {
|
|
||||||
|
|
||||||
openStoreObjectName = stringFromChar(objectName);
|
|
||||||
|
|
||||||
[AppsFlyerCrossPromotionHelper
|
|
||||||
logAndOpenStore:stringFromChar(appID)
|
|
||||||
campaign:stringFromChar(campaign)
|
|
||||||
parameters:dictionaryFromJson(parameters)
|
|
||||||
openStore:^(NSURLSession * _Nonnull urlSession, NSURL * _Nonnull clickURL) {
|
|
||||||
unityCallBack(openStoreObjectName, OPEN_STORE_LINK_CALLBACK, [clickURL.absoluteString UTF8String]);
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _generateUserInviteLink (const char* parameters, const char* objectName) {
|
|
||||||
|
|
||||||
generateInviteObjectName = stringFromChar(objectName);
|
|
||||||
|
|
||||||
[AppsFlyerShareInviteHelper generateInviteUrlWithLinkGenerator:^AppsFlyerLinkGenerator * _Nonnull(AppsFlyerLinkGenerator * _Nonnull generator) {
|
|
||||||
return generatorFromDictionary(dictionaryFromJson(parameters), generator);
|
|
||||||
} completionHandler:^(NSURL * _Nullable url) {
|
|
||||||
unityCallBack(generateInviteObjectName, GENERATE_LINK_CALLBACK, [url.absoluteString UTF8String]);
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _recordInvite (const char* channel, const char* parameters) {
|
|
||||||
[AppsFlyerShareInviteHelper logInvite:stringFromChar(channel) parameters:dictionaryFromJson(parameters)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setUserEmails (int emailCryptTypeInt , int length, const char **userEmails) {
|
|
||||||
if(length > 0 && userEmails) {
|
|
||||||
[[AppsFlyerLib shared] setUserEmails:NSArrayFromCArray(length, userEmails) withCryptType:emailCryptTypeFromInt(emailCryptTypeInt)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setPhoneNumber (const char* phoneNumber) {
|
|
||||||
[[AppsFlyerLib shared] setPhoneNumber:stringFromChar(phoneNumber)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setSharingFilterForAllPartners () {
|
|
||||||
[[AppsFlyerLib shared] setSharingFilterForAllPartners];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setSharingFilter (int length, const char **partners) {
|
|
||||||
if(length > 0 && partners) {
|
|
||||||
[[AppsFlyerLib shared] setSharingFilter:NSArrayFromCArray(length, partners)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setSharingFilterForPartners (int length, const char **partners) {
|
|
||||||
if(length > 0 && partners) {
|
|
||||||
[[AppsFlyerLib shared] setSharingFilterForPartners:NSArrayFromCArray(length, partners)];
|
|
||||||
} else {
|
|
||||||
[[AppsFlyerLib shared] setSharingFilterForPartners:nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _validateAndSendInAppPurchase (const char* productIdentifier, const char* price, const char* currency, const char* transactionId, const char* additionalParameters, const char* objectName) {
|
|
||||||
|
|
||||||
validateObjectName = stringFromChar(objectName);
|
|
||||||
|
|
||||||
[[AppsFlyerLib shared]
|
|
||||||
validateAndLogInAppPurchase:stringFromChar(productIdentifier)
|
|
||||||
price:stringFromChar(price)
|
|
||||||
currency:stringFromChar(currency)
|
|
||||||
transactionId:stringFromChar(transactionId)
|
|
||||||
additionalParameters:dictionaryFromJson(additionalParameters)
|
|
||||||
success:^(NSDictionary *result){
|
|
||||||
unityCallBack(validateObjectName, VALIDATE_CALLBACK, stringFromdictionary(result));
|
|
||||||
} failure:^(NSError *error, id response) {
|
|
||||||
if(response && [response isKindOfClass:[NSDictionary class]]) {
|
|
||||||
NSDictionary* value = (NSDictionary*)response;
|
|
||||||
unityCallBack(validateObjectName, VALIDATE_ERROR_CALLBACK, stringFromdictionary(value));
|
|
||||||
} else {
|
|
||||||
unityCallBack(validateObjectName, VALIDATE_ERROR_CALLBACK, error ? [[error localizedDescription] UTF8String] : "error");
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _validateAndSendInAppPurchaseV2 (const char* product, const char* price, const char* currency, const char* transactionId, const char* extraEventValues, const char* objectName) {
|
|
||||||
|
|
||||||
validateAndLogObjectName = stringFromChar(objectName);
|
|
||||||
AFSDKPurchaseDetails *details = [[AFSDKPurchaseDetails alloc] initWithProductId:stringFromChar(product) price:stringFromChar(price) currency:stringFromChar(currency) transactionId:stringFromChar(transactionId)];
|
|
||||||
|
|
||||||
[[AppsFlyerLib shared]
|
|
||||||
validateAndLogInAppPurchase:details
|
|
||||||
extraEventValues:dictionaryFromJson(extraEventValues)
|
|
||||||
completionHandler:^(AFSDKValidateAndLogResult * _Nullable result) {
|
|
||||||
if (result.status == AFSDKValidateAndLogStatusSuccess) {
|
|
||||||
unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_CALLBACK, stringFromdictionary(result.result));
|
|
||||||
} else if (result.status == AFSDKValidateAndLogStatusFailure) {
|
|
||||||
unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_CALLBACK, stringFromdictionary(result.errorData));
|
|
||||||
} else {
|
|
||||||
unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_ERROR_CALLBACK, stringFromdictionary(dictionaryFromNSError(result.error)));
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _getConversionData(const char* objectName) {
|
|
||||||
if (_AppsFlyerdelegate == nil) {
|
|
||||||
_AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init];
|
|
||||||
}
|
|
||||||
ConversionDataCallbackObject = stringFromChar(objectName);
|
|
||||||
[[AppsFlyerLib shared] setDelegate:_AppsFlyerdelegate];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _waitForATTUserAuthorizationWithTimeoutInterval (int timeoutInterval) {
|
|
||||||
[[AppsFlyerLib shared] waitForATTUserAuthorizationWithTimeoutInterval:timeoutInterval];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _disableSKAdNetwork (bool isDisabled) {
|
|
||||||
[AppsFlyerLib shared].disableSKAdNetwork = isDisabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _addPushNotificationDeepLinkPath (int length, const char **paths) {
|
|
||||||
if(length > 0 && paths) {
|
|
||||||
[[AppsFlyerLib shared] addPushNotificationDeepLinkPath:NSArrayFromCArray(length, paths)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _subscribeForDeepLink (const char* objectName) {
|
|
||||||
|
|
||||||
onDeeplinkingObjectName = stringFromChar(objectName);
|
|
||||||
|
|
||||||
if (_AppsFlyerdelegate == nil) {
|
|
||||||
_AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init];
|
|
||||||
}
|
|
||||||
[[AppsFlyerLib shared] setDeepLinkDelegate:_AppsFlyerdelegate];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setCurrentDeviceLanguage(const char* language) {
|
|
||||||
[[AppsFlyerLib shared] setCurrentDeviceLanguage:stringFromChar(language)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _setPartnerData(const char* partnerId, const char* partnerInfo) {
|
|
||||||
[[AppsFlyerLib shared] setPartnerDataWithPartnerId: stringFromChar(partnerId) partnerInfo:dictionaryFromJson(partnerInfo)];
|
|
||||||
}
|
|
||||||
|
|
||||||
const void _disableIDFVCollection(bool isDisabled) {
|
|
||||||
[AppsFlyerLib shared].disableIDFVCollection = isDisabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@implementation AppsFlyeriOSWarpper
|
|
||||||
|
|
||||||
static BOOL didCallStart;
|
|
||||||
+ (BOOL) didCallStart
|
|
||||||
{ @synchronized(self) { return didCallStart; } }
|
|
||||||
+ (void) setDidCallStart:(BOOL)val
|
|
||||||
{ @synchronized(self) { didCallStart = val; } }
|
|
||||||
|
|
||||||
- (void)onConversionDataSuccess:(NSDictionary *)installData {
|
|
||||||
unityCallBack(ConversionDataCallbackObject, GCD_CALLBACK, stringFromdictionary(installData));
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)onConversionDataFail:(NSError *)error {
|
|
||||||
unityCallBack(ConversionDataCallbackObject, GCD_ERROR_CALLBACK, [[error localizedDescription] UTF8String]);
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)onAppOpenAttribution:(NSDictionary *)attributionData {
|
|
||||||
unityCallBack(ConversionDataCallbackObject, OAOA_CALLBACK, stringFromdictionary(attributionData));
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)onAppOpenAttributionFailure:(NSError *)error {
|
|
||||||
unityCallBack(ConversionDataCallbackObject, OAOA_ERROR_CALLBACK, [[error localizedDescription] UTF8String]);
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)didResolveDeepLink:(AppsFlyerDeepLinkResult *)result{
|
|
||||||
|
|
||||||
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
|
|
||||||
|
|
||||||
[dict setValue:stringFromDeepLinkResultError(result) forKey:@"error"];
|
|
||||||
[dict setValue:stringFromDeepLinkResultStatus(result.status) forKey:@"status"];
|
|
||||||
|
|
||||||
if(result && result.deepLink){
|
|
||||||
[dict setValue:result.deepLink.description forKey:@"deepLink"];
|
|
||||||
[dict setValue:@(result.deepLink.isDeferred) forKey:@"is_deferred"];
|
|
||||||
}
|
|
||||||
|
|
||||||
unityCallBack(onDeeplinkingObjectName, ON_DEEPLINKING, stringFromdictionary(dict));
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2bff3788f3d8747fe9679bd3818e1d76
|
|
||||||
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:
|
|
||||||
@@ -0,0 +1,184 @@
|
|||||||
|
#nullable enable
|
||||||
|
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class InAppPurchaseValidationResult : EventArgs
|
||||||
|
{
|
||||||
|
public bool success;
|
||||||
|
public ProductPurchase? productPurchase;
|
||||||
|
public ValidationFailureData? failureData;
|
||||||
|
public string? token;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ProductPurchase
|
||||||
|
{
|
||||||
|
public string? kind;
|
||||||
|
public string? purchaseTimeMillis;
|
||||||
|
public int purchaseState;
|
||||||
|
public int consumptionState;
|
||||||
|
public string? developerPayload;
|
||||||
|
public string? orderId;
|
||||||
|
public int purchaseType;
|
||||||
|
public int acknowledgementState;
|
||||||
|
public string? purchaseToken;
|
||||||
|
public string? productId;
|
||||||
|
public int quantity;
|
||||||
|
public string? obfuscatedExternalAccountId;
|
||||||
|
public string? obfuscatedExternalProfil;
|
||||||
|
public string? regionCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ValidationFailureData
|
||||||
|
{
|
||||||
|
public int status;
|
||||||
|
public string? description;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SubscriptionValidationResult
|
||||||
|
{
|
||||||
|
public bool success;
|
||||||
|
public SubscriptionPurchase? subscriptionPurchase;
|
||||||
|
public ValidationFailureData? failureData;
|
||||||
|
public string? token;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SubscriptionPurchase
|
||||||
|
{
|
||||||
|
public string? acknowledgementState;
|
||||||
|
public CanceledStateContext? canceledStateContext;
|
||||||
|
public ExternalAccountIdentifiers? externalAccountIdentifiers;
|
||||||
|
public string? kind;
|
||||||
|
public string? latestOrderId;
|
||||||
|
public List<SubscriptionPurchaseLineItem>? lineItems;
|
||||||
|
public string? linkedPurchaseToken;
|
||||||
|
public PausedStateContext? pausedStateContext;
|
||||||
|
public string? regionCode;
|
||||||
|
public string? startTime;
|
||||||
|
public SubscribeWithGoogleInfo? subscribeWithGoogleInfo;
|
||||||
|
public string? subscriptionState;
|
||||||
|
public TestPurchase? testPurchase;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class CanceledStateContext
|
||||||
|
{
|
||||||
|
public DeveloperInitiatedCancellation? developerInitiatedCancellation;
|
||||||
|
public ReplacementCancellation? replacementCancellation;
|
||||||
|
public SystemInitiatedCancellation? systemInitiatedCancellation;
|
||||||
|
public UserInitiatedCancellation? userInitiatedCancellation;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ExternalAccountIdentifiers
|
||||||
|
{
|
||||||
|
public string? externalAccountId;
|
||||||
|
public string? obfuscatedExternalAccountId;
|
||||||
|
public string? obfuscatedExternalProfileId;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SubscriptionPurchaseLineItem
|
||||||
|
{
|
||||||
|
public AutoRenewingPlan? autoRenewingPlan;
|
||||||
|
public DeferredItemReplacement? deferredItemReplacement;
|
||||||
|
public string? expiryTime;
|
||||||
|
public OfferDetails? offerDetails;
|
||||||
|
public PrepaidPlan? prepaidPlan;
|
||||||
|
public string? productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class PausedStateContext
|
||||||
|
{
|
||||||
|
public string? autoResumeTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SubscribeWithGoogleInfo
|
||||||
|
{
|
||||||
|
public string? emailAddress;
|
||||||
|
public string? familyName;
|
||||||
|
public string? givenName;
|
||||||
|
public string? profileId;
|
||||||
|
public string? profileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class TestPurchase{}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class DeveloperInitiatedCancellation{}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ReplacementCancellation{}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SystemInitiatedCancellation{}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class UserInitiatedCancellation
|
||||||
|
{
|
||||||
|
public CancelSurveyResult? cancelSurveyResult;
|
||||||
|
public string? cancelTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class AutoRenewingPlan
|
||||||
|
{
|
||||||
|
public string? autoRenewEnabled;
|
||||||
|
public SubscriptionItemPriceChangeDetails? priceChangeDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class DeferredItemReplacement
|
||||||
|
{
|
||||||
|
public string? productId;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class OfferDetails
|
||||||
|
{
|
||||||
|
public List<string>? offerTags;
|
||||||
|
public string? basePlanId;
|
||||||
|
public string? offerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class PrepaidPlan
|
||||||
|
{
|
||||||
|
public string? allowExtendAfterTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class CancelSurveyResult
|
||||||
|
{
|
||||||
|
public string? reason;
|
||||||
|
public string? reasonUserInput;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class SubscriptionItemPriceChangeDetails
|
||||||
|
{
|
||||||
|
public string? expectedNewPriceChargeTime;
|
||||||
|
public Money? newPrice;
|
||||||
|
public string? priceChangeMode;
|
||||||
|
public string? priceChangeState;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class Money
|
||||||
|
{
|
||||||
|
public string? currencyCode;
|
||||||
|
public long nanos;
|
||||||
|
public long units;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: db9c4b1882637324eb5d271709bae611
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "appsflyer-unity-plugin",
|
"name": "appsflyer-unity-plugin",
|
||||||
"displayName": "AppsFlyer",
|
"displayName": "AppsFlyer",
|
||||||
"description": "AppsFlyer Unity plugin",
|
"description": "AppsFlyer Unity plugin",
|
||||||
"version": "6.14.3",
|
"version": "6.17.91",
|
||||||
"unity": "2019.4",
|
"unity": "2019.4",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,119 +3,18 @@ using UnityEngine;
|
|||||||
using AppsFlyerSDK;
|
using AppsFlyerSDK;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#if UNITY_IOS && !UNITY_EDITOR
|
|
||||||
using Unity.Advertisement.IosSupport;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace ScrewsMaster
|
namespace ScrewsMaster
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
internal class AppsFlyerObjectScript1 : MonoBehaviour, IAppsFlyerConversionData
|
internal class AppsFlyerObjectScript1 : MonoBehaviour
|
||||||
{
|
{
|
||||||
public string appID = null;
|
|
||||||
public bool is_init = false;
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
AppsFlyer.setIsDebug(true);
|
|
||||||
#if UNITY_IOS && !UNITY_EDITOR
|
|
||||||
appID = "6723880120";
|
|
||||||
StartCoroutine("loopWaitInitAf");
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#if UNITY_IOS && !UNITY_EDITOR
|
|
||||||
public IEnumerator loopWaitInitAf()
|
|
||||||
{
|
|
||||||
var reqData = new RespLoginFunnelData
|
|
||||||
{
|
|
||||||
type = "afSend",
|
|
||||||
payload = ""
|
|
||||||
};
|
|
||||||
NetworkKit.PostFunnelLogin(reqData);
|
|
||||||
float a = 0;
|
|
||||||
if (ATTrackingStatusBinding.GetAuthorizationTrackingStatus() ==
|
|
||||||
ATTrackingStatusBinding.AuthorizationTrackingStatus.NOT_DETERMINED)
|
|
||||||
{
|
|
||||||
ATTrackingStatusBinding.RequestAuthorizationTracking();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
while ((ATTrackingStatusBinding.GetAuthorizationTrackingStatus() ==
|
|
||||||
ATTrackingStatusBinding.AuthorizationTrackingStatus.NOT_DETERMINED) && (a < 5.0f))
|
|
||||||
{
|
|
||||||
a += 0.5f;
|
|
||||||
yield return new WaitForSeconds(0.5f);
|
|
||||||
}
|
|
||||||
|
|
||||||
AppsFlyer.initSDK("Qrv4wCq6shkTP6x5SBtuZT", appID, this);
|
|
||||||
AppsFlyer.startSDK();
|
|
||||||
AppsFlyer.AFLog("8888888888888888888", ATTrackingStatusBinding.GetAuthorizationTrackingStatus().ToString());
|
|
||||||
//yield return new WaitForSeconds(0.5f);
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public void onConversionDataSuccess(string conversionData)
|
|
||||||
{
|
|
||||||
if (is_init) return;
|
|
||||||
is_init = true;
|
|
||||||
AppsFlyer.AFLog("onConversionDataSuccess", conversionData);
|
|
||||||
Debug.Log("hunxiao0000000000000000000000-1");
|
|
||||||
var conversionDataDictionary = AppsFlyer.CallbackStringToDictionary(conversionData);
|
|
||||||
var json = SerializeUtil.ToJsonIndented(conversionDataDictionary);
|
|
||||||
Debug.Log("hunxiao0000000000000000000000-2");
|
|
||||||
|
|
||||||
SuperApplication.Instance.attribution =
|
|
||||||
conversionDataDictionary.TryGetValue("af_status", out var afStatus1)
|
|
||||||
? afStatus1.ToString().ToLower()
|
|
||||||
: "organic";
|
|
||||||
|
|
||||||
// Debug.Log("hunxiao0000000000000000000000");
|
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
|
||||||
|
|
||||||
var reqData = new RespLoginFunnelData
|
|
||||||
{
|
|
||||||
type = "afRecv",
|
|
||||||
payload = "true"
|
|
||||||
};
|
|
||||||
NetworkKit.PostFunnelLogin(reqData);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onConversionDataFail(string error)
|
|
||||||
{
|
|
||||||
if (is_init) return;
|
|
||||||
is_init = true;
|
|
||||||
AppsFlyer.AFLog("onConversionDataFail", error);
|
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
|
||||||
var reqData = new RespLoginFunnelData
|
|
||||||
{
|
|
||||||
type = "afRecv",
|
|
||||||
payload = "false"
|
|
||||||
};
|
|
||||||
NetworkKit.PostFunnelLogin(reqData);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onAppOpenAttribution(string attributionData)
|
|
||||||
{
|
|
||||||
AppsFlyer.AFLog("onAppOpenAttribution", attributionData);
|
|
||||||
Dictionary<string, object> attributionDataDictionary =
|
|
||||||
AppsFlyer.CallbackStringToDictionary(attributionData);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onAppOpenAttributionFailure(string error)
|
|
||||||
{
|
|
||||||
AppsFlyer.AFLog("onAppOpenAttributionFailure", error);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,368 +1,109 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using AppsFlyerSDK;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using static ScrewsMaster.NetworkKit;
|
using System.Collections.Generic;
|
||||||
|
using AppsFlyerSDK;
|
||||||
|
using MYp0ZVTT2QSDK;
|
||||||
|
using DG.Tweening;
|
||||||
|
|
||||||
namespace ScrewsMaster
|
namespace ScrewsMaster
|
||||||
{
|
{
|
||||||
public class MaxADKit
|
public class MaxADKit
|
||||||
{
|
{
|
||||||
public static string SDKKey =
|
|
||||||
"oXM0CzVDi7P1HstOpKvFMInPMOzpQ9uA6t3x75q5f5wQvsEy9vuiiiM94ZJCJSV7PcZGroSSInQCTGsu04QEiE";
|
|
||||||
|
|
||||||
public static string interstitialADUnitID = "c1d96170d3f02c0e";
|
|
||||||
|
|
||||||
|
|
||||||
public static string rewardedADUnitID = "f9cf204de101065b";
|
|
||||||
|
|
||||||
|
|
||||||
private const float RevenueThreshold = 0.1f;
|
|
||||||
|
|
||||||
public static Dictionary<string, string> adCallbackInfo;
|
|
||||||
|
|
||||||
private static UnityAction<bool> _rewardedAdPlayCallback;
|
|
||||||
private static UnityAction<bool> _interstitialAdPlayCallback;
|
|
||||||
|
|
||||||
public static string user_id = "";
|
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
MaxSdkCallbacks.OnSdkInitializedEvent += sdkConfiguration =>
|
#if !UNITY_EDITOR
|
||||||
|
// 注册 ab事件,0或1,0为自然量版本,1为激励版本
|
||||||
|
MYp0ZVTT2QSDKHelper.Instance.RegistIosParam((i =>
|
||||||
{
|
{
|
||||||
InitializeRewardedAds();
|
SuperApplication.Instance.attribution = i == 0 ? "organic" : "non_organic";
|
||||||
InitializeInterstitialAds();
|
// Debug.Log($"ios ab param : {i} attribution=== {BingoBea.Instance.attribution}");
|
||||||
};
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.Login);
|
||||||
|
|
||||||
|
}));
|
||||||
|
|
||||||
MaxSdk.SetSdkKey(SDKKey);
|
void GameConfig(bool result, string config)
|
||||||
|
|
||||||
var loginModel = GameHelper.GetLoginModel();
|
|
||||||
user_id = loginModel.uid.ToString();
|
|
||||||
|
|
||||||
MaxSdk.SetUserId(user_id);
|
|
||||||
// MaxSdk.SetIsAgeRestrictedUser(false);
|
|
||||||
MaxSdk.SetHasUserConsent(true);
|
|
||||||
MaxSdk.SetDoNotSell(false);
|
|
||||||
|
|
||||||
MaxSdk.InitializeSdk();
|
|
||||||
#if !JarvisRelease
|
|
||||||
MaxSdk.ShowMediationDebugger();
|
|
||||||
#endif
|
|
||||||
adCallbackInfo = new Dictionary<string, string>();
|
|
||||||
}
|
|
||||||
|
|
||||||
#region 插屏广告相关
|
|
||||||
|
|
||||||
public static void ShowInterstitial(string placement = "DefaultInterstitial",
|
|
||||||
UnityAction<bool> onCompleted = null)
|
|
||||||
{
|
|
||||||
_interstitialAdPlayCallback = onCompleted;
|
|
||||||
if (MaxSdk.IsInterstitialReady(interstitialADUnitID))
|
|
||||||
{
|
{
|
||||||
// Debug.Log($"广告已经准备好,播放");
|
Debug.Log($"************* game config result : {result}, config : {config}");
|
||||||
MaxSdk.ShowInterstitial(interstitialADUnitID, placement);
|
|
||||||
// onCompleted?.Invoke(true);
|
|
||||||
}
|
}
|
||||||
else
|
// SDK初始化方法
|
||||||
|
MYp0ZVTT2QSDKHelper.Instance.Init(null, null, GameConfig);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static bool CheckInterstitialReady()
|
||||||
|
{
|
||||||
|
return MYp0ZVTT2QSDKHelper.Instance.IsInterReady();
|
||||||
|
}
|
||||||
|
public static void ShowInterstitial(string placement = "DefaultInterstitial", UnityAction<bool> onCompleted = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (CheckInterstitialReady())
|
||||||
{
|
{
|
||||||
// Debug.Log($"广告未准备好,不播放");
|
Debug.Log($"广告已经准备好,播放");
|
||||||
|
MYp0ZVTT2QSDKHelper.Instance.ShowInter(placement, () =>
|
||||||
_interstitialAdPlayCallback?.Invoke(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static int retryAttemptInterstitial;
|
|
||||||
|
|
||||||
public static void InitializeInterstitialAds()
|
|
||||||
{
|
|
||||||
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdLoadedEvent += OnInterstitialLoadedEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdLoadFailedEvent += OnInterstitialLoadFailedEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdDisplayedEvent += OnInterstitialDisplayedEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdClickedEvent += OnInterstitialClickedEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdHiddenEvent += OnInterstitialHiddenEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdDisplayFailedEvent += OnInterstitialAdFailedToDisplayEvent;
|
|
||||||
MaxSdkCallbacks.Interstitial.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
|
|
||||||
|
|
||||||
|
|
||||||
LoadInterstitial();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void LoadInterstitial()
|
|
||||||
{
|
|
||||||
MaxSdk.LoadInterstitial(interstitialADUnitID);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialLoadedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
retryAttemptInterstitial = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialLoadFailedEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo)
|
|
||||||
{
|
|
||||||
retryAttemptInterstitial++;
|
|
||||||
double retryDelay = Math.Pow(2, Math.Min(6, retryAttemptInterstitial));
|
|
||||||
|
|
||||||
CrazyAsyKit.StartAction("LoadInterstitial", LoadInterstitial, (float)retryDelay);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialDisplayedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialAdFailedToDisplayEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo,
|
|
||||||
MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
_interstitialAdPlayCallback?.Invoke(false);
|
|
||||||
LoadInterstitial();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialClickedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialHiddenEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
_interstitialAdPlayCallback?.Invoke(true);
|
|
||||||
OnInterstitialAdRevenuePaidEvent(adUnitId, adInfo);
|
|
||||||
LoadInterstitial();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnInterstitialAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
string countryCode = "USD";//MaxSdk.GetSdkConfiguration().CountryCode; // "US" for the United States, etc - Note: Do not confuse this with currency code which is "USD"
|
|
||||||
// //string networkName = adInfo.NetworkName; // Display name of the network that showed the ad
|
|
||||||
// // string adUnitIdentifier = adInfo.AdUnitIdentifier; // The MAX Ad Unit ID
|
|
||||||
// //string placement = adInfo.Placement; // The placement this ad's postbacks are tied to
|
|
||||||
// // string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad
|
|
||||||
adCallbackInfo.Clear();
|
|
||||||
var loginModel = GameHelper.GetLoginModel();
|
|
||||||
adCallbackInfo.Add("customer_user_id", loginModel.uid.ToString());
|
|
||||||
adCallbackInfo.Add("af_revenue", adInfo.Revenue.ToString());
|
|
||||||
adCallbackInfo.Add("af_currency", countryCode);
|
|
||||||
adCallbackInfo.Add("eventValue", "");
|
|
||||||
// //AppsFlyer.sendEvent("af_pay", adCallbackInfo);
|
|
||||||
|
|
||||||
double revenue = Convert.ToDouble(PlayerPrefs.GetString($"adInfoRevenue_{loginModel.uid}", "0")); revenue += adInfo.Revenue;
|
|
||||||
|
|
||||||
if (revenue >= RevenueThreshold)
|
|
||||||
{
|
|
||||||
adCallbackInfo["af_revenue"] = revenue.ToString();
|
|
||||||
//AppsFlyer.sendEvent("af_revenue", adCallbackInfo);
|
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{loginModel.uid}", "0");
|
|
||||||
|
|
||||||
bool isToday = CommonHelper.IsToday(loginModel.reg_time);
|
|
||||||
if (isToday)
|
|
||||||
{
|
{
|
||||||
adCallbackInfo["af_new_revenue"] = revenue.ToString();
|
DOVirtual.DelayedCall(0.1f, () =>
|
||||||
//AppsFlyer.sendEvent("af_purchase", adCallbackInfo);
|
{
|
||||||
}
|
onCompleted?.Invoke(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{loginModel.uid}", revenue.ToString());
|
Debug.Log($"广告未准备好,不播放");
|
||||||
|
onCompleted?.Invoke(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static UnityAction<bool> onVideoAdCompleted = null;
|
||||||
|
private static string _placement = "";
|
||||||
|
private static Coroutine _waitForVideoAd = null;
|
||||||
|
|
||||||
#endregion
|
public static bool CheckRewardedReady()
|
||||||
|
{
|
||||||
#region 激励视频广告相关
|
return MYp0ZVTT2QSDKHelper.Instance.IsVideoReady();
|
||||||
|
}
|
||||||
public static void ShowVideo(string placement = "DefaultVideo", UnityAction<bool> onCompleted = null)
|
public static void ShowVideo(string placement = "DefaultVideo", UnityAction<bool> onCompleted = null)
|
||||||
{
|
{
|
||||||
_rewardedAdPlayCallback = onCompleted;
|
onVideoAdCompleted = onCompleted;
|
||||||
|
_placement = placement;
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
_rewardedAdPlayCallback?.Invoke(true);
|
onVideoAdCompleted?.Invoke(true);
|
||||||
#else
|
#else
|
||||||
if (MaxSdk.IsRewardedAdReady(rewardedADUnitID))
|
// TrackKit.SendEvent(VideoBehaviorTrack.Event, VideoBehaviorTrack.Property.watch_ad_people);
|
||||||
|
// TrackKit.SendEvent(VideoBehaviorTrack.Event, VideoBehaviorTrack.Property.Rewarded_videos_trigger_number);
|
||||||
|
|
||||||
|
if (CheckRewardedReady())
|
||||||
{
|
{
|
||||||
MaxSdk.ShowRewardedAd(rewardedADUnitID, placement);
|
MYp0ZVTT2QSDKHelper.Instance.ShowRewardVideo(_placement, b =>
|
||||||
// onCompleted?.Invoke(true);
|
{
|
||||||
|
DOVirtual.DelayedCall(0.1f, () =>
|
||||||
|
{
|
||||||
|
onVideoAdCompleted?.Invoke(b);
|
||||||
|
});
|
||||||
|
}, ()=>
|
||||||
|
{
|
||||||
|
DOVirtual.DelayedCall(0.2f, () =>
|
||||||
|
{
|
||||||
|
Debug.Log($"激励广告关闭");
|
||||||
|
if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveobject().is_get_removead && (UnityEngine.Random.Range(0, 100) < GameHelper.GetCommonModel().rewardinsertion))
|
||||||
|
{
|
||||||
|
// TrackKit.SendEvent(ADEventTrack.Event, ADEventTrack.Property.afterRewardAdShow);
|
||||||
|
|
||||||
|
GameHelper.ShowInterstitial("AfterReward");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_rewardedAdPlayCallback?.Invoke(false);
|
onVideoAdCompleted?.Invoke(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
static int retryAttempt;
|
|
||||||
|
|
||||||
public static void InitializeRewardedAds()
|
|
||||||
{
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdLoadedEvent += OnRewardedAdLoadedEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdLoadFailedEvent += OnRewardedAdLoadFailedEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdDisplayedEvent += OnRewardedAdDisplayedEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdClickedEvent += OnRewardedAdClickedEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdRevenuePaidEvent += OnRewardedAdRevenuePaidEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdHiddenEvent += OnRewardedAdHiddenEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdDisplayFailedEvent += OnRewardedAdFailedToDisplayEvent;
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdReceivedRewardEvent += OnRewardedAdReceivedRewardEvent;
|
|
||||||
|
|
||||||
MaxSdkCallbacks.Rewarded.OnAdRevenuePaidEvent += OnAdRevenuePaidEvent;
|
|
||||||
Debug.Log("InitializeRewardedAds");
|
|
||||||
|
|
||||||
LoadRewardedAd();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void LoadRewardedAd()
|
|
||||||
{
|
|
||||||
MaxSdk.LoadRewardedAd(rewardedADUnitID);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
string countryCode = "USD";
|
|
||||||
|
|
||||||
adCallbackInfo.Clear();
|
|
||||||
adCallbackInfo.Add("appsflyer_id", AppsFlyer.getAppsFlyerId());
|
|
||||||
adCallbackInfo.Add("customer_user_id", user_id);
|
|
||||||
adCallbackInfo.Add("af_currency", countryCode);
|
|
||||||
|
|
||||||
//广告收益上传(扣量)((用户累计收益大于0.1上报50%,50%可配置))
|
|
||||||
double revenue = Convert.ToDouble(PlayerPrefs.GetString($"adInfoRevenue_{user_id}", "0"));
|
|
||||||
revenue += adInfo.Revenue;
|
|
||||||
|
|
||||||
// Debug.Log($"revenue: {revenue} \n adInfo.Revenue: {adInfo.Revenue}");
|
|
||||||
|
|
||||||
if (revenue >= RevenueThreshold)
|
|
||||||
{
|
|
||||||
adCallbackInfo.Add("af_revenue", revenue.ToString());
|
|
||||||
AppsFlyer.sendEvent("af_ad_revenue", adCallbackInfo);
|
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{user_id}", "0");
|
|
||||||
|
|
||||||
int adrate = ConfigSystem.GetConfig<CommonModel>().adrate / 100;
|
|
||||||
double revenueAdrate = revenue * adrate;
|
|
||||||
adCallbackInfo["af_revenue"] = revenueAdrate.ToString();
|
|
||||||
AppsFlyer.sendEvent("Af_new_ad_revenue", adCallbackInfo);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{user_id}", revenue.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
int highSend;
|
|
||||||
if (!PlayerPrefs.HasKey($"sendHighRevenue_{user_id}"))
|
|
||||||
{
|
|
||||||
highSend = 0; // 如果不存在,则初始化为 0
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
highSend = PlayerPrefs.GetInt($"sendHighRevenue_{user_id}", 0); // 从 PlayerPrefs 中获取
|
|
||||||
}
|
|
||||||
// 判断是否需要发送高收入事件
|
|
||||||
// Debug.Log($"highSend=====: {highSend}");
|
|
||||||
if (highSend == 0)
|
|
||||||
{
|
|
||||||
float limitNum = GameHelper.GetCommonModel().afSendLimit;
|
|
||||||
var totalNum = Convert.ToDouble(PlayerPrefs.GetString($"adRevenueTotal_{user_id}", "0"));
|
|
||||||
totalNum += adInfo.Revenue;
|
|
||||||
// Debug.Log($"totalNum=====: {totalNum} {limitNum}");
|
|
||||||
if (totalNum >= limitNum)
|
|
||||||
{
|
|
||||||
GameHelper.sendHighRevenueToAF(); // 发送高收入事件
|
|
||||||
PlayerPrefs.SetInt($"sendHighRevenue_{user_id}", 1); // 标记已发送
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayerPrefs.SetString($"adRevenueTotal_{user_id}", totalNum.ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdLoadedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
retryAttempt = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdLoadFailedEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo)
|
|
||||||
{
|
|
||||||
retryAttempt++;
|
|
||||||
double retryDelay = Math.Pow(2, Math.Min(6, retryAttempt));
|
|
||||||
|
|
||||||
CrazyAsyKit.StartAction("LoadRewardedAd", LoadRewardedAd, (float)retryDelay);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdDisplayedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdFailedToDisplayEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo,
|
|
||||||
MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
LoadRewardedAd();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdClickedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdHiddenEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
LoadRewardedAd();
|
|
||||||
|
|
||||||
if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveobject().is_get_removead && (UnityEngine.Random.Range(0, 100) < GameHelper.GetCommonModel().rewardinsertion))
|
|
||||||
{
|
|
||||||
NetworkKit.androidPointObject.@event = BuriedPointEvent.Apple_AD_event;
|
|
||||||
NetworkKit.androidPointObject.property = BuriedPointEvent.afterRewardAdShow;
|
|
||||||
NetworkKit.androidPointObject.n = 1;
|
|
||||||
NetworkKit.PostWithHeader<AndroidPointObject>("/event/incrN", androidPointObject, (isSuccess, obj) =>
|
|
||||||
{
|
|
||||||
});
|
|
||||||
|
|
||||||
GameHelper.ShowInterstitial("AfterReward");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void OnRewardedAdReceivedRewardEvent(string adUnitId, MaxSdk.Reward reward,
|
|
||||||
MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
|
|
||||||
_rewardedAdPlayCallback?.Invoke(true);
|
|
||||||
_rewardedAdPlayCallback = null;
|
|
||||||
|
|
||||||
string countryCode = "USD";//MaxSdk.GetSdkConfiguration().CountryCode; // "US" for the United States, etc - Note: Do not confuse this with currency code which is "USD"
|
|
||||||
// //string networkName = adInfo.NetworkName; // Display name of the network that showed the ad
|
|
||||||
// // string adUnitIdentifier = adInfo.AdUnitIdentifier; // The MAX Ad Unit ID
|
|
||||||
// //string placement = adInfo.Placement; // The placement this ad's postbacks are tied to
|
|
||||||
// // string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad
|
|
||||||
adCallbackInfo.Clear();
|
|
||||||
var loginModel = GameHelper.GetLoginModel();
|
|
||||||
adCallbackInfo.Add("customer_user_id", loginModel.uid.ToString());
|
|
||||||
adCallbackInfo.Add("af_revenue", adInfo.Revenue.ToString());
|
|
||||||
adCallbackInfo.Add("af_currency", countryCode);
|
|
||||||
adCallbackInfo.Add("eventValue", "");
|
|
||||||
// //AppsFlyer.sendEvent("af_pay", adCallbackInfo);
|
|
||||||
|
|
||||||
double revenue = Convert.ToDouble(PlayerPrefs.GetString($"adInfoRevenue_{loginModel.uid}", "0"));
|
|
||||||
revenue += adInfo.Revenue;
|
|
||||||
|
|
||||||
if (revenue >= RevenueThreshold)
|
|
||||||
{
|
|
||||||
adCallbackInfo["af_revenue"] = revenue.ToString();
|
|
||||||
//AppsFlyer.sendEvent("af_revenue", adCallbackInfo);
|
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{loginModel.uid}", "0");
|
|
||||||
|
|
||||||
bool isToday = CommonHelper.IsToday(loginModel.reg_time);
|
|
||||||
if (isToday)
|
|
||||||
{
|
|
||||||
adCallbackInfo["af_new_revenue"] = revenue.ToString();
|
|
||||||
//AppsFlyer.sendEvent("af_purchase", adCallbackInfo);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayerPrefs.SetString($"adInfoRevenue_{loginModel.uid}", revenue.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnRewardedAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -34,9 +34,6 @@ namespace ScrewsMaster
|
|||||||
{
|
{
|
||||||
CtrlDispatcher.Instance.AddListener(CtrlMsg.Login_Succeed, OnLoginSucceed);
|
CtrlDispatcher.Instance.AddListener(CtrlMsg.Login_Succeed, OnLoginSucceed);
|
||||||
var isAssetBundleLoad = false;
|
var isAssetBundleLoad = false;
|
||||||
#if !UNITY_EDITOR && UNITY_ANDROID
|
|
||||||
// MaxADKit.Init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
isAssetBundleLoad = false;
|
isAssetBundleLoad = false;
|
||||||
@@ -57,7 +54,7 @@ namespace ScrewsMaster
|
|||||||
{
|
{
|
||||||
OnInitAsset();
|
OnInitAsset();
|
||||||
}
|
}
|
||||||
|
MaxADKit.Init();
|
||||||
AppDispatcher.Instance.AddListener(AppMsg.UI_LoadingInitAsset, OnInitAsset);
|
AppDispatcher.Instance.AddListener(AppMsg.UI_LoadingInitAsset, OnInitAsset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ namespace ScrewsMaster
|
|||||||
RequestHeart();
|
RequestHeart();
|
||||||
TimerHelper.UnscaleGeneral.AddLoopTimer(60, (timer) => { RequestHeart(); });
|
TimerHelper.UnscaleGeneral.AddLoopTimer(60, (timer) => { RequestHeart(); });
|
||||||
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetPlayData);
|
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetPlayData);
|
||||||
MaxADKit.Init();
|
// MaxADKit.Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TrackLoginActivity(bool isSuccess)
|
private void TrackLoginActivity(bool isSuccess)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 28175da64865f4e398b3b9ddfbe97b24
|
guid: d95f4eb6b76da3c4e98b4ef7af986b62
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: -1465085449, guid: 3781f2218eef4d5a823dba406baa434b, type: 3}
|
||||||
|
m_Name: CrashlyticsSettings
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
configuration:
|
||||||
|
stringProperties: []
|
||||||
|
intProperties: []
|
||||||
|
floatProperties: []
|
||||||
|
booleanProperties: []
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 4cee8bca36f2ab74b8feb832747fa6f4
|
guid: e3b372c796e407e499eff2e854a571ec
|
||||||
NativeFormatImporter:
|
NativeFormatImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 0
|
mainObjectFileID: 11400000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 16068f30788004029bd487756623799b
|
guid: ff264e59d64e1824e8d61afc436a5db7
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
After Width: | Height: | Size: 134 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dc218b335b1d14cd5ae532f65042d829
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_analytics.png
|
||||||
|
timeCreated: 1473376337
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 136 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9fe4b3bd3b7d2477dac92fb7429d1d1b
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_analytics_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 295 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 394b3ec4d60c24476a12e4ba696d9e5d
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_auth.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 305 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3a9e1ef6287664c389bb09e2ac1b23b7
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_auth_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 510 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 837e8e1f35e334e81931d0857680cebf
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_cloud_messaging.png
|
||||||
|
timeCreated: 1473376336
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 521 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 20c5b8a1f82cb4aadb77ca20683d2a6e
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_cloud_messaging_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 253 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 415eaec414af14d11955222a282aca08
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_config.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 253 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0ad9ef5fff5524355a9670c90a99cbba
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_config_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 454 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 008a5e76206e49f9b06d8ba144aabb38
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_crashlytics.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 471 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 214009068900439da4a9cded17d58090
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_crashlytics_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 248 B |
@@ -0,0 +1,69 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3eea7b558c67b48e18acf3c278392e3d
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_database.png
|
||||||
|
timeCreated: 1476203961
|
||||||
|
licenseType: Free
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
linearTexture: 0
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: -1
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: -1
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 268 B |
@@ -0,0 +1,69 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9f6bfa9d8aefb40dc92461c372c73b0f
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_database_dark.png
|
||||||
|
timeCreated: 1476203949
|
||||||
|
licenseType: Free
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
linearTexture: 0
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: -1
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: -1
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 468 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: df6f219c396f4ad9b5048bae6944cb8e
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_dynamic_links.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 470 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9355a4671cfe4eef90879863318d1a4b
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_dynamic_links_dark.png
|
||||||
|
timeCreated: 1472679009
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 449 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 953367231f9e3e22e70e5d1c91a40fe5
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_functions.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 464 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b5aa3e4f7432e1c5698417cc13f85271
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_functions_dark.png
|
||||||
|
timeCreated: 1472679008
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 390 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 741b269777f30488482ef4937b456b28
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_invites.png
|
||||||
|
timeCreated: 1473376335
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 424 B |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a734ad7414926404e90f8b5be37b7e23
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_invites_dark.png
|
||||||
|
timeCreated: 1472679009
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 306 B |
@@ -0,0 +1,78 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 573eb851c99f948f4bf2de49322bfd53
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_storage.png
|
||||||
|
timeCreated: 1481243899
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: -1
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
platformSettings:
|
||||||
|
- buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 304 B |
@@ -0,0 +1,78 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2955864b938094f579ea9902b65ac10c
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/fb_storage_dark.png
|
||||||
|
timeCreated: 1481243898
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: -1
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
platformSettings:
|
||||||
|
- buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9f058f25e8e2d47cfb894951d4d7e48a
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/firebase_lockup.png
|
||||||
|
timeCreated: 1473376336
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,68 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b93330fc8ea08407dbc514b5101afa14
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Editor Default Resources/Firebase/firebase_lockup_dark.png
|
||||||
|
timeCreated: 1472601251
|
||||||
|
licenseType: Pro
|
||||||
|
TextureImporter:
|
||||||
|
fileIDToRecycleName: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
linearTexture: 1
|
||||||
|
correctGamma: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 0
|
||||||
|
cubemapConvolution: 0
|
||||||
|
cubemapConvolutionSteps: 7
|
||||||
|
cubemapConvolutionExponent: 1.5
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: -1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
filterMode: -1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: -1
|
||||||
|
wrapMode: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
rGBM: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot:
|
||||||
|
x: 0.5
|
||||||
|
y: 0.5
|
||||||
|
spriteBorder:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
z: 0
|
||||||
|
w: 0
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
textureType: 2
|
||||||
|
buildTargetSettings: []
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
spritePackingTag:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 0863bf92b4fcc45b0b9267325249bf0f, type: 3}
|
|
||||||
m_Name: NotificationSettings
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
toolbarInt: 0
|
|
||||||
iOSNotificationEditorSettingsValues:
|
|
||||||
keys:
|
|
||||||
- UnityNotificationRequestAuthorizationOnAppLaunch
|
|
||||||
- UnityNotificationDefaultAuthorizationOptions
|
|
||||||
- UnityAddRemoteNotificationCapability
|
|
||||||
- UnityNotificationRequestAuthorizationForRemoteNotificationsOnAppLaunch
|
|
||||||
- UnityRemoteNotificationForegroundPresentationOptions
|
|
||||||
- UnityUseAPSReleaseEnvironment
|
|
||||||
- UnityUseLocationNotificationTrigger
|
|
||||||
values:
|
|
||||||
- True
|
|
||||||
- 7
|
|
||||||
- False
|
|
||||||
- False
|
|
||||||
- -1
|
|
||||||
- False
|
|
||||||
- False
|
|
||||||
AndroidNotificationEditorSettingsValues:
|
|
||||||
keys:
|
|
||||||
- UnityNotificationAndroidRescheduleOnDeviceRestart
|
|
||||||
- UnityNotificationAndroidUseCustomActivity
|
|
||||||
- UnityNotificationAndroidCustomActivityString
|
|
||||||
values:
|
|
||||||
- False
|
|
||||||
- False
|
|
||||||
- com.unity3d.player.UnityPlayerActivity
|
|
||||||
TrackedResourceAssets: []
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 218a2e7ff5a4c461981bc41f7d7bfeba
|
guid: 3ec08b98a0bbe0e4982efbe3ee6c33ac
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 8d94ea3741ad8d344a76cca0aa62f67e
|
guid: 8e8f7d71b39131a448de54c9ec6777b9
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<!-- Copyright (C) 2019 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
FirebaseAnalytics iOS and Android Dependencies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<iosPods>
|
||||||
|
<iosPod name="Firebase/Analytics" version="11.10.0" minTargetSdk="13.0">
|
||||||
|
</iosPod>
|
||||||
|
</iosPods>
|
||||||
|
<androidPackages>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-analytics:22.4.0">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-analytics-unity:12.8.0">
|
||||||
|
<repositories>
|
||||||
|
<repository>Assets/Firebase/m2repository</repository>
|
||||||
|
</repositories>
|
||||||
|
</androidPackage>
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1e3c2da79be842cd838a9ddd70d20fa9
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/AnalyticsDependencies.xml
|
||||||
|
timeCreated: 1480838400
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<!-- Copyright (C) 2019 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
FirebaseApp iOS and Android Dependencies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<iosPods>
|
||||||
|
<iosPod name="Firebase/Core" version="11.10.0" minTargetSdk="13.0">
|
||||||
|
</iosPod>
|
||||||
|
</iosPods>
|
||||||
|
<androidPackages>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-common:21.0.0">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-analytics:22.4.0">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.android.gms:play-services-base:18.6.0">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-app-unity:12.8.0">
|
||||||
|
<repositories>
|
||||||
|
<repository>Assets/Firebase/m2repository</repository>
|
||||||
|
</repositories>
|
||||||
|
</androidPackage>
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9b63af95d9364af4a3d8ce58738b6223
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/AppDependencies.xml
|
||||||
|
timeCreated: 1480838400
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<!-- Copyright (C) 2019 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
FirebaseCrashlytics iOS and Android Dependencies.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<iosPods>
|
||||||
|
<iosPod name="Firebase/Crashlytics" version="11.10.0" minTargetSdk="13.0">
|
||||||
|
</iosPod>
|
||||||
|
</iosPods>
|
||||||
|
<androidPackages>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-crashlytics-ndk:19.4.2">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-analytics:22.4.0">
|
||||||
|
</androidPackage>
|
||||||
|
<androidPackage spec="com.google.firebase:firebase-crashlytics-unity:12.8.0">
|
||||||
|
<repositories>
|
||||||
|
<repository>Assets/Firebase/m2repository</repository>
|
||||||
|
</repositories>
|
||||||
|
</androidPackage>
|
||||||
|
</androidPackages>
|
||||||
|
</dependencies>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be690db6bda046a89e38b20ef9bfe06c
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/CrashlyticsDependencies.xml
|
||||||
|
timeCreated: 1480838400
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3781f2218eef4d5a823dba406baa434b
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_targets-editor
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/Firebase.Crashlytics.Editor.dll
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
: Linux
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: LinuxUniversal
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: OSXIntel
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: OSXIntel64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: Web
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
: WebStreamed
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
|
- first:
|
||||||
|
Standalone: Linux64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: OSXUniversal
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Windows Store Apps: WindowsStoreApps
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
- first:
|
||||||
|
iPhone: iOS
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CompileFlags:
|
||||||
|
FrameworkDependencies:
|
||||||
|
- first:
|
||||||
|
tvOS: tvOS
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CompileFlags:
|
||||||
|
FrameworkDependencies:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 78466de0dce747f9bf1d009be141cf6f
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_rename_to_disable
|
||||||
|
- gvh_targets-editor
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/Firebase.Crashlytics.Editor.pdb
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9f2edbf81053418f879076c05f816dc2
|
||||||
|
labels:
|
||||||
|
- gvh
|
||||||
|
- gvh_targets-editor
|
||||||
|
- gvh_version-12.8.0
|
||||||
|
- gvhp_exportpath-Firebase/Editor/Firebase.Editor.dll
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
: Linux
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: LinuxUniversal
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: OSXIntel
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: OSXIntel64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
: Web
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
: WebStreamed
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
|
- first:
|
||||||
|
Standalone: Linux64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: OSXUniversal
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Windows Store Apps: WindowsStoreApps
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
- first:
|
||||||
|
iPhone: iOS
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CompileFlags:
|
||||||
|
FrameworkDependencies:
|
||||||
|
- first:
|
||||||
|
tvOS: tvOS
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CompileFlags:
|
||||||
|
FrameworkDependencies:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||