Configuration for Using IOS SDK

Get the XCFramework files.

First you should add the Safous WAAP SDK into your project, which in this case you need a .xcframework file. Visit WAAP Admin Portal to get the latest version of our SDK.

Embedded the SDK in your Project via Xcode.

After obtaining the SDK from Admin Portal, now open your Project from Xcode IDE. Then click the Project in Navigation Area on left side. After that, click Targets section. The General tab setup for your project will shown.

Conf-1

On General tab, find Frameworks, Libraries, and Embedded Content Section. Click Add icon to show popup that all default Frameworks or Libraries can be added into your Project.

Conf-2

Then click Add others on bottom of the Popup. After that, choose SafousWaap .xcframework file from your Finder. Now you already embed Safous Waap SDK on your Project.

Conf-3

Check the SDK are done by import the SafousWaap package in your codebase. For instance, add the Safous package into your ViewController. As example, take a look syntax and image below.

import SafousWaap

Conf-4

Environment Setup.

Safous WAAP requires you to setup the environment for access on your Project. You will need several URL Endpoints and certificate with .p12 format. For all this pre-requisition, Visit WAAP Admin Portal to create URL and certificate for your Project.

The setup Environment is written in property list file or commonly known as .plist file. Go to your Project on the Navigation area, right click on it then click New File. Now find Resources Section and choose Property List, then click Next.

Conf-5

Now set your .plist file name as 'SafousWaap'. If it finished, click Create button.

*note: Naming your .plist file as "SafousWaap" is important because the SDK only recognize the environment setup with this name. So please make sure the .plist file that you created has a correct name.

Now open the .plist file that you already created. Fill the .plist file with Key and Type for the environment inside the Root. The example you need to write the .plist file are provided by table with description below.

Key Type Description
X-AppId String Unique identity for client registered by Safous WAAP, for example: default
CertificateName String Certificate name that you generate from WAAP Admin Portal, for example: safous.p12, test.p12, etc
CertificatePassword String Password for the Certificate. 
BaseUrl Dictionary To define the Url Auth, Device, and Verify

For BaseUrl key, it needs an elaboration since it is a Dictionary type. Create another 3 key with String Value for register authentication in it.

Key Type Description
Device String Access URL for registration device to Safous WAAP
Auth String Access URL for authentication for Safous WAAP
VerifyToken String Access URL for Client Verification to Safous WAAP 

Now the setup environment in your Project is done. Your .plist file should similarly look like the image below.

Conf-6