Skip to content

Commit

Permalink
[Android] fix product deserialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
x401om committed Feb 8, 2023
1 parent d6b1dce commit fbc73ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/AdaptySDK/Adapty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace AdaptySDK
{
public static partial class Adapty
{
public static readonly string sdkVersion = "2.2.1";
public static readonly string sdkVersion = "2.2.2";

public static void SetLogLevel(LogLevel level)
=> _Adapty.SetLogLevel(level.ToJSON());
Expand Down
4 changes: 2 additions & 2 deletions Assets/AdaptySDK/JSON/PaywallProduct+JSON.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ internal PaywallProduct(JSONObject jsonNode)
LocalizedPrice = jsonNode.GetStringIfPresent("localized_price");
LocalizedSubscriptionPeriod = jsonNode.GetStringIfPresent("localized_subscription_period");
#if UNITY_ANDROID
AndroidFreeTrialPeriod = jsonNode.GetSubscriptionPeriodIfPresent("localized_free_trial_period");
AndroidLocalizedFreeTrialPeriod = jsonNode.GetStringIfPresent("free_trial_period");
AndroidFreeTrialPeriod = jsonNode.GetSubscriptionPeriodIfPresent("free_trial_period");
AndroidLocalizedFreeTrialPeriod = jsonNode.GetStringIfPresent("localized_free_trial_period");
#else
AndroidFreeTrialPeriod = null;
AndroidLocalizedFreeTrialPeriod = null;
Expand Down
Binary file added Releases/adapty-unity-plugin-2.2.2.unitypackage
Binary file not shown.

0 comments on commit fbc73ae

Please sign in to comment.