1111@implementation EventTracker
1212
1313+(void )logScreen : (NSString *)name {
14- [MSAnalytics trackEvent: [NSString stringWithFormat: @" Screen-%@ " , name]];
14+ [MSACAnalytics trackEvent: [NSString stringWithFormat: @" Screen-%@ " , name]];
1515}
1616
17- +(void )logEventWithName : (NSString *)eventName customAttributes : (NSDictionary *)attributes flags : (MSFlags )flags {
18- [MSAnalytics trackEvent: eventName withProperties: attributes flags: flags];
17+ +(void )logEventWithName : (NSString *)eventName customAttributes : (NSDictionary *)attributes flags : (MSACFlags )flags {
18+ [MSACAnalytics trackEvent: eventName withProperties: attributes flags: flags];
1919}
2020
2121+(void )logEventWithType : (LogEventTypes)eventType {
2222 switch (eventType) {
2323 case LogEventTypeCopyToClipboard:{
2424 NSString *name = @" Copy to Clipboard" ;
25- [EventTracker logEventWithName: name customAttributes: nil flags: MSFlagsDefault ];
25+ [EventTracker logEventWithName: name customAttributes: nil flags: MSACFlagsDefault ];
2626 }break ;
2727
2828 case LogEventTypeCopyToClipboardFromDashboard:{
2929 NSString *name = @" Copy to Clipboard from Dashboard" ;
30- [EventTracker logEventWithName: name customAttributes: nil flags: MSFlagsDefault ];
30+ [EventTracker logEventWithName: name customAttributes: nil flags: MSACFlagsDefault ];
3131 }break ;
3232
3333 case LogEventTypeUpdateExternalLink:{
34- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Update" } flags: MSFlagsDefault ];
34+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Update" } flags: MSACFlagsDefault ];
3535 }break ;
3636
3737 case LogEventTypeUploadWithCustomBDFolderName:{
38- [EventTracker logEventWithName: @" DB Folder Name" customAttributes: @{@" Custom Name" :@" YES" } flags: MSFlagsDefault ];
38+ [EventTracker logEventWithName: @" DB Folder Name" customAttributes: @{@" Custom Name" :@" YES" } flags: MSACFlagsDefault ];
3939 }break ;
4040
4141 case LogEventTypeUploadWithDefaultDBFolderName:{
42- [EventTracker logEventWithName: @" DB Folder Name" customAttributes: @{@" Custom Name" :@" NO" } flags: MSFlagsDefault ];
42+ [EventTracker logEventWithName: @" DB Folder Name" customAttributes: @{@" Custom Name" :@" NO" } flags: MSACFlagsDefault ];
4343 }break ;
4444
4545 case LogEventTypeShortURLFailedInFirstRequest:{
46- [EventTracker logEventWithName: @" Short URL Failed" customAttributes: @{@" Request No" :@" 1" } flags: MSFlagsNormal ];
46+ [EventTracker logEventWithName: @" Short URL Failed" customAttributes: @{@" Request No" :@" 1" } flags: MSACFlagsNormal ];
4747 }break ;
4848
4949 case LogEventTypeShortURLFailedInSecondRequest:{
50- [EventTracker logEventWithName: @" Short URL Failed" customAttributes: @{@" Request No" :@" 2" } flags: MSFlagsCritical ];
50+ [EventTracker logEventWithName: @" Short URL Failed" customAttributes: @{@" Request No" :@" 2" } flags: MSACFlagsCritical ];
5151 }break ;
5252
5353 case LogEventTypeShortURLSuccessInFirstRequest:{
54- [EventTracker logEventWithName: @" Short URL Success" customAttributes: @{@" Request No" :@" 1" } flags: MSFlagsDefault ];
54+ [EventTracker logEventWithName: @" Short URL Success" customAttributes: @{@" Request No" :@" 1" } flags: MSACFlagsDefault ];
5555 }break ;
5656
5757 case LogEventTypeShortURLSuccessInSecondRequest:{
58- [EventTracker logEventWithName: @" Short URL Success" customAttributes: @{@" Request No" :@" 2" } flags: MSFlagsCritical ];
58+ [EventTracker logEventWithName: @" Short URL Success" customAttributes: @{@" Request No" :@" 2" } flags: MSACFlagsCritical ];
5959 }break ;
6060
6161 case LogEventTypeShortURLElseBlockExecuted: {
62- [EventTracker logEventWithName: @" Short URL Else Block Executed" customAttributes: @{@" Request No" :@" 1" } flags: MSFlagsCritical ];
62+ [EventTracker logEventWithName: @" Short URL Else Block Executed" customAttributes: @{@" Request No" :@" 1" } flags: MSACFlagsCritical ];
6363 }break ;
6464
6565 case LogEventTypeExternalLinkHelp:{
66- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Help" } flags: MSFlagsDefault ];
66+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Help" } flags: MSACFlagsDefault ];
6767 }break ;
6868
6969 case LogEventTypeExternalLinkTwitter:{
70- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Twitter" } flags: MSFlagsDefault ];
70+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Twitter" } flags: MSACFlagsDefault ];
7171 }break ;
7272
7373 case LogEventTypeExternalLinkReleaseNote:{
74- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Release Notes" } flags: MSFlagsDefault ];
74+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Release Notes" } flags: MSACFlagsDefault ];
7575 }break ;
7676
7777 case LogEventTypeExternalLinkLicense:{
78- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" License" } flags: MSFlagsDefault ];
78+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" License" } flags: MSACFlagsDefault ];
7979 }break ;
8080
8181 case LogEventTypeAuthDropbox:{
82- [EventTracker logEventWithName: @" Authenticating Dropbox Start" customAttributes: nil flags: MSFlagsDefault ];
82+ [EventTracker logEventWithName: @" Authenticating Dropbox Start" customAttributes: nil flags: MSACFlagsDefault ];
8383 }break ;
8484
8585 case LogEventTypeExitWithoutAuth:{
86- [EventTracker logEventWithName: @" AppBox terminated before Dropbox LoggedIN :(" customAttributes: nil flags: MSFlagsDefault ];
86+ [EventTracker logEventWithName: @" AppBox terminated before Dropbox LoggedIN :(" customAttributes: nil flags: MSACFlagsDefault ];
8787 }break ;
8888
8989 case LogEventTypeAuthDropboxSuccess: {
90- [EventTracker logEventWithName: @" Authenticating Dropbox Success" customAttributes: nil flags: MSFlagsDefault ];
90+ [EventTracker logEventWithName: @" Authenticating Dropbox Success" customAttributes: nil flags: MSACFlagsDefault ];
9191 }break ;
9292
9393 case LogEventTypeAuthDropboxError: {
94- [EventTracker logEventWithName: @" Authenticating Dropbox Error" customAttributes: nil flags: MSFlagsCritical ];
94+ [EventTracker logEventWithName: @" Authenticating Dropbox Error" customAttributes: nil flags: MSACFlagsCritical ];
9595 }break ;
9696
9797 case LogEventTypeAuthDropboxCanceled: {
98- [EventTracker logEventWithName: @" Authenticating Dropbox Canceled" customAttributes: nil flags: MSFlagsNormal ];
98+ [EventTracker logEventWithName: @" Authenticating Dropbox Canceled" customAttributes: nil flags: MSACFlagsNormal ];
9999 }break ;
100100
101101 case LogEventTypeExternalLinkKeepSameLink:{
102- [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Keep Same Link" } flags: MSFlagsDefault ];
102+ [EventTracker logEventWithName: @" External Links" customAttributes: @{@" Title" :@" Keep Same Link" } flags: MSACFlagsDefault ];
103103 }break ;
104104
105105 case LogEventTypeDeleteBuild:{
106- [EventTracker logEventWithName: @" Build Deleted" customAttributes: nil flags: MSFlagsDefault ];
106+ [EventTracker logEventWithName: @" Build Deleted" customAttributes: nil flags: MSACFlagsDefault ];
107107 }break ;
108108
109109 case LogEventTypeOpenInFinder:{
110- [EventTracker logEventWithName: @" Open In Finder" customAttributes: nil flags: MSFlagsDefault ];
110+ [EventTracker logEventWithName: @" Open In Finder" customAttributes: nil flags: MSACFlagsDefault ];
111111 }break ;
112112
113113 case LogEventTypeOpenInDropbox:{
114- [EventTracker logEventWithName: @" Open In Dropbox" customAttributes: nil flags: MSFlagsDefault ];
114+ [EventTracker logEventWithName: @" Open In Dropbox" customAttributes: nil flags: MSACFlagsDefault ];
115115 }break ;
116116
117117 case LogEventTypeOpenDashboardFromShowLink:{
118- [EventTracker logEventWithName: @" Dashboard open from Show Link" customAttributes: nil flags: MSFlagsDefault ];
118+ [EventTracker logEventWithName: @" Dashboard open from Show Link" customAttributes: nil flags: MSACFlagsDefault ];
119119 }break ;
120120
121121
@@ -127,15 +127,15 @@ +(void)logEventWithType:(LogEventTypes)eventType{
127127+(void )logEventSettingWithType : (LogEventSettingTypes)eventType andSettings : (NSDictionary *)currentSetting {
128128 switch (eventType) {
129129 case LogEventSettingTypeUploadIPA:{
130- [EventTracker logEventWithName: @" Upload IPA" customAttributes: currentSetting flags: MSFlagsDefault ];
130+ [EventTracker logEventWithName: @" Upload IPA" customAttributes: currentSetting flags: MSACFlagsDefault ];
131131 }break ;
132132
133133 case LogEventSettingTypeArchiveAndUpload: {
134- [EventTracker logEventWithName: @" Archive and Upload IPA" customAttributes: currentSetting flags: MSFlagsDefault ];
134+ [EventTracker logEventWithName: @" Archive and Upload IPA" customAttributes: currentSetting flags: MSACFlagsDefault ];
135135 }break ;
136136
137137 case LogEventSettingTypeUploadIPASuccess: {
138- [EventTracker logEventWithName: @" IPA Uploaded Success" customAttributes: currentSetting flags: MSFlagsDefault ];
138+ [EventTracker logEventWithName: @" IPA Uploaded Success" customAttributes: currentSetting flags: MSACFlagsDefault ];
139139 }break ;
140140
141141 default :
@@ -147,7 +147,7 @@ +(void)logExceptionEvent:(NSException *)exception {
147147 [EventTracker logEventWithName: @" Exception"
148148 customAttributes: @{ @" debug description" : exception.debugDescription ,
149149 @" stack" : exception.callStackSymbols }
150- flags: MSFlagsCritical ];
150+ flags: MSACFlagsCritical ];
151151}
152152
153153+(void )logAppBoxVersion {
@@ -156,6 +156,6 @@ +(void)logAppBoxVersion {
156156 customAttributes: @{ @" Version" : dbManager.version ,
157157 @" Name" : dbManager.appName ,
158158 @" Identifier" : dbManager.bundleId }
159- flags: MSFlagsDefault ];
159+ flags: MSACFlagsDefault ];
160160}
161161@end
0 commit comments