Add license and clean up in-app license dialog #41

Open
Felix Klenner wants to merge 5 commits from license into master
Owner
No description provided.
The exception allows conveying the gms flavor, which links the non-free Google Play services, also with code from other contributors. F-Droid builds the open flavor, which does not contain them.
The GPL asks interactive programs to show the copyright, that there is no warranty and where to find the license. The About dialog now says so, and the licenses dialog shows the notice with the additional permission for Google Play services and the full GPL, which is generated from the LICENSE file. AndroidX, Compose and Kotlin are shown with the Apache License in all flavors, as it requires.
The licenses dialog listed the libraries by hand, so the BSD license of the Protobuf copy in DataStore and the NOTICE of Netty were missing. AboutLibraries now collects the libraries and their licenses of each variant at build time, and its strict mode fails the build for a license that was not reviewed, other than Apache for any library and the others only for the libraries that use them now.

It runs offline, so the builds stay reproducible and work on F-Droid. The license texts, the entries of the app and the fonts and the NOTICE of Netty with the licenses of the code it contains are in app/licenses, from which a task generates the configuration of AboutLibraries. The texts are shown as plain text, as the default reads them as HTML and would drop parts of the GPL.
The license button of AboutLibraries opens the URL of a license, if it has one, so the texts with the copyright and the notices of the libraries could not be seen. It now opens the dialog with the texts.

keep.xml is removed again. It is only needed when the list is loaded by its name, but it is referenced as R.raw.aboutlibraries, so the resource shrinking keeps it.
Move the licenses dialog into its own file and make the URLs in the texts clickable
All checks were successful
Build and test / Unit tests, lint and debug APK (pull_request) Successful in 4m32s
7e11a0f15e
The texts are shown as plain text, as the default HTML would drop parts of the GPL, so their URLs were not clickable. They are now found with a pattern, which leaves out angle brackets and punctuation at their end.
All checks were successful
Build and test / Unit tests, lint and debug APK (pull_request) Successful in 4m32s
Required
Details
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'license:license'
git switch 'license'
Sign in to join this conversation.
No reviewers
No labels
Bug
Feature
Improvement
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
felix/speedoverlay!41
No description provided.