Skip to content

Commit

Permalink
Namecoin: Fix Android package name
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 1, 2019
1 parent 227d530 commit 8d4fbbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion electrum_nmc/gui/kivy/Readme.md
Original file line number Diff line number Diff line change
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.namecoin.electrum-nmc.electrum-nmc 1
$ adb shell monkey -p org.namecoin.electrum_nmc.electrum_nmc 1
```


Expand Down
8 changes: 4 additions & 4 deletions electrum_nmc/gui/kivy/nfc_scanner/scanner_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,20 @@ def nfc_enable(self):
def create_AAR(self):
'''Create the record responsible for linking our application to the tag.
'''
return NdefRecord.createApplicationRecord(JString("org.namecoin.electrum-nmc.kivy"))
return NdefRecord.createApplicationRecord(JString("org.namecoin.electrum_nmc.kivy"))

def create_TNF_EXTERNAL(self, data):
'''Create our actual payload record.
'''
if BUILDVERSION >= 14:
domain = "org.namecoin.electrum-nmc"
domain = "org.namecoin.electrum_nmc"
stype = "externalType"
extRecord = NdefRecord.createExternal(domain, stype, data)
else:
# Creating the NdefRecord manually:
extRecord = NdefRecord(
NdefRecord.TNF_EXTERNAL_TYPE,
"org.namecoin.electrum-nmc:externalType",
"org.namecoin.electrum_nmc:externalType",
'',
data)
return extRecord
Expand Down Expand Up @@ -213,7 +213,7 @@ def _nfc_enable_ndef_exchange(self, data):
# Create record
ndef_record = NdefRecord(
NdefRecord.TNF_MIME_MEDIA,
'org.namecoin.electrum-nmc.kivy', '', data)
'org.namecoin.electrum_nmc.kivy', '', data)

# Create message
ndef_message = NdefMessage([ndef_record])
Expand Down
4 changes: 2 additions & 2 deletions electrum_nmc/gui/kivy/tools/buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
title = Electrum-NMC

# (str) Package name
package.name = Electrum-NMC
package.name = Electrum_NMC

# (str) Package domain (needed for android/ios packaging)
package.domain = org.namecoin.electrum-nmc
package.domain = org.namecoin.electrum_nmc

# (str) Source code where the main.py live
source.dir = .
Expand Down

0 comments on commit 8d4fbbf

Please sign in to comment.