-
Notifications
You must be signed in to change notification settings - Fork 355
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
1 parent
a3efb8b
commit 56bd9b0
Showing
3 changed files
with
81 additions
and
106 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,42 +1,17 @@ | ||
language: android | ||
jdk: oraclejdk8 | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
sudo: required | ||
|
||
android: | ||
components: | ||
# use the latest revision of Android SDK Tools | ||
- tools | ||
- platform-tools | ||
|
||
# The BuildTools version used by your project | ||
- tools | ||
- build-tools-25.0.2 | ||
|
||
# The SDK version used to compile your project | ||
- android-25 | ||
|
||
# Additional components | ||
- extra-google-google_play_services | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
|
||
# uncomment when we enable espresso tests | ||
# - sys-img-armeabi-v7a-android-21 | ||
|
||
licenses: | ||
- 'android-sdk-license-.+' | ||
|
||
# uncomment the following lines to use emulator while runnning espresso tests | ||
# Emulator Management: Create, Start and Wait | ||
#before_script: | ||
# - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a | ||
# - emulator -avd test -no-skin -no-audio -no-window & | ||
# - android-wait-for-emulator | ||
# - adb shell input keyevent 82 & | ||
|
||
# run gradle lint and | ||
# gradle build without using using tests for now (assemble) on debug build only | ||
script: | ||
- ./gradlew lintDebug | ||
- ./gradlew assembleDebug | ||
- ./gradlew build | ||
- ./gradlew test |
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 |
---|---|---|
|
@@ -20,94 +20,94 @@ android { | |
abortOnError false | ||
} | ||
} | ||
} | ||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:25.2.0' | ||
compile 'com.facebook.rebound:rebound:0.3.8' | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:25.2.0' | ||
compile 'com.facebook.rebound:rebound:0.3.8' | ||
} | ||
|
||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
version = "0.1.1" | ||
def siteUrl = 'https://github.com/yadav-rahul/TastyToast' // project homepage | ||
def gitUrl = 'https://github.com/yadav-rahul/TastyToast.git' // project git | ||
group = "com.sdsmdg.tastytoast" | ||
version = "0.1.1" | ||
def siteUrl = 'https://github.com/yadav-rahul/TastyToast' // project homepage | ||
def gitUrl = 'https://github.com/yadav-rahul/TastyToast.git' // project git | ||
group = "com.sdsmdg.tastytoast" | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom { | ||
project { | ||
packaging 'aar' | ||
name 'TastyToast For Android' | ||
url siteUrl | ||
licenses { | ||
license { | ||
name 'The Apache software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id '' | ||
name 'Rahul' | ||
email '[email protected]' | ||
} | ||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom { | ||
project { | ||
packaging 'aar' | ||
name 'TastyToast For Android' | ||
url siteUrl | ||
licenses { | ||
license { | ||
name 'The Apache software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
developers { | ||
developer { | ||
id '' | ||
name 'Rahul' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
} | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
javadoc { | ||
options { | ||
encoding 'UTF-8' | ||
charSet 'UTF-8' | ||
author true | ||
} | ||
javadoc { | ||
options { | ||
encoding 'UTF-8' | ||
charSet 'UTF-8' | ||
author true | ||
} | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.apikey") | ||
configurations = ['archives'] | ||
pkg { | ||
repo = "maven" | ||
name = "tasty-toast" // project name in maven | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["Apache-2.0"] | ||
publish = true | ||
} | ||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.apikey") | ||
configurations = ['archives'] | ||
pkg { | ||
repo = "maven" | ||
name = "tasty-toast" // project name in maven | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["Apache-2.0"] | ||
publish = true | ||
} | ||
} | ||
|