-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init dataconnect:sdk and other SDK onboarding improvements #7299
Conversation
`Run ${clc.bold("firebase init dataconnect:sdk")} to configure a generated SDK.`, | ||
); | ||
logger.warn( | ||
`See https://firebase.google.com/docs/data-connect/quickstart#configure-sdk-outputs for more details of how to configure generated SDKs.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markarndt FYI on the link.
It doesn't work right now. If you have a "future" link, that would be neat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang, this link previously worked, looks like we edited that page recently. Linking to https://firebase.google.com/docs/data-connect/gp/web-sdk instead for now, but feel free to edit suggest a better link @markarndt
@@ -96,6 +99,10 @@ export async function doSetup(setup: Setup, config: Config): Promise<void> { | |||
waitForCreation: false, | |||
}); | |||
} | |||
logger.info(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you forget to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, added this to space out the next message a little better so it is more visible
src/commands/init.ts
Outdated
@@ -85,6 +85,11 @@ choices.push({ | |||
name: "Data Connect: Set up a Firebase Data Connect service.", | |||
checked: false, | |||
}); | |||
choices.push({ | |||
value: "dataconnect:sdk", | |||
name: "Data Connect: Set up a generated SDK for your Firebase Data Connect service.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# swiftSdk: | ||
# outputDir: <Path where you want the generated SDK to be written to, relative to this file> | ||
# kotlinSdk: | ||
# outputDir: <Path where you want the generated SDK to be written to, relative to this file> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add "package" under "kotlinSdk" to specify the kotlin package to incorporate into the generated kotlin code.
Description
init dataconnect:sdk
to help guide users on how to configure their generated SDKs.init dataconnect
connector.yaml
Scenarios Tested
I tested out adding SDKs of each type. I also confirmed that if you run this with existing SDKs configured, we default to the values you already have configured.