File tree Expand file tree Collapse file tree
src/main/kotlin/io/lakscastro/sharedstorage/storageaccessframework Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 */
3737internal class DocumentFileHelperApi (private val plugin : SharedStoragePlugin ) :
3838 MethodChannel .MethodCallHandler ,
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ import android.os.Build
88import android.provider.DocumentsContract
99import android.util.Base64
1010import androidx.annotation.RequiresApi
11+ import androidx.annotation.RestrictTo
1112import androidx.documentfile.provider.DocumentFile
1213import io.lakscastro.sharedstorage.plugin.API_19
1314import io.lakscastro.sharedstorage.plugin.API_21
1415import io.lakscastro.sharedstorage.plugin.API_24
1516import java.io.ByteArrayOutputStream
1617import java.io.Closeable
18+ import java.io.File
1719
1820/* *
1921 * Helper class to make more easy to handle callbacks using Kotlin syntax
You can’t perform that action at this time.
0 commit comments