@voipsdk/react-native-voipcloud 1.0.3 → 1.0.4
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @voipsdk/react-native-voipcloud
|
|
2
2
|
|
|
3
3
|
> Public VoIP SDK for React Native — Android **and** iOS (RN 0.70+).
|
|
4
|
-
> Package: `@voipsdk/react-native-voipcloud@1.0.
|
|
4
|
+
> Package: `@voipsdk/react-native-voipcloud@1.0.4`
|
|
5
5
|
|
|
6
6
|
Android and iOS expose the **same** JS API, events and `VC_*` error codes.
|
|
7
7
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Minimal module map for the VoipCloud static xcframework.
|
|
2
|
+
//
|
|
3
|
+
// PJSIP headers cannot be safely modularised — they include C standard headers
|
|
4
|
+
// (<stdint.h>, <ctype.h>, <string.h>) in a way that creates cyclic module
|
|
5
|
+
// dependencies under Xcode 26+'s _DarwinFoundation2 / _Builtin_stdint system.
|
|
6
|
+
// Declaring no public headers here prevents Xcode from auto-generating a module
|
|
7
|
+
// map that would drag all PJSIP headers into the module system.
|
|
8
|
+
//
|
|
9
|
+
// The ObjC++ bridge files (VoipCloudEngine.mm / VoipCloud.mm) include PJSIP
|
|
10
|
+
// headers textually via HEADER_SEARCH_PATHS, which works correctly without modules.
|
|
11
|
+
module VoipCloud {
|
|
12
|
+
link library "VoipCloud"
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Minimal module map for the VoipCloud static xcframework.
|
|
2
|
+
//
|
|
3
|
+
// PJSIP headers cannot be safely modularised — they include C standard headers
|
|
4
|
+
// (<stdint.h>, <ctype.h>, <string.h>) in a way that creates cyclic module
|
|
5
|
+
// dependencies under Xcode 26+'s _DarwinFoundation2 / _Builtin_stdint system.
|
|
6
|
+
// Declaring no public headers here prevents Xcode from auto-generating a module
|
|
7
|
+
// map that would drag all PJSIP headers into the module system.
|
|
8
|
+
//
|
|
9
|
+
// The ObjC++ bridge files (VoipCloudEngine.mm / VoipCloud.mm) include PJSIP
|
|
10
|
+
// headers textually via HEADER_SEARCH_PATHS, which works correctly without modules.
|
|
11
|
+
module VoipCloud {
|
|
12
|
+
link library "VoipCloud"
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -28,6 +28,15 @@ Pod::Spec.new do |s|
|
|
|
28
28
|
s.pod_target_xcconfig = {
|
|
29
29
|
"CLANG_CXX_LANGUAGE_STANDARD" => "gnu++17",
|
|
30
30
|
"CLANG_CXX_LIBRARY" => "libc++",
|
|
31
|
+
# Xcode 26+ introduced a stricter modular C header system (_DarwinFoundation2)
|
|
32
|
+
# that creates a cyclic dependency when PJSIP headers include <stdint.h> inside
|
|
33
|
+
# a module compilation context:
|
|
34
|
+
# _DarwinFoundation2 -> _Builtin_stdint -> _DarwinFoundation2
|
|
35
|
+
# This leaves isalnum/strlen/memset/jmp_buf etc. undeclared inside the PJSIP
|
|
36
|
+
# compat headers. Disabling modules for this pod target makes all #import/#include
|
|
37
|
+
# directives textual — the PJSIP headers then see the full stdlib without any
|
|
38
|
+
# module cycle, and all C std-library identifiers are declared as expected.
|
|
39
|
+
"CLANG_ENABLE_MODULES" => "NO",
|
|
31
40
|
# PJSIP was built via autoconf, so pj/config.h only pulls the generated
|
|
32
41
|
# machine config (endianness, sizes, feature flags in m_auto.h/os_auto.h)
|
|
33
42
|
# when PJ_AUTOCONF is defined. Consumers MUST compile with it too — both to
|