diff --git a/content/docs/flutter/changelog.mdx b/content/docs/flutter/changelog.mdx index 9c5414f..327c775 100644 --- a/content/docs/flutter/changelog.mdx +++ b/content/docs/flutter/changelog.mdx @@ -7,6 +7,18 @@ description: "Release notes for the Superwall Flutter SDK" The changelog for `Superwall`. Also see the [releases](https://github.com/superwall/Superwall-Flutter/releases) on GitHub. +## 2.4.11 + +### Enhancements +- Updates iOS SDK to 4.14.1 [View iOS SDK release notes](https://github.com/superwall/Superwall-iOS/releases/tag/4.14.1). +- Updates Android SDK to 2.7.8 [View Android SDK release notes](https://github.com/superwall/Superwall-Android/releases/tag/2.7.8). +- Adds `appstackId` integration attribute for Appstack integration support +- Adds `testModeBehavior` option to `SuperwallOptions` to control when the SDK enters test mode (automatic, whenEnabledForUser, never, always) +- Adds `shouldObservePurchases` option to `SuperwallOptions` to observe purchases made outside of Superwall +- Adds `shouldBypassAppTransactionCheck` option to `SuperwallOptions` (iOS only) +- Adds `maxConfigRetryCount` option to `SuperwallOptions` (iOS only) +- Adds `useMockReviews` option to `SuperwallOptions` (Android only) + ## 2.4.10 ## Updates diff --git a/content/docs/flutter/index.mdx b/content/docs/flutter/index.mdx index 0173a4b..ef36105 100644 --- a/content/docs/flutter/index.mdx +++ b/content/docs/flutter/index.mdx @@ -34,4 +34,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-flutter/issues). - \ No newline at end of file + \ No newline at end of file diff --git a/content/docs/flutter/sdk-reference/IntegrationAttribute.mdx b/content/docs/flutter/sdk-reference/IntegrationAttribute.mdx index 117e083..ba63c6b 100644 --- a/content/docs/flutter/sdk-reference/IntegrationAttribute.mdx +++ b/content/docs/flutter/sdk-reference/IntegrationAttribute.mdx @@ -13,6 +13,7 @@ enum IntegrationAttribute { amplitudeDeviceId, amplitudeUserId, appsflyerId, + appstackId, brazeAliasName, brazeAliasLabel, onesignalId, @@ -36,6 +37,10 @@ enum IntegrationAttribute { @@ -56,6 +61,7 @@ await Superwall.shared.setIntegrationAttributes({ IntegrationAttribute.mixpanelDistinctId: 'user_123', IntegrationAttribute.amplitudeUserId: 'amp_456', IntegrationAttribute.adjustId: 'adjust_789', + IntegrationAttribute.appstackId: 'appstack_abc', }); ``` diff --git a/content/docs/flutter/sdk-reference/SuperwallOptions.mdx b/content/docs/flutter/sdk-reference/SuperwallOptions.mdx index c5514f3..a3eece0 100644 --- a/content/docs/flutter/sdk-reference/SuperwallOptions.mdx +++ b/content/docs/flutter/sdk-reference/SuperwallOptions.mdx @@ -16,6 +16,11 @@ class SuperwallOptions { bool isGameControllerEnabled = false; Logging logging = Logging(); bool passIdentifiersToPlayStore = false; + TestModeBehavior testModeBehavior = TestModeBehavior.automatic; + bool shouldObservePurchases = false; + bool shouldBypassAppTransactionCheck = false; // iOS only + int maxConfigRetryCount = 6; // iOS only + bool useMockReviews = false; // Android only } ``` @@ -58,6 +63,31 @@ class SuperwallOptions { description: "When `true`, Android builds send the plain `appUserId` to Google Play as `obfuscatedExternalAccountId`.", default: "false", }, + testModeBehavior: { + type: "TestModeBehavior", + description: "Controls when the SDK enters test mode. Options: `automatic`, `whenEnabledForUser`, `never`, `always`.", + default: "TestModeBehavior.automatic", + }, + shouldObservePurchases: { + type: "bool", + description: "When `true`, Superwall observes StoreKit/Play Store transactions made outside of Superwall and reports them.", + default: "false", + }, + shouldBypassAppTransactionCheck: { + type: "bool", + description: "Disables the app transaction check on SDK launch. iOS only.", + default: "false", + }, + maxConfigRetryCount: { + type: "int", + description: "Number of times the SDK will attempt to get the Superwall configuration after a network failure before it times out. iOS only.", + default: "6", + }, + useMockReviews: { + type: "bool", + description: "Enables mock review functionality. Android only.", + default: "false", + }, }} /> diff --git a/content/docs/flutter/sdk-reference/index.mdx b/content/docs/flutter/sdk-reference/index.mdx index 2a94941..9ff64d8 100644 --- a/content/docs/flutter/sdk-reference/index.mdx +++ b/content/docs/flutter/sdk-reference/index.mdx @@ -15,4 +15,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-flutter/issues). - \ No newline at end of file + \ No newline at end of file