nosnia-audio-recorder 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ Pod::Spec.new do |s|
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
17
17
  s.private_header_files = "ios/**/*.h"
18
+ s.frameworks = "AVFoundation", "MediaPlayer"
18
19
 
19
20
  install_modules_dependencies(s)
20
21
  end
@@ -1,3 +1,6 @@
1
+ #ifndef __NOSNIA_AUDIO_PLAYER_MM__
2
+ #define __NOSNIA_AUDIO_PLAYER_MM__
3
+
1
4
  #import "NosniaAudioPlayer.h"
2
5
  #import <AVFoundation/AVFoundation.h>
3
6
  #import <React/RCTBridgeModule.h>
@@ -257,3 +260,5 @@ RCT_EXPORT_MODULE(NosniaAudioPlayer)
257
260
  }
258
261
 
259
262
  @end
263
+
264
+ #endif /* __NOSNIA_AUDIO_PLAYER_MM__ */
@@ -1,3 +1,6 @@
1
+ #ifndef __NOSNIA_AUDIO_RECORDER_MM__
2
+ #define __NOSNIA_AUDIO_RECORDER_MM__
3
+
1
4
  #import "NosniaAudioRecorder.h"
2
5
  #import <AVFoundation/AVFoundation.h>
3
6
  #import <React/RCTBridgeModule.h>
@@ -496,3 +499,5 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
496
499
  }
497
500
 
498
501
  @end
