Skip to content

Commit d0d5429

Browse files
v1.1.0
1 parent 0388c10 commit d0d5429

File tree

7 files changed

+27
-9
lines changed

7 files changed

+27
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## 1.1.0
2+
'FlutterCallkitPlugin.hasCallWithUUID:' API added in iOS code
3+
14
## 1.0.0
25
Release

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ CallKit documentation can be found [here](https://developer.apple.com/documentat
2424

2525
A few differences explained:
2626

27-
- Use reportNewIncomingCallWithUUID native iOS method of FlutterCallkitPlugin to report new incoming call received via VoIP push notification
27+
28+
- Use FlutterCallkitPlugin.reportNewIncomingCallWithUUID: native iOS method to report new incoming call received via VoIP push notification
29+
- Use FlutterCallkitPlugin.hasCallWithUUID: native iOS method to check if CallKit already has a call with the given UUID
2830
- Use FCXPlugin.didDisplayIncomingCall (dart) handle incoming call reported with reportNewIncomingCallWithUUID
2931
- Use FCXPlugin.logLevel (dart) to adjust logging
3032
- Use FCXPlugin.processPushCompletion (dart) to execute completion block received from push (iOS 11+ only)

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- flutter_callkit_voximplant (1.0.0):
3+
- flutter_callkit_voximplant (1.1.0):
44
- Flutter
55

66
DEPENDENCIES:
@@ -15,8 +15,8 @@ EXTERNAL SOURCES:
1515

1616
SPEC CHECKSUMS:
1717
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18-
flutter_callkit_voximplant: 848d9d4e35a2ec38d88843420f081848234aa7d1
18+
flutter_callkit_voximplant: 5f0154d8aa11bc0a1e15b8c707f37ea78bd23c64
1919

2020
PODFILE CHECKSUM: 78b14672016bc22bdb0bc60d3e8dca9f63afb6cb
2121

22-
COCOAPODS: 1.8.4
22+
COCOAPODS: 1.9.1

ios/Classes/FlutterCallkitPlugin.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ API_AVAILABLE(ios(10.0))
1212
@property(strong, nonatomic, nullable, readonly) NSObject<FlutterPluginRegistrar> *registrar;
1313
@property(strong, nonatomic, nullable, readonly) CXProvider *provider;
1414

15+
+ (BOOL)hasCallWithUUID:(NSUUID *)UUID;
16+
1517
+ (void)reportNewIncomingCallWithUUID:(NSUUID *)UUID
1618
callUpdate:(CXCallUpdate *)callUpdate
1719
providerConfiguration:(CXProviderConfiguration *)providerConfiguration

ios/Classes/FlutterCallkitPlugin.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ - (BOOL)isMethodCallOfType:(FCXMethodType)type call:(FlutterMethodCall *)call {
113113
: NO;
114114
}
115115

116+
+ (BOOL)hasCallWithUUID:(NSUUID *)UUID {
117+
FlutterCallkitPlugin *plugin = [FlutterCallkitPlugin sharedPluginWithRegistrar:nil];
118+
if (!plugin.callController.callObserver.calls || plugin.callController.callObserver.calls.count == 0) {
119+
return false;
120+
}
121+
for (CXCall *call in plugin.callController.callObserver.calls) {
122+
if ([call.UUID isEqual:UUID]) {
123+
return true;
124+
}
125+
}
126+
return false;
127+
}
128+
116129
+ (void)reportNewIncomingCallWithUUID:(NSUUID *)UUID
117130
callUpdate:(CXCallUpdate *)callUpdate
118131
providerConfiguration:(CXProviderConfiguration *)providerConfiguration

ios/flutter_callkit_voximplant.podspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'flutter_callkit_voximplant'
7-
s.version = '1.0.0'
7+
s.version = '1.1.0'
88
s.summary = 'Flutter SDK for CallKit integration to Flutter applications on iOS'
99
s.homepage = 'https://github.com/voximplant/flutter_callkit'
1010
s.license = { :type => 'MIT',
1111
:file => '../LICENSE.md' }
1212
s.author = { 'Zingaya Inc.' => 'mobiledev@zingaya.com'}
13-
s.source = { :git => 'https://github.com/voximplant/flutter_callkit.git',
14-
:tag => '1.0.0',
15-
:branch => 'master' }
13+
s.source = { :path => '.' }
1614
s.source_files = 'Classes/**/*'
1715
s.public_header_files = 'Classes/**/*.h'
1816
s.dependency 'Flutter'

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_callkit_voximplant
22
description: Flutter SDK for CallKit integration to Flutter applications on iOS
3-
version: 1.0.0
3+
version: 1.1.0
44
homepage: https://github.com/voximplant/flutter_callkit
55
repository: https://github.com/voximplant/flutter_callkit
66

0 commit comments

Comments
 (0)