2. Configuration Settings
In order to use the ARGear framework, iOS Deployment Target should be set to 11.0 or above.
Next, add the ARGear framework from TARGETS > General > Frameworks, Libraries, and Embedded Content as shown below. Please note that Embed status should be set to Embed & Sign.
<Fig. Example of Added ARGear Framework>
Set TARGETS > Build Settings > Build Options > Enable Bitcode as No in your project.
<Fig. Build Settings의 Enable Bitcode>
ARGear framework requires four app permissions below. Please add the four properties into Info.plist file. In Value section, you can add description for the usage of each permission. The permissions are used for image capture, video record, and save them in a photo app.
- Camera Usage Description
- Microphone Usage Description
- Photo Library Usage Description
- Photo Library Additions Usage Description
<Fig. Example of Privacy Setting in Info.plist>
In order to use ARGear, you need to set API configuration information such as API URL and Key.
Below is sample code of an ARGear Sample App.
<Example Configuration Settings of a Sample App>
#define API_HOST @"https://apis.argear.io/api/v3/"
#define API_KEY @"48cdd456621ebddb5283f516"
#define API_SECRET_KEY @"e0ea29ce12178111d2a5e6093a6e048a2a6248b921f092f68c93992ca29a45ee"
#define API_AUTH_KEY @"U2FsdGVkX19PpdEiXZ2STDy+UCJ+a/WpUVPENK1zQO1IgoZ7wTGgWQDaRcc+ugqbOzP/y+m2SKpJmMgwz/1ABQ=="
<Figure. Sample App ARGear Console Information - API Information>
Set bundle identifier in TARGETS > General > Identity > Bundle Identifier in your project. The bundle identifier should be same as the one created during your project creation from ARGear Console (https://console.argear.io). You can check it from Project Overview > Information in your Console.
<Figure. Sample App ARGear Console Information - Bundle Identifier>