Skip to content

Commit 53a26d2

Browse files
committed
fixes for android
1 parent 04b1f1a commit 53a26d2

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

buildozer.spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ version = 0.1
3636

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

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

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

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

8787
# (list) Permissions
88-
android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE
88+
android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, CAMERA
8989

9090
# (int) Android API to use
9191
#android.api = 19
@@ -144,11 +144,11 @@ android.permissions = INTERNET, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE
144144

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

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

151-
android.add_activities = org.python.qr.SimpleScannerActivity
151+
android.add_activities = org.pythonindia.qr.SimpleScannerActivity
152152

153153
# (list) Java classes to add as activities to the manifest.
154154
#android.add_activites = com.example.ExampleActivity

eventsapp/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
__version__ = '0.0.2'
88

99
# setup error reporting
10-
# import sentry_sdk
11-
# sentry_sdk.init("https://0002ee03a88d419a886333ab69f01df5@sentry.io/1284618")
10+
import sentry_sdk
11+
sentry_sdk.init(
12+
"https://0002ee03a88d419a886333ab69f01df5@sentry.io/1284618",
13+
debug=True)
1214
# That's all for error reporting
1315

1416
import os

eventsapp/uix/screens/navigationscreen.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ class NavigationScreen(Screen):
4040
size_hint: 1, None
4141
height: dp(130)
4242
mipmap: True
43-
on_touch_up:
44-
if self.collide_point(*args[1].opos) and\
45-
self.collide_point(*args[1].pos) and\
46-
args[1].is_triple_tap: load_screen(\
47-
'ScreenRegister', manager=app.navigation_manager);\
48-
app.navigationdrawer.toggle_state()
4943
ScrollView
5044
GridLayout
5145
cols: 1
@@ -87,6 +81,11 @@ class NavigationScreen(Screen):
8781
on_released:
8882
load_screen(\
8983
'ScreenCommunity', manager=app.navigation_manager)
84+
MenuButton
85+
text: 'Registeration'
86+
on_released:
87+
load_screen(\
88+
'ScreenRegister', manager=app.navigation_manager)
9089
MenuButton
9190
text: 'About'
9291
on_released:

eventsapp/uix/screens/screenregister.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class ScreenRegister(Factory.Screen):
6161
ActiveButton:
6262
height: dp(30)
6363
text: 'Change...'
64+
width: dp(100)
6465
size_hint_x: None
6566
pos_hint: {'center_y': .5}
6667
on_release: root.show_file_chooser()
@@ -105,6 +106,7 @@ class ScreenRegister(Factory.Screen):
105106
height: dp(30)
106107
text: "Check..."
107108
size_hint_x: None
109+
width: dp(100)
108110
pos_hint: {'center_y': .5}
109111
on_release: root.check_attendee(ti.text)
110112
BackLabel
@@ -115,7 +117,7 @@ class ScreenRegister(Factory.Screen):
115117
padding: dp(9)
116118
size_hint: 1, None
117119
height: self.minimum_height
118-
spacing: dp(9)
120+
spacing: dp(13)
119121
cols: 1
120122
BackLabel
121123
id: lbl_name

0 commit comments

Comments
 (0)