Comments (5)
Good day.
Thank you for the ticket.
The proposed way at this time is to apply it to the Android
and Desktop
modules in your scenario: https://github.com/mikepenz/AboutLibraries/blob/develop/app/build.gradle#L5
And for the Desktop
respectively: https://github.com/mikepenz/AboutLibraries/blob/develop/app-desktop/build.gradle.kts#L6
The plugin will transitively collect the dependencies in that case.
from aboutlibraries.
Huh, so changing to just applying the plugin to those terminal modules, it doesn't seem to run the task automatically when I build those targets though.
I can run the exportLibraryDefinitions
task manually and it produces the json file, but if I just run assemble
or run
, it doesn't produce the json, and trying to view the libraries in the app crashes (desktop).
from aboutlibraries.
@Wavesonics depends on the configuration. The default configuration would hook up the build as part of the Android builds. However that can be disabled via: https://github.com/mikepenz/AboutLibraries/blob/develop/app/build.gradle#L89
For desktop, it wouldn't be automatically linked, that's correct.
You can see the README for the sample highlighting that you'd execute the task: https://github.com/mikepenz/AboutLibraries/blob/develop/app-desktop/README.md
And how to use it: https://github.com/mikepenz/AboutLibraries/blob/develop/app-desktop/src/main/kotlin/main.kt#L17C1-L17C1
That being said, in general I'd advice to update and check-in the outputs manually for Android too - as it gives more control and change swill show up in the commit history:
https://github.com/mikepenz/AboutLibraries/blob/develop/README.md#enterprise
from aboutlibraries.
Okay, ya that works. It would be nice to have an overload for the composable function that just accelts a Libs
object, and doesn't worry about constructing it.
That way we could have a single multi-platform composable.
Anyway, thanks for your help!
from aboutlibraries.
@Wavesonics there is the API to pass in just the Libs
: https://github.com/mikepenz/AboutLibraries/blob/develop/aboutlibraries-compose/src/commonMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/SharedLibraries.kt#L33-L49 (transformed to StableLibs
for performance improvement)
However at the moment this wouldn't include the platform specific dialog handling.
from aboutlibraries.
Related Issues (20)
- SpdxLicense 2.0 support
- Don't crash on missing data - Feature request HOT 10
- Legacy module not compatible with Gradle 8.0 HOT 9
- Eager creation of prepareLibraryDefinitions and exportLibraryDefinitions HOT 1
- GPL 3.0 license is not properly detected / mapped to their corresponding SPDX license HOT 8
- GPL license HOT 6
- 10.8.1 gradle plugin failed to generate json HOT 2
- Missing v10.8.2 artifacts on Maven Central HOT 1
- Apache-2.0 License in generated JSON file may have invalid "url" HOT 1
- Error - Please provide the required library data via the available APIs. HOT 6
- Sort json entries by `uniqueId` when used in Enterprise mode. HOT 1
- KMP export path not working HOT 2
- Strange animation if header is set HOT 3
- Stackoverflow error in collectDependencies HOT 12
- Jetpack Compose: Dialog confirm button cannot be styled for Material 3 apps HOT 6
- Legacy UI whole app gradle 8.1.2 HOT 16
- error "Retrieved no components for:" after changing build.gradle to build.gradle.kts HOT 17
- Stop
- Black activity and show only app bar HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aboutlibraries.