com.autonomousapps.internal.android.AndroidGradlePlugin4_2.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
@file:Suppress("ClassName", "UnstableApiUsage")
package com.autonomousapps.internal.android
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
import org.gradle.api.provider.Provider
internal class AndroidGradlePlugin4_2(private val project: Project) : AndroidGradlePlugin {
override fun isViewBindingEnabled(): Provider {
return project.provider { project.extensions.getByType(CommonExtension::class.java).viewBinding.enable }
}
override fun isDataBindingEnabled(): Provider {
return project.provider { project.extensions.getByType(CommonExtension::class.java).dataBinding.enable }
}
override fun namespace(): Provider {
return project.providers.provider {
project.extensions.getByType(CommonExtension::class.java).namespace ?: ""
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy