com.didiglobal.booster.transform.webview.WebViewVariantProcessor.kt Maven / Gradle / Ivy
package com.didiglobal.booster.transform.webview
import com.android.build.gradle.api.BaseVariant
import com.android.build.gradle.api.LibraryVariant
import com.didiglobal.booster.gradle.isDynamicFeature
import com.didiglobal.booster.gradle.project
import com.didiglobal.booster.task.spi.VariantProcessor
import com.google.auto.service.AutoService
/**
* @author neighbWang
*/
@AutoService(VariantProcessor::class)
class WebViewVariantProcessor : VariantProcessor {
override fun process(variant: BaseVariant) {
if (variant !is LibraryVariant && !variant.isDynamicFeature) {
variant.project.dependencies.add("implementation", "${Build.GROUP}:booster-android-instrument-webview:${Build.VERSION}")
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy