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:
SatoshiQaziMuhammed authored and GitHub committed 2026-11-05 21:25:30 +04:00
1 parent 5c13c84eca
commit cf74df7cf4
27 files changed
+18831

No files matched your search

+20
View File
@@ -1,3 +1,23 @@
Pezkuwi Wallet
Copyright 2026 PezkuwiChain
Pezkuwi Wallet is derived from Nova Wallet; the Nova Wallet notice follows below.
Third-party components ship with their licences inside the app, under assets/licences:
rust-crates.txt Rust crates in the native libraries (scripts/licences/rust_notices.py)
native-libraries.txt prebuilt native libraries in app/src/main/jniLibs
android-libraries.json Android libraries, generated at build time by the licensee plugin
The light client links smoldot, licensed GPL-3.0-or-later WITH Classpath-exception-2.0. Its
source is https://github.com/pezkuwichain/smoldot at the revision pinned in
bindings/pezkuwi-light/rust/Cargo.toml. Settings > About > Open source licenses in the app opens
a page naming the exact commit each build is made from.
The classes under io.github.novacrypto in common/ are written for this app under Apache-2.0. They
take the place of the GPL-3.0 NovaCrypto libraries that substrate-sdk-android depends on.
------------------------------------------------------------------------
Nova - Polkadot, Kusama wallet
Copyright 2022-2025 Novasama Technologies PTE. LTD.