omikit-plugin 3.2.48 → 3.2.50

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.
@@ -6,7 +6,13 @@
6
6
  //
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
- #import <omikit_plugin-Swift.h>
9
+
10
+ #if __has_include("omikit_plugin-Swift.h")
11
+ #import "omikit_plugin-Swift.h"
12
+ #else
13
+ #import <omikit_plugin/omikit_plugin-Swift.h>
14
+ #endif
15
+
10
16
 
11
17
  @implementation OmikitNotification : NSObject
12
18
  + (void)didRecieve:(NSDictionary*) userInfo{
@@ -22,21 +22,22 @@ Pod::Spec.new do |s|
22
22
  # Định nghĩa module để tránh lỗi Swift bridging header
23
23
  s.static_framework = true
24
24
  s.pod_target_xcconfig = {
25
- "DEFINES_MODULE" => "YES",
26
- "SWIFT_OBJC_INTERFACE_HEADER_NAME" => "omikit_plugin-Swift.h"
25
+ "DEFINES_MODULE" => "YES"
27
26
  }
28
27
 
29
28
  # Thêm dependency bắt buộc
30
29
  s.dependency "React-Core"
31
30
  s.dependency "OmiKit", "1.8.1"
32
31
 
33
- # Xử lý riêng cho New Architecture
32
+ # Xử lý riêng cho kiến trúc mới (New Architecture)
34
33
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
35
34
  folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
36
35
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
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"
36
+ s.xcconfig = {
37
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
38
+ "OTHER_CPLUSPLUSFLAGS" => folly_compiler_flags,
39
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
40
+ }
40
41
  s.dependency "React-Codegen"
41
42
  s.dependency "RCT-Folly"
42
43
  s.dependency "RCTRequired"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.48",
3
+ "version": "3.2.50",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",