Permalink
Browse files

removed google analytics, added codecov.yml file, updated build number

  • Loading branch information...
1 parent 55dbce7 commit 6b958f0372b54e191a21be108ccc129fadad02a8 @leogdion leogdion committed Oct 19, 2016
View
@@ -0,0 +1,3 @@
+ignore:
+ - "Pods" # can ignore folder and everything inside
+ - "tests"
Oops, something went wrong.
@@ -1,13 +0,0 @@
-//
-// GoogleAnalyticsTracker.h
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 12/11/15.
-// Copyright © 2015 MacPaw Inc. All rights reserved.
-//
-
-@import Cocoa;
-
-#import <GoogleAnalyticsTracker/MPAnalyticsConfiguration.h>
-#import <GoogleAnalyticsTracker/MPGoogleAnalyticsTracker.h>
-#import <GoogleAnalyticsTracker/MPAnalyticsDebugWindowController.h>
@@ -1,22 +0,0 @@
-//
-// MPAnalyticsConfiguration.h
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 12/11/15.
-// Copyright © 2015 MacPaw Inc. All rights reserved.
-//
-
-@import Foundation;
-
-
-@interface MPAnalyticsConfiguration : NSObject
-
-@property (nonatomic, copy, readonly) NSString *analyticsIdentifier;
-@property (nonatomic, copy, readonly) NSDictionary *additionalIdentifiers;
-
-- (instancetype)initWithAnalyticsIdentifier:(NSString *)identifier NS_DESIGNATED_INITIALIZER;
-
-- (void)duplicateEventsForCategory:(NSString *)category toGAID:(NSString *)identifier;
-- (void)stopDuplicatingEventsForCategory:(NSString *)category;
-
-@end
@@ -1,66 +0,0 @@
-//
-// MPAnalyticsConfiguration.m
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 12/11/15.
-// Copyright © 2015 MacPaw Inc. All rights reserved.
-//
-
-#import "MPAnalyticsConfiguration.h"
-
-
-@interface MPAnalyticsConfiguration ()
-
-@property (nonatomic, copy) NSString *analyticsIdentifier;
-@property (nonatomic, strong) NSMutableDictionary *duplicateIdentifiers;
-
-@end
-
-
-@implementation MPAnalyticsConfiguration
-
-- (instancetype)init
-{
- return [self initWithAnalyticsIdentifier:nil];
-}
-
-- (instancetype)initWithAnalyticsIdentifier:(NSString *)identifier
-{
- self = [super init];
- if (self)
- {
- _analyticsIdentifier = identifier;
- }
-
- return self;
-}
-
-- (NSMutableDictionary *)duplicateIdentifiers
-{
- if (!_duplicateIdentifiers)
- {
- _duplicateIdentifiers = [NSMutableDictionary dictionary];
- }
-
- return _duplicateIdentifiers;
-}
-
-- (void)duplicateEventsForCategory:(NSString *)category toGAID:(NSString *)identifier
-{
- if (category && identifier)
- {
- self.duplicateIdentifiers[category] = identifier;
- }
-}
-
-- (void)stopDuplicatingEventsForCategory:(NSString *)category
-{
- [self.duplicateIdentifiers removeObjectForKey:category];
-}
-
-- (NSDictionary *)additionalIdentifiers
-{
- return [self.duplicateIdentifiers copy];
-}
-
-@end
@@ -1,16 +0,0 @@
-//
-// MPAnalyticsDebugWindowController.h
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 4/4/15.
-// Copyright (c) 2015 MacPaw. All rights reserved.
-//
-
-@import Cocoa;
-
-
-@interface MPAnalyticsDebugWindowController : NSWindowController
-
-+ (void)showWindow:(nullable id)sender;
-
-@end
@@ -1,88 +0,0 @@
-//
-// MPAnalyticsDebugWindowController.h
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 4/4/15.
-// Copyright (c) 2015 MacPaw. All rights reserved.
-//
-
-#import "MPAnalyticsDebugWindowController.h"
-
-
-@interface MPAnalyticsDebugWindowController ()
-
-@property (nonatomic, strong) NSMutableArray *eventsArray;
-@property (strong) IBOutlet NSArrayController *eventsArrayController;
-
-@end
-
-
-@implementation MPAnalyticsDebugWindowController
-
-static id _sharedInstance = nil;
-+ (instancetype)sharedController
-{
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- _sharedInstance = [[self alloc] init];
- });
-
- return _sharedInstance;
-}
-
-+ (void)load
-{
- [self sharedController];
-}
-
-- (instancetype)init
-{
- self = [super init];
- if (self)
- {
-#ifndef DEBUG
- if (![[NSUserDefaults standardUserDefaults] boolForKey:@"ShowDebugMenu"])
- {
- return nil;
- }
-#endif
- _eventsArray = [NSMutableArray array];
-
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(analyticsReceived:)
- name:@"AnalyticsEvent" object:nil];
- }
- return self;
-}
-
-- (NSString *)windowNibName
-{
- return @"AnalyticsWindow";
-}
-
-- (void)loadWindow
-{
- [super loadWindow];
-
- [self.window setLevel:NSStatusWindowLevel];
-}
-
-- (void)analyticsReceived:(NSNotification *)aNotification
-{
- dispatch_async(dispatch_get_main_queue(), ^{
- if (!self.eventsArrayController)
- {
- [self.eventsArray insertObject:aNotification.userInfo atIndex:0];
- }
- else
- {
- [self.eventsArrayController insertObject:aNotification.userInfo atArrangedObjectIndex:0];
- }
- });
-}
-
-+ (void)showWindow:(nullable id)sender
-{
- [[self sharedController] showWindow:sender];
-}
-
-@end
@@ -1,61 +0,0 @@
-//
-// MPAnalyticsParamBuilder.h
-// GoogleAnalyticsTracker
-//
-// Created by Denis Stas on 12/11/15.
-// Copyright © 2015 MacPaw Inc. All rights reserved.
-//
-
-@import Foundation;
-
-
-@class MPEventParams, MPTimingParams, MPAppViewParams;
-
-@interface MPParamBuilder : NSObject
-
-+ (MPEventParams *)eventParamsForCategory:(NSString *)eventCategory action:(NSString *)eventAction
- label:(NSString *)eventLabel value:(NSNumber *)eventValue;
-
-+ (MPEventParams *)eventParamsForCategory:(NSString *)eventCategory action:(NSString *)eventAction
- label:(NSString *)eventLabel value:(NSNumber *)eventValue
- contentDescription:(NSString *)contentDescription customDimension:(NSString *)customDimension;
-
-+ (MPAppViewParams *)appViewParamsForScreen:(NSString *)screen;
-
-+ (MPTimingParams *)timingParamsForCategory:(NSString *)timingCategory variable:(NSString *)timingVariable
- time:(NSNumber *)timingTime label:(NSString *)timingLabel;
-
-@end
-
-
-@interface MPTrackingRequestParams : NSObject
-
-@property (nonatomic, copy, readonly) NSString *hitType;
-@property (nonatomic, copy, readonly) NSString *contentDescription;
-@property (nonatomic, copy, readonly) NSString *customDimension;
-
-- (NSDictionary *)dictionaryRepresentation;
-
-@end
-
-@interface MPEventParams : MPTrackingRequestParams
-
-@property (nonatomic, copy, readonly) NSString *category;
-@property (nonatomic, copy, readonly) NSString *action;
-@property (nonatomic, copy, readonly) NSString *label;
-@property (nonatomic, copy, readonly) NSNumber *value;
-
-@end
-
-@interface MPAppViewParams : MPTrackingRequestParams
-
-@end
-
-@interface MPTimingParams : MPTrackingRequestParams
-
-@property (nonatomic, copy, readonly) NSString *category;
-@property (nonatomic, copy, readonly) NSString *variable;
-@property (nonatomic, copy, readonly) NSNumber *time;
-@property (nonatomic, copy, readonly) NSString *label;
-
-@end
Oops, something went wrong.

0 comments on commit 6b958f0

Please sign in to comment.