Skip to content

Commit

Permalink
Merge pull request #4 from VirgilSecurity/dev
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
BuddahLD authored Jul 12, 2019
2 parents faaa501 + 6bbd03b commit 65dde96
Show file tree
Hide file tree
Showing 87 changed files with 8,631 additions and 2,096 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fabric.properties
### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
*.iml
# modules.xml
# .idea/misc.xml
# *.ipr
Expand Down
72 changes: 72 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
language: android
sudo: required
jdk: oraclejdk8

# Include branches
branches:
only:
- dev
- master

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/
- $HOME/.android/build-cache

env:
global:
- ANDROID_BUILD_API=28
- ANDROID_BUILD_TOOLS=28.0.3
- ANDROID_EMULATOR_API=24
- ADB_INSTALL_TIMEOUT=5 # minutes
- ANDROID_ABI=default/armeabi-v7a
- secure: GT6TmNZySCNRBBcFAg5R+PJFPOzmpr+m2SXWgW4MS1dyI6DXgcCiwzp2wq1wkmiUBnFEz1Oka8WFhKX+bb5RUGGXm82zBgNwYQDTXQUrKi+lzSzuV5H9fSnGUQaFw0J06CNGmYJnqyHeMAJaJdYK+nAveXFlydkP9njiOLEGijaznkbHMdVYrqei3nGumwXrF5Keq04xGX7snS7vX2czSMg1Kq5ZbRx8Xkq1XfBkv54QGQ22NjzvnHwoxGlEYKkcL11rdvZrBRIVVszwkPl00tDni1yz7O5T2Qf5lQZ9kn7HfeS8XYtZMZEkOhWrThl/yJfV8YonMbwBeApq/8EAENXTmF3OFHA4m2FEwn5wAxaAN8W6mSAqC5y/4RoR/cpgyheIWh4hZ+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ZiCqkSvbNGVA6fhl/q4CgZGfSaTnYwKxG6TuUe8ztHAFgewHyHM+6bT+BKXUo4edYDFpHlIcLaTSQ1ELWfjHXtS1SXEHg26yXpi7hnX6/yXJZlWwmOehqbmxzV3cFNvooiqAfrDz8zDzhd8G1+CXWurQsTzEG8LZw7fXs+1HyaulUtQEx7IyLo/hGfiY1inmiysFGrTCm8qdNg=

android:
components:
- tools # to get the new `repository-11.xml`
- tools # to install Android SDK tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_BUILD_API
- android-$ANDROID_EMULATOR_API
- extra-android-m2repository # for design library
- extra-google-m2repository
- extra-google-google_play_services
- addon-google_apis-google-28 # google play services
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_BUILD_API
- sys-img-armeabi-v7a-android-$ANDROID_EMULATOR_API

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

before_install:
- yes | sdkmanager "platforms;android-28"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
- ./gradlew dependencies || true

before_script:
- android list targets
- android list sdk --extended --no-ui --all
- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-$ANDROID_EMULATOR_API,sys-img-x86_64-android-$ANDROID_EMULATOR_API
- echo no | android create avd --force -n test -t android-$ANDROID_EMULATOR_API --abi $ANDROID_ABI
- QEMU_AUDIO_DRV=none emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

script:
- "./gradlew :ratchet:clean :ratchet:test"
- "./gradlew :ratchet-android-tests:clean :ratchet-android-tests:connectedCheck -PdisablePreDex --stacktrace"
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The BSD 3-Clause License (BSD)

Copyright (c) 2019, Virgil Security, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit 65dde96

Please sign in to comment.