File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ @implementation RCTOne
1818 [One disableAutomaticInteractionDetection: YES ];
1919}
2020
21- RCT_EXPORT_METHOD (setLogLevel:(OneLogLevel)level )
21+ RCT_EXPORT_METHOD (enableLogging:( BOOL )enable )
2222{
23- [One setLogLevel: level ];
23+ [One setLogLevel: enable ? kOneLogLevelAll : kOneLogLevelNone ];
2424}
2525
2626RCT_EXPORT_METHOD (sendInteraction:(NSString *)interaction
@@ -65,8 +65,6 @@ @implementation RCTOne
6565{
6666 // Calling this method opts the user back in to match Android wipe and replace behavior.
6767 [One opt: In forOptions: AllTracking];
68-
69- NSNumber *optOutValue = call.arguments [@" optOut" ];
7068 [One opt: optOut ? Out : In forOptions: CityCountryDetection];
7169}
7270
@@ -95,15 +93,4 @@ + (BOOL)requiresMainQueueSetup
9593 return YES ;
9694}
9795
98- - (NSDictionary *)constantsToExport
99- {
100- return @{
101- @" LogLevelNone" : @(kOneLogLevelNone ),
102- @" LogLevelAll" : @(kOneLogLevelAll ),
103- @" LogLevelWebService" : @(kOneLogLevelWebService ),
104- @" LogLevelFramework" : @(kOneLogLevelFramework )
105- };
106- }
107-
108-
10996@end
You can’t perform that action at this time.
0 commit comments