Skip to content

Commit

Permalink
Merge pull request #1 from zjc19891106/main
Browse files Browse the repository at this point in the history
AgoraChat Swift package manager support
  • Loading branch information
lixm1988 authored Jul 6, 2022
2 parents a3b17f4 + 5ad199d commit 9bed034
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Agora.io Community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version: 5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "AgoraChat_iOS",
defaultLocalization: "en",
platforms: [.iOS(.v10)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "AgoraChat",
targets: ["AgoraChat"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.binaryTarget(name: "AgoraChat", url: "https://download.agora.io/swiftpm/Agora_Chat_iOS/1.0.6/AgoraChat.xcframework.zip", checksum: "ab5ea482a23d696e8e2e542b82d5937588a6e673654ed92549f333d285f48815"),
]
)
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# Agora Swift Package Manager

<p align="center">
<img src="https://github.com/AgoraIO/AgoraRtcEngine_iOS/actions/workflows/swiftpm-resolve.yml/badge.svg"/>
</p>
Install AgoraChat_iOS SDK easily with Swift Package Manager.

![](media/swiftpm-agora.png)

[Click here for full documentation](https://docs-preprod.agora.io/en/agora-chat/agora_chat_overview?platform=iOS).

## Note

The current version does not support the M1 Mac iPhone Simulator.

## Installation

Add the URL of this repository to your Xcode 12+ Project.

Go to File > Swift Packages > Add Package Dependency, and paste in the link to this repository:

`https://github.com/AgoraIO/AgoraChat_iOS`

---

If you have issues installing this Swift Package:

In Xcode's File menu, select 'Swift Packages' and then 'Reset Package Caches'.
Binary file added media/swiftpm-agora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9bed034

Please sign in to comment.