License | Custom |
ReleasedLast Release | Nov 2016 |
Maintained by Robert Walsh, Robert Walsh.
There are 2 main areas of functionality provided: (1) App Services (Usergrid), and (2) App Monitoring. App Services provides server-side storage functionality. App Monitoring provides crash reporting, error tracking, application configuration management, and network performance monitoring. You may use both of these areas or decide to just use one of them.
Add ApigeeiOSSDK.framework
to your project.
Add the following iOS frameworks to your project:
CoreLocation.framework
Security.framework
CoreTelephony.framework
QuartzCore.framework
SystemConfiguration.framework
UIKit.framework
Add the following flags to 'Other Linker Flags' in 'Build Settings':
-ObjC -all_load
Confirm that flags are set for both 'DEBUG' and 'RELEASE'.
Import the SDK in your code:
#import <ApigeeiOSSDK/Apigee.h>
Declare the following properties in AppDelegate.h
:
@property (strong, nonatomic) ApigeeClient *apigeeClient; //object for initializing the App Services SDK
@property (strong, nonatomic) ApigeeMonitoringClient *monitoringClient; //client object for Apigee App Monitoring methods
@property (strong, nonatomic) ApigeeDataClient *dataClient; //client object for App Services data methods
Instantiate the 'ApigeeClient' class inside the 'didFinishLaunching' method of 'AppDelegate.m':
//Instantiate the AppDelegate
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
//Sepcify your App Services organization and application names
NSString *orgName = @"YOUR-ORG";
NSString *appName = @"YOUR-APP";
//Instantiate ApigeeClient to initialize the SDK
appDelegate.apigeeClient = [[ApigeeClient alloc]
initWithOrganizationId:orgName
applicationId:appName];
//Retrieve instances of ApigeeClient.monitoringClient and ApigeeClient.dataClient
self.monitoringClient = [appDelegate.apigeeClient monitoringClient]; //used to call App Monitoring methods
self.dataClient = [appDelegate.apigeeClient dataClient]; //used to call data methods
To build from source, issue this command from the /source
directory of your repository:
./Scripts/framework.sh
To run unit tests you can either use the Xcode IDE or Xcode's command line tools:
- From within the Xcode IDE, under the Product menu select Test.
- Using the command line issue the following command from the `\source` directory of your repository:
```xcodebuild -project ApigeeiOSSDK.xcodeproj -scheme “ApigeeiOSSDK Tests” -configuration Debug -sdk iphonesimulator clean build test```
The build script makes use of the default installation of Xcode. If you need to configure the build to use a different version of Xcode, please uncomment the code that assigns the path for DEVELOPER_DIR in source/Scripts/dist.sh.
New classes (ApigeeCollection
, ApigeeEntity
, ApigeeDevice
, ApigeeGroup
) to make working with entities and collections easier. The functionality has been modeled after our JavaScript and PHP SDKs.
UG
' prefix are now named with 'Apigee
' prefix (UGClassName
becomes ApigeeClassName
)UGClient
is now named ApigeeDataClient
ApigeeClient
(new class)