Skip to content

Commit

Permalink
Merge pull request #1532 from JonasT/patch-1
Browse files Browse the repository at this point in the history
Use API 27 as new default for travis & docs
  • Loading branch information
AndreMiras authored Dec 16, 2018
2 parents 6c41014 + 6f250c7 commit 8493d5e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
10 changes: 5 additions & 5 deletions doc/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ the latest useable NDK version is r10e, which can be downloaded here:

- `Legacy 32-bit Linux NDK r10e <http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin>`_

First, install a platform to target (you can also replace ``19`` with
First, install a platform to target (you can also replace ``27`` with
a different platform number, this will be used again later)::

$SDK_DIR/tools/bin/sdkmanager "platforms;android-19"
$SDK_DIR/tools/bin/sdkmanager "platforms;android-27"

Second, install the build-tools. You can use
``$SDK_DIR/tools/bin/sdkmanager --list`` to see all the
Expand All @@ -112,9 +112,9 @@ possibilities, but 26.0.2 is the latest version at the time of writing::
Then, you can edit your ``~/.bashrc`` or other favorite shell to include new environment variables necessary for building on android::

# Adjust the paths!
export ANDROIDSDK="$HOME/Documents/android-sdk-21"
export ANDROIDSDK="$HOME/Documents/android-sdk-27"
export ANDROIDNDK="$HOME/Documents/android-ndk-r10e"
export ANDROIDAPI="26" # Target API version of your application
export ANDROIDAPI="27" # Target API version of your application
export NDKAPI="19" # Minimum supported API version of your application
export ANDROIDNDKVER="r10e" # Version of the NDK you installed

Expand Down Expand Up @@ -260,7 +260,7 @@ command line. For example, you can add the options you would always
include such as::

--dist_name my_example
--android_api 19
--android_api 27
--requirements kivy,openssl


Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/bdistapk.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def finalize_options(self):
sys.argv.append('--version={}'.format(version))

if not argv_contains('--arch'):
arch = 'armeabi'
arch = 'armeabi-v7a'
self.arch = arch
sys.argv.append('--arch={}'.format(arch))

Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def __init__(self):

generic_parser.add_argument(
'--arch', help='The archs to build for, separated by commas.',
default='armeabi')
default='armeabi-v7a')

# Options for specifying the Distribution
generic_parser.add_argument(
Expand Down
3 changes: 1 addition & 2 deletions testapps/setup_testapp_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

options = {'apk': {'debug': None,
'requirements': 'python2,flask,pyjnius',
'android-api': 19,
'android-api': 27,
'ndk-dir': '/home/asandy/android/crystax-ndk-10.3.2',
'dist-name': 'testapp_flask',
'ndk-version': '10.3.2',
'bootstrap': 'webview',
'permissions': ['INTERNET', 'VIBRATE'],
'arch': 'armeabi-v7a',
'window': None,
}}

Expand Down
2 changes: 1 addition & 1 deletion testapps/setup_testapp_python2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import find_packages

options = {'apk': {'requirements': 'sdl2,pyjnius,kivy,python2',
'android-api': 19,
'android-api': 27,
'ndk-api': 19,
'ndk-dir': '/home/asandy/android/crystax-ndk-10.3.2',
'dist-name': 'bdisttest_python2',
Expand Down
3 changes: 1 addition & 2 deletions testapps/setup_testapp_python2_sqlite_openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
from setuptools import find_packages

options = {'apk': {'requirements': 'sdl2,pyjnius,kivy,python2,openssl,requests,peewee,sqlite3',
'android-api': 19,
'android-api': 27,
'ndk-api': 19,
'ndk-dir': '/home/sandy/android/crystax-ndk-10.3.2',
'dist-name': 'bdisttest_python2_sqlite_openssl',
'ndk-version': '10.3.2',
'permission': 'VIBRATE',
'permission': 'INTERNET',
'arch': 'armeabi-v7a',
'window': None,
}}

Expand Down
1 change: 0 additions & 1 deletion testapps/setup_testapp_python3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'ndk-api': 21,
'dist-name': 'bdisttest_python3_googlendk',
'ndk-version': '10.3.2',
'arch': 'armeabi-v7a',
'permission': 'VIBRATE',
}}

Expand Down
1 change: 0 additions & 1 deletion testapps/setup_testapp_python3crystax.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'ndk-dir': '/home/asandy/android/crystax-ndk-10.3.2',
'dist-name': 'bdisttest_python3',
'ndk-version': '10.3.2',
'arch': 'armeabi-v7a',
'permission': 'VIBRATE',
}}

Expand Down

0 comments on commit 8493d5e

Please sign in to comment.