mirror of
https://github.com/zhigang1992/AppAnalytics-iOS-Framework.git
synced 2026-01-12 22:45:55 +08:00
initial commit after takeover
changed backend url to https
This commit is contained in:
1
AppAnalytics.framework/AppAnalytics
Symbolic link
1
AppAnalytics.framework/AppAnalytics
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/AppAnalytics
|
||||
1
AppAnalytics.framework/Headers
Symbolic link
1
AppAnalytics.framework/Headers
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
BIN
AppAnalytics.framework/Versions/A/AppAnalytics
Normal file
BIN
AppAnalytics.framework/Versions/A/AppAnalytics
Normal file
Binary file not shown.
163
AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h
Normal file
163
AppAnalytics.framework/Versions/A/Headers/AppAnalytics.h
Normal file
@@ -0,0 +1,163 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/*! 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
|
||||
1
AppAnalytics.framework/Versions/Current
Symbolic link
1
AppAnalytics.framework/Versions/Current
Symbolic link
@@ -0,0 +1 @@
|
||||
A
|
||||
17
AppAnalytics.podspec
Normal file
17
AppAnalytics.podspec
Normal file
@@ -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
|
||||
19
LICENSE
Normal file
19
LICENSE
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2015 c3mb0 <c3mb0@users.noreply.github.com>
|
||||
|
||||
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.
|
||||
29
README.md
Normal file
29
README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# AppAnalytics
|
||||
|
||||
[](https://travis-ci.org/c3mb0/AppAnalytics)
|
||||
[](http://cocoapods.org/pods/AppAnalytics)
|
||||
[](http://cocoapods.org/pods/AppAnalytics)
|
||||
[](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.
|
||||
Reference in New Issue
Block a user