Skip to content

Commit 56bd9b0

Browse files
harshit211997yadav-rahul
authored andcommitted
Fix Travis CI build error
1 parent a3efb8b commit 56bd9b0

File tree

3 files changed

+81
-106
lines changed

3 files changed

+81
-106
lines changed

.travis.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,17 @@
11
language: android
22
jdk: oraclejdk8
3-
cache:
4-
directories:
5-
- $HOME/.gradle/caches/
6-
- $HOME/.gradle/wrapper/
3+
sudo: required
4+
75
android:
86
components:
9-
# use the latest revision of Android SDK Tools
107
- tools
118
- platform-tools
12-
13-
# The BuildTools version used by your project
9+
- tools
1410
- build-tools-25.0.2
15-
16-
# The SDK version used to compile your project
1711
- android-25
18-
19-
# Additional components
20-
- extra-google-google_play_services
2112
- extra-google-m2repository
2213
- extra-android-m2repository
2314

24-
# uncomment when we enable espresso tests
25-
# - sys-img-armeabi-v7a-android-21
26-
27-
licenses:
28-
- 'android-sdk-license-.+'
29-
30-
# uncomment the following lines to use emulator while runnning espresso tests
31-
# Emulator Management: Create, Start and Wait
32-
#before_script:
33-
# - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
34-
# - emulator -avd test -no-skin -no-audio -no-window &
35-
# - android-wait-for-emulator
36-
# - adb shell input keyevent 82 &
37-
38-
# run gradle lint and
39-
# gradle build without using using tests for now (assemble) on debug build only
4015
script:
41-
- ./gradlew lintDebug
42-
- ./gradlew assembleDebug
16+
- ./gradlew build
17+
- ./gradlew test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Grab the above demo app from here :
2323

2424
[![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)
2525

26-
##Dependency
26+
## Dependency
2727

2828
Add dependency in your app module
2929

@@ -33,9 +33,9 @@ dependencies {
3333
}
3434
```
3535

36-
##Usage
36+
## Usage
3737

38-
###Java
38+
### Java
3939
```
4040
TastyToast.makeText(getApplicationContext(), "Hello World !", TastyToast.LENGTH_LONG, TastyToast.WARNING);
4141
```

tastytoast/build.gradle

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -20,94 +20,94 @@ android {
2020
abortOnError false
2121
}
2222
}
23+
}
24+
dependencies {
25+
compile fileTree(dir: 'libs', include: ['*.jar'])
26+
testCompile 'junit:junit:4.12'
27+
compile 'com.android.support:appcompat-v7:25.2.0'
28+
compile 'com.facebook.rebound:rebound:0.3.8'
29+
}
2330

24-
dependencies {
25-
compile fileTree(dir: 'libs', include: ['*.jar'])
26-
testCompile 'junit:junit:4.12'
27-
compile 'com.android.support:appcompat-v7:25.2.0'
28-
compile 'com.facebook.rebound:rebound:0.3.8'
29-
}
30-
31-
apply plugin: 'com.github.dcendents.android-maven'
32-
apply plugin: 'com.jfrog.bintray'
31+
apply plugin: 'com.github.dcendents.android-maven'
32+
apply plugin: 'com.jfrog.bintray'
3333

34-
version = "0.1.1"
35-
def siteUrl = 'https://github.com/yadav-rahul/TastyToast' // project homepage
36-
def gitUrl = 'https://github.com/yadav-rahul/TastyToast.git' // project git
37-
group = "com.sdsmdg.tastytoast"
34+
version = "0.1.1"
35+
def siteUrl = 'https://github.com/yadav-rahul/TastyToast' // project homepage
36+
def gitUrl = 'https://github.com/yadav-rahul/TastyToast.git' // project git
37+
group = "com.sdsmdg.tastytoast"
3838

39-
install {
40-
repositories.mavenInstaller {
41-
// This generates POM.xml with proper parameters
42-
pom {
43-
project {
44-
packaging 'aar'
45-
name 'TastyToast For Android'
46-
url siteUrl
47-
licenses {
48-
license {
49-
name 'The Apache software License, Version 2.0'
50-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
51-
}
52-
}
53-
developers {
54-
developer {
55-
id ''
56-
name 'Rahul'
57-
58-
}
39+
install {
40+
repositories.mavenInstaller {
41+
// This generates POM.xml with proper parameters
42+
pom {
43+
project {
44+
packaging 'aar'
45+
name 'TastyToast For Android'
46+
url siteUrl
47+
licenses {
48+
license {
49+
name 'The Apache software License, Version 2.0'
50+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
5951
}
60-
scm {
61-
connection gitUrl
62-
developerConnection gitUrl
63-
url siteUrl
52+
}
53+
developers {
54+
developer {
55+
id ''
56+
name 'Rahul'
57+
6458
}
6559
}
60+
scm {
61+
connection gitUrl
62+
developerConnection gitUrl
63+
url siteUrl
64+
}
6665
}
6766
}
6867
}
69-
task sourcesJar(type: Jar) {
70-
from android.sourceSets.main.java.srcDirs
71-
classifier = 'sources'
72-
}
68+
}
69+
task sourcesJar(type: Jar) {
70+
from android.sourceSets.main.java.srcDirs
71+
classifier = 'sources'
72+
}
7373

74-
task javadoc(type: Javadoc) {
75-
source = android.sourceSets.main.java.srcDirs
76-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
77-
}
74+
task javadoc(type: Javadoc) {
75+
source = android.sourceSets.main.java.srcDirs
76+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
77+
}
7878

79-
task javadocJar(type: Jar, dependsOn: javadoc) {
80-
classifier = 'javadoc'
81-
from javadoc.destinationDir
82-
}
79+
task javadocJar(type: Jar, dependsOn: javadoc) {
80+
classifier = 'javadoc'
81+
from javadoc.destinationDir
82+
}
8383

84-
javadoc {
85-
options {
86-
encoding 'UTF-8'
87-
charSet 'UTF-8'
88-
author true
89-
}
84+
javadoc {
85+
options {
86+
encoding 'UTF-8'
87+
charSet 'UTF-8'
88+
author true
9089
}
90+
}
9191

92-
artifacts {
93-
archives javadocJar
94-
archives sourcesJar
95-
}
92+
artifacts {
93+
archives javadocJar
94+
archives sourcesJar
95+
}
9696

9797

98-
Properties properties = new Properties()
99-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
100-
bintray {
101-
user = properties.getProperty("bintray.user")
102-
key = properties.getProperty("bintray.apikey")
103-
configurations = ['archives']
104-
pkg {
105-
repo = "maven"
106-
name = "tasty-toast" // project name in maven
107-
websiteUrl = siteUrl
108-
vcsUrl = gitUrl
109-
licenses = ["Apache-2.0"]
110-
publish = true
111-
}
98+
Properties properties = new Properties()
99+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
100+
bintray {
101+
user = properties.getProperty("bintray.user")
102+
key = properties.getProperty("bintray.apikey")
103+
configurations = ['archives']
104+
pkg {
105+
repo = "maven"
106+
name = "tasty-toast" // project name in maven
107+
websiteUrl = siteUrl
108+
vcsUrl = gitUrl
109+
licenses = ["Apache-2.0"]
110+
publish = true
112111
}
112+
}
113113

0 commit comments

Comments
 (0)