Get sample projects up and running quickly! The sample project included with the SDK is pre-configured and ready to be compiled and run with little configuration required. Please contact us first to obtain credentials for your application.
• iOS 11+
• XCode 9 or higher
• Swift 4 or higher
• iPhone 5, iPad (4th generation), or iPad mini (2nd generation)
• Registered Apple developer account
Download digi.me SDK with a few example apps to try. The digi.me SDK code repository is stored under GitHub where you can find always the most recent version of SDK with the latest bug fixes and an up to date compatible example app. Clone the repository to your machine to get the SDK and the example apps. Run the following command in the terminal;
git clone https://github.com/digime/digime-sdk-ios.git
A demo contract ID and p12 file have already been embedded in the example app for ease of use. The contract selects both Social and Finance data from a digi.me library for a given time period (please contact us if you would like to use a different contract). Set your application ID and p12 password in /Example/ViewController.m as shown from the placeholders below:
// - GET STARTED - // - INSERT your App ID here - self.dmeClient.appId = @"YOUR_APP_ID"; // - REPLACE 'YOUR_P12_PASSWORD' with password provided by Digi.me Ltd self.dmeClient.privateKeyHex = [DMECryptoUtilities privateKeyHexFromP12File:@"CA_RSA_PRIVATE_KEY" password:@"YOUR_P12_PASSWORD"];
Add the application ID in Info.plist and replace the digime-ca-YOUR_APP_ID value found under CFBundleURLTypes->Private Sharing key.
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>Consent Access</string> <key>CFBundleURLSchemes</key> <array> <string>digime-ca-YOUR_APP_ID</string> </array> </dict> </array>
Run the example app then create a digi.me library to use with PS.
Explore the code! Use the sample app as a base or start a new project using the SDK. For more information about the SDK or how to integrate the SDK into an existing or new project, please check out our GitHub iOS SDK documentation.