提供了对 Android Gradle Plugin 内部 API 的统一封装,通过版本兼容性适配,以消除 Android Gradle Plugin 版本间的差异。
AGPInterface |
interface AGPInterface |
AGPInterfaceFactory |
interface AGPInterfaceFactory |
ResolvedArtifactResults |
Represents the dependencies of the specified variant class |
com.android.build.api.transform.Context |
|
com.android.build.api.transform.TransformInvocation |
|
com.android.build.gradle.api.BaseVariant |
|
org.gradle.api.Project |
AGP |
val AGP: AGPInterface |
GTE_V3_1 |
val GTE_V3_1: Boolean |
GTE_V3_2 |
val GTE_V3_2: Boolean |
GTE_V3_3 |
val GTE_V3_3: Boolean |
GTE_V3_4 |
val GTE_V3_4: Boolean |
GTE_V3_5 |
val GTE_V3_5: Boolean |
GTE_V3_6 |
val GTE_V3_6: Boolean |
GTE_V3_X |
val GTE_V3_X: Boolean |
GTE_V4_1 |
val GTE_V4_1: Boolean |
GTE_V4_2 |
val GTE_V4_2: Boolean |
GTE_V4_X |
val GTE_V4_X: Boolean |
GTE_V7_X |
val GTE_V7_X: Boolean |
SCOPE_FULL_LIBRARY_WITH_FEATURES |
val SCOPE_FULL_LIBRARY_WITH_FEATURES: MutableSet<in Scope> |
SCOPE_FULL_PROJECT |
val SCOPE_FULL_PROJECT: MutableSet<in Scope> |
SCOPE_FULL_WITH_FEATURES |
val SCOPE_FULL_WITH_FEATURES: MutableSet<in Scope> |
SCOPE_PROJECT |
val SCOPE_PROJECT: MutableSet<in Scope> |