Skip to content

Commit aa38c6b

Browse files
committed
use shell as default for argparse. modified template to not use
android_api at all.
1 parent 08b959e commit aa38c6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def make_package(args):
299299
# Update the project to a recent version.
300300
try:
301301
subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t',
302-
'android-{}'.format(args['sdk_version'])])
302+
'android-{}'.format(args.sdk_version)])
303303
except (OSError, IOError):
304304
print 'An error occured while calling', ANDROID, 'update'
305305
print 'Your PATH must include android tools.'

src/templates/AndroidManifest.tmpl.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:normalScreens="true"
1212
android:largeScreens="true"
1313
android:anyDensity="true"
14-
{% if android_api >= 9 %}
14+
{% if args.min_sdk_version >= 9 %}
1515
android:xlargeScreens="true"
1616
{% endif %}
1717
/>
@@ -29,7 +29,7 @@
2929

3030
<activity android:name="org.renpy.android.PythonActivity"
3131
android:label="@string/iconName"
32-
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if android_api >= 13 %}|screenSize{% endif %}"
32+
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
3333
android:launchMode="singleTask"
3434
android:process=":python"
3535
android:screenOrientation="{{ args.orientation }}"

0 commit comments

Comments
 (0)