You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 0.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
10
+
**This SDK is compatible with Appwrite server version 0.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
10
11
11
-
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.
12
-
Use the Flutter SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
13
-
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
12
+
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 Flutter 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)
14
13
15
14
16
15
@@ -22,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
22
21
23
22
```yml
24
23
dependencies:
25
-
appwrite: ^0.6.4
24
+
appwrite: ^0.7.0
26
25
```
27
26
28
27
You can install packages from the command line:
@@ -37,27 +36,14 @@ pub get appwrite
37
36
### Add your Flutter Platform
38
37
To init your SDK and start interacting with Appwrite services, you need to add a new Flutter platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before, and click the 'Add Platform' button.
39
38
40
-
From the options, choose to add a new **Flutter** platform and add your app credentials. Appwrite Flutter SDK currently supports building apps for both iOSand Android.
39
+
From the options, choose to add a new **Flutter** platform and add your app credentials. Appwrite Flutter SDK currently supports building apps for Android, iOS, Linux, Mac OS, Web and Windows.
41
40
42
41
If you are building your Flutter application for multiple devices, you have to follow this process for each different device.
43
42
44
-
#### iOS
45
-
For **iOS** add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
46
-
47
-
#### Android
48
-
For **Android** add your app <u>name</u> and <u>package name</u>, Your package name is generally the applicationId in your app-level build.gradle file. By registering your new app platform, you are allowing your app to communicate with the Appwrite API.
49
-
50
-
### iOS
51
-
52
-
The Appwrite SDK uses ASWebAuthenticationSession on iOS 12+ and SFAuthenticationSession on iOS 11 to allow OAuth authentication. You have to change your iOS Deployment Target in Xcode to be iOS >= 11 to be able to build your app on an emulator or a real device.
53
-
54
-
1. In Xcode, open Runner.xcworkspace in your app's ios folder.
55
-
2. To view your app's settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.
56
-
3. Select the General tab.
57
-
4. In Deployment Info, 'Target' select iOS 11.0
58
-
59
43
### Android
60
-
In order to capture the Appwrite OAuth callback url, the following activity needs to be added to your [AndroidManifest.xml](https://github.com/appwrite/playground-for-flutter/blob/master/android/app/src/main/AndroidManifest.xml). Be sure to relpace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in you project settings screen in your Appwrite console.
44
+
For **Android** first add your app <u>name</u> and <u>package name</u>, Your package name is generally the **applicationId** in your app-level <ahref="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/android/app/build.gradle#L41"target="_blank"rel="noopener">build.gradle</a> file. By registering your new app platform, you are allowing your app to communicate with the Appwrite API.
45
+
46
+
In order to capture the Appwrite OAuth callback url, the following activity needs to be added to your [AndroidManifest.xml](https://github.com/appwrite/playground-for-flutter/blob/master/android/app/src/main/AndroidManifest.xml). Be sure to replace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in your project settings screen in the console.
61
47
62
48
```xml
63
49
<manifest>
@@ -74,15 +60,34 @@ In order to capture the Appwrite OAuth callback url, the following activity need
74
60
</manifest>
75
61
```
76
62
63
+
### iOS
64
+
For **iOS** first add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
65
+
66
+
The Appwrite SDK uses ASWebAuthenticationSession on iOS 12+ and SFAuthenticationSession on iOS 11 to allow OAuth authentication. You have to change your iOS Deployment Target in Xcode to be iOS >= 11 to be able to build your app on an emulator or a real device.
67
+
68
+
1. In Xcode, open Runner.xcworkspace in your app's ios folder.
69
+
2. To view your app's settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.
70
+
3. Select the General tab.
71
+
4. In Deployment Info, 'Target' select iOS 11.0
72
+
73
+
### Linux
74
+
For **Linux** add your app <u>name</u> and <u>package name</u>, Your package name is generally the **name** in your <ahref="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/pubspec.yaml#L1"target="_blank"rel="noopener">pubspec.yaml<a> file. If you cannot find the correct package name, run the application in linux, and make any request with proper exception handling, you should get the application ID needed to add in the received error message.
75
+
76
+
### Mac OS
77
+
For **Mac OS** add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
78
+
77
79
### Web
78
80
Appwrite 0.7, and the Appwrite Flutter SDK 0.3.0 have added support for Flutter Web. To build web apps that integrate with Appwrite successfully, all you have to do is add a web platform on your Appwrite project's dashboard and list the domain your website will use to allow communication to the Appwrite API.
79
81
80
82
#### Flutter Web Cross-Domain Communication & Cookies
81
83
While running Flutter Web, make sure your Appwrite server and your Flutter client are using the same top-level domain and the same protocol (HTTP or HTTPS) to communicate. When trying to communicate between different domains or protocols, you may receive HTTP status error 401 because some modern browsers block cross-site or insecure cookies for enhanced privacy. In production, Appwrite allows you set multiple [custom-domains](https://appwrite.io/docs/custom-domains) for each project.
82
84
85
+
### Windows
86
+
For **Windows** add your app <u>name</u> and <u>package name</u>, Your package name is generally the **name** in your <ahref="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/pubspec.yaml#L1"target="_blank"rel="noopener">pubspec.yaml</a> file. If you cannot find the correct package name, run the application in windows, and make any request with proper exception handling, you should get the application id needed to add in the received error message.
87
+
83
88
### Init your SDK
84
89
85
-
<p>Initialize your SDK code with your project ID, which can be found in your project settings page.
90
+
<p>Initialize your SDK with your Appwrite server API endpoint and project ID, which can be found in your project settings page.
86
91
87
92
```dart
88
93
import 'package:appwrite/appwrite.dart';
@@ -102,7 +107,7 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
102
107
103
108
### Make Your First Request
104
109
105
-
<p>Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.
110
+
<p>Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
106
111
107
112
```dart
108
113
// Register User
@@ -156,12 +161,13 @@ try {
156
161
```
157
162
158
163
### Learn more
159
-
You can use followng resources to learn more and get help
164
+
You can use following resources to learn more and get help
160
165
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-flutter)
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.
0 commit comments