File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
android/library/src/main/java/io/package/json
kotlin/src/main/kotlin/io/appwrite/json Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package {{ sdk .namespace | caseDot }}.json
2
2
3
+ import com.google.gson.Gson
3
4
import com.google.gson.TypeAdapter
4
5
import com.google.gson.stream.JsonReader
5
6
import com.google.gson.stream.JsonToken.*
6
7
import com.google.gson.stream.JsonWriter
7
- import {{ sdk .namespace | caseDot }}.extensions.gson
8
8
import java.io.IOException
9
9
10
10
internal class PreciseNumberAdapter : TypeAdapter<Any ?>() {
11
11
12
- private val delegate = gson .getAdapter(Any::class.java)
12
+ private val delegate = Gson() .getAdapter(Any::class.java)
13
13
14
14
@Throws(IOException::class)
15
15
override fun write(out: JsonWriter?, value: Any?) {
Original file line number Diff line number Diff line change 1
1
package {{ sdk .namespace | caseDot }}.json
2
2
3
+ import com.google.gson.Gson
3
4
import com.google.gson.TypeAdapter
4
5
import com.google.gson.stream.JsonReader
5
6
import com.google.gson.stream.JsonToken.*
6
7
import com.google.gson.stream.JsonWriter
7
- import {{ sdk .namespace | caseDot }}.extensions.gson
8
8
import java.io.IOException
9
9
10
10
internal class PreciseNumberAdapter : TypeAdapter<Any ?>() {
11
11
12
- private val delegate = gson .getAdapter(Any::class.java)
12
+ private val delegate = Gson() .getAdapter(Any::class.java)
13
13
14
14
@Throws(IOException::class)
15
15
override fun write(out: JsonWriter?, value: Any?) {
You can’t perform that action at this time.
0 commit comments