-
Notifications
You must be signed in to change notification settings - Fork 149
feat: Flutter SDK update for version 24.1.0 #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,8 +40,8 @@ class ClientBrowser extends ClientBase with ClientMixin { | |
| 'x-sdk-name': 'Flutter', | ||
| 'x-sdk-platform': 'client', | ||
| 'x-sdk-language': 'flutter', | ||
| 'x-sdk-version': '24.0.0', | ||
| 'X-Appwrite-Response-Format': '1.9.2', | ||
| 'x-sdk-version': '24.1.0', | ||
| 'X-Appwrite-Response-Format': '1.9.4', | ||
| }; | ||
|
|
||
| config = {}; | ||
|
|
@@ -95,6 +95,14 @@ class ClientBrowser extends ClientBase with ClientMixin { | |
| return this; | ||
| } | ||
|
|
||
| /// The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes. | ||
| @override | ||
| ClientBrowser setCookie(value) { | ||
| config['cookie'] = value; | ||
| addHeader('Cookie', value); | ||
| return this; | ||
| } | ||
|
Comment on lines
+98
to
+104
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /// Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data. | ||
| @override | ||
| ClientBrowser setImpersonateUserId(value) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,8 +58,8 @@ class ClientIO extends ClientBase with ClientMixin { | |
| 'x-sdk-name': 'Flutter', | ||
| 'x-sdk-platform': 'client', | ||
| 'x-sdk-language': 'flutter', | ||
| 'x-sdk-version': '24.0.0', | ||
| 'X-Appwrite-Response-Format': '1.9.2', | ||
| 'x-sdk-version': '24.1.0', | ||
| 'X-Appwrite-Response-Format': '1.9.4', | ||
| }; | ||
|
|
||
| config = {}; | ||
|
|
@@ -121,6 +121,14 @@ class ClientIO extends ClientBase with ClientMixin { | |
| return this; | ||
| } | ||
|
|
||
| /// The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes. | ||
| @override | ||
| ClientIO setCookie(value) { | ||
| config['cookie'] = value; | ||
| addHeader('Cookie', value); | ||
| return this; | ||
| } | ||
|
Comment on lines
+124
to
+130
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /// Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data. | ||
| @override | ||
| ClientIO setImpersonateUserId(value) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.