omikit-plugin 3.2.47 → 3.2.48

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.
@@ -1,7 +1,6 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
4
 
6
5
  Pod::Spec.new do |s|
7
6
  s.name = "omikit-plugin"
@@ -14,33 +13,34 @@ Pod::Spec.new do |s|
14
13
  s.platforms = { :ios => "11.0" }
15
14
  s.source = { :git => "https://github.com/VIHATTeam/OMICALL-React-Native-SDK.git", :tag => "#{s.version}" }
16
15
 
16
+ # Chỉ định source files
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
+
19
+ # Đảm bảo hỗ trợ Swift
18
20
  s.swift_versions = ["5.0"]
19
21
 
20
- # Modular headers để tránh xung đột khi dùng static frameworks
22
+ # Định nghĩa module để tránh lỗi Swift bridging header
21
23
  s.static_framework = true
22
24
  s.pod_target_xcconfig = {
23
- "DEFINES_MODULE" => "YES"
25
+ "DEFINES_MODULE" => "YES",
26
+ "SWIFT_OBJC_INTERFACE_HEADER_NAME" => "omikit_plugin-Swift.h"
24
27
  }
25
28
 
26
- # React dependencies
29
+ # Thêm dependency bắt buộc
27
30
  s.dependency "React-Core"
31
+ s.dependency "OmiKit", "1.8.1"
28
32
 
29
- # Xử lý cho kiến trúc mới (New Architecture)
33
+ # Xử lý riêng cho New Architecture
30
34
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
35
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
31
36
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
32
- s.pod_target_xcconfig = {
33
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
34
- "OTHER_CPLUSPLUSFLAGS" => folly_compiler_flags,
35
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
36
- }
37
+ s.pod_target_xcconfig["HEADER_SEARCH_PATHS"] = "\"$(PODS_ROOT)/boost\""
38
+ s.pod_target_xcconfig["OTHER_CPLUSPLUSFLAGS"] = folly_compiler_flags
39
+ s.pod_target_xcconfig["CLANG_CXX_LANGUAGE_STANDARD"] = "c++17"
37
40
  s.dependency "React-Codegen"
38
41
  s.dependency "RCT-Folly"
39
42
  s.dependency "RCTRequired"
40
43
  s.dependency "RCTTypeSafety"
41
44
  s.dependency "ReactCommon/turbomodule/core"
42
45
  end
43
-
44
- # OmiKit dependency
45
- s.dependency "OmiKit", '1.8.1'
46
46
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.47",
3
+ "version": "3.2.48",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",