diff --git a/Dockerfile b/Dockerfile index d507f81..0d29457 100644 --- a/Dockerfile +++ b/Dockerfile @@ -129,7 +129,7 @@ ENV PATH ${PATH}:${ANDROID_HOME}/build-tools RUN rm ${ANDROID_HOME}/tools/emulator \ && ln -s ${ANDROID_HOME}/tools/emulator64-${PROCESSOR} ${ANDROID_HOME}/tools/emulator -RUN echo y | android update sdk --no-ui -a -t android-${API_LEVEL},sys-img-${SYS_IMG}-android-${API_LEVEL} +RUN echo y | android update sdk --no-ui -a -t android-${API_LEVEL},sys-img-${SYS_IMG}-google_apis-${API_LEVEL} #================================================ # noVNC Default Configurations diff --git a/README.md b/README.md index 5b59770..3f40464 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,12 @@ List of Docker images |Linux|5.1.1|22|butomo1989/docker-android-x86-5.1.1|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-x86-5.1.1.svg)](https://microbadger.com/images/butomo1989/docker-android-x86-5.1.1 "Get your own image badge on microbadger.com")| |Linux|6.0|23|butomo1989/docker-android-x86-6.0|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-x86-6.0.svg)](https://microbadger.com/images/butomo1989/docker-android-x86-6.0 "Get your own image badge on microbadger.com")| |Linux|7.0|24|butomo1989/docker-android-x86-7.0|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-x86-7.0.svg)](https://microbadger.com/images/butomo1989/docker-android-x86-7.0 "Get your own image badge on microbadger.com")| -|Linux|7.1.1|25|*TODO* because still have a Bug|| +|Linux|7.1.1|25|butomo1989/docker-android-x86-7.1.1|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-x86-7.1.1.svg)](https://microbadger.com/images/butomo1989/docker-android-x86-7.1.1 "Get your own image badge on microbadger.com")| |OSX / Windows|5.0.1|21|butomo1989/docker-android-arm-5.0.1|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-arm-5.0.1.svg)](https://microbadger.com/images/butomo1989/docker-android-arm-5.0.1 "Get your own image badge on microbadger.com")| |OSX / Windows|5.1.1|22|butomo1989/docker-android-arm-5.1.1|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-arm-5.1.1.svg)](https://microbadger.com/images/butomo1989/docker-android-arm-5.1.1 "Get your own image badge on microbadger.com")| |OSX / Windows|6.0|23|butomo1989/docker-android-arm-6.0|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-arm-6.0.svg)](https://microbadger.com/images/butomo1989/docker-android-arm-6.0 "Get your own image badge on microbadger.com")| |OSX / Windows|7.0|24|butomo1989/docker-android-arm-7.0|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-arm-7.0.svg)](https://microbadger.com/images/butomo1989/docker-android-arm-7.0 "Get your own image badge on microbadger.com")| -|OSX / Windows|7.1.1|25|*TODO* because still have a Bug|| +|OSX / Windows|7.1.1|25|butomo1989/docker-android-arm-7.1.1|[![](https://images.microbadger.com/badges/image/butomo1989/docker-android-arm-7.1.1.svg)](https://microbadger.com/images/butomo1989/docker-android-arm-7.1.1 "Get your own image badge on microbadger.com")| Quick Start ----------- diff --git a/example/android/python/msite_simple_chrome.py b/example/android/python/msite_simple_chrome.py new file mode 100644 index 0000000..67ee18f --- /dev/null +++ b/example/android/python/msite_simple_chrome.py @@ -0,0 +1,26 @@ +import unittest + +from appium import webdriver + + +class MSiteChromeAndroidUITests(unittest.TestCase): + + def setUp(self): + desired_caps = { + 'platformName': 'Android', + 'deviceName': 'Android Emulator', + 'appPackage': 'com.android.chrome', + 'appActivity': 'com.google.android.apps.chrome.Main', + 'avd': 'samsung_galaxy_s6_5.0.1' + } + self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) + + def test_open_url(self): + self.driver.get('http://targeturl.com') + + def tearDown(self): + self.driver.quit() + +if __name__ == '__main__': + suite = unittest.TestLoader().loadTestsFromTestCase(MSiteChromeAndroidUITests) + unittest.TextTestRunner(verbosity=2).run(suite) diff --git a/release.sh b/release.sh index 849c2d5..c094713 100755 --- a/release.sh +++ b/release.sh @@ -11,7 +11,7 @@ else fi if [ -z "$2" ]; then - read -p "Android version (5.0.1|5.1.1|6.0|7.0|all): " ANDROID_VERSION + read -p "Android version (5.0.1|5.1.1|6.0|7.0|7.1.1|all): " ANDROID_VERSION else ANDROID_VERSION=$2 fi @@ -33,6 +33,7 @@ declare -A list_of_levels=( [5.1.1]=22 [6.0]=23 [7.0]=24 + [7.1.1]=25 ) declare -A list_of_processors=( diff --git a/src/app.py b/src/app.py index 065eddb..af21590 100644 --- a/src/app.py +++ b/src/app.py @@ -59,7 +59,7 @@ def prepare_avd(device: str, avd_name: str): :param device: Device name :param avd_name: Name of android virtual device / emulator """ - cmd = 'echo no | android create avd -f -n {name} -t android-{api} -b {sys_img}'.format( + cmd = 'echo no | android create avd -f -n {name} -t android-{api} -b google_apis/{sys_img}'.format( name=avd_name, api=API_LEVEL, sys_img=SYS_IMG) # Link emulator skins