Skip to content

Commit

Permalink
Merge pull request #662 from mikepenz/feature/allow_library_export
Browse files Browse the repository at this point in the history
AboutLibraries plugin for library modules
  • Loading branch information
mikepenz authored Jul 19, 2021
2 parents 41fb408 + 267fcbb commit 328dd89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions aboutlibraries/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: 'com.mikepenz.aboutlibraries.plugin' // has to be applied AFTER android

version release.versionName

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildscript {
constraintLayout: '2.0.4',
navigation : "2.3.5",
iconics : "5.2.8",
detekt : '1.17.1',
detekt : '1.16.0',
fastadapter : "5.4.1",
materialdrawer : "8.4.0",
coreKtx : "1.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ class AboutLibrariesPlugin implements Plugin<Project> {
// doing a clean will regardless delete the dir containing the files

// create tasks for different application variants
project.android.applicationVariants.all { variant ->
createAboutLibrariesTask(project, variant)
if (project.android.hasProperty("applicationVariants")) {
project.android.applicationVariants.all { final variant ->
createAboutLibrariesTask(project, variant)
}
} else {
project.android.libraryVariants.all { final variant ->
createAboutLibrariesTask(project, variant)
}
}

// task to output library names with ids for further actions
Expand Down

0 comments on commit 328dd89

Please sign in to comment.