Skip to content

Commit 939bf9f

Browse files
hyochanclaude
andauthored
fix: nitromodule build in 4.0.0+ (#663)
Related https://github.com/hyochan/react-native-audio-recorder-player/pull/659#issuecomment-3059855882 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e871eea commit 939bf9f

File tree

120 files changed

+23295
-6484
lines changed

Some content is hidden

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

120 files changed

+23295
-6484
lines changed

.claude/settings.local.json

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
11
{
22
"permissions": {
33
"allow": [
4-
"Bash(mkdir:*)",
5-
"Bash(bunx create-expo-app:*)",
6-
"Bash(cp:*)",
7-
"Bash(rm:*)",
8-
"Bash(bun install:*)",
9-
"Bash(bunx expo prebuild:*)",
10-
"Bash(bunx expo:*)",
11-
"Bash(ls:*)",
12-
"Bash(chmod:*)",
13-
"Bash(yarn install)",
14-
"Bash(bun run:*)",
15-
"Bash(pkill:*)",
16-
"Bash(./android/gradlew clean:*)",
17-
"Bash(yarn build)",
18-
"Bash(bun add:*)",
19-
"Bash(export:*)",
20-
"Bash(nitro-codegen)",
21-
"Bash(nitro-codegen:*)",
224
"Bash(pod install:*)",
23-
"Bash(npx expo prebuild:*)",
24-
"Bash(npx expo run:*)",
25-
"Bash(git checkout:*)",
5+
"Bash(yarn:*)",
6+
"Bash(ls:*)",
7+
"Bash(rm:*)",
8+
"Bash(mkdir:*)",
269
"Bash(./gradlew:*)",
10+
"WebFetch(domain:raw.githubusercontent.com)",
11+
"WebFetch(domain:github.com)",
12+
"Bash(nitro-codegen)",
13+
"Bash(npx:*)",
14+
"Bash(find:*)",
15+
"Bash(xcodebuild:*)",
16+
"Bash(npm run codegen:*)",
17+
"Bash(npm run:*)",
18+
"Bash(pod deintegrate:*)",
19+
"Bash(cat:*)",
20+
"Bash(swift build)",
2721
"Bash(grep:*)",
28-
"Bash(find:*)"
22+
"Bash(RCT_NEW_ARCH_ENABLED=1 npx react-native run-ios --mode Release --no-packager)",
23+
"Bash(open:*)",
24+
"Bash(timeout 300 yarn ios)",
25+
"Bash(adb logcat:*)",
26+
"Bash(xcrun simctl spawn:*)",
27+
"Bash(adb shell input keyevent:*)",
28+
"Bash(./android/gradlew:*)",
29+
"Bash(mv:*)",
30+
"Bash(touch:*)",
31+
"Bash(cp:*)",
32+
"Bash(npm pack)",
33+
"Bash(tar:*)",
34+
"Bash(npm view:*)",
35+
"Bash(npm init:*)",
36+
"Bash(npm install:*)",
37+
"Bash(git add:*)",
38+
"Bash(git commit:*)",
39+
"Bash(bundle update:*)",
40+
"Bash(bundle install:*)",
41+
"Bash(gem install:*)"
2942
],
3043
"deny": []
3144
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
indent_style = space
10+
indent_size = 2
11+
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2-
extends: ["expo", "prettier"],
3-
plugins: ["prettier"],
2+
extends: ['expo', 'prettier'],
3+
plugins: ['prettier'],
44
rules: {
5-
"prettier/prettier": "error",
5+
'prettier/prettier': 'error',
66
},
7-
};
7+
};

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
*.pbxproj -text
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🐛 Bug report
2+
description: Report a reproducible bug or regression in this library.
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# Bug report
9+
10+
👋 Hi!
11+
12+
**Please fill the following carefully before opening a new issue ❗**
13+
*(Your issue may be closed if it doesn't provide the required pieces of information)*
14+
- type: checkboxes
15+
attributes:
16+
label: Before submitting a new issue
17+
description: Please perform simple checks first.
18+
options:
19+
- label: I tested using the latest version of the library, as the bug might be already fixed.
20+
required: true
21+
- label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
22+
required: true
23+
- label: I checked for possible duplicate issues, with possible answers.
24+
required: true
25+
- type: textarea
26+
id: summary
27+
attributes:
28+
label: Bug summary
29+
description: |
30+
Provide a clear and concise description of what the bug is.
31+
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
32+
validations:
33+
required: true
34+
- type: input
35+
id: library-version
36+
attributes:
37+
label: Library version
38+
description: What version of the library are you using?
39+
placeholder: "x.x.x"
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: react-native-info
44+
attributes:
45+
label: Environment info
46+
description: Run `react-native info` in your terminal and paste the results here.
47+
render: shell
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: steps-to-reproduce
52+
attributes:
53+
label: Steps to reproduce
54+
description: |
55+
You must provide a clear list of steps and code to reproduce the problem.
56+
value: |
57+
1. …
58+
2. …
59+
validations:
60+
required: true
61+
- type: input
62+
id: reproducible-example
63+
attributes:
64+
label: Reproducible example repository
65+
description: Please provide a link to a repository on GitHub with a reproducible example.
66+
validations:
67+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature Request 💡
4+
url: https://github.com/hyochan/react-native-audio-recorder-player/discussions/new?category=ideas
5+
about: If you have a feature request, please create a new discussion on GitHub.
6+
- name: Discussions on GitHub 💬
7+
url: https://github.com/hyochan/react-native-audio-recorder-player/discussions
8+
about: If this library works as promised but you need help, please ask questions there.

.github/actions/setup/action.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version-file: .nvmrc
11+
12+
- name: Restore dependencies
13+
id: yarn-cache
14+
uses: actions/cache/restore@v4
15+
with:
16+
path: |
17+
**/node_modules
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
20+
restore-keys: |
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22+
${{ runner.os }}-yarn-
23+
24+
- name: Install dependencies
25+
if: steps.yarn-cache.outputs.cache-hit != 'true'
26+
run: yarn install --immutable
27+
shell: bash
28+
29+
- name: Cache dependencies
30+
if: steps.yarn-cache.outputs.cache-hit != 'true'
31+
uses: actions/cache/save@v4
32+
with:
33+
path: |
34+
**/node_modules
35+
.yarn/install-state.gz
36+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

.github/stale.yml

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

0 commit comments

Comments
 (0)