Skip to content

Commit 0a421e4

Browse files
Merge branch 'cybex-dev:master' into fixes
2 parents 2a27aa8 + 0d3cc65 commit 0a421e4

File tree

13 files changed

+71
-27
lines changed

13 files changed

+71
-27
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.1
2+
3+
* Fix: [iOS] Race condition ending call remotely and locally results in a "End Call Failed: The operation couldn’t be completed." error. [Issue #184](https://github.com/cybex-dev/twilio_voice/issues/184)
4+
* Fix: [iOS] Plugin messages sent via Event Sink throwing an error due to sending from background thread. [Issue #256](https://github.com/cybex-dev/twilio_voice/issues/256)
5+
16
## 0.2.0+1
27

38
* Fix: [Web] `window.localStorage` deprecated members

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ apply plugin: 'org.jetbrains.kotlin.android'
3232
android {
3333
namespace 'com.twilio.twilio_voice'
3434
compileSdk 35
35-
3635
compileOptions {
3736
sourceCompatibility JavaVersion.VERSION_1_8
3837
targetCompatibility JavaVersion.VERSION_1_8

android/src/main/kotlin/com/twilio/twilio_voice/TwilioVoicePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ class TwilioVoicePlugin : FlutterPlugin, MethodCallHandler, EventChannel.StreamH
17351735
}
17361736
}.toString()
17371737
// callSid = callHandle
1738-
logEvents("", arrayOf("Answer", from, to, params))
1738+
logEvents("", arrayOf("Answer", from, to, CallDirection.INCOMING.label, params))
17391739
}
17401740

17411741
TVNativeCallActions.ACTION_DTMF -> {

android/src/main/kotlin/com/twilio/twilio_voice/types/TelecomManagerExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ object TelecomManagerExtension {
6060
}
6161

6262
fun TelecomManager.openPhoneAccountSettings(activity: Activity) {
63-
if (Build.MANUFACTURER.equals("Samsung", ignoreCase = true)) {
63+
if (Build.MANUFACTURER.equals("Samsung", ignoreCase = true)|| Build.MANUFACTURER.equals("OnePlus", ignoreCase = true)) {
6464
try {
6565
val intent = Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS)
6666
intent.component = ComponentName(

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -164,7 +164,7 @@
164164
97C146E61CF9000F007C117D /* Project object */ = {
165165
isa = PBXProject;
166166
attributes = {
167-
LastUpgradeCheck = 1020;
167+
LastUpgradeCheck = 1510;
168168
ORGANIZATIONNAME = "";
169169
TargetAttributes = {
170170
97C146ED1CF9000F007C117D = {
@@ -211,10 +211,12 @@
211211
/* Begin PBXShellScriptBuildPhase section */
212212
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
213213
isa = PBXShellScriptBuildPhase;
214+
alwaysOutOfDate = 1;
214215
buildActionMask = 2147483647;
215216
files = (
216217
);
217218
inputPaths = (
219+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
218220
);
219221
name = "Thin Binary";
220222
outputPaths = (
@@ -247,6 +249,7 @@
247249
};
248250
9740EEB61CF901F6004384FC /* Run Script */ = {
249251
isa = PBXShellScriptBuildPhase;
252+
alwaysOutOfDate = 1;
250253
buildActionMask = 2147483647;
251254
files = (
252255
);
@@ -361,7 +364,7 @@
361364
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
362365
GCC_WARN_UNUSED_FUNCTION = YES;
363366
GCC_WARN_UNUSED_VARIABLE = YES;
364-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
367+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
365368
MTL_ENABLE_DEBUG_INFO = NO;
366369
SDKROOT = iphoneos;
367370
SUPPORTED_PLATFORMS = iphoneos;
@@ -381,7 +384,7 @@
381384
DEVELOPMENT_TEAM = 366269TEN6;
382385
ENABLE_BITCODE = NO;
383386
INFOPLIST_FILE = Runner/Info.plist;
384-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
387+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
385388
LD_RUNPATH_SEARCH_PATHS = (
386389
"$(inherited)",
387390
"@executable_path/Frameworks",
@@ -442,7 +445,7 @@
442445
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
443446
GCC_WARN_UNUSED_FUNCTION = YES;
444447
GCC_WARN_UNUSED_VARIABLE = YES;
445-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
448+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
446449
MTL_ENABLE_DEBUG_INFO = YES;
447450
ONLY_ACTIVE_ARCH = YES;
448451
SDKROOT = iphoneos;
@@ -492,7 +495,7 @@
492495
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
493496
GCC_WARN_UNUSED_FUNCTION = YES;
494497
GCC_WARN_UNUSED_VARIABLE = YES;
495-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
498+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
496499
MTL_ENABLE_DEBUG_INFO = NO;
497500
SDKROOT = iphoneos;
498501
SUPPORTED_PLATFORMS = iphoneos;
@@ -514,7 +517,7 @@
514517
DEVELOPMENT_TEAM = 366269TEN6;
515518
ENABLE_BITCODE = NO;
516519
INFOPLIST_FILE = Runner/Info.plist;
517-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
520+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
518521
LD_RUNPATH_SEARCH_PATHS = (
519522
"$(inherited)",
520523
"@executable_path/Frameworks",
@@ -539,7 +542,7 @@
539542
DEVELOPMENT_TEAM = 366269TEN6;
540543
ENABLE_BITCODE = NO;
541544
INFOPLIST_FILE = Runner/Info.plist;
542-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
545+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
543546
LD_RUNPATH_SEARCH_PATHS = (
544547
"$(inherited)",
545548
"@executable_path/Frameworks",

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

example/ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
</array>
5151
<key>UIViewControllerBasedStatusBarAppearance</key>
5252
<false/>
53+
<key>CADisableMinimumFrameDurationOnPhone</key>
54+
<true/>
55+
<key>UIApplicationSupportsIndirectInputEvents</key>
56+
<true/>
5357
</dict>
5458
</plist>

0 commit comments

Comments
 (0)