mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-11-20 01:26:11 +00:00
Ship third-party licences and point to the exact source of each build (#36)
* Ship third-party licences and point to the exact source of each build The light client links smoldot (GPL-3.0-or-later WITH Classpath-exception-2.0), and the app shipped no third-party notices at all. Releases are not tagged, so nothing told a user which source a given APK was built from. - Settings > About gets an "Open source licenses" row. It opens the licences page with the commit the build was made from (BuildConfig.LICENCES_URL, from git rev-parse HEAD). - assets/licences/rust-crates.txt lists the 430 Rust crates linked into the four native libraries, with their licence texts. scripts/licences/rust_notices.py writes it from the lockfiles, and a Code Quality job fails when it is stale. - assets/licences/native-libraries.txt covers the prebuilt libsqlcipher.so and libsr25519java.so. - The licensee plugin bundles the Android library list into the APK and fails the build on a licence outside the allowed set. - NOTICE names the Pezkuwi Wallet copyright and where these notices live. * Check Android library licences in Code Quality and keep the report The build job fails on a disallowed licence but does not say which library, and its workflow is taken from main. This job runs only the licence check on the PR branch and uploads the report naming each library and its licence. * Replace the GPL-3.0 NovaCrypto libraries and allow the reviewed licences substrate-sdk-android brings in NovaCrypto BIP39, Sha256, ToRuntime and SecureString, all GPL-3.0 without exception, which made the APK a GPL-3.0 combined work alongside Google's proprietary SDKs. The SDK uses four of their types, only in MnemonicCreator and EnglishWordList. common now provides those types under Apache-2.0 with the binary interface the SDK is compiled against (taken from its bytecode), and every configuration excludes the NovaCrypto groups. Bip39VectorsTest runs the SDK's MnemonicCreator on them against all 24 English BIP-0039 vectors, both directions, plus a round trip of each random mnemonic length. Checked outside Gradle against the SDK 2.11.0 classes: 24/24, and red when the checksum is broken. The licence policy now names each remaining library licensee rejected: permissive licences declared by URL, POMs without a licence (checked against each project's repository), Google's SDK terms for the Play build, and the EPL libraries one by one.
This commit is contained in:
1 parent
5c13c84eca
commit
cf74df7cf4
27 files changed
+18831
No files matched your search
@@ -0,0 +1,11 @@
|
||||
Copyright (c) <year> <owner>.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Reference in new issue
Block a user