vision-camera-face-detection 2.0.0 → 2.2.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Yudi Edri Alviska
3
+ Copyright (c) 2025 Yudi Edri Alviska
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
6
6
  in the Software without restriction, including without limitation the rights
package/README.md CHANGED
@@ -5,14 +5,14 @@ Plugin Face Detection for Vision Camera 4
5
5
  ## Installation
6
6
 
7
7
  ```sh
8
- npm install @edritech/vision-camera-face-detection
8
+ npm install vision-camera-face-detection
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
 
14
14
  ```js
15
- import { multiply } from '@edritech/vision-camera-face-detection';
15
+ import { multiply } from 'vision-camera-face-detection';
16
16
 
17
17
  // ...
18
18
 
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "GoogleMLKit/FaceDetection"
19
+ s.dependency 'GoogleMLKit/FaceDetection', '7.0.0'
20
20
  s.dependency "VisionCamera"
21
21
  s.dependency "TensorFlowLiteSwift", "2.11.0"
22
22
 
@@ -1,6 +1,7 @@
1
1
  buildscript {
2
- // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["VisionCameraFaceDetection_kotlinVersion"]
2
+ ext.getExtOrDefault = {name ->
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['VisionCameraFaceDetection_' + name]
4
+ }
4
5
 
5
6
  repositories {
6
7
  google()
@@ -8,16 +9,12 @@ buildscript {
8
9
  }
9
10
 
10
11
  dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
12
+ classpath "com.android.tools.build:gradle:8.7.2"
12
13
  // noinspection DifferentKotlinGradleVersion
13
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
14
15
  }
15
16
  }
16
17
 
17
- def reactNativeArchitectures() {
18
- def value = rootProject.getProperties().get("reactNativeArchitectures")
19
- return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
20
- }
21
18
 
22
19
  def isNewArchitectureEnabled() {
23
20
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
@@ -30,10 +27,6 @@ if (isNewArchitectureEnabled()) {
30
27
  apply plugin: "com.facebook.react"
31
28
  }
32
29
 
33
- def getExtOrDefault(name) {
34
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["VisionCameraFaceDetection_" + name]
35
- }
36
-
37
30
  def getExtOrIntegerDefault(name) {
38
31
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["VisionCameraFaceDetection_" + name]).toInteger()
39
32
  }
@@ -63,7 +56,6 @@ android {
63
56
  defaultConfig {
64
57
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
65
58
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
66
-
67
59
  }
68
60
 
69
61
  buildTypes {
@@ -91,10 +83,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
91
83
  def tensor_version = getExtOrDefault("tensorVersion")
92
84
 
93
85
  dependencies {
94
- // For < 0.71, this will be from the local maven repo
95
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
96
- //noinspection GradleDynamicVersion
97
- implementation "com.facebook.react:react-native:+"
86
+ implementation "com.facebook.react:react-android"
98
87
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
99
88
  api project(":react-native-vision-camera")
100
89
  implementation "androidx.annotation:annotation:1.8.2"
@@ -1,6 +1,6 @@
1
- VisionCameraFaceDetection_kotlinVersion=1.9.22
2
- VisionCameraFaceDetection_minSdkVersion=23
1
+ VisionCameraFaceDetection_kotlinVersion=2.0.21
2
+ VisionCameraFaceDetection_minSdkVersion=24
3
3
  VisionCameraFaceDetection_targetSdkVersion=34
4
- VisionCameraFaceDetection_compileSdkVersion=34
5
- VisionCameraFaceDetection_ndkversion=26.1.10909125
4
+ VisionCameraFaceDetection_compileSdkVersion=35
5
+ VisionCameraFaceDetection_ndkVersion=27.1.12297006
6
6
  VisionCameraFaceDetection_tensorVersion=2.11.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vision-camera-face-detection",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "Plugin Face Detection for Vision Camera 4",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -24,6 +24,7 @@
24
24
  "ios",
25
25
  "cpp",
26
26
  "*.podspec",
27
+ "react-native.config.js",
27
28
  "!ios/build",
28
29
  "!android/build",
29
30
  "!android/gradle",
@@ -66,7 +67,7 @@
66
67
  "@commitlint/config-conventional": "^17.0.2",
67
68
  "@evilmartians/lefthook": "^1.5.0",
68
69
  "@react-native/eslint-config": "^0.73.1",
69
- "@release-it/conventional-changelog": "^5.0.0",
70
+ "@release-it/conventional-changelog": "^9.0.2",
70
71
  "@types/jest": "^29.5.5",
71
72
  "@types/react": "^18.2.44",
72
73
  "commitlint": "^17.0.2",
@@ -76,12 +77,12 @@
76
77
  "eslint-plugin-prettier": "^5.0.1",
77
78
  "jest": "^29.7.0",
78
79
  "prettier": "^3.0.3",
79
- "react": "18.3.1",
80
- "react-native": "0.75.4",
81
- "react-native-builder-bob": "^0.30.2",
82
- "react-native-vision-camera": "4.5.3",
83
- "react-native-worklets-core": "1.3.3",
84
- "release-it": "^15.0.0",
80
+ "react": "19.0.0",
81
+ "react-native": "0.78.0",
82
+ "react-native-builder-bob": "^0.36.0",
83
+ "react-native-vision-camera": "^4.6.4",
84
+ "react-native-worklets-core": "^1.5.0",
85
+ "release-it": "^17.10.0",
85
86
  "turbo": "^1.10.7",
86
87
  "typescript": "^5.2.2"
87
88
  },
@@ -91,8 +92,8 @@
91
92
  "peerDependencies": {
92
93
  "react": "*",
93
94
  "react-native": "*",
94
- "react-native-vision-camera": ">= 4.0",
95
- "react-native-worklets-core": ">= 1.3"
95
+ "react-native-vision-camera": ">= 4.6",
96
+ "react-native-worklets-core": ">= 1.5"
96
97
  },
97
98
  "workspaces": [
98
99
  "example"
@@ -184,8 +185,8 @@
184
185
  ]
185
186
  },
186
187
  "create-react-native-library": {
187
- "type": "module-legacy",
188
+ "type": "legacy-module",
188
189
  "languages": "kotlin-swift",
189
- "version": "0.41.2"
190
+ "version": "0.48.3"
190
191
  }
191
192
  }