forked from sephiroth74/ImageViewZoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alessandro Crugnola
committed
Mar 15, 2016
1 parent
ad917a0
commit a291c02
Showing
14 changed files
with
520 additions
and
793 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
language: android | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
android: | ||
components: | ||
- tools | ||
- build-tools-23.0.2 | ||
- android-23 | ||
- extra-android-m2repository | ||
- extra-google-m2repository | ||
- extra-android-support | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
|
||
cache: false | ||
sudo: false | ||
|
||
install: | ||
# Ensure Gradle wrapper is executable, download wrapper and show version | ||
- chmod +x ./gradlew; ls -l gradlew; ./gradlew wrapper -v | ||
|
||
# Download and show android dependencies | ||
- ./gradlew androidDependencies | ||
|
||
script: | ||
- ./gradlew library:check library:assemble |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apply plugin: 'checkstyle' | ||
|
||
checkstyle { | ||
toolVersion '6.8' | ||
configFile rootProject.file('gradle/checkstyle.xml') | ||
showViolations true | ||
configProperties = [ | ||
'checkstyle.cache.file': rootProject.file('build/checkstyle.cache'), | ||
] | ||
} | ||
|
||
def variants = (project.plugins.hasPlugin('android-library') ? | ||
project.android.libraryVariants : | ||
project.android.applicationVariants) | ||
|
||
variants.all { variant -> | ||
def name = variant.buildType.name | ||
|
||
def checkstyle = project.tasks.create "checkstyle${name.capitalize()}", Checkstyle | ||
checkstyle.dependsOn variant.javaCompile | ||
checkstyle.source variant.javaCompile.source | ||
checkstyle.classpath = project.fileTree(variant.javaCompile.destinationDir) | ||
checkstyle.exclude('**/BuildConfig.java') | ||
checkstyle.exclude('**/R.java') | ||
project.tasks.getByName("check").dependsOn checkstyle | ||
} |
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.