├── FlowUpIOSSDK.podspec ├── README.md ├── SDK ├── FlowUp.h └── module.modulemap └── libFlowUpIOSSDK.a /FlowUpIOSSDK.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "FlowUpIOSSDK" 3 | s.version = "0.0.3" 4 | s.summary = "iOS SDK to collect performance metrics easily using https://flowup.io." 5 | 6 | s.homepage = "https://flowup.io" 7 | s.license = 'Karumi' 8 | s.author = { "FlowUp" => "flowup@karumi.com" } 9 | s.platform = :ios, '8.0' 10 | s.source = { :git => 'https://github.com/Karumi/FlowUpIOSSDK.git', :tag => s.version.to_s} 11 | s.framework = 'SystemConfiguration' 12 | s.module_name = 'FlowUp' 13 | s.source_files = 'SDK/FlowUp.h' 14 | s.xcconfig = { 'SWIFT_INCLUDE_PATHS' => '$(PODS_ROOT)/FlowUpIOSSDK' } 15 | s.module_map = 'SDK/module.modulemap' 16 | s.public_header_files = 'SDK/FlowUp.h' 17 | s.vendored_libraries = 'libFlowUpIOSSDK.a' 18 | s.library = 'sqlite3' 19 | s.requires_arc = true 20 | s.license = { :type => 'Commercial', :text => "See https://flowup.io/" } 21 | end -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FlowUp iOS SDK 2 | 3 | iOS SDK to collect performance metrics easily using [FlowUp](http://flowup.io) 4 | 5 | ## Usage 6 | 7 | * Include the SDK in your `Podfile`: 8 | 9 | ```ruby 10 | pod 'FlowUpIOSSDK', '~> 0.0.3' 11 | ``` 12 | 13 | * Initialize FlowUp from your `AppDelegate` implementation, right from the `application:didFinishLaunchingWithOptions:` method: 14 | 15 | ##### _Objective-C_ 16 | 17 | ```objectivec 18 | // YourAppDelegate.h 19 | #import "FlowUp.h" 20 | 21 | // YourAppDelegate.m 22 | @implementation YourAppDelegate 23 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 24 | { 25 | [FlowUp application:application 26 | didFinishLaunchingWithOptions:launchOptions 27 | apiKey:@"YOUR API KEY"; 28 | isDebugModeEnabled:YES]; 29 | return YES; 30 | } 31 | @end 32 | ``` 33 | 34 | ##### _Swift_ 35 | ```swift 36 | import FlowUp 37 | 38 | class YourAppDelegate: UIResponder, UIApplicationDelegate { 39 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 40 | FlowUp.application(application, 41 | didFinishLaunchingWithOptions: launchOptions, 42 | apiKey: "YOUR API KEY", 43 | isDebugModeEnabled: true) 44 | return true 45 | } 46 | } 47 | ``` 48 | 49 | **Remember to always disable the debug mode when building for release.** 50 | 51 | * Go to https://flowup.io/ and wait for your data to appear in less than a minute. 52 | 53 | ## Internals 54 | 55 | Our SDK is implemented in Objective-C and it uses a variety of APIs to collect all the system metrics we use to detect and show you potential performance issues in your app. We don't use any private API (and never will!) so it's completely safe to use FlowUp in your app and upload it to the App Store. 56 | 57 | ## Reporting 58 | 59 | Did you find an issue? Create a ticket and we will take care as soon as possible. 60 | -------------------------------------------------------------------------------- /SDK/FlowUp.h: -------------------------------------------------------------------------------- 1 | // 2 | // FlowUp.h 3 | // 4 | // Copyright © 2017 flowup. All rights reserved. 5 | // 6 | 7 | #import 8 | 9 | @class UIApplication; 10 | 11 | @interface FlowUp : NSObject 12 | 13 | - (instancetype)init NS_UNAVAILABLE; 14 | 15 | + (void)application:(UIApplication *)application 16 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | apiKey:(NSString *)apiKey 18 | isDebugModeEnabled:(BOOL)isDebugModeEnabled; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /SDK/module.modulemap: -------------------------------------------------------------------------------- 1 | module FlowUp { 2 | header "FlowUp.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /libFlowUpIOSSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowupio/FlowUpIOSSDK/7b335981d875071b5853c839ac4c67774d5fb799/libFlowUpIOSSDK.a --------------------------------------------------------------------------------