summaryrefslogtreecommitdiff
path: root/libs/documents/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'libs/documents/build.gradle.kts')
-rw-r--r--libs/documents/build.gradle.kts36
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/documents/build.gradle.kts b/libs/documents/build.gradle.kts
new file mode 100644
index 0000000..8d03de9
--- /dev/null
+++ b/libs/documents/build.gradle.kts
@@ -0,0 +1,36 @@
+plugins {
+ alias(libs.plugins.android.library)
+}
+
+android {
+ namespace = "org.the_jk.cleversync.documents"
+
+ testOptions {
+ unitTests {
+ all { test ->
+ // Needed to get robolectric FileDescriptorInterceptor to work
+ test.jvmArgs("--add-opens=java.base/java.io=ALL-UNNAMED")
+ }
+ }
+ }
+}
+
+dependencies {
+ implementation(project(":libs:io"))
+ implementation(libs.androidx.core)
+ implementation(libs.androidx.fragment.ktx)
+ implementation(libs.androidx.uiautomator)
+ testImplementation(project(":libs:test-utils"))
+ androidTestImplementation(project(":libs:test-utils"))
+}
+
+val removeTestDirs = tasks.register<Exec>("removeTestDirs") {
+ executable = android.adbExecutable.toString()
+ args("shell", "rm", "-vrf", "/sdcard/Download/DocumentTreeTest-*")
+}
+
+tasks.all {
+ if (name == "connectedDebugAndroidTest") {
+ finalizedBy(removeTestDirs)
+ }
+}