I created a new file called apikey.plist. The PetFinder API key will now live in this file. This file is included in the project with the appropriate targets. Code was added to PTKRequestManager.swift to pull the key from this plist.
In order to keep the API key secret, apikey.plist was included in .gitignore. In order to help contributors, a template file called apikey.plist.example was also created with a placeholder for the api key. Instructions were added to the README and Contributing files to instruct contributors on how to use this template to create the actual apikey.plist that is now required for the app.
I created a new file called
apikey.plist
. The PetFinder API key will now live in this file. This file is included in the project with the appropriate targets. Code was added toPTKRequestManager.swift
to pull the key from this plist.In order to keep the API key secret,
apikey.plist
was included in.gitignore
. In order to help contributors, a template file calledapikey.plist.example
was also created with a placeholder for the api key. Instructions were added to the README and Contributing files to instruct contributors on how to use this template to create the actualapikey.plist
that is now required for the app.