Skip to content

Commit

Permalink
Namecoin: Rebrand Android build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Jan 22, 2019
1 parent fd5cd67 commit ac84520
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- docker
install:
- ./contrib/make_packages
- sudo docker build --no-cache -t electrum-android-builder-img electrum/gui/kivy/tools
- sudo docker build --no-cache -t electrum-android-builder-img electrum_nmc/gui/kivy/tools
script:
- sudo chown -R 1000:1000 .
# Output something every minute or Travis kills the job
Expand Down
2 changes: 1 addition & 1 deletion electrum_nmc/gui/kivy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ prepare:
@cp ../../../run_electrum_nmc ../../../main.py
@-if [ ! -d "../../../.buildozer" ];then \
cd ../../..; buildozer android debug;\
cp -f electrum/gui/kivy/tools/blacklist.txt .buildozer/android/platform/python-for-android/src/blacklist.txt;\
cp -f electrum_nmc/gui/kivy/tools/blacklist.txt .buildozer/android/platform/python-for-android/src/blacklist.txt;\
rm -rf ./.buildozer/android/platform/python-for-android/dist;\
fi
apk:
Expand Down
6 changes: 3 additions & 3 deletions electrum_nmc/gui/kivy/Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kivy GUI

The Kivy GUI is used with Electrum on Android devices.
The Kivy GUI is used with Electrum-NMC on Android devices.
To generate an APK file, follow these instructions.

## Android binary with Docker
Expand All @@ -21,7 +21,7 @@ folder.
2. Build image

```
$ sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools
$ sudo docker build -t electrum-android-builder-img electrum_nmc/gui/kivy/tools
```

3. Prepare pure python dependencies
Expand Down Expand Up @@ -59,7 +59,7 @@ You probably need to clear the cache: `rm -rf .buildozer/android/platform/build/
Assuming `adb` is installed:
```
$ adb -d install -r bin/Electrum-*-debug.apk
$ adb shell monkey -p org.electrum.electrum 1
$ adb shell monkey -p org.namecoin.electrum-nmc.electrum-nmc 1
```


Expand Down
8 changes: 4 additions & 4 deletions electrum_nmc/gui/kivy/tools/buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ source.include_exts = py,png,jpg,kv,atlas,ttf,txt,gif,pem,mo,vs,fs,json
source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
source.exclude_dirs = bin, build, dist, contrib, electrum/gui/qt, electrum/gui/kivy/tools, electrum/gui/kivy/theming/light
source.exclude_dirs = bin, build, dist, contrib, electrum_nmc/gui/qt, electrum_nmc/gui/kivy/tools, electrum_nmc/gui/kivy/theming/light
# (list) List of exclusions using pattern matching
source.exclude_patterns = Makefile,setup*

# (str) Application versioning (method 1)
version.regex = APK_VERSION = '(.*)'
version.filename = %(source.dir)s/electrum/version.py
version.filename = %(source.dir)s/electrum_nmc/version.py

# (str) Application versioning (method 2)
#version = 1.9.8
Expand Down Expand Up @@ -90,7 +90,7 @@ android.sdk_path = /opt/android/android-sdk

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
android.add_src = electrum/gui/kivy/data/java-classes/
android.add_src = electrum_nmc/gui/kivy/data/java-classes/

android.gradle_dependencies = me.dm7.barcodescanner:zxing:1.9.8

Expand All @@ -108,7 +108,7 @@ android.add_activities = org.electrum.qr.SimpleScannerActivity
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
android.manifest.intent_filters = electrum/gui/kivy/tools/bitcoin_intent.xml
android.manifest.intent_filters = electrum_nmc/gui/kivy/tools/bitcoin_intent.xml

# (str) launchMode to set for the main activity
android.manifest.launch_mode = singleTask
Expand Down

0 comments on commit ac84520

Please sign in to comment.