Skip to content

Commit 528357f

Browse files
committed
Merge branch 'master' into develop
* master: Update version to 3.2.7 fix: 🐛 Add rename to release entitlements Update package-lock.json Fix format Update snap Update main.yml Update snap Update rename.test Remove 0.64.1 Add react-native v0.70.6 Use module.exports
2 parents 351dda7 + 9136d18 commit 528357f

91 files changed

Lines changed: 10769 additions & 1792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
1414
Steps to reproduce the behavior:
15-
1.
15+
1.
1616

1717
**Expected behavior**
1818
A clear and concise description of what you expected to happen.
@@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.
2424
- operating system:
2525
- npm version:
2626
- node version:
27-
- react-native-rename version:
27+
- react-native-rename version:
2828
- react-native version:
2929

3030
**Additional context**

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
22

3+
env:
4+
FORCE_COLOR: true
5+
36
on:
47
push:
58
branches: [master]

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ lib
22
package.json
33
tests/patches
44
tests/rn-versions
5-
.github
5+
.github/dependabot.yml

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export default {
1+
const config = {
22
verbose: true,
33
testPathIgnorePatterns: ['rn-versions', 'patches'],
44
};
5+
6+
module.exports = config;

package-lock.json

Lines changed: 6307 additions & 452 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.2.6",
3+
"version": "3.2.7",
44
"description": "Rename react-native app with just one command",
55
"main": "lib/index.js",
66
"scripts": {

src/paths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const getIosFoldersAndFilesPaths = ({ currentPathContentStr, newPathConte
2121
return [
2222
`ios/${currentPathContentStr}`,
2323
`ios/${cleanNewPathContentStr}/${currentPathContentStr}.entitlements`,
24+
`ios/${cleanNewPathContentStr}/${currentPathContentStr}Release.entitlements`,
2425
`ios/${currentPathContentStr}-tvOS`,
2526
`ios/${currentPathContentStr}-tvOSTests`,
2627
`ios/${currentPathContentStr}.xcworkspace`,

tests/__snapshots__/rename.test.js.snap

Lines changed: 2836 additions & 718 deletions
Large diffs are not rendered by default.

tests/rename.test.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,39 @@ const resetGit = cwd => {
3333
});
3434
};
3535

36-
describe('rn-versions/0.64', () => {
37-
const cwd = path.join(__dirname, 'rn-versions/0.64');
36+
describe('rn-versions/0.70.6', () => {
37+
const cwd = path.join(__dirname, 'rn-versions/0.70.6');
3838

3939
afterEach(() => {
4040
resetGit(cwd);
4141
});
4242

43-
test('change bundle id', () => {
44-
run(cwd, `-b "com.test64.app"`);
43+
test('Change app name', () => {
44+
run(cwd, `"Demo App"`);
4545

4646
const result = getDiff(cwd);
4747

4848
expect(result).toMatchSnapshot();
4949
});
5050

51-
test('change app name', () => {
52-
run(cwd, `"New Test App"`);
51+
test('Change app name and bundle id for both ios and android', () => {
52+
run(cwd, `"Demo App" -b com.example.demoapp`);
5353

5454
const result = getDiff(cwd);
5555

5656
expect(result).toMatchSnapshot();
5757
});
5858

59-
test('change app name and bundle id', () => {
60-
run(cwd, `"New Test App" -b "com.test64.app"`);
59+
test('Change app name and bundle id for android only', () => {
60+
run(cwd, `"Demo App" --androidBundleID com.example.demoapp`);
61+
62+
const result = getDiff(cwd);
63+
64+
expect(result).toMatchSnapshot();
65+
});
66+
67+
test('Change app name and bundle id for ios only', () => {
68+
run(cwd, `"Demo App" --iosBundleID com.example.demoapp`);
6169

6270
const result = getDiff(cwd);
6371

tests/rn-versions/0.64/.editorconfig

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)