Skip to content

Commit b85f7cf

Browse files
committed
Add failOnError false
1 parent bf61a20 commit b85f7cf

3 files changed

Lines changed: 22 additions & 17 deletions

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ buildscript {
1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:3.5.3'
1212
classpath 'com.novoda:bintray-release:0.8.0'
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }
13+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14+
}
1415
}
1516

1617
allprojects {

library/build.gradle

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//文件开头配置
22
apply plugin: 'com.android.library'
3-
apply plugin: 'com.novoda.bintray-release'
3+
//apply plugin: 'com.novoda.bintray-release'
44
apply plugin: 'kotlin-android'
55

6+
group='com.hjq.toast'
7+
version="9.0.7"
8+
69
android {
710
compileSdkVersion 26
811

@@ -11,8 +14,8 @@ android {
1114
defaultConfig {
1215
minSdkVersion 3
1316
targetSdkVersion 26
14-
versionCode 80
15-
versionName "8.0"
17+
versionCode 90007
18+
versionName "9.0.7"
1619
}
1720
lintOptions.abortOnError = false
1821
buildTypes {
@@ -52,17 +55,18 @@ task sourcesJar(type: Jar) {
5255
classifier = 'sources'
5356
}
5457

55-
//task javadoc(type: Javadoc) {
56-
// source = android.sourceSets.main.java.srcDirs
57-
// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
58-
//}
59-
//
60-
//task javadocJar(type: Jar, dependsOn: javadoc) {
61-
// classifier = 'javadoc'
62-
// from javadoc.destinationDir
63-
//}
58+
task javadoc(type: Javadoc) {
59+
failOnError false
60+
source = android.sourceSets.main.java.srcDirs
61+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
62+
}
63+
64+
task javadocJar(type: Jar, dependsOn: javadoc) {
65+
classifier = 'javadoc'
66+
from javadoc.destinationDir
67+
}
6468

6569
artifacts {
66-
// archives javadocJar
70+
archives javadocJar
6771
archives sourcesJar
6872
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.hjq.toast
22

3+
import android.app.Activity
4+
import android.content.Context
5+
36
/**
47
* author: Tim Chen
58
* time : 2020-04-09
69
* desc :
710
*/
8-
import android.app.Activity
9-
import android.content.Context
10-
1111
inline fun Activity.toastMe(message: CharSequence) = ToastUtils.show(message)
1212

1313
inline fun Context.toastMe(message: CharSequence) = ToastUtils.show(message)

0 commit comments

Comments
 (0)