Skip to content

Commit b9af090

Browse files
Merge pull request #1510 from ethansinjin/patch-1
Update legacy CLI to 2.31.0
2 parents f4c0583 + fa98bc8 commit b9af090

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

Apollo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@
21092109
isa = PBXProject;
21102110
attributes = {
21112111
LastSwiftUpdateCheck = 1210;
2112-
LastUpgradeCheck = 1210;
2112+
LastUpgradeCheck = 1220;
21132113
ORGANIZATIONNAME = "Apollo GraphQL";
21142114
TargetAttributes = {
21152115
9B2DFBB524E1FA0D00ED3AE6 = {

Apollo.xcodeproj/xcshareddata/xcschemes/Apollo Playground.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Apollo.xcodeproj/xcshareddata/xcschemes/Apollo.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Apollo.xcodeproj/xcshareddata/xcschemes/ApolloCodegenLib.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Apollo.xcodeproj/xcshareddata/xcschemes/ApolloCore.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Apollo.xcodeproj/xcshareddata/xcschemes/ApolloSQLite.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Apollo.xcodeproj/xcshareddata/xcschemes/ApolloWebSocket.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Sources/ApolloCodegenLib/CLIDownloader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct CLIDownloader {
3030
}
3131

3232
/// The URL string for getting the current version of the CLI
33-
static let downloadURLString = "https://install.apollographql.com/legacy-cli/darwin/2.30.2"
33+
static let downloadURLString = "https://install.apollographql.com/legacy-cli/darwin/2.31.0"
3434

3535
/// Downloads the appropriate Apollo CLI in a zip file.
3636
///

Sources/ApolloCodegenLib/CLIExtractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct CLIExtractor {
2525
}
2626
}
2727

28-
static let expectedSHASUM = "d8ff4cd914708479317354721dee8b156acebddb79abbdcda4348a341ab6e53d"
28+
static let expectedSHASUM = "f62891cbe78d159664d06e087ee2d26bf6fdb9f31ce08b9030b8adc9fb80dc7e"
2929

3030
/// Checks to see if the CLI has already been extracted and is the correct version, and extracts or re-extracts as necessary
3131
///

scripts/run-bundled-codegen.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SCRIPT_DIR="$(dirname "$0")"
1111

1212
# Get the SHASUM of the tarball
1313
ZIP_FILE="${SCRIPT_DIR}/apollo.tar.gz"
14-
ZIP_FILE_DOWNLOAD_URL="https://install.apollographql.com/legacy-cli/darwin/2.30.2"
14+
ZIP_FILE_DOWNLOAD_URL="https://install.apollographql.com/legacy-cli/darwin/2.31.0"
1515
SHASUM_FILE="${SCRIPT_DIR}/apollo/.shasum"
1616
APOLLO_DIR="${SCRIPT_DIR}"/apollo
1717
IS_RETRY="false"
@@ -52,13 +52,13 @@ remove_existing_apollo() {
5252

5353
extract_cli() {
5454
tar xzf "${SCRIPT_DIR}"/apollo.tar.gz -C "${SCRIPT_DIR}"
55-
55+
5656
echo "${SHASUM}" | tee "${SHASUM_FILE}"
5757
}
5858

5959
validate_codegen_and_extract_if_needed() {
6060
# Make sure the SHASUM matches the release for this version
61-
EXPECTED_SHASUM="d8ff4cd914708479317354721dee8b156acebddb79abbdcda4348a341ab6e53d"
61+
EXPECTED_SHASUM="f62891cbe78d159664d06e087ee2d26bf6fdb9f31ce08b9030b8adc9fb80dc7e"
6262
update_shasum
6363

6464
if [[ ${SHASUM} = ${EXPECTED_SHASUM}* ]]; then

0 commit comments

Comments
 (0)