Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
36 stars 1 forks source link

Create "Generate Secrets.swift" Build Phase script #313

Closed andrewdmontgomery closed 2 months ago

andrewdmontgomery commented 2 months ago

Closes #

Description

Create a Build Phase script that allows Xcode to generate the Secrets.swift file if it isn't present. If the file is already present, no changes should be made to it.

Testing Steps

Removeo the Secrets file and regenerate

Modify the Secrets.swift file and verify changes are not overwritten

  1. Leave the existing Secrets.swift in place
  2. Build the Gravatar-Demo app
  3. Use Xcode to build the Demo app.
    • [ ] Verify that the changes you made to the Secrets.swift file were not overwritten

Build and test via command line

Build and test via Xcode