Label305 / StanKit

[Deprecated] iOS library with various extensions on the default iOS SDK, combines logging to Crashlytics and Google Analytics. Used at Label305 for app development.

Home Page:http://docs.label305.com/stankit-ios/master

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StanKit [Deprecated] Build Status

iOS library with various extensions on the default iOS SDK, used at Label305 for app development.

CocoaPods

Add the following lines to your Podfile:

pod 'StanKit', '~> 0.2'
pod 'StanKit/Analytics', '~> 0.2'

Features

  • An easy logger to log to remote services like Crashlytics.
  • Google Analytics event and screen API
  • Block methods for UIResponder, UIAlertView and UIGestureRecognizer.
  • Runscope category for NSURL.
  • NSObject selector swizzle methods.

Usage

#import <StanKit/StanKit.h>
#import <StanKit/Analytics.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    SKLoggerMode loggerMode = SKLoggerModeRelease;
#ifdef DEBUG
    loggerMode = SKLoggerModeDebug;
#endif
#ifdef TESTING
    loggerMode = SKLoggerModeTesting;
#endif

    [SKLogger setupWithMode:loggerMode crashlyticsAPIKey:@"abcdefghijk"];
    [SKAnalytics setupGoogleAnalyticsWithTrackingId:@"UA-xxx-1"];
    
    ...
}
// Log to the console, Crashlytics according to the SKLoggerMode
SKLog(@"Send a log message crashlytics");
// Send screen / event to Google Analytics. Also sends a Checkpoint to Crashlytics.
[[SKAnalytics sharedInstance] trackEventWithCategory:@"Account" action:@"Login" label:nil value:nil];
[[SKAnalytics sharedInstance] trackScreenWithName:@"Start_Screen"];

License

Copyright 2014 Label305 B.V.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

[Deprecated] iOS library with various extensions on the default iOS SDK, combines logging to Crashlytics and Google Analytics. Used at Label305 for app development.

http://docs.label305.com/stankit-ios/master

License:Other


Languages

Language:Objective-C 96.5%Language:Ruby 3.5%