Skip to content

Commit 3d771a4

Browse files
authored
Merge pull request #142 from adjust/v501
Version 5.0.1
2 parents c5d224e + a922ae2 commit 3d771a4

File tree

9 files changed

+33
-13
lines changed

9 files changed

+33
-13
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### Version 5.0.1 (4th September 2024)
2+
#### Fixed
3+
- Added missing `Adjust.getLastDeeplink` implementation on iOS platform.
4+
5+
#### Native SDKs
6+
- [[email protected]][ios_sdk_v5.0.0]
7+
- [[email protected]][android_sdk_v5.0.0]
8+
9+
---
10+
111
### Version 5.0.0 (30th August 2024)
212

313
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.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0
1+
5.0.1

ios/Classes/AdjustSdk.m

+12
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
120120
[self processDeeplink:call withResult:result];
121121
} else if ([@"processAndResolveDeeplink" isEqualToString:call.method]) {
122122
[self processAndResolveDeeplink:call withResult:result];
123+
} else if ([@"getLastDeeplink" isEqualToString:call.method]) {
124+
[self getLastDeeplink:call withResult:result];
123125
} else if ([@"getGoogleAdId" isEqualToString:call.method]) {
124126
[self getGoogleAdId:call withResult:result];
125127
} else if ([@"trackPlayStoreSubscription" isEqualToString:call.method]) {
@@ -811,6 +813,16 @@ - (void)verifyAndTrackAppStorePurchase:(FlutterMethodCall *)call withResult:(Flu
811813
}];
812814
}
813815

816+
- (void)getLastDeeplink:(FlutterMethodCall *)call withResult:(FlutterResult)result {
817+
[Adjust lastDeeplinkWithCompletionHandler:^(NSURL * _Nullable lastDeeplink) {
818+
if (![self isFieldValid:lastDeeplink]) {
819+
result(nil);
820+
} else {
821+
result([lastDeeplink absoluteString]);
822+
}
823+
}];
824+
}
825+
814826
#pragma mark - Testing only methods
815827

816828
- (void)setTestOptions:(FlutterMethodCall *)call withResult:(FlutterResult)result {

ios/adjust_sdk.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'adjust_sdk'
3-
s.version = '5.0.0'
3+
s.version = '5.0.1'
44
s.summary = 'Adjust Flutter SDK for iOS platform'
55
s.description = <<-DESC
66
Adjust Flutter SDK for iOS platform.

lib/adjust.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import 'package:flutter/services.dart';
2424
import 'package:meta/meta.dart';
2525

2626
class Adjust {
27-
static const String _sdkPrefix = 'flutter5.0.0';
27+
static const String _sdkPrefix = 'flutter5.0.1';
2828
static const MethodChannel _channel =
2929
const MethodChannel('com.adjust.sdk/api');
3030

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: adjust_sdk
22
description: This is the Flutter SDK of Adjust™. You can read more about Adjust™ at adjust.com.
33
homepage: https://github.com/adjust/flutter_sdk
4-
version: 5.0.0
4+
version: 5.0.1
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"

test/app/lib/command_executor.dart

+5-7
Original file line numberDiff line numberDiff line change
@@ -847,13 +847,11 @@ class CommandExecutor {
847847
}
848848

849849
void _getLastDeeplink() {
850-
if (Platform.isIOS) {
851-
Adjust.getLastDeeplink().then((lastDeeplink) {
852-
String? localBasePath = _basePath;
853-
TestLib.addInfoToSend('last_deeplink', lastDeeplink);
854-
TestLib.sendInfoToServer(localBasePath);
855-
});
856-
}
850+
Adjust.getLastDeeplink().then((lastDeeplink) {
851+
String? localBasePath = _basePath;
852+
TestLib.addInfoToSend('last_deeplink', lastDeeplink);
853+
TestLib.sendInfoToServer(localBasePath);
854+
});
857855
}
858856

859857
void _verifyPurchase() {

test/ios/test_lib.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'test_lib'
3-
s.version = '5.0.0'
3+
s.version = '5.0.1'
44
s.summary = 'Adjust test library for iOS platform'
55
s.description = <<-DESC
66
Adjust test library for iOS platform.

test/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: test_lib
22
description: Flutter plugin for Adjust Testing Library. Intended exclusively for internal use.
3-
version: 5.0.0
3+
version: 5.0.1
44
author: Adjust ([email protected])
55

66
environment:

0 commit comments

Comments
 (0)