1
0

android build: make building testnet apk easier

Just uncomment line 53 in make_apk, and you get a testnet apk that can co-exist with your mainnet install.
No need to do a clean rebuild of ".buildozer/" either.
This commit is contained in:
SomberNight
2022-07-09 04:41:02 +02:00
parent e72f575eea
commit 57b17d13ac
2 changed files with 8 additions and 0 deletions

View File

@@ -330,6 +330,9 @@ def main():
'gui': android_gui,
'single_password':True,
}
if util.get_android_package_name() == "org.electrum.testnet.electrum":
# ~hack for easier testnet builds. pkgname subject to change.
config_options['testnet'] = True
else:
config_options = args.__dict__
f = lambda key: config_options[key] is not None and key not in config_variables.get(args.cmd, {}).keys()