|
7 | 7 | // |
8 | 8 |
|
9 | 9 | #import "AdjustSdk.h" |
10 | | -#import "ADJSdkDelegate.h" |
| 10 | +#import "AdjustSdkDelegate.h" |
11 | 11 | #import <Adjust/Adjust.h> |
12 | 12 |
|
13 | 13 | static NSString * const CHANNEL_API_NAME = @"com.adjust.sdk/api"; |
14 | 14 |
|
15 | | -@interface ADJAdjustSdk () |
| 15 | +@interface AdjustSdk () |
16 | 16 |
|
17 | 17 | @property (nonatomic, retain) FlutterMethodChannel *channel; |
18 | 18 |
|
19 | 19 | @end |
20 | 20 |
|
21 | | -@implementation ADJAdjustSdk |
| 21 | +@implementation AdjustSdk |
22 | 22 |
|
23 | 23 | + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar { |
24 | 24 | FlutterMethodChannel *channel = [FlutterMethodChannel methodChannelWithName:CHANNEL_API_NAME |
25 | 25 | binaryMessenger:[registrar messenger]]; |
26 | | - ADJAdjustSdk *instance = [[ADJAdjustSdk alloc] init]; |
| 26 | + AdjustSdk *instance = [[AdjustSdk alloc] init]; |
27 | 27 | instance.channel = channel; |
28 | 28 | [registrar addMethodCallDelegate:instance channel:channel]; |
29 | 29 | } |
@@ -239,14 +239,14 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result { |
239 | 239 | || dartEventFailureCallback != nil |
240 | 240 | || dartDeferredDeeplinkCallback != nil) { |
241 | 241 | [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]]; |
250 | 250 | } |
251 | 251 |
|
252 | 252 | // Url strategy. |
@@ -542,7 +542,7 @@ - (void)setTestOptions:(FlutterMethodCall *)call withResult:(FlutterResult)resul |
542 | 542 | if ([self isFieldValid:teardown]) { |
543 | 543 | testOptions.teardown = [teardown boolValue]; |
544 | 544 | if (testOptions.teardown) { |
545 | | - [ADJSdkDelegate teardown]; |
| 545 | + [AdjustSdkDelegate teardown]; |
546 | 546 | } |
547 | 547 | } |
548 | 548 | if ([self isFieldValid:deleteState]) { |
|
0 commit comments