-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Enable feature Flag Values with Scope Based on "threshold" in mobile #12627
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
0a4fd9f
to
7ffa266
Compare
metro.config.js
Outdated
const path = require("path"); | ||
|
||
const featureFlagModuleDir = path.resolve(__dirname, "../../core/feature-flags/packages/remote-feature-flag-controller"); | ||
|
||
const extraNodeModules = { | ||
"@metamask/remote-feature-flag-controller": featureFlagModuleDir, | ||
}; | ||
|
||
const watchFolders = [ | ||
featureFlagModuleDir, | ||
]; | ||
|
||
module.exports = function (baseConfig) { | ||
const defaultConfig = mergeConfig(baseConfig, getDefaultConfig(__dirname)); | ||
const { | ||
resolver: { assetExts, sourceExts }, | ||
} = defaultConfig; | ||
|
||
return mergeConfig(defaultConfig, { | ||
watchFolders, | ||
resolver: { | ||
assetExts: assetExts.filter((ext) => ext !== 'svg'), | ||
sourceExts: [...sourceExts, 'svg', 'cjs', 'mjs'], | ||
resolverMainFields: ['sbmodern', 'react-native', 'browser', 'main'], | ||
extraNodeModules: new Proxy (extraNodeModules, { | ||
get: (target, name) => | ||
name in target ? target[name] : path.join(process.cwd(), `node_modules/${name}`), | ||
}), | ||
unstable_enableSymlinks: true, |
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.
to be reverted once controller update has been published
package.json
Outdated
@@ -188,7 +188,7 @@ | |||
"@metamask/react-native-payments": "^2.0.0", | |||
"@metamask/react-native-search-api": "1.0.1", | |||
"@metamask/react-native-webview": "^14.0.4", | |||
"@metamask/remote-feature-flag-controller": "^1.0.0", | |||
"@metamask/remote-feature-flag-controller": "link:../../core/feature-flags/packages/remote-feature-flag-controller", |
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.
to be reverted once controller update has been published
@NicolasMassart The motivation to pass the metametrics id Promise rather than the actual value is to avoid adding another argument into the We can't |
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.
Looks good to me.
Waiting on RemoteFeatureFlagController update npm publish |
e8ea298
to
d755986
Compare
d755986
to
9aa427d
Compare
Bitrise❌❌❌ Commit hash: 3b9aecf Note
Tip
|
Quality Gate failedFailed conditions |
Description
Related issues
Fixes: https://github.com/MetaMask/mobile-planning/issues/2065
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist