File tree Expand file tree Collapse file tree 18 files changed +89
-42
lines changed
example/src/main/java/io/appwrite/android/ui/accounts
library/src/main/java/io/appwrite Expand file tree Collapse file tree 18 files changed +89
-42
lines changed Original file line number Diff line number Diff line change
1
+ name : Auto-close External Pull Requests
2
+
3
+ on :
4
+ pull_request_target :
5
+ types : [opened, reopened]
6
+
7
+ jobs :
8
+ auto_close :
9
+ uses : appwrite/.github/.github/workflows/autoclose.yml@main
10
+ secrets :
11
+ GH_AUTO_CLOSE_PR_TOKEN : ${{ secrets.GH_AUTO_CLOSE_PR_TOKEN }}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ repositories {
38
38
Next, add the dependency to your project's ` build.gradle(.kts) ` file:
39
39
40
40
``` groovy
41
- implementation("io.appwrite:sdk-for-android:6.0 .0")
41
+ implementation("io.appwrite:sdk-for-android:6.1 .0")
42
42
```
43
43
44
44
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
49
49
<dependency >
50
50
<groupId >io.appwrite</groupId >
51
51
<artifactId >sdk-for-android</artifactId >
52
- <version >6.0 .0</version >
52
+ <version >6.1 .0</version >
53
53
</dependency >
54
54
</dependencies >
55
55
```
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ class AccountsViewModel : ViewModel() {
81
81
account.createOAuth2Session(
82
82
activity,
83
83
OAuthProvider .FACEBOOK ,
84
- " appwrite-callback-6070749e6acd4://demo .appwrite.io/auth/oauth2/success" ,
85
- " appwrite-callback-6070749e6acd4://demo .appwrite.io/auth/oauth2/failure"
84
+ " appwrite-callback-6070749e6acd4://cloud .appwrite.io/auth/oauth2/success" ,
85
+ " appwrite-callback-6070749e6acd4://cloud .appwrite.io/auth/oauth2/failure"
86
86
)
87
87
} catch (e: Exception ) {
88
88
_error .postValue(Event (e))
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class Client @JvmOverloads constructor(
86
86
" x-sdk-name" to " Android" ,
87
87
" x-sdk-platform" to " client" ,
88
88
" x-sdk-language" to " android" ,
89
- " x-sdk-version" to " 6.0 .0" ,
89
+ " x-sdk-version" to " 6.1 .0" ,
90
90
" x-appwrite-response-format" to " 1.6.0"
91
91
)
92
92
config = mutableMapOf ()
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ enum class ImageFormat(val value: String) {
12
12
@SerializedName(" png" )
13
13
PNG (" png" ),
14
14
@SerializedName(" webp" )
15
- WEBP (" webp" );
15
+ WEBP (" webp" ),
16
+ @SerializedName(" avif" )
17
+ AVIF (" avif" );
16
18
17
19
override fun toString () = value
18
20
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ data class Document<T>(
41
41
* Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
42
42
*/
43
43
@SerializedName(" \$ permissions" )
44
- val permissions : List <Any >,
44
+ val permissions : List <String >,
45
45
46
46
/* *
47
47
* Additional properties
@@ -66,7 +66,7 @@ data class Document<T>(
66
66
databaseId : String ,
67
67
createdAt : String ,
68
68
updatedAt : String ,
69
- permissions : List <Any >,
69
+ permissions : List <String >,
70
70
data : Map <String , Any >
71
71
) = Document <Map <String , Any >>(
72
72
id,
@@ -88,7 +88,7 @@ data class Document<T>(
88
88
databaseId = map[" \$ databaseId" ] as String ,
89
89
createdAt = map[" \$ createdAt" ] as String ,
90
90
updatedAt = map[" \$ updatedAt" ] as String ,
91
- permissions = map[" \$ permissions" ] as List <Any >,
91
+ permissions = map[" \$ permissions" ] as List <String >,
92
92
data = map.jsonCast(to = nestedType)
93
93
)
94
94
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ data class Execution(
29
29
* Execution roles.
30
30
*/
31
31
@SerializedName(" \$ permissions" )
32
- val permissions : List <Any >,
32
+ val permissions : List <String >,
33
33
34
34
/* *
35
35
* Function ID.
@@ -139,7 +139,7 @@ data class Execution(
139
139
id = map[" \$ id" ] as String ,
140
140
createdAt = map[" \$ createdAt" ] as String ,
141
141
updatedAt = map[" \$ updatedAt" ] as String ,
142
- permissions = map[" \$ permissions" ] as List <Any >,
142
+ permissions = map[" \$ permissions" ] as List <String >,
143
143
functionId = map[" functionId" ] as String ,
144
144
trigger = map[" trigger" ] as String ,
145
145
status = map[" status" ] as String ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ data class File(
35
35
* File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
36
36
*/
37
37
@SerializedName(" \$ permissions" )
38
- val permissions : List <Any >,
38
+ val permissions : List <String >,
39
39
40
40
/* *
41
41
* File name.
@@ -98,7 +98,7 @@ data class File(
98
98
bucketId = map[" bucketId" ] as String ,
99
99
createdAt = map[" \$ createdAt" ] as String ,
100
100
updatedAt = map[" \$ updatedAt" ] as String ,
101
- permissions = map[" \$ permissions" ] as List <Any >,
101
+ permissions = map[" \$ permissions" ] as List <String >,
102
102
name = map[" name" ] as String ,
103
103
signature = map[" signature" ] as String ,
104
104
mimeType = map[" mimeType" ] as String ,
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ data class Membership(
32
32
val userId : String ,
33
33
34
34
/* *
35
- * User name.
35
+ * User name. Hide this attribute by toggling membership privacy in the Console.
36
36
*/
37
37
@SerializedName(" userName" )
38
38
val userName : String ,
39
39
40
40
/* *
41
- * User email address.
41
+ * User email address. Hide this attribute by toggling membership privacy in the Console.
42
42
*/
43
43
@SerializedName(" userEmail" )
44
44
val userEmail : String ,
@@ -74,7 +74,7 @@ data class Membership(
74
74
val confirm : Boolean ,
75
75
76
76
/* *
77
- * Multi factor authentication status, true if the user has MFA enabled or false otherwise.
77
+ * Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
78
78
*/
79
79
@SerializedName(" mfa" )
80
80
val mfa : Boolean ,
@@ -83,7 +83,7 @@ data class Membership(
83
83
* User list of roles
84
84
*/
85
85
@SerializedName(" roles" )
86
- val roles : List <Any >,
86
+ val roles : List <String >,
87
87
88
88
) {
89
89
fun toMap (): Map <String , Any > = mapOf (
@@ -120,7 +120,7 @@ data class Membership(
120
120
joined = map[" joined" ] as String ,
121
121
confirm = map[" confirm" ] as Boolean ,
122
122
mfa = map[" mfa" ] as Boolean ,
123
- roles = map[" roles" ] as List <Any >,
123
+ roles = map[" roles" ] as List <String >,
124
124
)
125
125
}
126
126
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ data class MfaRecoveryCodes(
11
11
* Recovery codes.
12
12
*/
13
13
@SerializedName(" recoveryCodes" )
14
- val recoveryCodes : List <Any >,
14
+ val recoveryCodes : List <String >,
15
15
16
16
) {
17
17
fun toMap (): Map <String , Any > = mapOf (
@@ -24,7 +24,7 @@ data class MfaRecoveryCodes(
24
24
fun from (
25
25
map : Map <String , Any >,
26
26
) = MfaRecoveryCodes (
27
- recoveryCodes = map[" recoveryCodes" ] as List <Any >,
27
+ recoveryCodes = map[" recoveryCodes" ] as List <String >,
28
28
)
29
29
}
30
30
}
You can’t perform that action at this time.
0 commit comments