Skip to content

Commit a219a73

Browse files
committed
Fix test apps for service_only and webview bootstraps
1 parent c5138f6 commit a219a73

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

testapps/setup_testapp_flask.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
options = {'apk': {'debug': None,
66
'requirements': 'python2,flask,pyjnius',
77
'android-api': 27,
8+
'ndk-api': 21,
89
'ndk-dir': '/home/asandy/android/crystax-ndk-10.3.2',
910
'dist-name': 'testapp_flask',
1011
'ndk-version': '10.3.2',
1112
'bootstrap': 'webview',
1213
'permissions': ['INTERNET', 'VIBRATE'],
14+
'arch': 'armeabi-v7a',
1315
'window': None,
1416
}}
1517

testapps/setup_testapp_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
'bootstrap': 'service_only',
1313
'permissions': ['INTERNET', 'VIBRATE'],
1414
'arch': 'armeabi-v7a',
15-
'window': None,
1615
}}
1716

1817
package_data = {'': ['*.py']}

testapps/testapp_flask/main.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
print('main.py was successfully called')
22
print('this is the new main.py')
33

4+
import sys
5+
print('python version is: ' + sys.version)
6+
print('python path is', sys.path)
7+
48
import os
59
print('imported os')
610

7-
try:
8-
print('contents of ./lib/python2.7/site-packages/ etc.')
9-
print(os.listdir('./lib'))
10-
print(os.listdir('./lib/python2.7'))
11-
print(os.listdir('./lib/python2.7/site-packages'))
12-
except OSError:
13-
print('could not look in dirs')
14-
print('this is expected on desktop')
15-
1611
import flask
1712
print('flask1???')
1813

@@ -21,9 +16,6 @@
2116
import flask
2217
print('flask???')
2318

24-
import sys
25-
print('pythonpath is', sys.path)
26-
2719

2820
from flask import Flask
2921
app = Flask(__name__)

0 commit comments

Comments
 (0)