From ea07d1dd6ed7e2ae9af1451aa8b4f58a96e158d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=A8?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=BB=D0=B8=D0=BD=D0=B3?= Date: Sun, 4 Feb 2024 10:02:25 +0000 Subject: [PATCH] add Plugins --- src/main/java/Plugin.kt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/Plugin.kt b/src/main/java/Plugin.kt index 819a9ec..236604c 100644 --- a/src/main/java/Plugin.kt +++ b/src/main/java/Plugin.kt @@ -3,8 +3,12 @@ import org.gradle.plugin.use.PluginDependencySpec val PluginDependenciesSpec.androidApplication: PluginDependencySpec get() = id(Plugin.Id.Android.application) +val PluginDependenciesSpec.androidLibrary: PluginDependencySpec + get() = id(Plugin.Id.Android.library) val PluginDependenciesSpec.kotlinJvm: PluginDependencySpec get() = id(Plugin.Id.Kotlin.jvm) +val PluginDependenciesSpec.kotlinAndroid: PluginDependencySpec + get() = id(Plugin.Id.Kotlin.android) val PluginDependenciesSpec.kotlinParcelize: PluginDependencySpec get() = id(Plugin.Id.Kotlin.parcelize) val PluginDependenciesSpec.kotlinAnnotationProcessor: PluginDependencySpec @@ -20,6 +24,11 @@ object Plugin { * [Changelog](https://developer.android.com/studio/releases/gradle-plugin) */ const val application = "com.android.application" + /** + * [Documentation](https://google.github.io/android-gradle-dsl/current/) + * [Changelog](https://developer.android.com/studio/releases/gradle-plugin) + */ + const val library = "com.android.library" } object Kotlin { @@ -27,6 +36,10 @@ object Plugin { * Plugin published in https://plugins.gradle.org/ */ const val jvm = "org.jetbrains.kotlin.jvm" + /** + * Plugin published in https://plugins.gradle.org/ + */ + const val android = "org.jetbrains.kotlin.android" /** * Plugin published in https://plugins.gradle.org/ @@ -44,4 +57,4 @@ object Plugin { const val serialization = "plugin.serialization" } } -} \ No newline at end of file +}