CocoaPods automatically generates a nice list of acknowledgements for all the projects I've used, so that I can include that info in my applications UI.
Is there something similar for the whole Android / Gradle situation?
More generally, how can I automate collecting and showing the appropriate acknowledgement / licensing info for the components I've used in my Android project?
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 92 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.
CocoaPods is built with Ruby and it will be installable with the default Ruby available on macOS. You can use a Ruby Version manager, however we recommend that you use the standard Ruby available on macOS unless you know what you're doing.
~> (the optimistic operator) is used when you want to specify a version 'up to next major | minor | patch'. For example: ~> 0.1.2 will get you a version up to 0.2 (but not including 0.2 and higher)
TL;DR: CocoaPods 0.36 will bring the long-awaited support for Frameworks and Swift. It isn't released and considered stable yet, but a beta is now available for everyone via [sudo] gem install cocoapods --pre . Pod authors will especially want to try this version to make sure their pods will work with the upcoming release.
Hosted Dynamic Frameworks and Libraries - This can be the case for so called Umbrella Frameworks provided by Apple. There are no use-cases where this happens with CocoaPods. The Clang Module Map and the Swift modules - These are mostly internal toolchain artifacts, which carry declarations about API / header visibility and module link-ability.
This is because if a single dependency in a user's project requires being a framework, then your Pod will also become a framework. What is special about Frameworks integrated by CocoaPods? With CocoaPods, Frameworks are mostly set up in way similar to how it is done via Xcode.
Pod authors were able to use mainBundle referencing to include resources the Pod brought into the app bundle. But with frameworks, you have to make sure that you reference them more specifically by getting a reference to your framework's bundle e.g. This will then work for both frameworks and static libraries.
I'm afraid there's no all in one drop-in equivalent of CocoaPods acknowledgments for the Android ecosystem so far, probably because there is no equivalent of the iOS settings bundle on Android.
Option may be :
Generation part : Use a gradle plugin to create reports about your dependencies licence : https://github.com/jk1/Gradle-License-Report or https://github.com/hierynomus/license-gradle-plugin (downloadLicenses task)
Show to the user part : You'll have to do it manually, get the parts that you want from the reports and put it for example in your GooglePlay description, or store it wherever you want (local or remote) and show it to the user at first launch after install (https://github.com/prashantsolanki3/Shoot)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With