Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from concretesolutions/vn/2.0
Refatora para 2.0
- Loading branch information
Showing
68 changed files
with
718 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,48 @@ | ||
language: android | ||
sudo: required | ||
jdk: oraclejdk8 | ||
sudo: required # For faster internet speeds and more memory | ||
before_install: | ||
- mkdir "$ANDROID_HOME/licenses" || true | ||
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | ||
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | ||
|
||
android: | ||
components: | ||
- tools | ||
- tools | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
-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 | ||
-$HOME/.gradle/caches/ | ||
-$HOME/.gradle/wrapper/ | ||
|
||
before_install: | ||
# Download SDK | ||
- echo yes | sdkmanager "tools" &>/dev/null | ||
- echo yes | sdkmanager "platform-tools" &>/dev/null | ||
- echo yes | sdkmanager "build-tools;26.0.2" &>/dev/null | ||
- echo yes | sdkmanager "platforms;android-26" &>/dev/null | ||
# Download emulator | ||
- echo yes | sdkmanager "platforms;android-19" &>/dev/null | ||
- echo yes | sdkmanager "system-images;android-19;default;armeabi-v7a" &>/dev/null | ||
- echo yes | sdkmanager --licenses &>/dev/null | ||
# Setup emulator | ||
- echo no | avdmanager create avd --force -n test -k "system-images;android-19;default;armeabi-v7a" &>/dev/null | ||
- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window & &>/dev/null | ||
|
||
before_script: | ||
- ${ANDROID_HOME}tools/bin/sdkmanager --channel=3 "tools" "platform-tools" "build-tools;26.0.1" "platforms;android-26" "extras;google;m2repository" | ||
# Make sure the emulator is available | ||
- android-wait-for-emulator | ||
|
||
# Turn off animations | ||
- adb shell settings put global window_animation_scale 0 & | ||
- adb shell settings put global transition_animation_scale 0 & | ||
- adb shell settings put global animator_duration_scale 0 & | ||
|
||
# For Multidex issue for devices API < 19 | ||
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v | ||
- adb shell stop installd | ||
- adb shell start installd | ||
|
||
# Wake up | ||
- adb shell input keyevent 82 & | ||
|
||
script: | ||
- ./gradlew clean assemble check :sample:test | ||
- ./gradlew clean check --stacktrace --info | ||
|
||
after_failure: "cat $TRAVIS_BUILD_DIR/sample/build/outputs/lint-results-debug.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
google() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.0.0-beta7' | ||
classpath 'com.android.tools.build:gradle:3.0.0' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
google() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<manifest package="br.com.concretesolutions.canarinho" /> | ||
<manifest package="br.com.concrete.canarinho" /> |
2 changes: 1 addition & 1 deletion
2
...ncretesolutions/canarinho/DigitoPara.java → ...br/com/concrete/canarinho/DigitoPara.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package br.com.concretesolutions.canarinho; | ||
package br.com.concrete.canarinho; | ||
|
||
import android.util.SparseArray; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.