Requirements

  • iOS 11+
  • Xcode 9+
  • Swift 4.x

Setup

Github link is on the top right of this page.

  1. Create pod file and add below dependancies using CocoaPods. Replace SDKTestApp with your app name.
platform :ios, '11.0'

target 'SDKTestApp' do
 use_frameworks!

 pod 'Abstrakt', :git => 'https://github.com/goabstrakt/Abstrakt-iOS-SDK.git'
end
  1. Then run the following command: $ pod install

  2. Create a file named Auth0.plist on the root of your project. Add the following code in the file (replacing the YOUR_CLIENT_ID and YOUR_DOMAIN with the values provided by Abstrakt):


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>ClientId</key>
        <string>YOUR_CLIENT_ID</string>
        <key>Domain</key>
        <string>YOUR_DOMAIN</string>
    </dict>
</plist>

To get up an running: email hello@goabstrakt.com to get a free ClientId and Domain!