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 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
@@ -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
- implementation 'org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r'
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
  }