Skip to content

Commit 90550a8

Browse files
committed
remove ADJ prefix from ios class names
1 parent 4ad3e67 commit 90550a8

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

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) {

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)