diff --git a/Assets/AppsFlyer/AppsFlyerPurchaseConnector.cs b/Assets/AppsFlyer/AppsFlyerPurchaseConnector.cs index b9c42d2..7b9e260 100644 --- a/Assets/AppsFlyer/AppsFlyerPurchaseConnector.cs +++ b/Assets/AppsFlyer/AppsFlyerPurchaseConnector.cs @@ -8,7 +8,7 @@ namespace AppsFlyerConnector public class AppsFlyerPurchaseConnector : MonoBehaviour { - public static readonly string kAppsFlyerPurchaseConnectorVersion = "2.1.0"; + public static readonly string kAppsFlyerPurchaseConnectorVersion = "2.1.1"; #if UNITY_ANDROID && !UNITY_EDITOR private static AndroidJavaClass appsFlyerAndroidConnector = new AndroidJavaClass("com.appsflyer.unity.afunitypurchaseconnector.AppsFlyerAndroidWrapper"); diff --git a/Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml b/Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml index 70c2737..748f2ae 100644 --- a/Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml +++ b/Assets/AppsFlyer/Editor/AppsFlyerPurchaseConnectorDependencies.xml @@ -7,7 +7,7 @@ - + diff --git a/Assets/AppsFlyer/ProductPurchase.cs b/Assets/AppsFlyer/ProductPurchase.cs index 50b2585..f2d92ef 100644 --- a/Assets/AppsFlyer/ProductPurchase.cs +++ b/Assets/AppsFlyer/ProductPurchase.cs @@ -1,3 +1,5 @@ +#nullable enable + using System.Collections; using System.Collections.Generic; using System; @@ -9,33 +11,33 @@ class InAppPurchaseValidationResult : EventArgs public bool success; public ProductPurchase? productPurchase; public ValidationFailureData? failureData; - public string token; + public string? token; } [System.Serializable] class ProductPurchase { - public string kind; - public string purchaseTimeMillis; + public string? kind; + public string? purchaseTimeMillis; public int purchaseState; public int consumptionState; - public string developerPayload; - public string orderId; + public string? developerPayload; + public string? orderId; public int purchaseType; public int acknowledgementState; - public string purchaseToken; - public string productId; + public string? purchaseToken; + public string? productId; public int quantity; - public string obfuscatedExternalAccountId; - public string obfuscatedExternalProfil; - public string regionCode; + public string? obfuscatedExternalAccountId; + public string? obfuscatedExternalProfil; + public string? regionCode; } [System.Serializable] class ValidationFailureData { public int status; - public string description; + public string? description; } [System.Serializable] @@ -44,24 +46,24 @@ class SubscriptionValidationResult public bool success; public SubscriptionPurchase? subscriptionPurchase; public ValidationFailureData? failureData; - public string token; + public string? token; } [System.Serializable] class SubscriptionPurchase { - public string acknowledgementState; + public string? acknowledgementState; public CanceledStateContext? canceledStateContext; public ExternalAccountIdentifiers? externalAccountIdentifiers; - public string kind; - public string latestOrderId; - public List lineItems; + public string? kind; + public string? latestOrderId; + public List? lineItems; public string? linkedPurchaseToken; public PausedStateContext? pausedStateContext; - public string regionCode; - public string startTime; + public string? regionCode; + public string? startTime; public SubscribeWithGoogleInfo? subscribeWithGoogleInfo; - public string subscriptionState; + public string? subscriptionState; public TestPurchase? testPurchase; } @@ -78,9 +80,9 @@ class CanceledStateContext [System.Serializable] class ExternalAccountIdentifiers { - public string externalAccountId; - public string obfuscatedExternalAccountId; - public string obfuscatedExternalProfileId; + public string? externalAccountId; + public string? obfuscatedExternalAccountId; + public string? obfuscatedExternalProfileId; } [System.Serializable] @@ -88,26 +90,26 @@ class SubscriptionPurchaseLineItem { public AutoRenewingPlan? autoRenewingPlan; public DeferredItemReplacement? deferredItemReplacement; - public string expiryTime; + public string? expiryTime; public OfferDetails? offerDetails; public PrepaidPlan? prepaidPlan; - public string productId; + public string? productId; } [System.Serializable] class PausedStateContext { - public string autoResumeTime; + public string? autoResumeTime; } [System.Serializable] class SubscribeWithGoogleInfo { - public string emailAddress; - public string familyName; - public string givenName; - public string profileId; - public string profileName; + public string? emailAddress; + public string? familyName; + public string? givenName; + public string? profileId; + public string? profileName; } [System.Serializable] @@ -126,7 +128,7 @@ class SystemInitiatedCancellation{} class UserInitiatedCancellation { public CancelSurveyResult? cancelSurveyResult; - public string cancelTime; + public string? cancelTime; } [System.Serializable] @@ -139,14 +141,14 @@ class AutoRenewingPlan [System.Serializable] class DeferredItemReplacement { - public string productId; + public string? productId; } [System.Serializable] class OfferDetails { public List? offerTags; - public string basePlanId; + public string? basePlanId; public string? offerId; } @@ -159,23 +161,23 @@ class PrepaidPlan [System.Serializable] class CancelSurveyResult { - public string reason; - public string reasonUserInput; + public string? reason; + public string? reasonUserInput; } [System.Serializable] class SubscriptionItemPriceChangeDetails { - public string expectedNewPriceChargeTime; + public string? expectedNewPriceChargeTime; public Money? newPrice; - public string priceChangeMode; - public string priceChangeState; + public string? priceChangeMode; + public string? priceChangeState; } [System.Serializable] class Money { - public string currencyCode; + public string? currencyCode; public long nanos; public long units; } diff --git a/CHANGELOG.md b/CHANGELOG.md index 4464d93..7758599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Versions +## v2.1.1 +* Update iOS PurchaseConnector to 6.15.3 +* Warnings fix + ## v2.1.0 * Update Android PurchaseConnector to 2.1.0 diff --git a/appsflyer-unity-purchase-connector-2.1.0.unitypackage b/appsflyer-unity-purchase-connector-2.1.0.unitypackage deleted file mode 100644 index 5222f3b..0000000 Binary files a/appsflyer-unity-purchase-connector-2.1.0.unitypackage and /dev/null differ diff --git a/appsflyer-unity-purchase-connector-2.1.1.unitypackage b/appsflyer-unity-purchase-connector-2.1.1.unitypackage new file mode 100644 index 0000000..d56f640 Binary files /dev/null and b/appsflyer-unity-purchase-connector-2.1.1.unitypackage differ diff --git a/deploy/build_appsflyer_unity_purchase-connector_plugin.sh b/deploy/build_appsflyer_unity_purchase-connector_plugin.sh index c18fe80..cd8f61e 100644 --- a/deploy/build_appsflyer_unity_purchase-connector_plugin.sh +++ b/deploy/build_appsflyer_unity_purchase-connector_plugin.sh @@ -4,7 +4,7 @@ echo "Start build for appsflyer-unity-purchase-connector.unitypackage" DEPLOY_PATH=output UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" -PACKAGE_NAME="appsflyer-unity-purchase-connector-2.1.0.unitypackage" +PACKAGE_NAME="appsflyer-unity-purchase-connector-2.1.1.unitypackage" mkdir -p $DEPLOY_PATH #move external dependency manager @@ -23,7 +23,7 @@ mv external-dependency-manager-1.2.144.unitypackage .. Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ -&& echo "Package exported successfully to output/appsflyer-unity-purchase-connector-2.1.0.unitypackage" \ +&& echo "Package exported successfully to output/appsflyer-unity-purchase-connector-2.1.1.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info" if [ "$1" == "-p" ]; then diff --git a/deploy/build_appsflyer_unity_purchase-connector_plugin_strict_mode.sh b/deploy/build_appsflyer_unity_purchase-connector_plugin_strict_mode.sh index 011e948..eb4fa6b 100644 --- a/deploy/build_appsflyer_unity_purchase-connector_plugin_strict_mode.sh +++ b/deploy/build_appsflyer_unity_purchase-connector_plugin_strict_mode.sh @@ -4,7 +4,7 @@ echo "Start build for appsflyer-unity-purchase-connector.unitypackage - Strict M DEPLOY_PATH=output UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity" -PACKAGE_NAME="appsflyer-unity-purchase-connector-strict-mode-2.1.0.unitypackage" +PACKAGE_NAME="appsflyer-unity-purchase-connector-strict-mode-2.1.1.unitypackage" mkdir -p $DEPLOY_PATH #move external dependency manager @@ -27,7 +27,7 @@ echo "Changing PurchaseConnector to Strict Mode. Done." Assets \ $PWD/$DEPLOY_PATH/$PACKAGE_NAME \ -quit \ -&& echo "Package exported successfully to output/appsflyer-unity-purchase-connector-strict-mode-2.1.0.unitypackage" \ +&& echo "Package exported successfully to output/appsflyer-unity-purchase-connector-strict-mode-2.1.1.unitypackage" \ || echo "Failed to export package. See create_unity_core.log for more info" if [ "$1" == "-p" ]; then diff --git a/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.0.unitypackage b/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.0.unitypackage deleted file mode 100644 index 68aac57..0000000 Binary files a/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.0.unitypackage and /dev/null differ diff --git a/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.1.unitypackage b/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.1.unitypackage new file mode 100644 index 0000000..93c575b Binary files /dev/null and b/strict-mode/appsflyer-unity-purchase-connector-strict-mode-2.1.1.unitypackage differ