Permalink
Please sign in to comment.
Showing
with
253 additions
and 99 deletions.
- +58 −0 .travis.yml
- +28 −19 README.md
- +15 −7 app/build.gradle
- +10 −4 app/src/main/AndroidManifest.xml
- +0 −10 app/src/main/java/io/hypertrack/sendeta/model/AppDeepLink.java
- +9 −4 .../hypertrack/sendeta/service/{MetaFCMListenerService.java → HyperTrackLiveFCMListenerService.java}
- +0 −50 app/src/main/java/io/hypertrack/sendeta/util/AnalyticsConstants.java
- +7 −5 app/src/main/java/io/hypertrack/sendeta/util/DeepLinkUtil.java
- +54 −0 app/src/test/java/io/hypertrack/sendeta/util/DeepLinkUtilTest.java
- +71 −0 app/src/test/java/io/hypertrack/sendeta/view/TrackTest.java
- +1 −0 key.properties
58
.travis.yml
| @@ -0,0 +1,58 @@ | ||
| +language: android | ||
| + | ||
| +jdk: | ||
| + - oraclejdk8 | ||
| + | ||
| +env: | ||
| + global: | ||
| + - ANDROID_API_LEVEL=23 | ||
| + - EMULATOR_API_LEVEL=21 | ||
| + - ANDROID_BUILD_TOOLS_VERSION=23.0.2 | ||
| + - ANDROID_ABI=armeabi-v7a | ||
| + - ANDROID_TAG=google_apis | ||
| + - ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default) | ||
| + | ||
| +before_script: | ||
| + # Create and start emulator | ||
| + - echo no | android create avd --force -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG | ||
| + - emulator -avd test -no-skin -no-audio -no-window & | ||
| + - android-wait-for-emulator | ||
| + - adb shell input keyevent 82 & | ||
| + | ||
| +before_cache: | ||
| + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
| + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
| +cache: | ||
| + directories: | ||
| + - $HOME/.gradle/caches/ | ||
| + - $HOME/.gradle/wrapper/ | ||
| + | ||
| +android: | ||
| + components: | ||
| + # Uncomment the lines below if you want to | ||
| + # use the latest revision of Android SDK Tools | ||
| + - tools | ||
| + - platform-tools | ||
| + - tools | ||
| + - build-tools-25.0.2 | ||
| + - android-25 | ||
| + - extra-google-google_play_services | ||
| + - extra-google-m2repository | ||
| + - extra-android-m2repository | ||
| + - addon-google_apis-google-19 | ||
| + - extra-google-android-support | ||
| + | ||
| + # The SDK version used to compile your project | ||
| + - android-16 | ||
| + - android-21 | ||
| + - android-22 | ||
| + - android-25 | ||
| + | ||
| + # Specify at least one system image, | ||
| + # if you need to run emulator(s) during your tests | ||
| + - sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL | ||
| + # - sys-img-x86-android-17 | ||
| + licenses: | ||
| + - android-sdk-preview-license-52d11cd2 | ||
| + - android-sdk-license-.+ | ||
| + - google-gdk-license-.+ |
| @@ -1,50 +0,0 @@ | ||
| -/* | ||
| -The MIT License (MIT) | ||
| - | ||
| -Copyright (c) 2015-2017 HyperTrack (http://hypertrack.com) | ||
| - | ||
| -Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| -of this software and associated documentation files (the "Software"), to deal | ||
| -in the Software without restriction, including without limitation the rights | ||
| -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| -copies of the Software, and to permit persons to whom the Software is | ||
| -furnished to do so, subject to the following conditions: | ||
| - | ||
| -The above copyright notice and this permission notice shall be included in all | ||
| -copies or substantial portions of the Software. | ||
| - | ||
| -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| -SOFTWARE. | ||
| -*/ | ||
| -package io.hypertrack.sendeta.util; | ||
| - | ||
| -/** | ||
| - * Created by piyush on 29/06/16. | ||
| - */ | ||
| -public class AnalyticsConstants { | ||
| - | ||
| - public class Event { | ||
| - // Signup Events | ||
| - public static final String ENTERED_NAME = "Entered name"; | ||
| - public static final String UPLOADED_PROFILE_PHOTO = "Uploaded profile photo"; | ||
| - | ||
| - // Location Sharing Events | ||
| - public static final String STARTED_SHARING = "Started a trip"; | ||
| - | ||
| - // Tapped on Icons during a Live Trip | ||
| - public static final String TAPPED_SHARE_ICON = "Tapped on share icon on live trip"; | ||
| - public static final String TAPPED_NAVIGATE_ICON = "Tapped on navigate icon on live trip"; | ||
| - public static final String TAPPED_STOP_SHARING = "Tapped on end trip CTA on live trip"; | ||
| - } | ||
| - | ||
| - public class EventParam { | ||
| - public static final String STATUS = "status"; | ||
| - public static final String ERROR_MESSAGE = "error_message"; | ||
| - public static final String SHARED_CURRENT_TRIP_BEFORE = "had_shared_this_trip_before"; | ||
| - } | ||
| -} |
Oops, something went wrong.
0 comments on commit
778b797