Skip to content

Commit c383e1a

Browse files
committed
Merge branch 'release/3.1.4'
2 parents 997ca55 + b2192c7 commit c383e1a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-rename",
3-
"version": "3.1.3",
3+
"version": "3.1.4",
44
"description": "Rename react-native app with just one command",
55
"main": "lib/index.js",
66
"scripts": {

src/paths.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ export const getAndroidUpdateBundleIDOptions = ({
265265
'android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h',
266266
'android/app/src/main/jni/MainComponentsRegistry.h',
267267
],
268-
from: [new RegExp(`L${currentBundleIDAsPath}`, 'g')],
269-
to: [`L${newBundleIDAsPath}`],
268+
from: [new RegExp(`L${currentBundleIDAsPath}`, 'g'), new RegExp(`L${currentBundleID}`, 'g')],
269+
to: `L${newBundleIDAsPath}`,
270270
},
271271
{
272272
files: ['android/.idea/workspace.xml'],

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export const bundleIDToPath = bundleID => bundleID.replace(/\./g, '/');
4141
export const decodeXmlEntities = name => decode(name, { level: 'xml' });
4242
export const encodeXmlEntities = name =>
4343
encode(name, { mode: 'nonAscii', level: 'xml', numeric: 'hexadecimal' });
44-
const iosInfoPlistFullPath = globbySync(path.join(APP_PATH, iosPlist))[0];
4544
const androidValuesStringsFullPath = path.join(APP_PATH, androidValuesStrings);
4645

4746
export const validateCreation = () => {
47+
const iosInfoPlistFullPath = globbySync(path.join(APP_PATH, iosPlist))[0];
4848
const fileExists =
4949
fs.existsSync(iosInfoPlistFullPath) && fs.existsSync(androidValuesStringsFullPath);
5050

0 commit comments

Comments
 (0)