omikit-plugin 3.2.47 → 3.2.49
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/omikit-plugin.podspec +9 -8
- package/package.json +1 -1
package/omikit-plugin.podspec
CHANGED
|
@@ -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,22 +13,27 @@ 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
|
-
#
|
|
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
25
|
"DEFINES_MODULE" => "YES"
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
#
|
|
28
|
+
# Thêm dependency bắt buộc
|
|
27
29
|
s.dependency "React-Core"
|
|
30
|
+
s.dependency "OmiKit", "1.8.1"
|
|
28
31
|
|
|
29
|
-
# Xử lý cho kiến trúc mới (New Architecture)
|
|
32
|
+
# Xử lý riêng cho kiến trúc mới (New Architecture)
|
|
30
33
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
34
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
31
35
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
32
|
-
s.
|
|
36
|
+
s.xcconfig = {
|
|
33
37
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
34
38
|
"OTHER_CPLUSPLUSFLAGS" => folly_compiler_flags,
|
|
35
39
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
@@ -40,7 +44,4 @@ Pod::Spec.new do |s|
|
|
|
40
44
|
s.dependency "RCTTypeSafety"
|
|
41
45
|
s.dependency "ReactCommon/turbomodule/core"
|
|
42
46
|
end
|
|
43
|
-
|
|
44
|
-
# OmiKit dependency
|
|
45
|
-
s.dependency "OmiKit", '1.8.1'
|
|
46
47
|
end
|