Skip to content

Commit 183f10c

Browse files
Merge pull request #62 from qonversion/release/2.5.1
Release/2.5.1
2 parents 52c577f + 2ac4273 commit 183f10c

File tree

9 files changed

+29
-7
lines changed

9 files changed

+29
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.5.1
2+
* iOS 14.5 advertising ID support
3+
14
## 2.5.0
25
* MacOS support
36

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.qonversion.flutter.sdk.qonversion_flutter_sdk'
2-
version '2.4.1'
2+
version '2.4.2'
33

44
buildscript {
55
ext.kotlin_version = '1.3.50'

ios/Classes/SwiftQonversionFlutterSdkPlugin.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public class SwiftQonversionFlutterSdkPlugin: NSObject, FlutterPlugin {
4545
case "setDebugMode":
4646
Qonversion.setDebugMode()
4747
return result(nil)
48+
49+
case "setAdvertisingID":
50+
Qonversion.setAdvertisingID()
51+
return result(nil)
4852

4953
case "offerings":
5054
return offerings(result)

ios/qonversion_flutter.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'qonversion_flutter'
7-
s.version = '2.4.1'
7+
s.version = '2.4.2'
88
s.summary = 'Flutter Qonversion SDK'
99
s.description = <<-DESC
1010
Powerful yet simple subscription analytics
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'Flutter'
1818
s.platform = :ios, '9.0'
19-
s.dependency 'Qonversion', '2.11.3'
19+
s.dependency 'Qonversion', '2.13.2'
2020

2121
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2222
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }

lib/src/constants.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Constants {
2929
static const mSyncPurchases = 'syncPurchases';
3030
static const mAddAttributionData = 'addAttributionData';
3131
static const mSetDebugMode = 'setDebugMode';
32+
static const mSetAdvertisingID = 'setAdvertisingID';
3233
static const mOfferings = 'offerings';
3334
static const mCheckTrialIntroEligibility = 'checkTrialIntroEligibility';
3435
static const mStoreSdkInfo = 'storeSdkInfo';

lib/src/qonversion.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'models/purchase_exception.dart';
1616
import 'qa_provider.dart';
1717

1818
class Qonversion {
19-
static const String _sdkVersion = "2.5.0";
19+
static const String _sdkVersion = "2.5.1";
2020

2121
static const MethodChannel _channel = MethodChannel('qonversion_flutter_sdk');
2222
static const _purchasesEventChannel =
@@ -192,6 +192,16 @@ class Qonversion {
192192
static Future<void> setDebugMode() =>
193193
_channel.invokeMethod(Constants.mSetDebugMode);
194194

195+
/// iOS only. Returns `null` if called on Android.
196+
/// On iOS 14.5+, after requesting the app tracking permission using ATT, you need to notify Qonversion if tracking is allowed and IDFA is available.
197+
static Future<void> setAdvertisingID() {
198+
if (Platform.isAndroid) {
199+
return null;
200+
}
201+
202+
return _channel.invokeMethod(Constants.mSetAdvertisingID);
203+
}
204+
195205
/// Return Qonversion Offerings Object
196206
/// An offering is a group of products that you can offer to a user on a given paywall based on your business logic.
197207
/// For example, you can offer one set of products on a paywall immediately after onboarding and another set of products with discounts later on if a user has not converted.

macos/Classes/SwiftQonversionFlutterSdkPlugin.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public class SwiftQonversionFlutterSdkPlugin: NSObject, FlutterPlugin {
4545
case "setDebugMode":
4646
Qonversion.setDebugMode()
4747
return result(nil)
48+
49+
case "setAdvertisingID":
50+
Qonversion.setAdvertisingID()
51+
return result(nil)
4852

4953
case "offerings":
5054
return offerings(result)

macos/qonversion_flutter.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'qonversion_flutter'
7-
s.version = '1.0.0'
7+
s.version = '1.0.1'
88
s.summary = 'Flutter Qonversion SDK'
99
s.description = <<-DESC
1010
Powerful yet simple subscription analytics
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'FlutterMacOS'
1818
s.platform = :osx, '10.12'
19-
s.dependency 'Qonversion', '2.11.3'
19+
s.dependency 'Qonversion', '2.13.2'
2020
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
2121
s.swift_version = '5.0'
2222
s.static_framework = true

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: qonversion_flutter
22
description: In-App Subscription Infrastructure to grow your subscription business
3-
version: 2.5.0
3+
version: 2.5.1
44
homepage: 'https://qonversion.io'
55
repository: 'https://github.com/qonversion/flutter-sdk'
66

0 commit comments

Comments
 (0)