502
+
503
+ #endif /* __NOSNIA_AUDIO_RECORDER_MM__ */
package/package.json CHANGED
@@ -1,182 +1,182 @@
1
- {
2
- "name": "nosnia-audio-recorder",
3
- "version": "0.3.7",
4
- "description": "This is a modern audio recorder which actually works cross platform",
5
- "main": "./lib/module/index.js",
6
- "types": "./lib/typescript/src/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "source": "./src/index.tsx",
10
- "types": "./lib/typescript/src/index.d.ts",
11
- "default": "./lib/module/index.js"
12
- },
13
- "./package.json": "./package.json"
14
- },
15
- "files": [
16
- "src",
17
- "lib",
18
- "android",
19
- "ios",
20
- "cpp",
21
- "*.podspec",
22
- "react-native.config.js",
23
- "!ios/build",
24
- "!android/build",
25
- "!android/gradle",
26
- "!android/gradlew",
27
- "!android/gradlew.bat",
28
- "!android/local.properties",
29
- "!**/__tests__",
30
- "!**/__fixtures__",
31
- "!**/__mocks__",
32
- "!**/.*"
33
- ],
34
- "scripts": {
35
- "example": "yarn workspace nosnia-audio-recorder-example",
36
- "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
37
- "prepare": "bob build",
38
- "typecheck": "tsc",
39
- "lint": "eslint \"**/*.{js,ts,tsx}\"",
40
- "release": "release-it --only-version",
41
- "test": "jest"
42
- },
43
- "keywords": [
44
- "react-native",
45
- "ios",
46
- "android"
47
- ],
48
- "repository": {
49
- "type": "git",
50
- "url": "git+https://nosnia.ai.git"
51
- },
52
- "author": "Parth Thakkar <parth@nosnia.ai> (https://nosnia.ai)",
53
- "license": "MIT",
54
- "bugs": {
55
- "url": "https://nosnia.ai/issues"
56
- },
57
- "homepage": "https://nosnia.ai#readme",
58
- "publishConfig": {
59
- "registry": "https://registry.npmjs.org/"
60
- },
61
- "devDependencies": {
62
- "@commitlint/config-conventional": "^19.8.1",
63
- "@eslint/compat": "^1.3.2",
64
- "@eslint/eslintrc": "^3.3.1",
65
- "@eslint/js": "^9.35.0",
66
- "@react-native-community/cli": "20.0.1",
67
- "@react-native/babel-preset": "0.81.1",
68
- "@react-native/eslint-config": "^0.81.1",
69
- "@release-it/conventional-changelog": "^10.0.1",
70
- "@types/jest": "^29.5.14",
71
- "@types/react": "^19.1.0",
72
- "commitlint": "^19.8.1",
73
- "del-cli": "^6.0.0",
74
- "eslint": "^9.35.0",
75
- "eslint-config-prettier": "^10.1.8",
76
- "eslint-plugin-prettier": "^5.5.4",
77
- "jest": "^29.7.0",
78
- "lefthook": "^2.0.3",
79
- "prettier": "^2.8.8",
80
- "react": "19.1.0",
81
- "react-native": "0.81.1",
82
- "react-native-builder-bob": "^0.40.13",
83
- "release-it": "^19.0.4",
84
- "turbo": "^2.5.6",
85
- "typescript": "^5.9.2"
86
- },
87
- "peerDependencies": {
88
- "react": "*",
89
- "react-native": "*"
90
- },
91
- "workspaces": [
92
- "example"
93
- ],
94
- "packageManager": "yarn@4.11.0",
95
- "react-native-builder-bob": {
96
- "source": "src",
97
- "output": "lib",
98
- "targets": [
99
- [
100
- "module",
101
- {
102
- "esm": true
103
- }
104
- ],
105
- [
106
- "typescript",
107
- {
108
- "project": "tsconfig.build.json"
109
- }
110
- ]
111
- ]
112
- },
113
- "codegenConfig": {
114
- "libraries": [
115
- {
116
- "name": "NosniaAudioRecorderSpec",
117
- "type": "modules",
118
- "jsSrcsDir": "src",
119
- "android": {
120
- "javaPackageName": "com.nosniaaudiorecorder"
121
- }
122
- },
123
- {
124
- "name": "NosniaAudioPlayerSpec",
125
- "type": "modules",
126
- "jsSrcsDir": "src",
127
- "android": {
128
- "javaPackageName": "com.nosniaaudiorecorder"
129
- }
130
- }
131
- ]
132
- },
133
- "prettier": {
134
- "quoteProps": "consistent",
135
- "singleQuote": true,
136
- "tabWidth": 2,
137
- "trailingComma": "es5",
138
- "useTabs": false
139
- },
140
- "commitlint": {
141
- "extends": [
142
- "@commitlint/config-conventional"
143
- ]
144
- },
145
- "release-it": {
146
- "git": {
147
- "commitMessage": "chore: release ${version}",
148
- "tagName": "v${version}"
149
- },
150
- "npm": {
151
- "publish": true
152
- },
153
- "github": {
154
- "release": true
155
- },
156
- "plugins": {
157
- "@release-it/conventional-changelog": {
158
- "preset": {
159
- "name": "angular"
160
- }
161
- }
162
- }
163
- },
164
- "jest": {
165
- "preset": "react-native",
166
- "modulePathIgnorePatterns": [
167
- "<rootDir>/example/node_modules",
168
- "<rootDir>/lib/"
169
- ]
170
- },
171
- "create-react-native-library": {
172
- "languages": "kotlin-objc",
173
- "type": "turbo-module",
174
- "tools": [
175
- "eslint",
176
- "lefthook",
177
- "release-it",
178
- "jest"
179
- ],
180
- "version": "0.55.0"
181
- }
182
- }
1
+ {
2
+ "name": "nosnia-audio-recorder",
3
+ "version": "0.3.9",
4
+ "description": "This is a modern audio recorder which actually works cross platform",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "android",
19
+ "ios",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
23
+ "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
29
+ "!**/__tests__",
30
+ "!**/__fixtures__",
31
+ "!**/__mocks__",
32
+ "!**/.*"
33
+ ],
34
+ "scripts": {
35
+ "example": "yarn workspace nosnia-audio-recorder-example",
36
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
37
+ "prepare": "bob build",
38
+ "typecheck": "tsc",
39
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
40
+ "release": "release-it --only-version",
41
+ "test": "jest"
42
+ },
43
+ "keywords": [
44
+ "react-native",
45
+ "ios",
46
+ "android"
47
+ ],
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://nosnia.ai.git"
51
+ },
52
+ "author": "Parth Thakkar <parth@nosnia.ai> (https://nosnia.ai)",
53
+ "license": "MIT",
54
+ "bugs": {
55
+ "url": "https://nosnia.ai/issues"
56
+ },
57
+ "homepage": "https://nosnia.ai#readme",
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.8.1",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@react-native-community/cli": "20.0.1",
67
+ "@react-native/babel-preset": "0.81.1",
68
+ "@react-native/eslint-config": "^0.81.1",
69
+ "@release-it/conventional-changelog": "^10.0.1",
70
+ "@types/jest": "^29.5.14",
71
+ "@types/react": "^19.1.0",
72
+ "commitlint": "^19.8.1",
73
+ "del-cli": "^6.0.0",
74
+ "eslint": "^9.35.0",
75
+ "eslint-config-prettier": "^10.1.8",
76
+ "eslint-plugin-prettier": "^5.5.4",
77
+ "jest": "^29.7.0",
78
+ "lefthook": "^2.0.3",
79
+ "prettier": "^2.8.8",
80
+ "react": "19.1.0",
81
+ "react-native": "0.81.1",
82
+ "react-native-builder-bob": "^0.40.13",
83
+ "release-it": "^19.0.4",
84
+ "turbo": "^2.5.6",
85
+ "typescript": "^5.9.2"
86
+ },
87
+ "peerDependencies": {
88
+ "react": "*",
89
+ "react-native": "*"
90
+ },
91
+ "workspaces": [
92
+ "example"
93
+ ],
94
+ "packageManager": "yarn@4.11.0",
95
+ "react-native-builder-bob": {
96
+ "source": "src",
97
+ "output": "lib",
98
+ "targets": [
99
+ [
100
+ "module",
101
+ {
102
+ "esm": true
103
+ }
104
+ ],
105
+ [
106
+ "typescript",
107
+ {
108
+ "project": "tsconfig.build.json"
109
+ }
110
+ ]
111
+ ]
112
+ },
113
+ "codegenConfig": {
114
+ "libraries": [
115
+ {
116
+ "name": "NosniaAudioRecorderSpec",
117
+ "type": "modules",
118
+ "jsSrcsDir": "src",
119
+ "android": {
120
+ "javaPackageName": "com.nosniaaudiorecorder"
121
+ }
122
+ },
123
+ {
124
+ "name": "NosniaAudioPlayerSpec",
125
+ "type": "modules",
126
+ "jsSrcsDir": "src",
127
+ "android": {
128
+ "javaPackageName": "com.nosniaaudiorecorder"
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ "prettier": {
134
+ "quoteProps": "consistent",
135
+ "singleQuote": true,
136
+ "tabWidth": 2,
137
+ "trailingComma": "es5",
138
+ "useTabs": false
139
+ },
140
+ "commitlint": {
141
+ "extends": [
142
+ "@commitlint/config-conventional"
143
+ ]
144
+ },
145
+ "release-it": {
146
+ "git": {
147
+ "commitMessage": "chore: release ${version}",
148
+ "tagName": "v${version}"
149
+ },
150
+ "npm": {
151
+ "publish": true
152
+ },
153
+ "github": {
154
+ "release": true
155
+ },
156
+ "plugins": {
157
+ "@release-it/conventional-changelog": {
158
+ "preset": {
159
+ "name": "angular"
160
+ }
161
+ }
162
+ }
163
+ },
164
+ "jest": {
165
+ "preset": "react-native",
166
+ "modulePathIgnorePatterns": [
167
+ "<rootDir>/example/node_modules",
168
+ "<rootDir>/lib/"
169
+ ]
170
+ },
171
+ "create-react-native-library": {
172
+ "languages": "kotlin-objc",
173
+ "type": "turbo-module",
174
+ "tools": [
175
+ "eslint",
176
+ "lefthook",
177
+ "release-it",
178
+ "jest"
179
+ ],
180
+ "version": "0.55.0"
181
+ }
182
+ }