Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2281baa
commit 6007077
Showing
5 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
SCRIPTS_DIR=$(cd "$(dirname "$0")" || exit 1; pwd) | ||
SECRETS_FILE="${SCRIPTS_DIR}/../CouchTrackerApp/Utils/Secrets.swift" | ||
|
||
cat > "$SECRETS_FILE" << EOF | ||
enum Secrets { | ||
enum Trakt { | ||
static let clientId = "${COUCH_TRACKER_TRAKT_CLIENT_ID}" | ||
static let clientSecret = "${COUCH_TRACKER_TRAKT_CLIENT_SECRET}" | ||
static let redirectURL = "${COUCH_TRACKER_TRAKT_REDIRECT_URL}" | ||
} | ||
enum TMDB { | ||
static let apiKey = "${COUCH_TRACKER_TMDB_API_KEY}" | ||
} | ||
enum TVDB { | ||
static let apiKey = "${COUCH_TRACKER_TVDB_API_KEY}" | ||
} | ||
} | ||
EOF | ||
|
||
echo "Generated file: ${SECRETS_FILE}" |