Skip to content

Commit 170ca47

Browse files
target right branch
1 parent 5f72445 commit 170ca47

File tree

170 files changed

+9768
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+9768
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Change Log

LICENSE

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
1-
BSD 3-Clause License
2-
3-
Copyright (c) 2021, Appwrite
1+
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
42
All rights reserved.
53

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
85

9-
1. Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
117

12-
2. Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
159

16-
3. Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
10+
3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1911

20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Package.swift

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// swift-tools-version:5.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Appwrite",
7+
products: [
8+
.library(
9+
name: "Appwrite",
10+
targets: ["Appwrite", "AppwriteModels"]
11+
),
12+
],
13+
dependencies: [
14+
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
15+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.32.0")
16+
],
17+
targets: [
18+
.target(
19+
name: "Appwrite",
20+
dependencies: [
21+
.product(name: "AsyncHTTPClient", package: "async-http-client"),
22+
.product(name: "NIOWebSocket", package: "swift-nio"),
23+
"AppwriteModels"
24+
]
25+
),
26+
.target(
27+
name: "AppwriteModels"
28+
),
29+
.testTarget(
30+
name: "AppwriteTests",
31+
dependencies: [
32+
"Appwrite"
33+
]
34+
)
35+
],
36+
swiftLanguageVersions: [.v5]
37+
)

README.md

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,72 @@
1-
# sdk-for-swift
2-
[READ-ONLY] Official Appwrite Swift SDK 🦅🍎
1+
# Appwrite Swift SDK
2+
3+
![Cocoapods](https://img.shields.io/cocoapods/v/Appwrite.svg?color=green&style=flat-square)
4+
![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square)
5+
![License](https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square)
6+
![Version](https://img.shields.io/badge/api%20version-0.11.0-blue.svg?style=flat-square)
7+
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
8+
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
9+
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
10+
11+
**This SDK is compatible with Appwrite server version 0.11.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-swift/releases).**
12+
13+
> This is the Swift SDK for integrating with Appwrite from your Swift server-side code. If you're looking for the Apple SDK you should check [appwrite/sdk-for-apple](https://github.com/appwrite/sdk-for-apple)
14+
15+
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Swift SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
16+
17+
![Appwrite](https://appwrite.io/images/github.png)
18+
19+
## Installation
20+
21+
### Xcode with Swift Package Manager
22+
23+
The Appwrite Swift SDK is available via multiple package managers, including Swift Package Manager. In order to use the Appwrite Swift SDK from Xcode, select File > Swift Packages > **Add Package Dependency**
24+
25+
>>IMAGE<<
26+
27+
In the dialog that appears, enter the Appwrite Swift SDK [package URL]([email protected]:appwrite/sdk-for-swift.git) and click **Next**.
28+
29+
Once the repository information is loaded, add your version rules and click **Next** again.
30+
31+
>>IMAGE<<
32+
33+
On the final screen, make sure you see `Appwrite` as a product selected for your target:
34+
35+
>>IMAGE<<
36+
37+
### Swift Package Manager
38+
39+
Add the package to your `Package.swift` dependencies:
40+
41+
```swift
42+
dependencies: [
43+
.package(url: "[email protected]:appwrite/sdk-for-swift.git", from: "0.1.0"),
44+
],
45+
```
46+
47+
Then add it to your target:
48+
49+
```swift
50+
targets: [
51+
.target(
52+
name: "YourAppTarget",
53+
dependencies: [
54+
.product(name: "", package: "sdk-for-swift")
55+
]
56+
),
57+
```
58+
59+
### Cocoapods
60+
61+
```ruby
62+
pod '', git: '[email protected]:appwrite/sdk-for-swift.git', tag: '0.1.0'
63+
```
64+
65+
66+
## Contribution
67+
68+
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
69+
70+
## License
71+
72+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.

0 commit comments

Comments
 (0)