Skip to content

Commit

Permalink
Fix Travis CI build error
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit211997 authored and yadav-rahul committed Apr 2, 2017
1 parent a3efb8b commit 56bd9b0
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 106 deletions.
35 changes: 5 additions & 30 deletions .travis.yml
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Grab the above demo app from here :

[![Get it on Google Play](https://play.google.com/intl/en_us/badges/images/badge_new.png)](https://play.google.com/store/apps/details?id=com.demo.tastytoast)

##Dependency
## Dependency

Add dependency in your app module

Expand All @@ -33,9 +33,9 @@ dependencies {
}
```

##Usage
## Usage

###Java
### Java
```
TastyToast.makeText(getApplicationContext(), "Hello World !", TastyToast.LENGTH_LONG, TastyToast.WARNING);
```
Expand Down
146 changes: 73 additions & 73 deletions tastytoast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 56bd9b0

Please sign in to comment.