Skip to content

Commit

Permalink
apg 4.0.2 (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows authored Jan 30, 2024
1 parent 7065966 commit f68f935
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package com.jaredsburrows.license
import com.android.build.gradle.AppExtension
import com.android.build.gradle.AppPlugin
import com.android.build.gradle.BaseExtension
import com.android.build.gradle.FeatureExtension
import com.android.build.gradle.FeaturePlugin
import com.android.build.gradle.LibraryExtension
import com.android.build.gradle.LibraryPlugin
import com.android.build.gradle.TestExtension
Expand All @@ -21,8 +19,6 @@ internal fun Project.isAndroidProject(): Boolean {
// AppPlugin
"android",
"com.android.application",
// FeaturePlugin
"com.android.feature",
// LibraryPlugin
"android-library",
"com.android.library",
Expand All @@ -36,7 +32,6 @@ internal fun Project.isAndroidProject(): Boolean {
* Configure for Android projects.
*
* AppPlugin - "android", "com.android.application"
* FeaturePlugin - "com.android.feature"
* LibraryPlugin - "android-library", "com.android.library"
* TestPlugin - "com.android.test"
*/
Expand All @@ -51,15 +46,6 @@ internal fun Project.configureAndroidProject() {
}
}

is FeaturePlugin -> {
extensions.getByType(FeatureExtension::class.java).run {
configureVariant(this, featureVariants)
configureVariant(this, libraryVariants)
configureVariant(this, testVariants)
configureVariant(this, unitTestVariants)
}
}

is LibraryPlugin -> {
extensions.getByType(LibraryExtension::class.java).run {
configureVariant(this, libraryVariants)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ final class LicensePluginSpec extends Specification {
// AppPlugin
'android',
'com.android.application',
// FeaturePlugin
'com.android.feature',
// LibraryPlugin
'android-library',
'com.android.library',
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }
license = { id = "com.jaredsburrows.license", version = "0.9.4" }

[libraries]
android-plugin = { module = "com.android.tools.build:gradle", version = "3.6.4" }
android-plugin = { module = "com.android.tools.build:gradle", version = "4.0.2" }
commons = { module = "org.apache.commons:commons-csv", version = "1.10.0" }
moshi = { module = "com.squareup.moshi:moshi", version = "1.15.0" }
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" }
Expand Down

0 comments on commit f68f935

Please sign in to comment.