Skip to content

Commit

Permalink
Add C++ to the Bluehawk copy script now that syntax collisions are fi…
Browse files Browse the repository at this point in the history
…xed (#207)

Undo the conditional to enable copying the C++ client files when running
the Bluehawk script, now that the C++/Bluehawk markup tag collisions are
fixed.
  • Loading branch information
dacharyc authored May 15, 2024
1 parent e13b6fb commit abac173
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 1 addition & 4 deletions sync-todo/v2/bluehawk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
pushd "$(dirname "$0")"

for client in client/*; do
# Can't Bluehawk copy the cpp client because of `:state:` in the code
# Can remove if block when this issue is resolved: https://github.com/mongodb-university/Bluehawk/issues/145
if [[ "$client" != "client/cpp"* ]]; then
rm -r generated/$(basename $client)
npx bluehawk copy -o generated/$(basename $client) $client/;
fi
done

cp template-cpp-atlasConfig.json generated/cpp/atlasConfig.json
cp template-atlasConfig.json generated/flutter/assets/config/atlasConfig.json
cp template-atlasConfig.json generated/react-native/atlasConfig.json
cp template-atlasConfig.plist generated/swiftui/App/atlasConfig.plist
Expand Down
2 changes: 1 addition & 1 deletion sync-todo/v2/generated/cpp/atlasConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"dataApiBaseUrl": "https://INSERT-YOUR-DEPLOYMENT-REGION-HERE.data.mongodb-api.com",
"dataExplorerLink": "https://cloud.mongodb.com/links/INSERT-YOUR-PROJECT-ID-HERE/explorer/Cluster0/database/collection/find",
"dataSourceName": "mongodb-atlas"
}
}
9 changes: 9 additions & 0 deletions sync-todo/v2/template-cpp-atlasConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"appId": "INSERT-YOUR-APP-ID-HERE",
"appUrl": "https://services.cloud.mongodb.com/groups/INSERT-YOUR-PROJECT-ID-HERE/apps/INSERT-YOUR-APP-ID-HERE",
"baseUrl": "https://services.cloud.mongodb.com",
"clientApiBaseUrl": "https://INSERT-YOUR-DEPLOYMENT-REGION-HERE.services.cloud.mongodb.com",
"dataApiBaseUrl": "https://INSERT-YOUR-DEPLOYMENT-REGION-HERE.data.mongodb-api.com",
"dataExplorerLink": "https://cloud.mongodb.com/links/INSERT-YOUR-PROJECT-ID-HERE/explorer/Cluster0/database/collection/find",
"dataSourceName": "mongodb-atlas"
}

0 comments on commit abac173

Please sign in to comment.