Skip to content

Commit

Permalink
fixes for android
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Sep 25, 2018
1 parent 04b1f1a commit 53a26d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
10 changes: 5 additions & 5 deletions buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ version = 0.1

# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
requirements = kivy, openssl, requests, pil, futures, sentry==0.3.0
requirements = android, kivy, openssl, requests, pil, futures, sentry-sdk==0.3.0, urllib3, certifi

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
Expand All @@ -46,7 +46,7 @@ requirements = kivy, openssl, requests, pil, futures, sentry==0.3.0
#garden_requirements =

# (str) Presplash of the application
presplash.filename = %(source.dir)s/../tools/splash.png
presplash.filename = %(source.dir)s/../tools/splash.jpg

# (str) Icon of the application
icon.filename = %(source.dir)s/data/icon.png
Expand Down Expand Up @@ -85,7 +85,7 @@ fullscreen = 0
#android.presplash_color = #FFFFFF

# (list) Permissions
android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE
android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, CAMERA

# (int) Android API to use
#android.api = 19
Expand Down Expand Up @@ -144,11 +144,11 @@ android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
android.add_src = electrum/gui/kivy/data/java-classes/
android.add_src = eventsapp/data/java-classes/

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

android.add_activities = org.python.qr.SimpleScannerActivity
android.add_activities = org.pythonindia.qr.SimpleScannerActivity

# (list) Java classes to add as activities to the manifest.
#android.add_activites = com.example.ExampleActivity
Expand Down
6 changes: 4 additions & 2 deletions eventsapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
__version__ = '0.0.2'

# setup error reporting
# import sentry_sdk
# sentry_sdk.init("https://[email protected]/1284618")
import sentry_sdk
sentry_sdk.init(
"https://[email protected]/1284618",
debug=True)
# That's all for error reporting

import os
Expand Down
11 changes: 5 additions & 6 deletions eventsapp/uix/screens/navigationscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ class NavigationScreen(Screen):
size_hint: 1, None
height: dp(130)
mipmap: True
on_touch_up:
if self.collide_point(*args[1].opos) and\
self.collide_point(*args[1].pos) and\
args[1].is_triple_tap: load_screen(\
'ScreenRegister', manager=app.navigation_manager);\
app.navigationdrawer.toggle_state()
ScrollView
GridLayout
cols: 1
Expand Down Expand Up @@ -87,6 +81,11 @@ class NavigationScreen(Screen):
on_released:
load_screen(\
'ScreenCommunity', manager=app.navigation_manager)
MenuButton
text: 'Registeration'
on_released:
load_screen(\
'ScreenRegister', manager=app.navigation_manager)
MenuButton
text: 'About'
on_released:
Expand Down
4 changes: 3 additions & 1 deletion eventsapp/uix/screens/screenregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class ScreenRegister(Factory.Screen):
ActiveButton:
height: dp(30)
text: 'Change...'
width: dp(100)
size_hint_x: None
pos_hint: {'center_y': .5}
on_release: root.show_file_chooser()
Expand Down Expand Up @@ -105,6 +106,7 @@ class ScreenRegister(Factory.Screen):
height: dp(30)
text: "Check..."
size_hint_x: None
width: dp(100)
pos_hint: {'center_y': .5}
on_release: root.check_attendee(ti.text)
BackLabel
Expand All @@ -115,7 +117,7 @@ class ScreenRegister(Factory.Screen):
padding: dp(9)
size_hint: 1, None
height: self.minimum_height
spacing: dp(9)
spacing: dp(13)
cols: 1
BackLabel
id: lbl_name
Expand Down

0 comments on commit 53a26d2

Please sign in to comment.