mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unused saveFilesToRestore function
Summary: The method that would restore these files was removed in https://github.com/facebook/react-native/pull/34846. The action performed by `saveFilesToRestore` is no longer necessary (thanks kelset for pointing this out). Changelog: [internal] Reviewed By: cortinico Differential Revision: D41003911 fbshipit-source-id: bbc057ac450e7f134c4664173291ca56c18f1b17
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7211366c48
commit
ad43deca23
@@ -41,7 +41,6 @@ const {
|
||||
const {
|
||||
generateAndroidArtifacts,
|
||||
publishAndroidArtifactsToMaven,
|
||||
saveFilesToRestore,
|
||||
} = require('./release-utils');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
@@ -74,8 +73,6 @@ if (!argv.help) {
|
||||
echo(`The temp publishing folder is ${tmpPublishingFolder}`);
|
||||
}
|
||||
|
||||
saveFilesToRestore(tmpPublishingFolder);
|
||||
|
||||
// 34c034298dc9cad5a4553964a5a324450fda0385
|
||||
const currentCommit = getCurrentCommit();
|
||||
const shortCommit = currentCommit.slice(0, 9);
|
||||
|
||||
@@ -10,29 +10,8 @@
|
||||
'use strict';
|
||||
|
||||
const {exec, echo, exit, test, env, pushd, popd} = require('shelljs');
|
||||
const {saveFiles} = require('./scm-utils');
|
||||
const {createHermesPrebuiltArtifactsTarball} = require('./hermes/hermes-utils');
|
||||
|
||||
// TODO: we should probably remove this because of this? https://github.com/facebook/react-native/pull/34846
|
||||
function saveFilesToRestore(tmpPublishingFolder) {
|
||||
const filesToSaveAndRestore = [
|
||||
'template/Gemfile',
|
||||
'template/_ruby-version',
|
||||
'template/package.json',
|
||||
'.ruby-version',
|
||||
'Gemfile.lock',
|
||||
'Gemfile',
|
||||
'package.json',
|
||||
'ReactAndroid/gradle.properties',
|
||||
'Libraries/Core/ReactNativeVersion.js',
|
||||
'React/Base/RCTVersion.m',
|
||||
'ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java',
|
||||
'ReactCommon/cxxreact/ReactNativeVersion.h',
|
||||
];
|
||||
|
||||
saveFiles(filesToSaveAndRestore, tmpPublishingFolder);
|
||||
}
|
||||
|
||||
function generateAndroidArtifacts(releaseVersion, tmpPublishingFolder) {
|
||||
// -------- Generating Android Artifacts
|
||||
echo('Generating Android artifacts inside /tmp/maven-local');
|
||||
@@ -136,5 +115,4 @@ module.exports = {
|
||||
generateAndroidArtifacts,
|
||||
generateiOSArtifacts,
|
||||
publishAndroidArtifactsToMaven,
|
||||
saveFilesToRestore,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user