mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Have mmi build being generated (#19441)
* have mmi build being generated * not needed right now --------- Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
parent
b5b3f67b4b
commit
51f6a29461
@ -72,10 +72,6 @@ export default class PreferencesController {
|
||||
...opts.initState,
|
||||
};
|
||||
|
||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||
initState.useTokenDetection = Boolean(process.env.TOKEN_DETECTION_V2);
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
|
||||
this.network = opts.network;
|
||||
this._onInfuraIsBlocked = opts.onInfuraIsBlocked;
|
||||
this._onInfuraIsUnblocked = opts.onInfuraIsUnblocked;
|
||||
|
@ -86,6 +86,7 @@ buildTypes:
|
||||
- SEGMENT_WRITE_KEY_REF: SEGMENT_MMI_WRITE_KEY
|
||||
- SUPPORT_LINK: https://mmi-support.zendesk.com/hc/en-us
|
||||
- SUPPORT_REQUEST_LINK: https://mmi-support.zendesk.com/hc/en-us/requests/new
|
||||
- MMI_CONFIGURATION_SERVICE_URL: https://configuration.metamask-institutional.io/v1/configuration/default
|
||||
# For some reason, MMI uses this type of versioning
|
||||
# Leaving it on for backwards compatibility
|
||||
isPrerelease: true
|
||||
|
@ -11,6 +11,7 @@ const VARIABLES_REQUIRED_IN_PRODUCTION = {
|
||||
main: ['INFURA_PROD_PROJECT_ID', 'SEGMENT_PROD_WRITE_KEY', 'SENTRY_DSN'],
|
||||
beta: ['INFURA_BETA_PROJECT_ID', 'SEGMENT_BETA_WRITE_KEY', 'SENTRY_DSN'],
|
||||
flask: ['INFURA_FLASK_PROJECT_ID', 'SEGMENT_FLASK_WRITE_KEY', 'SENTRY_DSN'],
|
||||
mmi: ['INFURA_MMI_PROJECT_ID', 'SEGMENT_MMI_WRITE_KEY', 'SENTRY_DSN'],
|
||||
};
|
||||
|
||||
async function fromIniFile(filepath) {
|
||||
|
@ -6,11 +6,6 @@ const { loadBuildTypesConfig } = require('./lib/build-type');
|
||||
|
||||
const buildTypesConfig = loadBuildTypesConfig();
|
||||
|
||||
const stableBuildTypes = Object.keys(buildTypesConfig.buildTypes).filter(
|
||||
// Skip generating policy for MMI until that build has stabilized
|
||||
(buildType) => buildType !== 'mmi',
|
||||
);
|
||||
|
||||
start().catch((error) => {
|
||||
console.error('Policy generation failed.', error);
|
||||
process.exitCode = 1;
|
||||
@ -27,7 +22,7 @@ async function start() {
|
||||
.option('build-types', {
|
||||
alias: ['t'],
|
||||
choices: Object.keys(buildTypesConfig.buildTypes),
|
||||
default: stableBuildTypes,
|
||||
default: Object.keys(buildTypesConfig.buildTypes),
|
||||
demandOption: true,
|
||||
description: 'The build type(s) to generate policy files for.',
|
||||
})
|
||||
|
4593
lavamoat/browserify/mmi/policy.json
Normal file
4593
lavamoat/browserify/mmi/policy.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user