expo-tiddlywiki-filesystem-android-external-storage 2.2.15 → 2.3.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.
@@ -21,8 +21,5 @@ android {
21
21
 
22
22
  dependencies {
23
23
  implementation 'org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r'
24
- }
25
-
26
- dependencies {
27
24
  implementation "com.squareup.okhttp3:okhttp:4.12.0"
28
25
  }
@@ -550,7 +550,7 @@ class ExternalStorageModule : Module() {
550
550
  mapOf("filesExtracted" to filesExtracted)
551
551
  }
552
552
 
553
- // ─── Git status ──────────────────────────────────────────────────
553
+ // ─── Git operations (all via JGit) ─────────────────────────────────
554
554
 
555
555
  AsyncFunction("gitStatus") { gitRootDir: String ->
556
556
  GitHelper.gitStatus(gitRootDir)
@@ -572,6 +572,18 @@ class ExternalStorageModule : Module() {
572
572
  GitHelper.gitFetch(gitRootDir, remoteName, branch, headers)
573
573
  }
574
574
 
575
+ AsyncFunction("gitCheckoutChangedFiles") { gitRootDir: String, oldOid: String, newOid: String ->
576
+ GitHelper.gitCheckoutChangedFiles(gitRootDir, oldOid, newOid)
577
+ }
578
+
579
+ AsyncFunction("gitAddAndCommit") { gitRootDir: String, message: String, authorName: String, authorEmail: String ->
580
+ GitHelper.gitAddAndCommit(gitRootDir, message, authorName, authorEmail)
581
+ }
582
+
583
+ AsyncFunction("gitReset") { gitRootDir: String, ref: String, mode: String ->
584
+ GitHelper.gitReset(gitRootDir, ref, mode)
585
+ }
586
+
575
587
  // ─── TiddlyWiki batch file parsing ─────────────────────────────────
576
588
 
577
589
  /**