rns-nativecall 0.0.6 → 0.0.8
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.
|
@@ -36,13 +36,13 @@ class CallModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
|
|
|
36
36
|
val appName = reactApplicationContext.applicationInfo.loadLabel(reactApplicationContext.packageManager).toString()
|
|
37
37
|
|
|
38
38
|
// Correct bitmasking: Combine all capabilities into a single integer
|
|
39
|
-
val capabilities = PhoneAccount.
|
|
40
|
-
PhoneAccount.CAPABILITY_CALL_PROVIDER or
|
|
41
|
-
PhoneAccount.CAPABILITY_VIDEO_CALLING or
|
|
39
|
+
val capabilities = PhoneAccount.CAPABILITY_VIDEO_CALLING or
|
|
42
40
|
PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING
|
|
43
41
|
|
|
44
42
|
val phoneAccount = PhoneAccount.builder(phoneAccountHandle, appName)
|
|
45
|
-
|
|
43
|
+
.setCapabilities(capabilities)
|
|
44
|
+
.setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED)
|
|
45
|
+
.setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)
|
|
46
46
|
.build()
|
|
47
47
|
|
|
48
48
|
telecomManager.registerPhoneAccount(phoneAccount)
|
package/ios/CallModule.h
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
#import <CallKit/CallKit.h>
|
|
2
1
|
#import <React/RCTBridgeModule.h>
|
|
3
2
|
#import <React/RCTEventEmitter.h>
|
|
4
|
-
|
|
3
|
+
#import <CallKit/CallKit.h>
|
|
5
4
|
@interface CallModule : RCTEventEmitter <RCTBridgeModule, CXProviderDelegate>
|
|
6
5
|
@property(nonatomic, strong) CXProvider *provider;
|
|
7
6
|
@end
|
package/ios/CallModule.m
CHANGED
|
@@ -79,8 +79,8 @@ RCT_EXPORT_METHOD(endNativeCall:(NSString *)uuidString) {
|
|
|
79
79
|
|
|
80
80
|
// Placeholder for Android parity
|
|
81
81
|
RCT_EXPORT_METHOD(checkTelecomPermissions:(RCTPromiseResolveBlock)resolve
|
|
82
|
-
reject:(
|
|
83
|
-
resolve(@YES);
|
|
82
|
+
reject:(RCTPromiseRejectBlock)reject) {
|
|
83
|
+
resolve(@YES);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// MARK: - CXProviderDelegate
|
package/package.json
CHANGED