]> gitweb.fluxo.info Git - utils-android.git/commitdiff
Feat: adds better-adb-sync
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Aug 2024 19:53:29 +0000 (16:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Aug 2024 19:53:29 +0000 (16:53 -0300)
.gitmodules [new file with mode: 0644]
better-adb-sync [new file with mode: 0755]
vendor/better_adb_sync [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..e20e717
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "vendor/better-adb-sync"]
+       path = vendor/better_adb_sync
+       url = https://github.com/jb2170/better-adb-sync
diff --git a/better-adb-sync b/better-adb-sync
new file mode 100755 (executable)
index 0000000..30ef2a5
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+#
+# Wrapper so better-adb-sync don't need to be installed through pip or virtualenv.
+#
+# This way we can control exactly which version (though the repository SHA-1
+# commit version).
+#
+# For discussion on pros and cons of this approach, check
+# https://stackoverflow.com/questions/9059699/use-a-library-locally-instead-of-installing-it#9059783
+#
+
+# Load better-adb-sync
+from vendor.better_adb_sync.src.BetterADBSync import main
+
+# Dispatch
+main()
diff --git a/vendor/better_adb_sync b/vendor/better_adb_sync
new file mode 160000 (submodule)
index 0000000..2d19f23
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 2d19f23b2ae8a74e4d4e038df049112408335a6b