From ed62e7e25799acb253dc6363414ffae0b387110a Mon Sep 17 00:00:00 2001 From: zjun <565061763@qq.com> Date: Fri, 22 Jun 2018 19:37:38 +0800 Subject: [PATCH] 1.1.4 --- README.md | 14 +++++++------- build.gradle | 5 +++-- lib/build.gradle | 46 +++++++++++++++++++++++++++++++++------------- 3 files changed, 43 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index ce5ef4e..b996176 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Animator 对ObjectAnimator和AnimatorSet进行封装 -## Gradle -`implementation 'com.fanwe.android:animator:1.1.3'` +# Gradle +[![](https://jitpack.io/v/zj565061763/animator.svg)](https://jitpack.io/#zj565061763/animator) -## 关于startAsPop(boolean clone) +# 关于startAsPop(boolean clone) 为了解决view没办法超出父布局边界来执行动画的问题,提供了这个方法 ```java @@ -28,12 +28,12 @@ T startAsPop(boolean clone); ``` -## 效果 +# 效果 ![](http://thumbsnap.com/i/sK3VSRT3.gif?0521) ![](http://thumbsnap.com/i/cD2NW5lZ.gif?0815) ![](http://thumbsnap.com/i/4SvypvW0.gif?0522) -## 简单demo +# 简单demo ```java /** * 动画view和target在同一个父布局里面 @@ -110,7 +110,7 @@ public void onClickBtnAnimInside(View v) .chain().setDebug(true).startAsPop(true); } ``` -## 火箭动画demo +# 火箭动画demo ```java public void onclickStart(View v) { @@ -189,7 +189,7 @@ public void onclickStart(View v) .chain().start(); } ``` -## 汽车动画demo +# 汽车动画demo ```java public void onclickStart(View v) { diff --git a/build.gradle b/build.gradle index da95dcf..93086da 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,9 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.2' - classpath 'com.novoda:bintray-release:0.8.1' + classpath 'com.android.tools.build:gradle:3.1.3' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' + // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/lib/build.gradle b/lib/build.gradle index 08f2f6f..8e87a48 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -1,14 +1,17 @@ apply plugin: 'com.android.library' -apply plugin: 'com.novoda.bintray-release' +apply plugin: 'com.github.dcendents.android-maven' + +group = 'com.github.zj565061763' android { compileSdkVersion 27 defaultConfig { minSdkVersion 15 targetSdkVersion 22 - versionCode 20180607 - versionName "1.1.3" + versionCode 20180622 + versionName "1.1.4" } + buildTypes { release { minifyEnabled false @@ -17,6 +20,7 @@ android { } lintOptions { + checkReleaseBuilds false abortOnError false } } @@ -24,19 +28,35 @@ android { dependencies { } -publish { - userOrg = 'zj565061763' - groupId = 'com.fanwe.android' - - artifactId = 'animator' - publishVersion = '1.1.3' - desc = 'android animator library' - website = 'https://github.com/zj565061763/animator' -} - +// 指定编码 tasks.withType(Javadoc) { options { encoding "UTF-8" charSet 'UTF-8' + failOnError false } +} + +// 打包源码 +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + failOnError false + source = android.sourceSets.main.java.sourceFiles + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + classpath += configurations.compile +} + +// 制作文档(Javadoc) +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar } \ No newline at end of file