Skip to content

Commit 2fc4c06

Browse files
committed
refac: rename new methods for updating CV
1 parent 33b94c7 commit 2fc4c06

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ios/Classes/AdjustSdk.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
123123
[Adjust checkForNewAttStatus];
124124
} else if ([@"getLastDeeplink" isEqualToString:call.method]) {
125125
[self getLastDeeplink:call withResult:result];
126-
} else if ([@"updateConversionValueWithCallback" isEqualToString:call.method]) {
127-
[self updateConversionValueWithCallback:call withResult:result];
128-
} else if ([@"updateConversionValueWithCallbackSkad4" isEqualToString:call.method]) {
129-
[self updateConversionValueWithCallbackSkad4:call withResult:result];
126+
} else if ([@"updateConversionValueWithErrorCallback" isEqualToString:call.method]) {
127+
[self updateConversionValueWithErrorCallback:call withResult:result];
128+
} else if ([@"updateConversionValueWithErrorCallbackSkad4" isEqualToString:call.method]) {
129+
[self updateConversionValueWithErrorCallbackSkad4:call withResult:result];
130130
} else {
131131
result(FlutterMethodNotImplemented);
132132
}
@@ -700,7 +700,7 @@ - (void)getLastDeeplink:(FlutterMethodCall *)call withResult:(FlutterResult)resu
700700
}
701701
}
702702

703-
- (void)updateConversionValueWithCallback:(FlutterMethodCall *)call withResult:(FlutterResult)result {
703+
- (void)updateConversionValueWithErrorCallback:(FlutterMethodCall *)call withResult:(FlutterResult)result {
704704
NSString *conversionValue = call.arguments[@"conversionValue"];
705705
if ([self isFieldValid:conversionValue]) {
706706
[Adjust updatePostbackConversionValue:[conversionValue intValue]
@@ -710,7 +710,7 @@ - (void)updateConversionValueWithCallback:(FlutterMethodCall *)call withResult:(
710710
}
711711
}
712712

713-
- (void)updateConversionValueWithCallbackSkad4:(FlutterMethodCall *)call withResult:(FlutterResult)result {
713+
- (void)updateConversionValueWithErrorCallbackSkad4:(FlutterMethodCall *)call withResult:(FlutterResult)result {
714714
NSString *conversionValue = call.arguments[@"conversionValue"];
715715
NSString *coarseValue = call.arguments[@"coarseValue"];
716716
NSString *lockWindow = call.arguments[@"lockWindow"];

lib/adjust.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,18 @@ class Adjust {
189189
return deeplink;
190190
}
191191

192-
static Future<String?> updateConversionValueWithCallback(int conversionValue) async {
192+
static Future<String?> updateConversionValueWithErrorCallback(int conversionValue) async {
193193
final String? error = await _channel.invokeMethod(
194-
'updateConversionValueWithCallback', {'conversionValue': conversionValue});
194+
'updateConversionValueWithErrorCallback', {'conversionValue': conversionValue});
195195
return error;
196196
}
197197

198-
static Future<String?> updateConversionValueWithCallbackSkad4(
198+
static Future<String?> updateConversionValueWithErrorCallbackSkad4(
199199
int conversionValue,
200200
String coarseValue,
201201
bool lockWindow) async {
202202
final String? error = await _channel.invokeMethod(
203-
'updateConversionValueWithCallbackSkad4', {'conversionValue': conversionValue,
203+
'updateConversionValueWithErrorCallbackSkad4', {'conversionValue': conversionValue,
204204
'coarseValue': coarseValue,
205205
'lockWindow': lockWindow});
206206
return error;

0 commit comments

Comments
 (0)