expo-tiddlywiki-filesystem-android-external-storage 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/android/build.gradle +3 -1
- package/android/src/main/java/expo/modules/externalstorage/ExternalStorageModule.kt +190 -954
- package/android/src/main/java/expo/modules/externalstorage/FileSystem.kt +477 -0
- package/android/src/main/java/expo/modules/externalstorage/GitBundle.kt +149 -0
- package/android/src/main/java/expo/modules/externalstorage/GitHelper.kt +46 -1174
- package/android/src/main/java/expo/modules/externalstorage/GitHistory.kt +192 -0
- package/android/src/main/java/expo/modules/externalstorage/GitLocal.kt +254 -0
- package/android/src/main/java/expo/modules/externalstorage/GitNetwork.kt +156 -0
- package/android/src/main/java/expo/modules/externalstorage/GitRepository.kt +154 -0
- package/android/src/main/java/expo/modules/externalstorage/GitStatus.kt +265 -0
- package/android/src/main/java/expo/modules/externalstorage/GitTransport.kt +49 -0
- package/android/src/main/java/expo/modules/externalstorage/TiddlyWikiParser.kt +262 -0
- package/app.plugin.js +36 -2
- package/package.json +3 -2
- package/plugin.js +36 -2
- package/tsconfig.json +8 -0
package/README.md
CHANGED
|
@@ -118,6 +118,16 @@ Deletes a directory recursively.
|
|
|
118
118
|
### `isExternalStorageManager(): Promise<boolean>`
|
|
119
119
|
Checks if the `MANAGE_EXTERNAL_STORAGE` permission is granted (Android 11+).
|
|
120
120
|
|
|
121
|
+
## JGit Version Note
|
|
122
|
+
|
|
123
|
+
This module bundles **JGit 6.2.x** (not the latest 6.10.x) for Android compatibility.
|
|
124
|
+
|
|
125
|
+
Newer JGit versions (6.3+) call Java 9+ APIs (`InputStream.readNBytes`, `InputStream.transferTo`) that are **not available on Android at any API level** — Android's `desugar_jdk_libs` only backfills Java 8 language APIs, not these Java 9 I/O methods. This has been confirmed on Android 12 (API 31) and is expected to affect all current Android versions.
|
|
126
|
+
|
|
127
|
+
JGit 6.2.x is the latest release that avoids these Java 9+ API calls while still providing all the Git primitives needed by this module (clone, fetch, push, status, diff, log, etc.). One API trade-off: `CloneCommand.setDepth()` (shallow clone) was introduced in JGit 6.3, so this module does not support `--depth` on clone.
|
|
128
|
+
|
|
129
|
+
If you need a newer JGit, ensure your app's `minSdkVersion` and desugaring configuration are verified on all target devices.
|
|
130
|
+
|
|
121
131
|
## License
|
|
122
132
|
|
|
123
133
|
MIT
|
package/android/build.gradle
CHANGED
|
@@ -14,12 +14,14 @@ android {
|
|
|
14
14
|
}
|
|
15
15
|
// JGit needs Java 11+
|
|
16
16
|
compileOptions {
|
|
17
|
+
coreLibraryDesugaringEnabled true
|
|
17
18
|
sourceCompatibility JavaVersion.VERSION_11
|
|
18
19
|
targetCompatibility JavaVersion.VERSION_11
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
dependencies {
|
|
23
|
-
|
|
24
|
+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
|
|
25
|
+
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r'
|
|
24
26
|
implementation "com.squareup.okhttp3:okhttp:4.12.0"
|
|
25
27
|
}
|