Skip to content

Commit fbc73ae

Browse files
committed
[Android] fix product deserialization error
1 parent d6b1dce commit fbc73ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Assets/AdaptySDK/Adapty.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace AdaptySDK
1515
{
1616
public static partial class Adapty
1717
{
18-
public static readonly string sdkVersion = "2.2.1";
18+
public static readonly string sdkVersion = "2.2.2";
1919

2020
public static void SetLogLevel(LogLevel level)
2121
=> _Adapty.SetLogLevel(level.ToJSON());

Assets/AdaptySDK/JSON/PaywallProduct+JSON.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ internal PaywallProduct(JSONObject jsonNode)
6565
LocalizedPrice = jsonNode.GetStringIfPresent("localized_price");
6666
LocalizedSubscriptionPeriod = jsonNode.GetStringIfPresent("localized_subscription_period");
6767
#if UNITY_ANDROID
68-
AndroidFreeTrialPeriod = jsonNode.GetSubscriptionPeriodIfPresent("localized_free_trial_period");
69-
AndroidLocalizedFreeTrialPeriod = jsonNode.GetStringIfPresent("free_trial_period");
68+
AndroidFreeTrialPeriod = jsonNode.GetSubscriptionPeriodIfPresent("free_trial_period");
69+
AndroidLocalizedFreeTrialPeriod = jsonNode.GetStringIfPresent("localized_free_trial_period");
7070
#else
7171
AndroidFreeTrialPeriod = null;
7272
AndroidLocalizedFreeTrialPeriod = null;
63.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)