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 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.
171 lines
6.9 KiB
Groovy
171 lines
6.9 KiB
Groovy
apply plugin: 'kotlin-parcelize'
|
|
|
|
String sourceCommit() {
|
|
try {
|
|
def process = ['git', 'rev-parse', 'HEAD'].execute()
|
|
def commit = process.text.trim()
|
|
return process.waitFor() == 0 && commit ==~ /[0-9a-f]{40}/ ? commit : ""
|
|
} catch (IOException ignored) {
|
|
return ""
|
|
}
|
|
}
|
|
|
|
android {
|
|
|
|
defaultConfig {
|
|
|
|
buildConfigField "String", "WEBSITE_URL", "\"https://pezkuwichain.io\""
|
|
buildConfigField "String", "PRIVACY_URL", "\"https://pezkuwichain.io/privacy.html\""
|
|
buildConfigField "String", "TERMS_URL", "\"https://pezkuwichain.io/terms.html\""
|
|
buildConfigField "String", "GITHUB_URL", "\"https://github.com/pezkuwichain\""
|
|
// Releases are not tagged, so the licences page is told which commit this build is made from:
|
|
// that is where the source the GPL-licensed light client requires us to offer lives.
|
|
buildConfigField "String", "LICENCES_URL", "\"https://pezkuwichain.github.io/pezkuwi-wallet-utils/licences/?commit=${sourceCommit()}\""
|
|
buildConfigField "String", "TELEGRAM_URL", "\"https://t.me/pezkuwichainBot\""
|
|
buildConfigField "String", "TWITTER_URL", "\"https://x.com/bizinikiwi\""
|
|
buildConfigField "String", "RATE_URL", "\"market://details?id=${rootProject.applicationId}.${releaseApplicationSuffix}\""
|
|
buildConfigField "String", "EMAIL", "\"support@pezkuwichain.io\""
|
|
buildConfigField "String", "YOUTUBE_URL", "\"https://www.youtube.com/@SatoshiQazi\""
|
|
|
|
buildConfigField "String", "TWITTER_ACCOUNT_TEMPLATE", "\"https://twitter.com/%s\""
|
|
buildConfigField "String", "RECOMMENDED_VALIDATORS_LEARN_MORE", "\"https://docs.pezkuwichain.io/wallet-wiki/staking/staking-faq#q-how-does-pezkuwi-wallet-select-validators-collators\""
|
|
|
|
buildConfigField "String", "PAYOUTS_LEARN_MORE", "\"https://docs.pezkuwichain.io/wallet-wiki/staking/staking-faq#q-what-is-the-difference-between-restake-rewards-and-transferable-rewards\""
|
|
|
|
buildConfigField "String", "SET_CONTROLLER_LEARN_MORE", "\"https://docs.pezkuwichain.io/wallet-wiki/staking/staking-faq#q-what-are-stash-and-controller-accounts\""
|
|
|
|
buildConfigField "String", "SET_CONTROLLER_DEPRECATED_LEARN_MORE", "\"https://docs.pezkuwichain.io/wallet-wiki/staking/controller-account-deprecation\""
|
|
|
|
buildConfigField "String", "PARITY_SIGNER_TROUBLESHOOTING", "\"https://docs.pezkuwichain.io/wallet-wiki/hardware-wallets/parity-signer/troubleshooting\""
|
|
buildConfigField "String", "POLKADOT_VAULT_TROUBLESHOOTING", "\"https://docs.pezkuwichain.io/wallet-wiki/hardware-wallets/polkadot-vault/troubleshooting\""
|
|
buildConfigField "String", "PEZKUWI_WALLET_WIKI_BASE", "\"https://docs.pezkuwichain.io/wallet-wiki/about-pezkuwi-wallet\""
|
|
buildConfigField "String", "PEZKUWI_WALLET_WIKI_PROXY", "\"https://docs.pezkuwichain.io/wallet-wiki/wallet-management/delegated-authorities-proxies\""
|
|
buildConfigField "String", "PEZKUWI_WALLET_WIKI_INTEGRATE_NETWORK", "\"https://docs.pezkuwichain.io/wallet-wiki/misc/developer-documentation/integrate-network\""
|
|
|
|
buildConfigField "String", "LEDGER_MIGRATION_ARTICLE", "\"https://docs.pezkuwichain.io/wallet-wiki/wallet-management/hardware-wallets/ledger-nano-x/ledger-app-migration\""
|
|
|
|
buildConfigField "String", "LEDGER_CONNECTION_GUIDE", "\"https://docs.pezkuwichain.io/wallet-wiki/wallet-management/hardware-wallets/ledger-devices\""
|
|
|
|
buildConfigField "String", "APP_UPDATE_SOURCE_LINK", "\"https://wallet.pezkuwichain.io\""
|
|
|
|
buildConfigField "String", "PEZKUWI_CARD_WIDGET_URL", "\"https://exchange.mercuryo.io\""
|
|
|
|
buildConfigField "String", "ASSET_COLORED_ICON_URL", "\"https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/main/icons/tokens/colored\""
|
|
buildConfigField "String", "ASSET_WHITE_ICON_URL", "\"https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/main/icons/tokens/white\""
|
|
|
|
buildConfigField "String", "UNIFIED_ADDRESS_ARTICLE", "\"https://docs.pezkuwichain.io/wallet-wiki/asset-management/how-to-receive-tokens#unified-and-legacy-addresses\""
|
|
|
|
buildConfigField "String", "MULTISIGS_WIKI_URL", "\"https://docs.pezkuwichain.io/wallet-wiki/wallet-management/multisig-wallets\""
|
|
|
|
buildConfigField "String", "GIFTS_WIKI_URL", "\"https://docs.pezkuwichain.io/wallet-wiki/asset-management/gifting-tokens\""
|
|
|
|
buildConfigField "long", "CLOUD_PROJECT_NUMBER", "171267697857L"
|
|
|
|
buildConfigField "String", "GLOBAL_CONFIG_URL", "\"https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/staking/global_config_dev.json\""
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
buildConfigField "long", "CLOUD_PROJECT_NUMBER", "802342409053L"
|
|
|
|
buildConfigField "String", "GLOBAL_CONFIG_URL", "\"https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/staking/global_config.json\""
|
|
}
|
|
|
|
releaseGithub {
|
|
initWith buildTypes.release
|
|
matchingFallbacks = ['release']
|
|
buildConfigField "String", "APP_UPDATE_SOURCE_LINK", "\"https://github.com/pezkuwichain/pezWallet/releases\""
|
|
}
|
|
}
|
|
|
|
namespace 'io.novafoundation.nova.common'
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation(name: 'renderscript-toolkit', ext: 'aar')
|
|
|
|
api project(":core-api")
|
|
|
|
implementation kotlinDep
|
|
|
|
implementation androidDep
|
|
implementation cardViewDep
|
|
implementation recyclerViewDep
|
|
implementation materialDep
|
|
implementation constraintDep
|
|
|
|
implementation biometricDep
|
|
|
|
implementation bouncyCastleDep
|
|
|
|
api substrateSdkDep
|
|
|
|
implementation coroutinesDep
|
|
api liveDataKtxDep
|
|
implementation lifeCycleKtxDep
|
|
|
|
implementation viewModelKtxDep
|
|
|
|
implementation daggerDep
|
|
ksp daggerCompiler
|
|
|
|
implementation lifecycleDep
|
|
ksp lifecycleCompiler
|
|
|
|
implementation retrofitDep
|
|
api gsonConvertedDep
|
|
implementation scalarsConverterDep
|
|
implementation interceptorVersion
|
|
implementation okhttpDnsOverHttpsDep
|
|
|
|
implementation zXingCoreDep
|
|
implementation zXingEmbeddedDep
|
|
|
|
implementation progressButtonDep
|
|
|
|
implementation wsDep
|
|
|
|
api insetterDep
|
|
|
|
api coilDep
|
|
api coilSvg
|
|
|
|
api web3jDep
|
|
api coroutinesFutureDep
|
|
api coroutinesRxDep
|
|
|
|
implementation shimmerDep
|
|
|
|
implementation playIntegrity
|
|
|
|
testImplementation jUnitDep
|
|
testImplementation mockitoDep
|
|
testImplementation project(':test-shared')
|
|
|
|
implementation permissionsDep
|
|
|
|
implementation flexBoxDep
|
|
|
|
implementation markwonDep
|
|
implementation markwonImage
|
|
implementation markwonTables
|
|
implementation markwonLinkify
|
|
implementation markwonStrikethrough
|
|
implementation markwonHtml
|
|
implementation kotlinReflect
|
|
|
|
implementation playServicesAuthDep
|
|
|
|
} |