You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
New
iOS/macOS: Swift Package Manager support. The plugin now ships Package.swift manifests (ios/qonversion_flutter, macos/qonversion_flutter), so on Flutter 3.44+ (SwiftPM on by default) and on 3.24+ with flutter config --enable-swift-package-manager the plugin and its native dependencies — QonversionSandwich 7.13.0 → iOS 6.15.0 — resolve as Swift packages and no Qonversion pods are installed. Projects that stay on CocoaPods (Flutter < 3.24, SwiftPM disabled, add-to-app modules) keep resolving the plugin through the podspec, unchanged (#469).
Improvements & fixes
Native SDKs updated via QonversionSandwich 7.13.0: iOS 6.15.0 (the bridge uses public SDK API only; no behaviour change for Flutter apps). Android SDK unchanged (#469).
The plugin is Swift-only on iOS and macOS; sources live under <platform>/qonversion_flutter/Sources/qonversion_flutter/ and are shared by the podspec and the Swift package (#469).
Example app: iOS runner migrated to SwiftPM, new macOS runner; CI builds the example with SwiftPM and with CocoaPods on both platforms (#469).
Breaking notes
Minimum macOS is now declared as 10.15 in the podspec (was 10.12). It has been the effective minimum since 11.1.0 through QonversionSandwich, so nothing that resolved before stops resolving; apps still at MACOSX_DEPLOYMENT_TARGET / platform :osx 10.14 must raise them. iOS stays at 13.0.
The Objective-C shim QonversionPlugin.h/.m is removed and the Swift class SwiftQonversionPlugin is renamed to QonversionPlugin (pluginClass unchanged). Generated registrants are unaffected; hand-written native code that imports <qonversion_flutter/QonversionPlugin.h> or references SwiftQonversionPlugin must switch to @import qonversion_flutter; / QonversionPlugin.
Flutter 3.24–3.34 with SwiftPM enabled: flutter pub get regenerates FlutterGeneratedPluginSwiftPackage at iOS 12.0 / macOS 10.14 and flutter build / flutter run raise it to your app's deployment target. If you build from Xcode or xcodebuild directly, run flutter build ios --config-only / flutter build macos --config-only first; otherwise Xcode reports "The package product 'qonversion-flutter' requires minimum platform version 13.0/10.15". Flutter 3.35+ is unaffected.
With SwiftPM the native SDK arrives through the Swift package: apps that also declare pod 'Qonversion' in their Podfile should remove it or pin 6.15.0 to avoid two copies of the SDK.