Skip to content

Commit bd47096

Browse files
Merge pull request #128 from qonversion/update_native_iOS
Update native iOS dependency version
2 parents 5b81001 + 8d28d19 commit bd47096

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

example/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
1111
<uses-permission android:name="com.android.vending.BILLING"/>
1212
<application
13-
android:name="io.flutter.app.FlutterApplication"
1413
android:label="com.qonversion.sample"
1514
android:icon="@mipmap/ic_launcher">
1615
<activity

ios/qonversion_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.18.1'
19+
s.dependency 'Qonversion', '2.18.3'
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/qonversion.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,12 @@ class Qonversion {
298298

299299
/// Enable attribution collection from Apple Search Ads. NO by default.
300300
static Future<void> setAppleSearchAdsAttributionEnabled(bool enable) async {
301-
if (Platform.isIOS) {
302-
return _channel.invokeMethod(
303-
Constants.mSetAppleSearchAdsAttributionEnabled,
304-
{Constants.kEnableAppleSearchAdsAttribution: enable});
301+
if (!Platform.isIOS) {
302+
return null;
305303
}
304+
305+
return _channel.invokeMethod(Constants.mSetAppleSearchAdsAttributionEnabled,
306+
{Constants.kEnableAppleSearchAdsAttribution: enable});
306307
}
307308

308309
/// Set push token to Qonversion to enable Qonversion push notifications

macos/qonversion_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.18.1'
19+
s.dependency 'Qonversion', '2.18.3'
2020
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
2121
s.swift_version = '5.0'
2222
s.static_framework = true

0 commit comments

Comments
 (0)