aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <liangyuteng12345@gmail.com>2017-08-03 10:08:50 +0800
committerTrumeet <liangyuteng12345@gmail.com>2017-08-03 10:08:50 +0800
commitecca9e03d2632369df503ac537f81668290e7fc9 (patch)
tree89329c00e61a6d61ed0575239bfc7c130b62a089
parentce2964e8ceba3c94a23ace287dbaffe329fbbbf5 (diff)
downloadAnimations-ecca9e03d2632369df503ac537f81668290e7fc9.tar
Animations-ecca9e03d2632369df503ac537f81668290e7fc9.tar.gz
Animations-ecca9e03d2632369df503ac537f81668290e7fc9.tar.bz2
Animations-ecca9e03d2632369df503ac537f81668290e7fc9.zip
refactor: use gradle 2.3.3
-rw-r--r--README.md3
-rw-r--r--app/build.gradle9
-rw-r--r--build.gradle2
-rw-r--r--library/build.gradle12
4 files changed, 12 insertions, 14 deletions
diff --git a/README.md b/README.md
index 5c95772..da17b70 100644
--- a/README.md
+++ b/README.md
@@ -47,10 +47,11 @@ Beautiful animations and views from AOSP
android:background="@drawable/fp_illustration_enrollment"
android:backgroundTint="@color/fingerprint_indicator_background_resting" />
```
-
+ ```java
LoopAnimatedVectorDrawableCompat mFingerprintAnimator = new LoopAnimatedVectorDrawableCompat(AnimatedVectorDrawableCompat.create(this,
R.drawable.enrollment_fingerprint_isolated_animation));
fingerprintIsolated.setImageDrawable(mFingerprintAnimator.getDrawable());
+ ```
開始動畫: `mFingerprintAnimator.startIconAnimation()`
diff --git a/app/build.gradle b/app/build.gradle
index 827c4ed..64efa10 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -21,10 +21,7 @@ android {
}
dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation project(':library')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:0.5'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
- implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile project(':library')
+ compile 'com.android.support:appcompat-v7:26.0.0'
}
diff --git a/build.gradle b/build.gradle
index fa3d4c7..540ef2b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
+ classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
diff --git a/library/build.gradle b/library/build.gradle
index a752f5e..fe4f348 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -25,10 +25,10 @@ android {
}
dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- compile 'com.android.support:animated-vector-drawable:26.0.0-beta1'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:0.5'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
- implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
+ compile fileTree(include: ['*.jar'], dir: 'libs')
+ compile 'com.android.support:animated-vector-drawable:26.0.0'
+ testCompile 'junit:junit:4.12'
+ androidTestCompile 'com.android.support.test:runner:0.5'
+ androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
+ compile 'com.android.support:appcompat-v7:26.0.0'
}