Skip to content

Commit

Permalink
README.md updates (#2)
Browse files Browse the repository at this point in the history
- Updated Travis build to fix issues related to emulator startup errors
- updated Android Support Library to latest
  • Loading branch information
zawadz88 authored May 7, 2017
1 parent 5b78173 commit f5fbe0b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: android
jdk: oraclejdk8
cache: false
sudo: false
env:
global:
- ANDROID_API_LEVEL=25
- EMULATOR_API_LEVEL=21
- EMULATOR_API_LEVEL=22
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)
- SDCARD_NAME=sdcard-${EMULATOR_API_LEVEL}.img
android:
components:
Expand Down Expand Up @@ -38,15 +38,15 @@ before_script:
# Create & wait for emulator
- echo no | android create avd -f -n emulator-v${EMULATOR_API_LEVEL} -t android-${EMULATOR_API_LEVEL} --abi ${ANDROID_ABI} --sdcard ${SDCARD_NAME}
- emulator -avd emulator-v${EMULATOR_API_LEVEL} -no-audio -no-window &
- android-wait-for-emulator
- android list target
- ./android-wait-for-emulator
- adb shell input keyevent 82 &
# Install APKs needed for UI tests
- adb install test-apks/AndroidPdfViewer_1_0_1.apk
- adb install test-apks/FakeFacebook.apk
- adb install test-apks/FakeGmail.apk

script:
- ./gradlew jacocoTestReport --info -Pinstall_options=-r,-t -PTEST_COVERAGE_ENABLED=true
- ./gradlew jacocoTestReport --stacktrace -Pinstall_options=-r,-t -PTEST_COVERAGE_ENABLED=true

after_success:
- bash <(curl -s https://codecov.io/bash)
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,23 @@ compile 'com.github.zawadz88:material-activity-chooser:0.2.1'
- going to the chosen activity settings on long-click

## Screenshots
- Showcase<br/>

### Showcase
<img src ="./screenshots/showcase.gif" width="360" height="640"/>
- Sharing with MaterialActivityChooser<br/>

### Sharing with MaterialActivityChooser
<img src ="./screenshots/share.png" width="360" height="640"/>
- Sharing with the system IntentChooser on Nougat for comparison<br/>

### Sharing with the system IntentChooser on Nougat for comparison
<img src ="./screenshots/stock_share_on_nougat.png" width="360" height="640"/>
- Sharing with MaterialActivityChooser with custom style<br/>

### Sharing with MaterialActivityChooser with custom style
<img src ="./screenshots/styled_share.png" width="360" height="640"/>
- Sharing with MaterialActivityChooser when no activities found<br/>

### Sharing with MaterialActivityChooser when no activities found
<img src ="./screenshots/empty_view.png" width="360" height="640"/>
- Sharing with MaterialActivityChooser when no activities found with a custom view<br/>

### Sharing with MaterialActivityChooser when no activities found with a custom view
<img src ="./screenshots/empty_view_custom.png" width="360" height="640"/>

## Getting started
Expand Down
25 changes: 25 additions & 0 deletions android-wait-for-emulator
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain

set +e

bootanim=""
failcounter=0
timeout_in_sec=600

until [[ "$bootanim" =~ "stopped" ]]; do
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1 &`
if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline"
|| "$bootanim" =~ "running" ]]; then
let "failcounter += 1"
echo "Waiting for emulator to start"
if [[ $failcounter -gt timeout_in_sec ]]; then
echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator"
exit 1
fi
fi
sleep 1
done

echo "Emulator is ready"
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
Expand All @@ -26,7 +26,7 @@ configure(allprojects) {
androidTargetSdkVersion = 25
androidCompileSdkVersion = 25
androidBuildToolsVersion = "25.0.2"
androidSupportLibraryVersion = "25.1.0"
androidSupportLibraryVersion = "25.3.1"
butterknifeVersion = "8.4.0"

junitVersion = "4.12"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 28 10:00:20 PST 2015
#Thu Mar 23 10:57:18 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 comments on commit f5fbe0b

Please sign in to comment.