diff --git a/apollo-codegen-config.json b/apollo-codegen-config.json deleted file mode 100644 index b1389ef..0000000 --- a/apollo-codegen-config.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "schemaNamespace": "gameAPI", - "input": { - "operationSearchPaths": ["**/*.graphql"], - "schemaSearchPaths": ["**/*.graphqls"] - }, - "schemaDownloadConfiguration": { - "downloadMethod": { - "introspection": { - "endpointURL": "http://localhost:8000/graphql", - "httpMethod": { - "POST": {} - }, - "includeDeprecatedInputValues": false, - "outputFormat": "SDL" - } - }, - "downloadTimeout": 60, - "headers": [], - "outputPath": "./score-ios/Models/GraphQL/schema.graphqls" - }, - "output": { - "testMocks": { - "none": {} - }, - "schemaTypes": { - "path": "./gameAPI", - "moduleType": { - "swiftPackageManager": {} - } - }, - "operations": { - "inSchemaModule": {} - } - } -} diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh new file mode 100644 index 0000000..bf76e99 --- /dev/null +++ b/ci_scripts/ci_post_clone.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# ci_post_clone.sh +# score-ios +# +# Created by Hsia Lu wu on 3/5/25. +# + +echo "Downloading Secrets" +brew install wget +cd SCI_PRIMARY_REPOSITORY_PATH/ci_scripts +mkdir ../ScoreSecrets +wget -O ../score_ios/ScoreSecrets/Keys.xcconfig "$KEYS" +wget -O ../score_ios/ScoreSecrets/apollo-codegen-config-dev.json "$CODEGEN_DEV" +wget -O ../score_ios/ScoreSecrets/apollo-codegen-config-prod.json "$CODEGEN_PROD" diff --git a/score-ios.xcodeproj/project.pbxproj b/score-ios.xcodeproj/project.pbxproj index 83939c0..779464a 100644 --- a/score-ios.xcodeproj/project.pbxproj +++ b/score-ios.xcodeproj/project.pbxproj @@ -168,6 +168,7 @@ D8B1C9D02CD2CE3C0095E563 /* PastGamesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PastGamesView.swift; sourceTree = ""; }; D8B1C9D22CD2D20A0095E563 /* PastGameTile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PastGameTile.swift; sourceTree = ""; }; D8DD4E632CFD48E400F2C46E /* Team.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = Team.graphql; sourceTree = ""; }; + FD31F6D22D792E10001458FA /* ci_post_clone.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_post_clone.sh; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -281,6 +282,7 @@ CE725D2F2C89120100386943 = { isa = PBXGroup; children = ( + FD31F6D12D792DF4001458FA /* ci_scripts */, CEA25A972D752C6F00B9837A /* ScoreSecrets */, CE725D3A2C89120200386943 /* score-ios */, CE725D4B2C89120500386943 /* score-iosTests */, @@ -443,6 +445,14 @@ path = Networking; sourceTree = ""; }; + FD31F6D12D792DF4001458FA /* ci_scripts */ = { + isa = PBXGroup; + children = ( + FD31F6D22D792E10001458FA /* ci_post_clone.sh */, + ); + path = ci_scripts; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -829,6 +839,7 @@ ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "score-ios/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = Score; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -839,7 +850,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "com.appdev.score-ios"; + PRODUCT_BUNDLE_IDENTIFIER = "com.cornellappdev.score-ios"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -860,6 +871,7 @@ ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "score-ios/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = Score; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -870,7 +882,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "com.appdev.score-ios"; + PRODUCT_BUNDLE_IDENTIFIER = "com.cornellappdev.score-ios"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0;