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.
- package/android/build.gradle +0 -3
- package/android/src/main/java/expo/modules/externalstorage/ExternalStorageModule.kt +13 -1
- package/android/src/main/java/expo/modules/externalstorage/GitHelper.kt +408 -642
- package/build/index.d.ts +31 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/ios/ExternalStorageModule.swift +20 -0
- package/ios/GitHelper.swift +33 -0
- package/package.json +1 -1
- package/src/index.ts +34 -0
package/android/build.gradle
CHANGED
|
@@ -550,7 +550,7 @@ class ExternalStorageModule : Module() {
|
|
|
550
550
|
mapOf("filesExtracted" to filesExtracted)
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
// ─── Git
|
|
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
|
/**
|