File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed
android/library/src/main/java/io/package
kotlin/src/main/kotlin/io/appwrite Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 64
64
->label ('sdk.response.type ' , Response::CONTENT_TYPE_JSON )
65
65
->inject ('response ' )
66
66
->action (function (UtopiaSwooleResponse $ response ) {
67
- $ response ->json ([ 'version ' => '1.0.0 ' ]);
67
+ $ response ->json ([ 'version ' => '1.5.7 ' ]);
68
68
});
69
69
70
70
// Mock Routes
Original file line number Diff line number Diff line change @@ -36,19 +36,25 @@ import javax.net.ssl.X509TrustManager
36
36
import kotlin.coroutines.CoroutineContext
37
37
import kotlin.coroutines.resume
38
38
39
- class Client @JvmOverloads constructor(
40
- context: Context,
41
- var endpoint: String = "{{spec .endpoint }}",
42
- var endpointRealtime: String? = null,
43
- private var selfSigned: Boolean = false
44
- ) : CoroutineScope {
39
+ class Client(context: Context) : CoroutineScope {
45
40
46
41
companion object {
47
42
internal const val CHUNK_SIZE = 5*1024*1024; // 5MB
48
43
internal const val GLOBAL_PREFS = "{{ sdk .namespace | caseDot }}"
49
44
internal const val COOKIE_PREFS = "myCookie"
50
45
}
51
46
47
+ private var _endpoint: String = ""
48
+ var endpoint: String
49
+ get() = _endpoint
50
+ private set(value) {
51
+ _endpoint = value
52
+ }
53
+
54
+ private var endpointRealtime: String? = null
55
+
56
+ private var selfSigned: Boolean = false
57
+
52
58
override val coroutineContext: CoroutineContext
53
59
get() = Dispatchers.Main + job
54
60
Original file line number Diff line number Diff line change @@ -31,15 +31,21 @@ import javax.net.ssl.X509TrustManager
31
31
import kotlin.coroutines.CoroutineContext
32
32
import kotlin.coroutines.resume
33
33
34
- class Client @JvmOverloads constructor(
35
- var endPoint: String = "{{spec .endpoint }}",
36
- private var selfSigned: Boolean = false
37
- ) : CoroutineScope {
34
+ class Client: CoroutineScope {
38
35
39
36
companion object {
40
37
const val CHUNK_SIZE = 5*1024*1024; // 5MB
41
38
}
42
39
40
+ private var _endpoint: String = ""
41
+ var endpoint: String
42
+ get() = _endpoint
43
+ private set(value) {
44
+ _endpoint = value
45
+ }
46
+
47
+ private var selfSigned: Boolean = false
48
+
43
49
override val coroutineContext: CoroutineContext
44
50
get() = Dispatchers.Main + job
45
51
You can’t perform that action at this time.
0 commit comments