Skip to content

Commit 665f194

Browse files
committed
Version 0.1.0
1 parent edb0c9e commit 665f194

File tree

7 files changed

+30
-22
lines changed

7 files changed

+30
-22
lines changed

.travis.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ before_script:
2323
script:
2424
- ./gradlew build
2525

26-
#after_success:
27-
# - ./gradlew javadocRelease
28-
#
29-
#deploy:
30-
# # Fix broken deployment due to the below issue:
31-
# # https://github.com/travis-ci/travis-ci/issues/9312
32-
# edge:
33-
# branch: v1.8.47
34-
# provider: pages
35-
# skip-cleanup: true
36-
# github-token: $GITHUB_TOKEN
37-
# keep-history: true
38-
# local-dir: dynamic-motion/build/docs/javadoc/release
39-
# on:
40-
# branch: master
26+
after_success:
27+
- ./gradlew javadocRelease
28+
29+
deploy:
30+
# Fix broken deployment due to the below issue:
31+
# https://github.com/travis-ci/travis-ci/issues/9312
32+
edge:
33+
branch: v1.8.47
34+
provider: pages
35+
skip-cleanup: true
36+
github-token: $GITHUB_TOKEN
37+
keep-history: true
38+
local-dir: dynamic-motion/build/docs/javadoc/release
39+
on:
40+
branch: master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ It can be installed by adding the following dependency to your `build.gradle` fi
3131

3232
```groovy
3333
dependencies {
34-
implementation 'com.pranavpandey.android:dynamic-motion:coming-soon'
34+
implementation 'com.pranavpandey.android:dynamic-motion:0.1.0'
3535
}
3636
```
3737

dynamic-motion/bintray.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Pranav Pandey
2+
* Copyright 2018 Pranav Pandey
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

dynamic-motion/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ project.afterEvaluate {
5252
description = "Generates javadocs"
5353
failOnError = false
5454
destinationDir = new File(destinationDir, variant.baseName)
55-
source = files(variant.javaCompiler.source)
56-
classpath = files(variant.javaCompiler.classpath.files) + files(android.bootClasspath)
55+
source = android.sourceSets.main.java.srcDirs
56+
classpath += configurations.compile
57+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
5758
options.windowTitle(referenceTitle)
5859
options.docTitle(referenceTitle)
5960
options.header(referenceTitle)

dynamic-motion/maven.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 Pranav Pandey
2+
* Copyright 2018 Pranav Pandey
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

sample/src/main/java/com/pranavpandey/android/dynamic/motion/sample/DynamicImageView.java renamed to sample/src/main/java/com/pranavpandey/android/dynamic/motion/sample/widget/DynamicImageView.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.pranavpandey.android.dynamic.motion.sample;
17+
package com.pranavpandey.android.dynamic.motion.sample.widget;
1818

1919
import android.content.Context;
2020
import android.graphics.PorterDuff;
@@ -44,12 +44,19 @@ public DynamicImageView(@NonNull Context context,
4444
}
4545

4646
/**
47+
* Returns the filter mode to be used to tint this view.
48+
*
4749
* @return The filter mode to be used to tint this view.
4850
*/
4951
public PorterDuff.Mode getFilterMode() {
5052
return PorterDuff.Mode.SRC_IN;
5153
}
5254

55+
/**
56+
* Set color of this view according to the supplied values. It will be used to tint this
57+
* view dynamically by using the custom attribute feature of the
58+
* {@link androidx.constraintlayout.motion.widget.MotionLayout}.
59+
*/
5360
public void setColor(@ColorInt int color) {
5461
setColorFilter(color, getFilterMode());
5562
}

sample/src/main/res/layout/activity_dynamic_motion.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
android:layout_height="match_parent"
3131
android:contentDescription="@null" />
3232

33-
<com.pranavpandey.android.dynamic.motion.sample.DynamicImageView
33+
<com.pranavpandey.android.dynamic.motion.sample.widget.DynamicImageView
3434
android:id="@+id/image"
3535
android:layout_width="match_parent"
3636
android:layout_height="match_parent"

0 commit comments

Comments
 (0)