Skip to content

Commit

Permalink
Merge pull request #142 from adjust/v501
Browse files Browse the repository at this point in the history
Version 5.0.1
  • Loading branch information
uerceg authored Sep 4, 2024
2 parents c5d224e + a922ae2 commit 3d771a4
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 13 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### Version 5.0.1 (4th September 2024)
#### Fixed
- Added missing `Adjust.getLastDeeplink` implementation on iOS platform.

#### Native SDKs
- [[email protected]][ios_sdk_v5.0.0]
- [[email protected]][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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.0.1
12 changes: 12 additions & 0 deletions ios/Classes/AdjustSdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ios/adjust_sdk.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/adjust.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 5 additions & 7 deletions test/app/lib/command_executor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/ios/test_lib.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 ([email protected])

environment:
Expand Down

0 comments on commit 3d771a4

Please sign in to comment.