commit f57fe12af574df9366fd0a4f1a7bc3fb601b5b8f Author: c3mb0 Date: Thu Nov 26 19:09:17 2015 +0200 initial commit after takeover changed backend url to https diff --git a/AppAnalytics.framework/AppAnalytics b/AppAnalytics.framework/AppAnalytics new file mode 120000 index 0000000..2c9fb57 --- /dev/null +++ b/AppAnalytics.framework/AppAnalytics @@ -0,0 +1 @@ +Versions/Current/AppAnalytics \ No newline at end of file diff --git a/AppAnalytics.framework/Headers b/AppAnalytics.framework/Headers new file mode 120000 index 0000000..a177d2a --- /dev/null +++ b/AppAnalytics.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/AppAnalytics.framework/Versions/A/AppAnalytics b/AppAnalytics.framework/Versions/A/AppAnalytics new file mode 100644 index 0000000..2e49d1e Binary files /dev/null and b/AppAnalytics.framework/Versions/A/AppAnalytics differ diff --git a/AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h b/AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h new file mode 100644 index 0000000..852b03e --- /dev/null +++ b/AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h @@ -0,0 +1,163 @@ +#import + +/*! Generate debug logs to console */ +extern NSString* const DebugLog; + +/*! Touches Heat Map */ +extern NSString* const HeatMapAnalytics; + +/*! Auto tracking exceptions */ +extern NSString* const ExceptionAnalytics; + +/*! Auto tracking transactions */ +extern NSString* const TransactionAnalytics; + +/*! Auto tracking navigation */ +extern NSString* const NavigationAnalytics; + +/*! Auto tracking pop ups */ +extern NSString* const PopUpAnalytics; + +/*! Auto tracking location services state */ +extern NSString* const LocationServicesAnalytics; + +/*! Auto tracking Internet connection status (WiFi, cellular, turned off) */ +extern NSString* const ConnectionAnalytics; + +/*! Auto tracking application state changes (entering background, foreground) */ +extern NSString* const ApplicationStateAnalytics; + +/*! Auto tracking device orientation changes */ +extern NSString* const DeviceOrientationAnalytics; + +/*! Auto tracking battery status changes */ +extern NSString* const BatteryAnalytics; + +/*! Auto tracking keyboard state changes */ +extern NSString* const KeyboardAnalytics; + +/*! + @class AppAnalytics + + @abstract + Provide methods to control App Analytics functionality. + + @discussion For more information on integrating and using the App Analytics SDK + please visit our help site documentation at http://www.appanalytics.io/Support + */ + +@interface AppAnalytics : NSObject + +/*! + @abstract + Start App Analytics with API key. + + @code + - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions + { + // App Analytics startup method + [AppAnalytics initWithAppKey:@"YOUR_API_KEY"]; + // .... + } + @endcode + + @param appKey The App Analytics API key for this application. + + @discussion This method must be executed before any other App Analytics SDK methods can be used. + All of the options are set to YES by default. + */ + ++ (void)initWithAppKey:(NSString*)appKey; + +/*! + @abstract + Start App Analytics with API key and options. + + @code + - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions + { + // App Analytics startup method + [AppAnalytics initWithAppKey:@"YOUR_API_KEY" + options:@{DebugLog : @(NO)}] + // .... + } + @endcode + + @param appKey The App Analytics API key for this application. + + @param options Options which control default behaviour of the App Analytics SDK. + + @discussion This method must be executed before any other App Analytics SDK methods can be used. + Allows to set custom values for the auto tracking options. + */ + ++ (void)initWithAppKey:(NSString *)appKey options:(NSDictionary*)options; + +/*! + @abstract + Creates App Analytics event and associates it with eventName. + + @code + [AppAnalytics logEvent:@"Cool Event"]; + @endcode + + @param eventName Name of the event. + */ + ++ (void)logEvent:(NSString*)eventName; + +/*! + @abstract + Creates App Analytics event and associates it with eventName and parameters. + + @code + [AppAnalytics logEvent:@"Item Purchased" parameters:@{@"Type" : @"Pack of coins"}]; + @endcode + + @param eventName Name of the event. + + @param parameters Parameters of the event. + */ + ++ (void)logEvent:(NSString*)eventName parameters:(NSDictionary*)parameters; + +/*! Sets frequence of updates. Lower values produce higher network usage. */ ++ (void)setDispatchInverval:(NSTimeInterval)dispatchInterval; + +/*! Enable or disable generating debug output */ ++ (void)setDebugLogEnabled:(BOOL)enabled; + +/*! Enable or disable automatic exception analytics */ ++ (void)setExceptionAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic transactions analytics */ ++ (void)setTransactionAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic navigation analytics */ ++ (void)setNavigationAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic pop ups analytics */ ++ (void)setPopUpsAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic location services analytics */ ++ (void)setLocationServicesAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic connection analytics */ ++ (void)setConnectionAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic application state analytics */ ++ (void)setApplicationStateAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic device orientation analytics */ ++ (void)setDeviceOrientationAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic battery state analytics */ ++ (void)setBatteryAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic heat map analytics */ ++ (void)setHeatMapAnalyticsEnabled:(BOOL)enabled; + +/*! Enable or disable automatic keyboard state analytics */ ++ (void)setKeyboardAnalyticsEnabled:(BOOL)enabled; + +@end \ No newline at end of file diff --git a/AppAnalytics.framework/Versions/Current b/AppAnalytics.framework/Versions/Current new file mode 120000 index 0000000..8c7e5a6 --- /dev/null +++ b/AppAnalytics.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/AppAnalytics.podspec b/AppAnalytics.podspec new file mode 100644 index 0000000..7aea889 --- /dev/null +++ b/AppAnalytics.podspec @@ -0,0 +1,17 @@ +Pod::Spec.new do |spec| + + spec.name = "AppAnalytics" + spec.version = "1.2.0" + spec.summary = "AppAnalytics framework for iOS" + spec.homepage = "https://appanalytics.io" + spec.author = { "Cem Sancak" => "cem@appanalytics.io" } + spec.license = { :type => "MIT", :file => "LICENSE" } + spec.platform = :ios, "7.0" + spec.source = { :git => "https://github.com/AppAnalytics-io/AppAnalytics-iOS-Framework.git", :tag => "1.2.0" } + spec.requires_arc = true + spec.frameworks = "MobileCoreServices", "SystemConfiguration", "CoreLocation", "StoreKit", "Foundation" + spec.vendored_frameworks = "AppAnalytics.framework" + spec.public_header_files = "AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h" + spec.xcconfig = { "OTHER_LDFLAGS" => "-all_load" } + +end diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f3ad6de --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2015 c3mb0 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c954a70 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# AppAnalytics + +[![CI Status](http://img.shields.io/travis/c3mb0/AppAnalytics.svg?style=flat)](https://travis-ci.org/c3mb0/AppAnalytics) +[![Version](https://img.shields.io/cocoapods/v/AppAnalytics.svg?style=flat)](http://cocoapods.org/pods/AppAnalytics) +[![License](https://img.shields.io/cocoapods/l/AppAnalytics.svg?style=flat)](http://cocoapods.org/pods/AppAnalytics) +[![Platform](https://img.shields.io/cocoapods/p/AppAnalytics.svg?style=flat)](http://cocoapods.org/pods/AppAnalytics) + +## Usage + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +AppAnalytics is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod "AppAnalytics" +``` + +## Author + +c3mb0, c3mb0@users.noreply.github.com + +## License + +AppAnalytics is available under the MIT license. See the LICENSE file for more info.