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. 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/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 { 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/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() { 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: