react-native-vision-camera-spoof-detector 1.0.27 → 1.1.0

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.
Files changed (30) hide show
  1. package/README.md +54 -27
  2. package/android/build.gradle +3 -5
  3. package/android/src/main/java/com/faceantispoof/FaceAntiSpoofModule.kt +55 -0
  4. package/android/src/main/java/com/faceantispoof/FaceAntiSpoofPackage.kt +2 -24
  5. package/android/src/main/java/com/faceantispoof/FaceAntiSpoofingAdvanced.kt +58 -1
  6. package/index.d.ts +14 -1
  7. package/index.js +39 -51
  8. package/package.json +4 -7
  9. package/react-native-vision-camera-spoof-detector.podspec +4 -4
  10. package/.gitattributes +0 -2
  11. package/.npmignore +0 -99
  12. package/CONTRIBUTING.md +0 -280
  13. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  14. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  15. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  16. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  17. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  18. package/android/.gradle/8.9/gc.properties +0 -0
  19. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  20. package/android/.gradle/9.2.0/checksums/md5-checksums.bin +0 -0
  21. package/android/.gradle/9.2.0/checksums/sha1-checksums.bin +0 -0
  22. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  23. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  24. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  25. package/android/.gradle/9.2.0/gc.properties +0 -0
  26. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  27. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  28. package/android/.gradle/vcs-1/gc.properties +0 -0
  29. package/android/build/reports/problems/problems-report.html +0 -659
  30. package/android/src/main/java/com/faceantispoof/FaceAntiSpoofFrameProcessor.kt +0 -198
package/CONTRIBUTING.md DELETED
@@ -1,280 +0,0 @@
1
- # Contributing to react-native-vision-camera-spoof-detector
2
-
3
- First off, thank you for considering contributing to **react-native-vision-camera-spoof-detector**! It's people like you that make this library such a great tool.
4
-
5
- ## Code of Conduct
6
-
7
- This project and everyone participating in it is governed by our [Code of Conduct](./CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
8
-
9
- ## How Can I Contribute?
10
-
11
- ### Reporting Bugs
12
-
13
- Before creating bug reports, please check the issue list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
14
-
15
- - **Use a clear and descriptive title**
16
- - **Describe the exact steps which reproduce the problem** in as many details as possible
17
- - **Provide specific examples to demonstrate the steps**
18
- - **Describe the behavior you observed after following the steps**
19
- - **Explain which behavior you expected to see instead and why**
20
- - **Include screenshots and animated GIFs** if possible
21
- - **Include your environment details**:
22
- - React Native version
23
- - Device/OS version
24
- - Library version
25
- - Any relevant plugin versions
26
-
27
- ### Suggesting Enhancements
28
-
29
- Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
30
-
31
- - **Use a clear and descriptive title**
32
- - **Provide a step-by-step description of the suggested enhancement**
33
- - **Provide specific examples to demonstrate the steps**
34
- - **Describe the current behavior** and **the expected behavior**
35
- - **Explain why this enhancement would be useful**
36
-
37
- ### Pull Requests
38
-
39
- - Fill in the required template
40
- - Follow the TypeScript/JavaScript styleguides
41
- - End all files with a newline
42
- - Avoid platform-dependent code
43
-
44
- ## Development Setup
45
-
46
- ### Prerequisites
47
-
48
- - Node.js >= 16.0.0
49
- - npm >= 8.0.0 or yarn
50
- - React Native >= 0.60.0
51
- - Android SDK (for Android development)
52
- - Xcode (for iOS development, when available)
53
-
54
- ### Installation
55
-
56
- 1. **Fork the repository**
57
-
58
- ```bash
59
- git clone https://github.com/YOUR_USERNAME/react-native-vision-camera-spoof-detector.git
60
- cd react-native-vision-camera-spoof-detector
61
- ```
62
-
63
- 2. **Install dependencies**
64
-
65
- ```bash
66
- npm install
67
- # or
68
- yarn install
69
- ```
70
-
71
- 3. **Install peer dependencies**
72
-
73
- ```bash
74
- npm install react-native-vision-camera react-native-reanimated react-native-worklets-core
75
- ```
76
-
77
- 4. **Set up development environment**
78
-
79
- For Android development, ensure your Android SDK is properly configured.
80
-
81
- ### Building and Testing
82
-
83
- ```bash
84
- # Build the project
85
- npm run build
86
-
87
- # Run type checking
88
- npm run type-check
89
-
90
- # Run linter
91
- npm run lint
92
-
93
- # Run tests
94
- npm run test
95
-
96
- # Watch mode for development
97
- npm run dev
98
- ```
99
-
100
- ## Styleguides
101
-
102
- ### Git Commit Messages
103
-
104
- - Use the present tense ("Add feature" not "Added feature")
105
- - Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
106
- - Limit the first line to 72 characters or less
107
- - Reference issues and pull requests liberally after the first line
108
- - Consider starting the commit message with an applicable emoji:
109
- - 🎨 `:art:` - Improving structure/format
110
- - 🐛 `:bug:` - Bug fix
111
- - ⚡ `:zap:` - Performance improvement
112
- - 📚 `:books:` - Documentation
113
- - ✅ `:white_check_mark:` - Tests
114
- - 🔧 `:wrench:` - Configuration
115
- - 🚀 `:rocket:` - New feature
116
- - 🔒 `:lock:` - Security
117
- - ♻️ `:recycle:` - Refactoring
118
-
119
- ### JavaScript/TypeScript Styleguide
120
-
121
- All code must adhere to the following standards:
122
-
123
- - Use TypeScript for all new code
124
- - Write clear, self-documenting code
125
- - Use meaningful variable and function names
126
- - Add JSDoc comments for public APIs
127
- - Follow ESLint configuration
128
- - Maximum line length: 100 characters
129
- - Use semicolons
130
- - Use single quotes for strings
131
- - Use 2 spaces for indentation
132
-
133
- #### Example:
134
-
135
- ```typescript
136
- /**
137
- * Detects if face is centered in frame
138
- * @param faceRect - Face rectangle bounds
139
- * @param frameWidth - Frame width in pixels
140
- * @param frameHeight - Frame height in pixels
141
- * @returns True if face is centered
142
- */
143
- export const isFaceCentered = (
144
- faceRect: FaceRect,
145
- frameWidth: number,
146
- frameHeight: number
147
- ): boolean => {
148
- const faceCenterX = faceRect.x + faceRect.width / 2;
149
- const faceCenterY = faceRect.y + faceRect.height / 2;
150
- const frameCenterX = frameWidth / 2;
151
- const frameCenterY = frameHeight / 2;
152
-
153
- return (
154
- Math.abs(faceCenterX - frameCenterX) <= frameWidth * 0.2 &&
155
- Math.abs(faceCenterY - frameCenterY) <= frameHeight * 0.15
156
- );
157
- };
158
- ```
159
-
160
- ### Documentation Styleguide
161
-
162
- - Use Markdown
163
- - Reference functions/classes/methods with backticks: `functionName()`
164
- - Use code blocks with language identifiers: \`\`\`javascript
165
- - Include examples where applicable
166
- - Keep paragraphs short and scannable
167
-
168
- ## Testing
169
-
170
- ### Writing Tests
171
-
172
- All code changes should include corresponding tests:
173
-
174
- ```typescript
175
- describe('isFaceCentered', () => {
176
- it('should return true when face is centered', () => {
177
- const faceRect = { x: 75, y: 50, width: 50, height: 50 };
178
- const result = isFaceCentered(faceRect, 200, 200);
179
- expect(result).toBe(true);
180
- });
181
-
182
- it('should return false when face is off-center', () => {
183
- const faceRect = { x: 10, y: 10, width: 50, height: 50 };
184
- const result = isFaceCentered(faceRect, 200, 200);
185
- expect(result).toBe(false);
186
- });
187
- });
188
- ```
189
-
190
- ### Running Tests
191
-
192
- ```bash
193
- npm run test
194
-
195
- # Watch mode
196
- npm run test:watch
197
-
198
- # Coverage
199
- npm run test:coverage
200
- ```
201
-
202
- ## Documentation Updates
203
-
204
- If your changes affect the documented behavior, please update the README or relevant documentation files. This includes:
205
-
206
- - New APIs
207
- - Changed behavior
208
- - New examples
209
- - Configuration options
210
-
211
- ## Performance Considerations
212
-
213
- When adding new features, consider:
214
-
215
- - Impact on frame processing performance
216
- - Memory usage and garbage collection
217
- - GPU vs CPU acceleration trade-offs
218
- - Compatibility with older devices
219
-
220
- ## Accessibility
221
-
222
- - Ensure code is accessible to developers with different levels of experience
223
- - Write clear comments for complex logic
224
- - Provide examples for new features
225
-
226
- ## Community
227
-
228
- - Use inclusive language
229
- - Be respectful and professional
230
- - Help other contributors when possible
231
- - Share knowledge and experience
232
-
233
- ## Additional Notes
234
-
235
- ### Code Review Process
236
-
237
- 1. Automated tests must pass
238
- 2. Code must follow style guidelines
239
- 3. Documentation must be updated
240
- 4. At least one maintainer review required
241
- 5. All conversations must be professional
242
-
243
- ### Priorities
244
-
245
- When choosing what to work on:
246
-
247
- 1. **High Priority**: Bug fixes, security issues
248
- 2. **Medium Priority**: Feature enhancements, performance improvements
249
- 3. **Low Priority**: Documentation, examples, refactoring
250
-
251
- ## License
252
-
253
- By contributing, you agree that your contributions will be licensed under its JESCON TECHNOLOGIES PVT LTD License.
254
-
255
- ## Recognition
256
-
257
- Contributors will be recognized in:
258
-
259
- - README.md contributors section
260
- - CHANGELOG.md release notes
261
- - GitHub contributors page
262
-
263
- ## Questions?
264
-
265
- - 📧 Email: jescontechnologies@gmail.com
266
- - 💬 [GitHub Issues](https://github.com/dpraful/react-native-vision-camera-spoof-detector/issues)
267
- - 📝 [GitHub Discussions](https://github.com/dpraful/react-native-vision-camera-spoof-detector/discussions)
268
-
269
- ## Additional Resources
270
-
271
- - [React Native Documentation](https://reactnative.dev/)
272
- - [Vision Camera Documentation](https://react-native-vision-camera.com/)
273
- - [TensorFlow Lite Guide](https://www.tensorflow.org/lite)
274
- - [TypeScript Handbook](https://www.typescriptlang.org/docs/)
275
-
276
- ---
277
-
278
- Thank you for contributing! 🙏
279
-
280
- Made with ❤️ by JESCON TECHNOLOGIES PVT LTD
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Thu Sep 03 17:04:14 IST 2026
2
- gradle.version=8.9
File without changes