All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.malinskiy.marathon.config.vendor.android.FileSyncConfiguration.kt Maven / Gradle / Ivy

package com.malinskiy.marathon.config.vendor.android

data class FileSyncConfiguration(
    val pull: MutableSet = mutableSetOf(),
    val push: MutableSet = mutableSetOf(),
)

data class FileSyncEntry(
    val relativePath: String,
    val pathRoot: PathRoot = PathRoot.EXTERNAL_STORAGE,
    val aggregationMode: AggregationMode = AggregationMode.DEVICE
)

data class FilePushEntry(
    val path: String,
    val pathRoot: PathRoot = PathRoot.LOCAL_TMP,
)

/**
 * @property EXTERNAL_STORAGE Path is relative to external storage mount, e.g. /sdcard/some-folder
 * @property APP_DATA Path is relative to app data folder (/data/data/$PKG/), e.g. /data/data/com.example/files/somefolder
 * @property LOCAL_TMP Path is relative to device tmp folder (/data/local/tmp)
 */
enum class PathRoot {
    EXTERNAL_STORAGE,
    APP_DATA,
    LOCAL_TMP
}

enum class AggregationMode {
    DEVICE,
    POOL,
    DEVICE_AND_POOL,
    TEST_RUN
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy