iOS client SDKs for Microsoft Azure
Перейти к файлу
Brandon Siegel 305d4e8c36 Add issue template config 2020-12-08 13:10:58 -08:00
.github Add issue template config 2020-12-08 13:10:58 -08:00
.jazzy Update versions in docs 2020-11-23 22:04:16 -08:00
AzureSDK.xcworkspace [CommunciationUserCredentialTests] Adding new obj-c unit tests (#503) 2020-11-19 17:37:06 -05:00
Scripts Allow docs to be built for a subset of frameworks 2020-03-12 14:00:31 -07:00
eng Sync eng/common directory with azure-sdk-tools for PR 1233 (#582) 2020-12-03 13:20:31 -08:00
examples Expose Pipeline primitives to end user (#515) 2020-10-29 15:32:37 -07:00
sdk Prepare beta.6 release (#575) 2020-11-23 16:10:50 -08:00
.gitignore Add swiftpm to gitignore 2020-01-10 16:36:47 -08:00
.swiftformat Fix swiftlint issues and apply swiftformat (#203) 2020-02-07 18:48:12 -08:00
.swiftlint.yml Fix swiftlint issues and apply swiftformat (#203) 2020-02-07 18:48:12 -08:00
AzureCommunication.podspec.json Switch to *.podspec.json format for better automation. (#564) 2020-11-26 17:02:55 +11:00
AzureCommunicationCalling.podspec.json Switch to *.podspec.json format for better automation. (#564) 2020-11-26 17:02:55 +11:00
AzureCommunicationChat.podspec.json Switch to *.podspec.json format for better automation. (#564) 2020-11-26 17:02:55 +11:00
AzureCore.podspec.json Switch to *.podspec.json format for better automation. (#564) 2020-11-26 17:02:55 +11:00
CHANGELOG.md Prepare beta.6 release (#575) 2020-11-23 16:10:50 -08:00
CONTRIBUTING.md Fixing link to contribution guide (#466) 2020-10-02 13:19:21 -07:00
LICENSE Initial commit 2019-08-06 16:37:39 -07:00
Package.swift [Communication] - [Package] - Exclude ObjC files (#572) 2020-11-23 13:01:37 -08:00
Podfile Create AzureIdentity project (#328) 2020-06-11 12:25:48 -07:00
Podfile.lock Cancellation token implementation (#345) 2020-07-31 06:11:19 -07:00
README.md Prepare beta.6 release (#575) 2020-11-23 16:10:50 -08:00
SECURITY.md Create SECURITY.md 2020-12-08 12:57:11 -08:00

README.md

Azure SDK for iOS

This repository is for active development of the Azure SDK for iOS. For consumers of the SDK we recommend visiting our versioned developer docs.

Note: The Azure SDK for iOS replaces a previous offering, known as Azure.iOS. Source code and documentation for Azure.iOS is available in the legacy branch.

Getting started

For your convenience, each service has a separate set of libraries that you can choose to use instead of one, large Azure package. To get started with a specific library, see the README.md file located in the library's project folder. You can find service libraries in the /sdk directory.

Prerequisites

  • The client libraries are written in modern Swift 5. Due to this, Xcode 10.2 or higher is required to use these libraries.
  • You must have an Azure subscription to use these libraries.

Libraries available

The latest version of the SDK is 1.0.0-beta.6. Older releases are also available.

Currently, the client libraries are in beta. These libraries follow the Azure SDK Design Guidelines for iOS and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features in AzureCore.

The following libraries are currently in beta:

Core

Azure Communication Services

Note: The SDK is currently in beta. The API surface and feature sets are subject to change at any time before they become generally available. We do not currently recommend them for production use.

Install the libraries

To install the Azure client libraries for iOS, we recommend you use Swift Package Manager. As an alternative, you may also integrate the libraries using CocoaPods.

Add a package dependency with Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. Its integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Xcode comes with built-in support for Swift Package Manager and source control accounts and makes it easy to leverage available Swift packages. Use Xcode to manage the versions of package dependencies and make sure your project has the most up-to-date code changes.

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 this repository and the version specifier you wish to use:

    dependencies: [
        ...
        .package(url: "https://github.com/Azure/azure-sdk-for-ios.git", from: "1.0.0-beta.6")
    ],

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", ...])
    ]
)

Integrate the client libraries with 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 'AzureCommunicationChat', '~> 1.0.0-beta.6'
  ...
end

Then, run the following command:

$ pod install

Need help?

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Contributing

For details on contributing to this repository, see the contributing guide.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Impressions