omikit-plugin 3.2.82 → 3.2.84
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/README.md
CHANGED
|
@@ -312,7 +312,8 @@ class MainApplication : Application() {
|
|
|
312
312
|
```objc
|
|
313
313
|
#import <UIKit/UIKit.h>
|
|
314
314
|
#import <UserNotifications/UserNotifications.h>
|
|
315
|
-
#import <OmiKit/OmiKit-umbrella.h>
|
|
315
|
+
// #import <OmiKit/OmiKit-umbrella.h>
|
|
316
|
+
#import <OmiKit/OmiKit.h>
|
|
316
317
|
#import <OmiKit/Constants.h>
|
|
317
318
|
|
|
318
319
|
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>
|
|
@@ -172,8 +172,8 @@ class CallManager {
|
|
|
172
172
|
case .notDetermined:
|
|
173
173
|
break
|
|
174
174
|
case .authorized, .provisional:
|
|
175
|
-
|
|
176
|
-
return
|
|
175
|
+
if call == nil {
|
|
176
|
+
return // No missed call to show
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
let statusAnswer = OmiClient.checkHasAnsweredCall(call.omiId ?? "")
|
|
@@ -8,5 +8,11 @@
|
|
|
8
8
|
#ifndef OmikitPlugin_Bridging_Header_h
|
|
9
9
|
#define OmikitPlugin_Bridging_Header_h
|
|
10
10
|
|
|
11
|
+
// ✅ Import React Native headers
|
|
12
|
+
#import <React/RCTBridgeModule.h>
|
|
13
|
+
#import <React/RCTEventEmitter.h>
|
|
14
|
+
|
|
15
|
+
// ✅ Import OmiKit framework (nếu cần thiết cho Objective-C code)
|
|
16
|
+
// #import <OmiKit/OmiKit.h>
|
|
11
17
|
|
|
12
18
|
#endif /* OmikitPlugin_Bridging_Header_h */
|
package/omikit-plugin.podspec
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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'
|
|
4
5
|
|
|
5
6
|
Pod::Spec.new do |s|
|
|
6
7
|
s.name = "omikit-plugin"
|
|
@@ -10,12 +11,12 @@ Pod::Spec.new do |s|
|
|
|
10
11
|
s.license = package["license"]
|
|
11
12
|
s.authors = package["author"]
|
|
12
13
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
14
|
+
s.platforms = { :ios => "13.0" }
|
|
14
15
|
s.source = { :git => "https://github.com/VIHATTeam/OMICALL-React-Native-SDK.git", :tag => "#{s.version}" }
|
|
15
16
|
|
|
16
17
|
# Chỉ định source files
|
|
17
18
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
|
|
19
|
+
s.public_header_files = "ios/**/*.h"
|
|
19
20
|
|
|
20
21
|
# Đảm bảo hỗ trợ Swift
|
|
21
22
|
s.swift_versions = ["5.0"]
|
|
@@ -23,7 +24,9 @@ Pod::Spec.new do |s|
|
|
|
23
24
|
# Định nghĩa module để tránh lỗi Swift bridging header
|
|
24
25
|
s.static_framework = true
|
|
25
26
|
s.pod_target_xcconfig = {
|
|
26
|
-
"DEFINES_MODULE" => "YES"
|
|
27
|
+
"DEFINES_MODULE" => "YES",
|
|
28
|
+
"SWIFT_OPTIMIZATION_LEVEL" => "-Onone",
|
|
29
|
+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64"
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
# Xác định module name
|
|
@@ -31,10 +34,11 @@ Pod::Spec.new do |s|
|
|
|
31
34
|
|
|
32
35
|
# Thêm dependency bắt buộc
|
|
33
36
|
s.dependency "React-Core"
|
|
34
|
-
|
|
37
|
+
# Sử dụng version OmiKit ổn định hơn
|
|
38
|
+
s.dependency "OmiKit", "1.8.32"
|
|
39
|
+
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
# s.requires_arc = true
|
|
41
|
+
s.requires_arc = true
|
|
38
42
|
|
|
39
43
|
# Xử lý riêng cho kiến trúc mới (New Architecture)
|
|
40
44
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|