Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #79 from alexstyl/all_events
Browse files Browse the repository at this point in the history
Display all device events
  • Loading branch information
alexstyl authored Dec 4, 2016
2 parents 4447a50 + 3f97f8b commit fd2741e
Show file tree
Hide file tree
Showing 123 changed files with 2,150 additions and 2,727 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ captures/

# secrets
secret.gradle
*google-services.json
google-services.json
64 changes: 38 additions & 26 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Build script taken and altered from: /~https://github.com/firebase/quickstart-android/blob/master/build.sh
#!/bin/bash

# Exit on error
Expand All @@ -6,29 +7,40 @@ set -e
# Limit memory usage
OPTS='-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'


# Copy mock secret.gradle file if necessary
if [ ! -f secret.gradle ]; then
echo "Secret.gradle not found. Using sample"
cp secret.gradle.sample secret.gradle
fi


# Work off travis
if [[ -v TRAVIS_PULL_REQUEST ]]; then
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
else
echo "TRAVIS_PULL_REQUEST: unset, setting to false"
TRAVIS_PULL_REQUEST=false
fi

# Build
if [ $TRAVIS_PULL_REQUEST = false ] ; then
# For a merged commit, build all configurations.
GRADLE_OPTS=$OPTS ./gradlew clean build
else
# On a pull request, just build debug which is much faster and catches
# obvious errors.
GRADLE_OPTS=$OPTS ./gradlew clean :mobile:assembleDebug
fi

# Work off travis
if [[ ! -z TRAVIS_PULL_REQUEST ]]; then
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
else
echo "TRAVIS_PULL_REQUEST: unset, setting to false"
TRAVIS_PULL_REQUEST=false
fi

echo "Building ${SAMPLE}"

# Copy mock secret.gradle file if necessary
if [ ! -f secret.gradle ]; then
echo "Secret.gradle not found. Using sample"
cp secret.gradle.sample secret.gradle
fi

# Copy mock google-services file if necessary
if [ ! -f ./mobile/src/free/google-services.json ]; then
echo "Using mock google-services.json for free"
mkdir ./mobile/src/free/
cp mock-google-services.json ./mobile/src/free/google-services.json
fi
if [ ! -f ./mobile/src/pro/google-services.json ]; then
echo "Using mock google-services.json for pro"
mkdir ./mobile/src/pro/
cp mock-google-services.json ./mobile/src/pro/google-services.json
fi

# Build
if [ $TRAVIS_PULL_REQUEST = false ] ; then
# For a merged commit, build all configurations.
GRADLE_OPTS=$OPTS ./gradlew clean build
else
# On a pull request, just build debug which is much faster and catches
# obvious errors.
GRADLE_OPTS=$OPTS ./gradlew clean :mobile:assembleDebug
fi
Loading

0 comments on commit fd2741e

Please sign in to comment.