Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
junedomingo committed Jan 9, 2023
2 parents 351dda7 + 9136d18 commit 528357f
Show file tree
Hide file tree
Showing 91 changed files with 10,769 additions and 1,792 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1.
1.

**Expected behavior**
A clear and concise description of what you expected to happen.
Expand All @@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.
- operating system:
- npm version:
- node version:
- react-native-rename version:
- react-native-rename version:
- react-native version:

**Additional context**
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Tests

env:
FORCE_COLOR: true

on:
push:
branches: [master]
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ lib
package.json
tests/patches
tests/rn-versions
.github
.github/dependabot.yml
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
const config = {
verbose: true,
testPathIgnorePatterns: ['rn-versions', 'patches'],
};

module.exports = config;
6,759 changes: 6,307 additions & 452 deletions package-lock.json

Large diffs are not rendered by default.

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.2.6",
"version": "3.2.7",
"description": "Rename react-native app with just one command",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const getIosFoldersAndFilesPaths = ({ currentPathContentStr, newPathConte
return [
`ios/${currentPathContentStr}`,
`ios/${cleanNewPathContentStr}/${currentPathContentStr}.entitlements`,
`ios/${cleanNewPathContentStr}/${currentPathContentStr}Release.entitlements`,
`ios/${currentPathContentStr}-tvOS`,
`ios/${currentPathContentStr}-tvOSTests`,
`ios/${currentPathContentStr}.xcworkspace`,
Expand Down
3,554 changes: 2,836 additions & 718 deletions tests/__snapshots__/rename.test.js.snap

Large diffs are not rendered by default.

24 changes: 16 additions & 8 deletions tests/rename.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,39 @@ const resetGit = cwd => {
});
};

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

afterEach(() => {
resetGit(cwd);
});

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

const result = getDiff(cwd);

expect(result).toMatchSnapshot();
});

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

const result = getDiff(cwd);

expect(result).toMatchSnapshot();
});

test('change app name and bundle id', () => {
run(cwd, `"New Test App" -b "com.test64.app"`);
test('Change app name and bundle id for android only', () => {
run(cwd, `"Demo App" --androidBundleID com.example.demoapp`);

const result = getDiff(cwd);

expect(result).toMatchSnapshot();
});

test('Change app name and bundle id for ios only', () => {
run(cwd, `"Demo App" --iosBundleID com.example.demoapp`);

const result = getDiff(cwd);

Expand Down
3 changes: 0 additions & 3 deletions tests/rn-versions/0.64/.editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions tests/rn-versions/0.64/.gitattributes

This file was deleted.

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions tests/rn-versions/0.64/android/build.gradle

This file was deleted.

185 changes: 0 additions & 185 deletions tests/rn-versions/0.64/android/gradlew

This file was deleted.

3 changes: 0 additions & 3 deletions tests/rn-versions/0.64/android/settings.gradle

This file was deleted.

4 changes: 0 additions & 4 deletions tests/rn-versions/0.64/app.json

This file was deleted.

29 changes: 0 additions & 29 deletions tests/rn-versions/0.64/ios/Podfile

This file was deleted.

Loading

0 comments on commit 528357f

Please sign in to comment.