Skip to content

Commit 88ce8bd

Browse files
MahdiZTDuerceg
authored andcommitted
Revert "feat:adding jsonResponse to the Attribution class"
This reverts commit 1baab9eae9bbcb0ae5005da645c64f3fc5423038.
1 parent c6617aa commit 88ce8bd

File tree

6 files changed

+4
-53
lines changed

6 files changed

+4
-53
lines changed

android/src/main/java/com/adjust/sdk/flutter/AdjustSdk.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ public void onAttributionChanged(AdjustAttribution adjustAttribution) {
423423
adjustAttribution.costAmount.toString() : "");
424424
adjustAttributionMap.put("costCurrency", adjustAttribution.costCurrency);
425425
adjustAttributionMap.put("fbInstallReferrer", adjustAttribution.fbInstallReferrer);
426-
adjustAttributionMap.put("jsonResponse", adjustAttribution.jsonResponse);
427426
if (channel != null) {
428427
channel.invokeMethod(dartMethodName, adjustAttributionMap);
429428
}
@@ -735,7 +734,6 @@ public void onAttributionRead(AdjustAttribution attribution){
735734
attribution.costAmount.toString() : "");
736735
adjustAttributionMap.put("costCurrency", attribution.costCurrency);
737736
adjustAttributionMap.put("fbInstallReferrer", attribution.fbInstallReferrer);
738-
adjustAttributionMap.put("jsonResponse", attribution.jsonResponse);
739737
result.success(adjustAttributionMap);
740738
}
741739
});

example/lib/main.dart

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
9696
new AdjustConfig('2fm9gkqubvpc', AdjustEnvironment.sandbox);
9797
config.logLevel = AdjustLogLevel.verbose;
9898

99-
// config.setUrlStrategy(['adjust.net.in', 'adjust.com'], true, false);
99+
config.setUrlStrategy(['adjust.net.in', 'adjust.com'], true, false);
100100
//config.setUrlStrategy(['adjust.world', 'adjust.com'], true, false);
101101
//config.setUrlStrategy(['adjust.cn'], true, false);
102102
//config.setUrlStrategy(['eu.adjust.com'], true, true);
@@ -361,47 +361,6 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
361361
() => Adjust.getAttribution().then((attribution) {
362362
_showDialogMessage('Attribution',
363363
'Received attribution: ${attribution.toString()}');
364-
365-
print('[Adjust]: Attribution changed!');
366-
367-
if (attribution.trackerToken != null) {
368-
print(
369-
'[Adjust]: Tracker token: ' + attribution.trackerToken!);
370-
}
371-
if (attribution.trackerName != null) {
372-
print('[Adjust]: Tracker name: ' + attribution.trackerName!);
373-
}
374-
if (attribution.campaign != null) {
375-
print('[Adjust]: Campaign: ' + attribution.campaign!);
376-
}
377-
if (attribution.network != null) {
378-
print('[Adjust]: Network: ' + attribution.network!);
379-
}
380-
if (attribution.creative != null) {
381-
print('[Adjust]: Creative: ' + attribution.creative!);
382-
}
383-
if (attribution.adgroup != null) {
384-
print('[Adjust]: Adgroup: ' + attribution.adgroup!);
385-
}
386-
if (attribution.clickLabel != null) {
387-
print('[Adjust]: Click label: ' + attribution.clickLabel!);
388-
}
389-
if (attribution.costType != null) {
390-
print('[Adjust]: Cost type: ' + attribution.costType!);
391-
}
392-
if (attribution.costAmount != null) {
393-
print('[Adjust]: Cost amount: ' +
394-
attribution.costAmount!.toString());
395-
}
396-
if (attribution.costCurrency != null) {
397-
print(
398-
'[Adjust]: Cost currency: ' + attribution.costCurrency!);
399-
}
400-
if (attribution.jsonResponse != null) {
401-
print(
402-
'[Adjust]: jsonResponse: ' + attribution.jsonResponse!);
403-
}
404-
405364
})),
406365
const Padding(padding: const EdgeInsets.all(7.0)),
407366

ios/Classes/AdjustSdk.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ - (void)getAttribution:(FlutterMethodCall *)call withResult:(FlutterResult)resul
585585
[self addValueOrEmpty:attribution.costType withKey:@"costType" toDictionary:dictionary];
586586
[self addNumberOrEmpty:attribution.costAmount withKey:@"costAmount" toDictionary:dictionary];
587587
[self addValueOrEmpty:attribution.costCurrency withKey:@"costCurrency" toDictionary:dictionary];
588-
[self addValueOrEmpty:attribution.jsonResponse withKey:@"jsonResponse" toDictionary:dictionary];
589588
result(dictionary);
590589
}];
591590
}

ios/Classes/AdjustSdkDelegate.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ - (void)adjustAttributionChangedWannabe:(ADJAttribution *)attribution {
118118
@"clickLabel",
119119
@"costType",
120120
@"costAmount",
121-
@"costCurrency",
122-
@"jsonResponse"
121+
@"costCurrency"
123122
};
124123
id values[] = {
125124
[self getValueOrEmpty:[attribution trackerToken]],
@@ -131,8 +130,7 @@ - (void)adjustAttributionChangedWannabe:(ADJAttribution *)attribution {
131130
[self getValueOrEmpty:[attribution clickLabel]],
132131
[self getValueOrEmpty:[attribution costType]],
133132
[self getNumberValueOrEmpty:[attribution costAmount]],
134-
[self getValueOrEmpty:[attribution costCurrency]],
135-
[self getValueOrEmpty:[attribution jsonResponse]]
133+
[self getValueOrEmpty:[attribution costCurrency]]
136134
};
137135
NSUInteger count = sizeof(values) / sizeof(id);
138136
NSDictionary *attributionMap = [NSDictionary dictionaryWithObjects:values

lib/adjust_attribution.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class AdjustAttribution {
1919
final String? costCurrency;
2020
// Android only
2121
final String? fbInstallReferrer;
22-
final String? jsonResponse;
2322

2423
AdjustAttribution({
2524
this.trackerToken,
@@ -33,7 +32,6 @@ class AdjustAttribution {
3332
this.costAmount,
3433
this.costCurrency,
3534
this.fbInstallReferrer,
36-
this.jsonResponse,
3735
});
3836

3937
factory AdjustAttribution.fromMap(dynamic map) {
@@ -57,7 +55,6 @@ class AdjustAttribution {
5755
costAmount: parsedCostAmount != -1 ? parsedCostAmount : null,
5856
costCurrency: map['costCurrency'],
5957
fbInstallReferrer: map['fbInstallReferrer'],
60-
jsonResponse: map['jsonResponse'],
6158
);
6259
} catch (e) {
6360
throw Exception(

test/app/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class _MyAppState extends State<MyApp> {
7070
buildCupertinoButton(
7171
'Start Test Session',
7272
() => Adjust.getSdkVersion().then((sdkVersion) {
73-
TestLib.addTestDirectory('attribution-getter');
73+
// TestLib.addTestDirectory('event-callbacks');
7474
// TestLib.addTest('Test_AttributionGetter_after_install');
7575
TestLib.startTestSession(sdkVersion);
7676
}))

0 commit comments

Comments
 (0)