Skip to content

Commit 1bfeb88

Browse files
author
lask
authored
Merge pull request #45 from lakscastro/fix/RE-ADD-SIMPLE-STORAGE
Fix Missing `child` member of `DocumentFile` class
2 parents 2ed784c + d298d69 commit 1bfeb88

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

android/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
repositories {
77
google()
88
jcenter()
9+
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
910
}
1011

1112
dependencies {
@@ -44,4 +45,9 @@ dependencies {
4445
* computation and queries outside the Main (UI) Thread
4546
*/
4647
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"
48+
49+
/**
50+
* `SimpleStorage` library
51+
*/
52+
implementation "com.anggrayudi:storage:1.3.0"
4753
}

android/src/main/kotlin/io/lakscastro/sharedstorage/storageaccessframework/DocumentFileHelperApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import io.lakscastro.sharedstorage.storageaccessframework.lib.*
2929
* natively by Android.
3030
*
3131
* This is why it is separated from the original and raw `DocumentFileApi` which is the class that
32-
* only exposes the APIs without modifying them
32+
* only exposes the APIs without modifying them (Mirror API).
3333
*
3434
* Then here is where we can implement the main abstractions/use-cases which would be available
35-
* globally without modifying the strict APIs
35+
* globally without modifying the strict APIs.
3636
*/
3737
internal class DocumentFileHelperApi(private val plugin: SharedStoragePlugin) :
3838
MethodChannel.MethodCallHandler,

android/src/main/kotlin/io/lakscastro/sharedstorage/storageaccessframework/lib/DocumentCommon.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import android.os.Build
88
import android.provider.DocumentsContract
99
import android.util.Base64
1010
import androidx.annotation.RequiresApi
11+
import androidx.annotation.RestrictTo
1112
import androidx.documentfile.provider.DocumentFile
1213
import io.lakscastro.sharedstorage.plugin.API_19
1314
import io.lakscastro.sharedstorage.plugin.API_21
1415
import io.lakscastro.sharedstorage.plugin.API_24
1516
import java.io.ByteArrayOutputStream
1617
import java.io.Closeable
18+
import java.io.File
1719

1820
/**
1921
* Helper class to make more easy to handle callbacks using Kotlin syntax

0 commit comments

Comments
 (0)