1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +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:
António Regadas 2023-06-06 16:43:31 +01:00 committed by GitHub
parent b5b3f67b4b
commit 51f6a29461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4596 additions and 10 deletions

View File

@ -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;

View File

@ -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

View File

@ -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) {

View File

@ -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.',
})

File diff suppressed because it is too large Load Diff