From 0175266452a0824238378dd11e850ad70f03e9a0 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 4 Sep 2024 12:02:28 +0200 Subject: [PATCH 1/4] fix: add missing last deep link getter implementation for ios platform --- ios/Classes/AdjustSdk.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ios/Classes/AdjustSdk.m b/ios/Classes/AdjustSdk.m index 6bfd35b..1938f83 100644 --- a/ios/Classes/AdjustSdk.m +++ b/ios/Classes/AdjustSdk.m @@ -120,6 +120,8 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result [self processDeeplink:call withResult:result]; } else if ([@"processAndResolveDeeplink" isEqualToString:call.method]) { [self processAndResolveDeeplink:call withResult:result]; + } else if ([@"getLastDeeplink" isEqualToString:call.method]) { + [self getLastDeeplink:call withResult:result]; } else if ([@"getGoogleAdId" isEqualToString:call.method]) { [self getGoogleAdId:call withResult:result]; } else if ([@"trackPlayStoreSubscription" isEqualToString:call.method]) { @@ -811,6 +813,16 @@ - (void)verifyAndTrackAppStorePurchase:(FlutterMethodCall *)call withResult:(Flu }]; } +- (void)getLastDeeplink:(FlutterMethodCall *)call withResult:(FlutterResult)result { + [Adjust lastDeeplinkWithCompletionHandler:^(NSURL * _Nullable lastDeeplink) { + if (![self isFieldValid:lastDeeplink]) { + result(nil); + } else { + result([lastDeeplink absoluteString]); + } + }]; +} + #pragma mark - Testing only methods - (void)setTestOptions:(FlutterMethodCall *)call withResult:(FlutterResult)result { From 095e0c828600653ad783a60e581ed93b56bc8326 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 4 Sep 2024 12:02:34 +0200 Subject: [PATCH 2/4] test: enable last deep link getter testing on android platform --- test/app/lib/command_executor.dart | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/app/lib/command_executor.dart b/test/app/lib/command_executor.dart index 118564f..2587eb4 100644 --- a/test/app/lib/command_executor.dart +++ b/test/app/lib/command_executor.dart @@ -847,13 +847,11 @@ class CommandExecutor { } void _getLastDeeplink() { - if (Platform.isIOS) { - Adjust.getLastDeeplink().then((lastDeeplink) { - String? localBasePath = _basePath; - TestLib.addInfoToSend('last_deeplink', lastDeeplink); - TestLib.sendInfoToServer(localBasePath); - }); - } + Adjust.getLastDeeplink().then((lastDeeplink) { + String? localBasePath = _basePath; + TestLib.addInfoToSend('last_deeplink', lastDeeplink); + TestLib.sendInfoToServer(localBasePath); + }); } void _verifyPurchase() { From 21dab77fe6399c7edfcd51de9e1d62612b2942d9 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 4 Sep 2024 12:06:28 +0200 Subject: [PATCH 3/4] feat: update version number to 5.0.1 --- VERSION | 2 +- ios/adjust_sdk.podspec | 2 +- lib/adjust.dart | 2 +- pubspec.yaml | 2 +- test/ios/test_lib.podspec | 2 +- test/pubspec.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 0062ac9..6b244dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.0 +5.0.1 diff --git a/ios/adjust_sdk.podspec b/ios/adjust_sdk.podspec index 94a8a78..4c5d9a9 100644 --- a/ios/adjust_sdk.podspec +++ b/ios/adjust_sdk.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'adjust_sdk' - s.version = '5.0.0' + s.version = '5.0.1' s.summary = 'Adjust Flutter SDK for iOS platform' s.description = <<-DESC Adjust Flutter SDK for iOS platform. diff --git a/lib/adjust.dart b/lib/adjust.dart index d25f5ab..bf96e20 100644 --- a/lib/adjust.dart +++ b/lib/adjust.dart @@ -24,7 +24,7 @@ import 'package:flutter/services.dart'; import 'package:meta/meta.dart'; class Adjust { - static const String _sdkPrefix = 'flutter5.0.0'; + static const String _sdkPrefix = 'flutter5.0.1'; static const MethodChannel _channel = const MethodChannel('com.adjust.sdk/api'); diff --git a/pubspec.yaml b/pubspec.yaml index 6d85969..0ace684 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: adjust_sdk description: This is the Flutter SDK of Adjust™. You can read more about Adjust™ at adjust.com. homepage: https://github.com/adjust/flutter_sdk -version: 5.0.0 +version: 5.0.1 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/test/ios/test_lib.podspec b/test/ios/test_lib.podspec index 2af1a1c..df8feec 100644 --- a/test/ios/test_lib.podspec +++ b/test/ios/test_lib.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'test_lib' - s.version = '5.0.0' + s.version = '5.0.1' s.summary = 'Adjust test library for iOS platform' s.description = <<-DESC Adjust test library for iOS platform. diff --git a/test/pubspec.yaml b/test/pubspec.yaml index 6db60fd..958d1c2 100644 --- a/test/pubspec.yaml +++ b/test/pubspec.yaml @@ -1,6 +1,6 @@ name: test_lib description: Flutter plugin for Adjust Testing Library. Intended exclusively for internal use. -version: 5.0.0 +version: 5.0.1 author: Adjust (sdk@adjust.com) environment: From a922ae26876ae079460f3a217c57dcc90b7c7c10 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 4 Sep 2024 12:07:41 +0200 Subject: [PATCH 4/4] docs: update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index caef132..9b8d3b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +### Version 5.0.1 (4th September 2024) +#### Fixed +- Added missing `Adjust.getLastDeeplink` implementation on iOS platform. + +#### Native SDKs +- [iOS@v5.0.0][ios_sdk_v5.0.0] +- [Android@v5.0.0][android_sdk_v5.0.0] + +--- + ### Version 5.0.0 (30th August 2024) We're excited to release our major new SDK version (v5). Among many internal improvements, our spoofing protection solution is now included out of the box, reinforcing our commitment to accurate, actionable, and fraud-free data.