diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 30b9f26..37d41dd 100644 --- a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/cloudcaptainai/helium-swift.git", "state" : { - "revision" : "437d36c20070df0771e5ac5f3d542c3ba8815496", - "version" : "4.4.1" + "revision" : "1e034f4776c4e549b57d2aafd9b29e06af35c262", + "version" : "4.4.4" } }, { diff --git a/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved index 30b9f26..37d41dd 100644 --- a/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/cloudcaptainai/helium-swift.git", "state" : { - "revision" : "437d36c20070df0771e5ac5f3d542c3ba8815496", - "version" : "4.4.1" + "revision" : "1e034f4776c4e549b57d2aafd9b29e06af35c262", + "version" : "4.4.4" } }, { diff --git a/packages/helium_flutter/CHANGELOG.md b/packages/helium_flutter/CHANGELOG.md index c038a66..a55e34c 100644 --- a/packages/helium_flutter/CHANGELOG.md +++ b/packages/helium_flutter/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.3.3 +- Updated helium-swift dependency to 4.4.4 + ## 3.3.2 - Updated Helium Android dependency to 4.4.1 diff --git a/packages/helium_flutter/android/build.gradle b/packages/helium_flutter/android/build.gradle index 1c347f1..262896b 100644 --- a/packages/helium_flutter/android/build.gradle +++ b/packages/helium_flutter/android/build.gradle @@ -48,7 +48,7 @@ android { } dependencies { - implementation("com.tryhelium.paywall:core:4.4.1") + implementation("com.tryhelium.paywall:core:4.4.3") implementation("com.google.code.gson:gson:2.10.1") implementation("com.android.billingclient:billing:8.0.0") testImplementation("org.jetbrains.kotlin:kotlin-test") diff --git a/packages/helium_flutter/ios/helium_flutter.podspec b/packages/helium_flutter/ios/helium_flutter.podspec index 0a2c8b6..3ad1114 100644 --- a/packages/helium_flutter/ios/helium_flutter.podspec +++ b/packages/helium_flutter/ios/helium_flutter.podspec @@ -20,7 +20,7 @@ A Flutter plugin that integrates the Helium SDK for iOS. s.dependency 'Flutter' # note that the dependency in Package.swift is what's actually used... we might be able to remove this but safer to keep in for now - s.dependency 'Helium', '4.4.1' + s.dependency 'Helium', '4.4.4' s.platform = :ios, '15.0' diff --git a/packages/helium_flutter/ios/helium_flutter/Package.swift b/packages/helium_flutter/ios/helium_flutter/Package.swift index b2bdb2d..5ca5210 100644 --- a/packages/helium_flutter/ios/helium_flutter/Package.swift +++ b/packages/helium_flutter/ios/helium_flutter/Package.swift @@ -12,7 +12,7 @@ let package = Package( .library(name: "helium-flutter", targets: ["helium_flutter"]) ], dependencies: [ - .package(url: "https://github.com/cloudcaptainai/helium-swift.git", exact: "4.4.1")], + .package(url: "https://github.com/cloudcaptainai/helium-swift.git", exact: "4.4.4")], targets: [ .target( name: "helium_flutter", diff --git a/packages/helium_flutter/ios/helium_flutter/Sources/helium_flutter/FLNativeViewFactory.swift b/packages/helium_flutter/ios/helium_flutter/Sources/helium_flutter/FLNativeViewFactory.swift index 8f7fe60..eb86fce 100644 --- a/packages/helium_flutter/ios/helium_flutter/Sources/helium_flutter/FLNativeViewFactory.swift +++ b/packages/helium_flutter/ios/helium_flutter/Sources/helium_flutter/FLNativeViewFactory.swift @@ -32,6 +32,7 @@ class FLNativeViewFactory: NSObject, FlutterPlatformViewFactory { class FLNativeView: NSObject, FlutterPlatformView { let arguments: Any? + private var hostingControllerRef: UIViewController? private lazy var _view: UIView = { let args = arguments as? [String: Any] ?? [:] let trigger = args["trigger"] as? String ?? "" @@ -66,6 +67,7 @@ class FLNativeView: NSObject, FlutterPlatformView { } let hostingController = UIHostingController(rootView: paywallView) hostingController.view.backgroundColor = .clear + hostingControllerRef = hostingController return hostingController.view } } diff --git a/packages/helium_flutter/lib/core/const/contants.dart b/packages/helium_flutter/lib/core/const/contants.dart index fadfc90..fcc068b 100644 --- a/packages/helium_flutter/lib/core/const/contants.dart +++ b/packages/helium_flutter/lib/core/const/contants.dart @@ -1,5 +1,5 @@ // SDK version - keep in sync with pubspec.yaml -const String heliumFlutterSdkVersion = '3.3.2'; +const String heliumFlutterSdkVersion = '3.3.3'; //Native view type const String upsellViewForTrigger = 'upsellViewForTrigger'; diff --git a/packages/helium_flutter/pubspec.yaml b/packages/helium_flutter/pubspec.yaml index e435928..de0bec6 100644 --- a/packages/helium_flutter/pubspec.yaml +++ b/packages/helium_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: helium_flutter description: "Flutter Paywall SDK for Helium. Remotely build and auto-optimize paywalls (tryhelium.com)" # Remember to update CHANGELOG.md when releasing a new version!!! (see CONTRIBUTING.md) -version: 3.3.2 +version: 3.3.3 homepage: https://tryhelium.com license: MIT diff --git a/packages/helium_revenuecat/CHANGELOG.md b/packages/helium_revenuecat/CHANGELOG.md index 3d6b42b..29d33b0 100644 --- a/packages/helium_revenuecat/CHANGELOG.md +++ b/packages/helium_revenuecat/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.3.3 +- Updated helium-swift dependency to 4.4.4 + ## 3.3.2 - Updated Helium Android dependency to 4.4.1 diff --git a/packages/helium_revenuecat/pubspec.yaml b/packages/helium_revenuecat/pubspec.yaml index 24323ca..2a4dd9d 100644 --- a/packages/helium_revenuecat/pubspec.yaml +++ b/packages/helium_revenuecat/pubspec.yaml @@ -1,6 +1,6 @@ name: helium_revenuecat description: "Helium RevenueCat SDK. Remotely build and auto-optimize paywalls (tryhelium.com)" -version: 3.3.2 +version: 3.3.3 homepage: https://tryhelium.com environment: