Azure SDK for iOS (May 2021)
The Azure SDK team is pleased to announce our May 2021 client library releases.
GA
- Azure Communication Services Calling
- Azure Communication Services Common
Beta
- Azure Core
Installation Instructions
To install the latest GA and beta libraries, we recommend you use the Swift Package Manager. As an alternative, you may also integrate the libraries using CocoaPods.
Xcode
To add the Azure SDK for iOS to your application, follow the instructions in Adding Package Dependencies to Your App:
With your project open in Xcode 11 or later, select File > Swift Packages > Add Package Dependency… Enter the clone URL of this repository: https://github.com/Azure/azure-sdk-for-ios.git and click Next. For the version rule, specify the exact version or version range you wish to use with your application and click Next. Finally, place a checkmark next to each client library you wish to use with your application, ensure your application target is selected in the Add to target dropdown, and click Finish.
Swift CLI
To add the Azure SDK for iOS to your application, follow the example in Importing Dependencies:
Open your project’s Package.swift file and add a new package dependency to your project’s dependencies section, specifying the clone URL of the repository and the version specifier you wish to use:
dependencies: [
...
.package(url: "https://github.com/Azure/SwiftPM-AzureCommunicationCommon", from: "1.0.0")
.package(url: "https://github.com/Azure/SwiftPM-AzureCommunicationChat", .branch("master"))
.package(url: "https://github.com/Azure/SwiftPM-AzureCore", from: "1.0.0-beta.12")
],
],
Next, add each client library you wish to use in a target to the target’s array of dependencies:
targets: [
...
.target(
name: "MyTarget",
dependencies: [
"AzureCommunicationChat"
"AzureCommunicationCommon",
"AzureCore",
...
]
)
]
Cocoapods
CocoaPods is a dependency manager for Objective-C and Swift projects. You can install it with the following command:
$ [sudo] gem install cocoapods
CocoaPods 1.5+ is required.
To integrate one or more client libraries into your project using CocoaPods, specify them in your Podfile, providing the version specifier you wish to use. To ensure compatibility when using multiple client libraries in the same project, use the same version specifier for all Azure SDK client libraries within the project:
platform :ios, '12.0'
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
target 'MyTarget' do
pod 'AzureCommunicationCalling', '1.0.1'
pod 'AzureCommunicationChat', '1.0.0-beta.11'
pod 'AzureCommunicationCommon', '1.0.0'
pod 'AzureCore', '1.0.0-beta.12'
...
end
Then, run the following command:
$ pod install
Feedback
If you have a bug or feature request for one of the libraries, please post an issue to GitHub.
Release highlights
Azure Communication Services Calling
1.0.1 (Changelog)
Bug fixes
- Missing required key bundle version for
1.0.0.
1.0.0 (Changelog)
Breaking changes
- Video removed/added event are not raised when application stops rendering an incoming video.
- Teams interop and all other preview APIs are no longer available in the mainstream SDK drop. Please use libraries marked with the -beta suffix for these features.
1.0.0-beta.12 (Changelog)
New features
- A
DeviceManagerinstance can be obtained irrespective ofCallAgentcreation.
Breaking changes
- Added
Nullabilityannotations for parameters in delegate methods, properties and return types in init. (e.g. this removes the need for the application to force un-wrap objects created by the SDK where applicable). - Renamed delegate method signatures to conform with Swift guidelines. Similar to UIApplicationDelegate.
- Blocked
CallAgentcreation with same user. - Added
IsMutedevent to theCallclass. The event will be triggered when the call is locally or remotely muted. - Renamed multiple properties and methods:
Callclass:- Renamed the
callDirectionproperty todirection. - Renamed the
isMicrophoneMutedproperty toisMuted.
- Renamed the
VideoOptionsclass:- Renamed the
LocalVideoStreamproperty toLocalVideoStreams, making it also an array. - The constructor for
VideoOptionsnow takes an array ofLocalVideoStreamas a parameter.
- Renamed the
- Renamed
RenderingOptionstoCreateViewOptions. startCallandjoinAPI’s onCallAgentare now asynchronous.- Made mandatory to pass a completion handler block for all async APIs.
Bug fixes
- Fixed an issue causing crashes when another guest user joins a Teams meeting with video on.
- Fixed an issue causing crashes if the user provided an invalid teams meeting link.
- Fixed an issue causing crashes when joining a call with muted and audio permission was not granted.
- Fixed an issue causing crashes when another video guest user joined a Teams meeting from Web/App.
- Turning the local video off/on no longer quickly shows a blank local video.
- Video calls now properly show the video stream of the device’s camera to the user.
- Answering an incoming call with video now properly renders the receiver’s video stream.
- Answering an incoming call with video now properly renders the caller’s video stream.
OnRemoteParticipantsUpdatedevent no longer updates the participant state toIdlewhen the participant isInLobby.- Speaking Change Listeners are no longer triggered unexpectedly.
Azure Communication Services Common
1.0.0 (Changelog)
Breaking Changes
AzureCommunicationhas been renamedAzureCommunicationCommon.
1.0.0-beta.12 (Changelog)
Breaking Changes
- Marking
AzureCommunicationas deprecated in favor ofAzureCommunicationCommon.
Azure Core
1.0.0-beta.12 (Changelog)
1.0.0-beta.11 (Changelog)
Need help
- For reference documentation visit the Azure SDK for iOS documentation.
- For tutorials, samples, quick starts and other documentation, visit the Azure SDK for iOS repository.
- File an issue via Github Issues.
- Check previous questions or ask new ones on
StackOverflow using the
azureandiostags.
Latest Releases
View all the latest versions of iOS packages here.