Skip to content

Commit b49110f

Browse files
committed
v3.4
1 parent 61b1c08 commit b49110f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.iml
22
local.properties
33
.gradle
4-
.idea
4+
.idea
5+
.DS_Store

app/src/main/java/com/stringcare/sample/MainActivity.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ class MainActivity : AppCompatActivity() {
1616
r2d2.text = R.string.r2d2.reveal()
1717
c3po.text = R.string.c3po.reveal(false)
1818

19-
"test.json".asyncJson { json ->
19+
val json = "config.json".jsonArray { false }
20+
val bytes = "config.json".bytes { false }
21+
"test.json".asyncJson({ false }) { json ->
2022
tv_json.text = json.toString()
2123
}
22-
"test.json".asyncBytes({ false }) { bytes ->
24+
"config.json".asyncBytes { bytes ->
2325
tv_json_original.text = String(bytes)
2426
}
2527
}

0 commit comments

Comments
 (0)