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

com.bugsnag.android.gradle.BugsnagFileUploadTask.kt Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
package com.bugsnag.android.gradle

import com.bugsnag.android.gradle.internal.BugsnagHttpClientHelper
import org.gradle.api.Task
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal

interface BugsnagFileUploadTask : Task {
    @get:Input
    val failOnUploadError: Property

    @get:Input
    val overwrite: Property

    @get:Input
    val endpoint: Property

    @get:Input
    val retryCount: Property

    @get:Input
    val timeoutMillis: Property

    @get:Internal
    val httpClientHelper: Property

    fun configureWith(
        bugsnag: BugsnagPluginExtension,
        httpClientHelperProvider: Provider
    ) {
        failOnUploadError.set(bugsnag.failOnUploadError)
        overwrite.set(bugsnag.overwrite)
        endpoint.set(bugsnag.endpoint)
        retryCount.set(bugsnag.retryCount)
        timeoutMillis.set(bugsnag.requestTimeoutMs)
        httpClientHelper.set(httpClientHelperProvider)
        usesService(httpClientHelperProvider)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy