Skip to content

Commit

Permalink
Version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Nov 4, 2018
1 parent edb0c9e commit 665f194
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 22 deletions.
30 changes: 15 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ before_script:
script:
- ./gradlew build

#after_success:
# - ./gradlew javadocRelease
#
#deploy:
# # Fix broken deployment due to the below issue:
# # https://github.com/travis-ci/travis-ci/issues/9312
# edge:
# branch: v1.8.47
# provider: pages
# skip-cleanup: true
# github-token: $GITHUB_TOKEN
# keep-history: true
# local-dir: dynamic-motion/build/docs/javadoc/release
# on:
# branch: master
after_success:
- ./gradlew javadocRelease

deploy:
# Fix broken deployment due to the below issue:
# https://github.com/travis-ci/travis-ci/issues/9312
edge:
branch: v1.8.47
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: dynamic-motion/build/docs/javadoc/release
on:
branch: master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ It can be installed by adding the following dependency to your `build.gradle` fi

```groovy
dependencies {
implementation 'com.pranavpandey.android:dynamic-motion:coming-soon'
implementation 'com.pranavpandey.android:dynamic-motion:0.1.0'
}
```

Expand Down
2 changes: 1 addition & 1 deletion dynamic-motion/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 Pranav Pandey
* Copyright 2018 Pranav Pandey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
5 changes: 3 additions & 2 deletions dynamic-motion/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ project.afterEvaluate {
description = "Generates javadocs"
failOnError = false
destinationDir = new File(destinationDir, variant.baseName)
source = files(variant.javaCompiler.source)
classpath = files(variant.javaCompiler.classpath.files) + files(android.bootClasspath)
source = android.sourceSets.main.java.srcDirs
classpath += configurations.compile
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options.windowTitle(referenceTitle)
options.docTitle(referenceTitle)
options.header(referenceTitle)
Expand Down
2 changes: 1 addition & 1 deletion dynamic-motion/maven.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 Pranav Pandey
* Copyright 2018 Pranav Pandey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.pranavpandey.android.dynamic.motion.sample;
package com.pranavpandey.android.dynamic.motion.sample.widget;

import android.content.Context;
import android.graphics.PorterDuff;
Expand Down Expand Up @@ -44,12 +44,19 @@ public DynamicImageView(@NonNull Context context,
}

/**
* Returns the filter mode to be used to tint this view.
*
* @return The filter mode to be used to tint this view.
*/
public PorterDuff.Mode getFilterMode() {
return PorterDuff.Mode.SRC_IN;
}

/**
* Set color of this view according to the supplied values. It will be used to tint this
* view dynamically by using the custom attribute feature of the
* {@link androidx.constraintlayout.motion.widget.MotionLayout}.
*/
public void setColor(@ColorInt int color) {
setColorFilter(color, getFilterMode());
}
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/activity_dynamic_motion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:layout_height="match_parent"
android:contentDescription="@null" />

<com.pranavpandey.android.dynamic.motion.sample.DynamicImageView
<com.pranavpandey.android.dynamic.motion.sample.widget.DynamicImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down

0 comments on commit 665f194

Please sign in to comment.