Skip to content

Commit 6497394

Browse files
committed
Import V4 iOS source from unitypackage
1 parent 7515f56 commit 6497394

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/Plugins/iOS/GAIHandler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ void _send(NSDictionary * parameters);
88
void _setProductName(char * name);
99
void _setProductVersion(char * version);
1010
void _setOptOut(bool optOut);
11+
void _anonymizeIP();
12+
void _enableIDFACollection();
1113
void _setDispatchInterval(int time);
1214
void _setTrackUncaughtExceptions(bool trackUncaughtExceptions);
1315
void _setDryRun(bool dryRun);

source/Plugins/iOS/GAIHandler.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ void anonymizeIP(){
5151
[tracker set:kGAIAnonymizeIp value:@"1"];
5252
}
5353

54+
void enableIDFACollection(){
55+
[[GAI sharedInstance] defaultTracker].allowIDFACollection = YES;
56+
}
57+
5458
void setSampleFrequency(int sampleFrequency) {
5559
id tracker = [[GAI sharedInstance] defaultTracker];
5660
[tracker set:kGAISampleRate value:[@(sampleFrequency) stringValue]];

0 commit comments

Comments
 (0)