Skip to content

Commit 2fef96a

Browse files
authored
Merge pull request #27 from adjust/v4231
Version 4.23.1
2 parents 4ad3e67 + c72416a commit 2fef96a

File tree

11 files changed

+36
-26
lines changed

11 files changed

+36
-26
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### Version 4.23.1 (31st August 2020)
2+
#### Fixed
3+
- Removed `iosPrefix` from `pubspec.yaml`.
4+
- Removed `ADJ` prefix from Flutter iOS class names.
5+
6+
#### Native SDKs
7+
- [[email protected]][ios_sdk_v4.23.0]
8+
- [[email protected]][android_sdk_v4.24.0]
9+
10+
---
11+
112
### Version 4.23.0 (28th August 2020)
213
#### Added
314
- Added communication with SKAdNetwork framework by default on iOS 14.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can add Adjust SDK to your Flutter app by adding following to your `pubspec.
9393

9494
```yaml
9595
dependencies:
96-
adjust_sdk: ^4.23.0
96+
adjust_sdk: ^4.23.1
9797
```
9898
9999
Then navigate to your project in the terminal and run:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.23.0
1+
4.23.1

ios/Classes/AdjustSdk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
#import <Flutter/Flutter.h>
1010

11-
@interface ADJAdjustSdk : NSObject<FlutterPlugin>
11+
@interface AdjustSdk : NSObject<FlutterPlugin>
1212
@end

ios/Classes/AdjustSdk.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
//
88

99
#import "AdjustSdk.h"
10-
#import "ADJSdkDelegate.h"
10+
#import "AdjustSdkDelegate.h"
1111
#import <Adjust/Adjust.h>
1212

1313
static NSString * const CHANNEL_API_NAME = @"com.adjust.sdk/api";
1414

15-
@interface ADJAdjustSdk ()
15+
@interface AdjustSdk ()
1616

1717
@property (nonatomic, retain) FlutterMethodChannel *channel;
1818

1919
@end
2020

21-
@implementation ADJAdjustSdk
21+
@implementation AdjustSdk
2222

2323
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
2424
FlutterMethodChannel *channel = [FlutterMethodChannel methodChannelWithName:CHANNEL_API_NAME
2525
binaryMessenger:[registrar messenger]];
26-
ADJAdjustSdk *instance = [[ADJAdjustSdk alloc] init];
26+
AdjustSdk *instance = [[AdjustSdk alloc] init];
2727
instance.channel = channel;
2828
[registrar addMethodCallDelegate:instance channel:channel];
2929
}
@@ -239,14 +239,14 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
239239
|| dartEventFailureCallback != nil
240240
|| dartDeferredDeeplinkCallback != nil) {
241241
[adjustConfig setDelegate:
242-
[ADJSdkDelegate getInstanceWithSwizzleOfAttributionCallback:dartAttributionCallback
243-
sessionSuccessCallback:dartSessionSuccessCallback
244-
sessionFailureCallback:dartSessionFailureCallback
245-
eventSuccessCallback:dartEventSuccessCallback
246-
eventFailureCallback:dartEventFailureCallback
247-
deferredDeeplinkCallback:dartDeferredDeeplinkCallback
248-
shouldLaunchDeferredDeeplink:launchDeferredDeeplink
249-
andMethodChannel:self.channel]];
242+
[AdjustSdkDelegate getInstanceWithSwizzleOfAttributionCallback:dartAttributionCallback
243+
sessionSuccessCallback:dartSessionSuccessCallback
244+
sessionFailureCallback:dartSessionFailureCallback
245+
eventSuccessCallback:dartEventSuccessCallback
246+
eventFailureCallback:dartEventFailureCallback
247+
deferredDeeplinkCallback:dartDeferredDeeplinkCallback
248+
shouldLaunchDeferredDeeplink:launchDeferredDeeplink
249+
andMethodChannel:self.channel]];
250250
}
251251

252252
// Url strategy.
@@ -542,7 +542,7 @@ - (void)setTestOptions:(FlutterMethodCall *)call withResult:(FlutterResult)resul
542542
if ([self isFieldValid:teardown]) {
543543
testOptions.teardown = [teardown boolValue];
544544
if (testOptions.teardown) {
545-
[ADJSdkDelegate teardown];
545+
[AdjustSdkDelegate teardown];
546546
}
547547
}
548548
if ([self isFieldValid:deleteState]) {

ios/Classes/ADJSdkDelegate.h renamed to ios/Classes/AdjustSdkDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <Flutter/Flutter.h>
1010
#import <Adjust/Adjust.h>
1111

12-
@interface ADJSdkDelegate : NSObject<AdjustDelegate>
12+
@interface AdjustSdkDelegate : NSObject<AdjustDelegate>
1313

1414
@property (nonatomic) BOOL shouldLaunchDeferredDeeplink;
1515
@property (nonatomic, weak) FlutterMethodChannel *channel;

ios/Classes/ADJSdkDelegate.m renamed to ios/Classes/AdjustSdkDelegate.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
//
88

99
#import <objc/runtime.h>
10-
#import "ADJSdkDelegate.h"
10+
#import "AdjustSdkDelegate.h"
1111

1212
static dispatch_once_t onceToken;
13-
static ADJSdkDelegate *defaultInstance = nil;
13+
static AdjustSdkDelegate *defaultInstance = nil;
1414
static NSString *dartAttributionCallback;
1515
static NSString *dartSessionSuccessCallback;
1616
static NSString *dartSessionFailureCallback;
1717
static NSString *dartEventSuccessCallback;
1818
static NSString *dartEventFailureCallback;
1919
static NSString *dartDeferredDeeplinkCallback;
2020

21-
@implementation ADJSdkDelegate
21+
@implementation AdjustSdkDelegate
2222

2323
#pragma mark - Object lifecycle methods
2424

@@ -42,7 +42,7 @@ + (id)getInstanceWithSwizzleOfAttributionCallback:(NSString *)swizzleAttribution
4242
andMethodChannel:(FlutterMethodChannel *)channel {
4343

4444
dispatch_once(&onceToken, ^{
45-
defaultInstance = [[ADJSdkDelegate alloc] init];
45+
defaultInstance = [[AdjustSdkDelegate alloc] init];
4646

4747
// Do the swizzling where and if needed.
4848
if (swizzleAttributionCallback != nil) {

ios/adjust_sdk.podspec

Lines changed: 1 addition & 1 deletion
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 = '4.23.0'
3+
s.version = '4.23.1'
44
s.summary = 'Adjust Flutter SDK for iOS platform'
55
s.description = <<-DESC
66
Adjust Flutter SDK for iOS platform.

lib/adjust.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'package:adjust_sdk/adjust_app_store_subscription.dart';
1717
import 'package:adjust_sdk/adjust_play_store_subscription.dart';
1818

1919
class Adjust {
20-
static const String _sdkPrefix = 'flutter4.23.0';
20+
static const String _sdkPrefix = 'flutter4.23.1';
2121
static const MethodChannel _channel = const MethodChannel('com.adjust.sdk/api');
2222

2323
static void start(AdjustConfig config) {

pubspec.yaml

Lines changed: 1 addition & 2 deletions
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: 4.23.0
4+
version: 4.23.1
55

66
environment:
77
sdk: ">=2.0.0 <3.0.0"
@@ -19,5 +19,4 @@ flutter:
1919
package: com.adjust.sdk.flutter
2020
pluginClass: AdjustSdk
2121
ios:
22-
iosPrefix: ADJ
2322
pluginClass: AdjustSdk

0 commit comments

Comments
 (0)