lytics / ios-sdk

MIT License
0 stars 0 forks source link

Improve Testing with Demo App #66

Closed mgacy closed 1 year ago

mgacy commented 1 year ago

Updates demo app to use Xcode build configuration files to configure API token, development team, and bundle identifier. It supports the usage of an ignored file to override those values, making it easier to test the app with a valid API token without the risk of leaking it.

Usage:

Create Examples/DeveloperConfig.xcconfig with following contents:

API_TOKEN = at.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DEVELOPMENT_TEAM = XXXXXXXXXX
ORGANIZATION_IDENTIFIER = com.example

If present, the demo app will use those values.

The DEVELOPMENT_TEAM and ORGANIZATION_IDENTIFIER settings make it easier to run the demo app on a real device.