Skip to content

Commit

Permalink
Merge pull request #42 from superwall/develop
Browse files Browse the repository at this point in the history
1.3.4
  • Loading branch information
yusuftor authored Nov 15, 2024
2 parents 80d6dc7 + 90fc9a1 commit 16374b5
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 206 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

The changelog for `Superwall`. Also see the [releases](https://github.com/superwall/Superwall-Flutter/releases) on GitHub.

## 1.3.4

### Enhancements

- Adds `setLocaleIdentifier(_:)` and `getLocaleIdentifier()`.

## 1.3.3
- Upgrades Android SDK to 1.3.1 [View Android SDK release notes](https://github.com/superwall-me/Superwall-Android/releases/tag/1.3.1)
- This fixes the issue when using Superwall with some SDK's would cause a crash (i.e. Smartlook SDK)

- Upgrades Android SDK to 1.3.1 [View Android SDK release notes](https://github.com/superwall-me/Superwall-Android/releases/tag/1.3.1)
- This fixes the issue when using Superwall with some SDK's would cause a crash (i.e. Smartlook SDK)

## 1.3.2

Expand All @@ -16,6 +22,7 @@ The changelog for `Superwall`. Also see the [releases](https://github.com/superw
## 1.3.1

### Enhancements

- Upgrades Android SDK to 1.3.0 [View Android SDK release notes](https://github.com/superwall-me/Superwall-Android/releases/tag/1.3.0)
- Upgrades Android SDK to 3.10.1 [View Android SDK release notes](https://github.com/superwall-me/Superwall-iOS/releases/tag/3.10.1)
- Adds `confirmAllAssignments` method to `Superwall` which confirms assignments for all placements and returns an array of all confirmed experiment assignments. Note that the assignments may be different when a placement is registered due to changes in user, placement, or device parameters used in audience filters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ class SuperwallBridge(
}
}

"getLocaleIdentifier" -> {
val identifier = Superwall.instance.localeIdentifier
result.success(identifier)
}

"setLocaleIdentifier" -> {
val localeIdentifier = call.argument<String?>("localeIdentifier")
Superwall.instance.localeIdentifier = localeIdentifier
result.success(null)
}

"getUserId" -> {
// Implement logic to get the current user's id
val userId = Superwall.instance.userId
Expand Down
69 changes: 63 additions & 6 deletions example/ios/Runner/Products.storekit
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"appPolicies" : {
"eula" : "",
"policies" : [
{
"locale" : "en_US",
"policyText" : "",
"policyURL" : ""
}
]
},
"identifier" : "AD417988",
"nonRenewingSubscriptions" : [

Expand Down Expand Up @@ -89,7 +99,10 @@
"recurringSubscriptionPeriod" : "P1M",
"referenceName" : "com.ui_tests.monthly",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription"
"type" : "RecurringSubscription",
"winbackOffers" : [

]
},
{
"adHocOffers" : [
Expand All @@ -114,7 +127,10 @@
"recurringSubscriptionPeriod" : "P1Y",
"referenceName" : "com.ui_tests.annual",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription"
"type" : "RecurringSubscription",
"winbackOffers" : [

]
},
{
"adHocOffers" : [
Expand All @@ -139,7 +155,10 @@
"recurringSubscriptionPeriod" : "P1Y",
"referenceName" : "com.ui_tests.custom_annual",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription"
"type" : "RecurringSubscription",
"winbackOffers" : [

]
},
{
"adHocOffers" : [
Expand All @@ -164,7 +183,10 @@
"recurringSubscriptionPeriod" : "P1M",
"referenceName" : "com.ui_tests.custom_monthly",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription"
"type" : "RecurringSubscription",
"winbackOffers" : [

]
},
{
"adHocOffers" : [
Expand Down Expand Up @@ -193,13 +215,48 @@
"recurringSubscriptionPeriod" : "P1Y",
"referenceName" : "com.ui_tests.free_trial_annual",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription"
"type" : "RecurringSubscription",
"winbackOffers" : [

]
},
{
"adHocOffers" : [

],
"codeOffers" : [

],
"displayPrice" : "89.99",
"familyShareable" : false,
"groupNumber" : 1,
"internalID" : "F92019EE",
"introductoryOffer" : {
"internalID" : "C3BBE17D",
"paymentMode" : "free",
"subscriptionPeriod" : "P1W"
},
"localizations" : [
{
"description" : "with a free 7 day trial",
"displayName" : "Yearly Subscription",
"locale" : "en_US"
}
],
"productID" : "sk.superwall.annual.89.99_7",
"recurringSubscriptionPeriod" : "P1Y",
"referenceName" : "sw_8999_yr",
"subscriptionGroupID" : "4F31BE19",
"type" : "RecurringSubscription",
"winbackOffers" : [

]
}
]
}
],
"version" : {
"major" : 3,
"major" : 4,
"minor" : 0
}
}
Loading

0 comments on commit 16374b5

Please sign in to comment.