-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
feat: check flag status snippet #8097
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
@@ -181,3 +184,25 @@ final unleash = UnleashClient( | |||
clientKey: '<YOUR_API_TOKEN>', | |||
appName: 'unleash-onboarding-flutter');`, | |||
}; | |||
|
|||
// TODO: add idiomatic way of checking flag status that will populate metrics | |||
export const checkFlagCodeSnippets: Record<SdkName, string> = { |
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.
all other snippets will be added later
'implementation("io.getunleash:unleash-android:${unleash.sdk.version}")', | ||
Android: `implementation("io.getunleash:unleash-android:\${unleash.sdk.version}") | ||
|
||
// enabled required permissions |
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.
android has an extra step compared to all other SDKs. We can either make it separate in the UI or add to the install section
@@ -46,7 +46,7 @@ const SdkListSection = styled('div')(({ theme }) => ({ | |||
|
|||
const SdkTile = styled('div')(({ theme }) => ({ | |||
fontSize: theme.typography.body2.fontSize, | |||
backgroundColor: theme.palette.common.white, | |||
backgroundColor: theme.palette.background.default, |
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.
fix dark theme
@@ -179,6 +179,7 @@ export const NewInUnleash = ({ | |||
summary, | |||
}) => ( | |||
<NewInUnleashItem | |||
key={label} |
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.
fix react warning from dev mode
About the changes
Important files
Discussion points