File tree Expand file tree Collapse file tree
src/main/java/com/hjq/toast Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1617allprojects {
Original file line number Diff line number Diff line change 11// 文件开头配置
22apply plugin : ' com.android.library'
3- apply plugin : ' com.novoda.bintray-release'
3+ // apply plugin: 'com.novoda.bintray-release'
44apply plugin : ' kotlin-android'
55
6+ group= ' com.hjq.toast'
7+ version= " 9.0.7"
8+
69android {
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
6569artifacts {
66- // archives javadocJar
70+ archives javadocJar
6771 archives sourcesJar
6872}
Original file line number Diff line number Diff line change 11package 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-
1111inline fun Activity.toastMe (message : CharSequence ) = ToastUtils .show(message)
1212
1313inline fun Context.toastMe (message : CharSequence ) = ToastUtils .show(message)
You can’t perform that action at this time.
0 commit comments