Skip to content

Commit

Permalink
Merge branch 'release/3.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
junedomingo committed Dec 28, 2022
2 parents 997ca55 + b2192c7 commit c383e1a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-rename",
"version": "3.1.3",
"version": "3.1.4",
"description": "Rename react-native app with just one command",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ export const getAndroidUpdateBundleIDOptions = ({
'android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h',
'android/app/src/main/jni/MainComponentsRegistry.h',
],
from: [new RegExp(`L${currentBundleIDAsPath}`, 'g')],
to: [`L${newBundleIDAsPath}`],
from: [new RegExp(`L${currentBundleIDAsPath}`, 'g'), new RegExp(`L${currentBundleID}`, 'g')],
to: `L${newBundleIDAsPath}`,
},
{
files: ['android/.idea/workspace.xml'],
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export const bundleIDToPath = bundleID => bundleID.replace(/\./g, '/');
export const decodeXmlEntities = name => decode(name, { level: 'xml' });
export const encodeXmlEntities = name =>
encode(name, { mode: 'nonAscii', level: 'xml', numeric: 'hexadecimal' });
const iosInfoPlistFullPath = globbySync(path.join(APP_PATH, iosPlist))[0];
const androidValuesStringsFullPath = path.join(APP_PATH, androidValuesStrings);

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

Expand Down

0 comments on commit c383e1a

Please sign in to comment.