danielsocials / android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electrum Android app

Release

The Android app can be built on any OS which can run the Android development tools. However, the following automated process is available for Linux x86-64:

If necessary, install Docker using the instructions on its website.

Copy your release key to keystore.jks in this directory. It must contain a key with the following configuration:

keyAlias "key0"
keyPassword "android"
storePassword "android"

Run build.sh. The APK will be generated in release in this directory.

Between builds it may be helpful to free up disk space with the command docker system prune.

Development

To start developing the app, just open this directory in Android Studio.

Strings

For user interface text, the app uses the standard Android string resource system. The strings.xml files are generated by the Gradle task generateStrings, which in turn calls the script contrib/make_locale to obtain strings from elsewhere in the repository and Crowdin.

Android-specific strings should be added to app/src/main/python/electrum_gui/android/strings.py.

generateStrings is run automatically the first time you build the app. If any of the source strings change, you'll need to run it again manually to pick them up.

The Android string IDs are generated from the first 2 words of each string, plus as many more words as necessary to make them unique. So if any of the source strings change, you may need to update ID references in the code.

About


Languages

Language:Java 91.9%Language:Kotlin 7.4%Language:HTML 0.4%Language:Python 0.3%Language:JavaScript 0.1%Language:Dockerfile 0.0%Language:Shell 0.0%