mediversal-rn-image-intelligence 1.0.10 → 1.0.12

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.
@@ -9,7 +9,7 @@ class ImageIntelligencePackage : ReactPackage {
9
9
  override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
10
10
  return listOf(
11
11
  FaceDetectionModule(reactContext),
12
- TextRecognitionModule(reactContext)
12
+ TextRecognitionModule(reactContext),
13
13
  ObjectDetectionModule(reactContext)
14
14
  )
15
15
  }
@@ -4,23 +4,37 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
5
  Pod::Spec.new do |s|
6
6
  s.name = "mediversal-rn-image-intelligence"
7
- s.version = package["version"]
8
- s.summary = package["description"]
9
- s.homepage = package["homepage"]
10
- s.license = package["license"]
11
- s.authors = package["author"]
7
+ s.version = package["version"].to_s
8
+ s.summary = package["description"].to_s
9
+ s.homepage = package["homepage"].to_s
12
10
 
13
- s.platforms = { :ios => "12.0" }
14
- s.source = { :git => package["repository"], :tag => "#{s.version}" }
11
+ # License (handle string or hash safely)
12
+ license = package["license"]
13
+ s.license = license.is_a?(Hash) ? license["type"] : license.to_s
14
+
15
+ # Author (handle string or hash safely)
16
+ author = package["author"]
17
+ s.authors = author.is_a?(Hash) ? author : author.to_s
18
+
19
+ s.platforms = { ios: "12.0" }
20
+
21
+ # Repository MUST be a string URL
22
+ repo = package["repository"]
23
+ git_url = repo.is_a?(Hash) ? repo["url"] : repo.to_s
24
+
25
+ s.source = {
26
+ git: git_url,
27
+ tag: "v#{s.version}"
28
+ }
15
29
 
16
30
  s.source_files = "ios/**/*.{h,m,mm,swift}"
31
+ s.requires_arc = true
17
32
 
18
33
  s.dependency "React-Core"
19
-
34
+
20
35
  s.dependency "GoogleMLKit/FaceDetection", "~> 4.0.0"
21
36
  s.dependency "GoogleMLKit/TextRecognition", "~> 4.0.0"
22
37
  s.dependency "GoogleMLKit/ObjectDetection", "~> 4.0.0"
23
38
 
24
-
25
39
  s.swift_version = "5.0"
26
- end
40
+ end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediversal-rn-image-intelligence",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Production-ready React Native library for intelligent image analysis using Google ML Kit (on-device)",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -40,7 +40,6 @@
40
40
  "face-detection",
41
41
  "text-recognition",
42
42
  "ocr",
43
- "handwriting-recognition",
44
43
  "image-analysis",
45
44
  "computer-vision",
46
45
  "turbomodule"