Skip to content

Commit

Permalink
Upload new version 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hluhovskyi committed Mar 20, 2018
1 parent 6d1e952 commit 79689f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Button which is visible while user holds it. Main use case is controlling audio
Add library as dependency to your `build.gradle`.

```
compile 'com.dewarder:holdingbutton:0.1.2'
compile 'com.dewarder:holdingbutton:0.1.3'
```

## How to use
Expand Down
59 changes: 2 additions & 57 deletions holdingbutton/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

ext {
artifactVersion = '0.1.2'
artifactVersion = '0.1.3'
artifactName = 'holdingbutton'
siteUrl = 'https://github.com/dewarder/HoldingButton'
gitUrl = 'https://github.com/dewarder/HoldingButton.git'
Expand Down Expand Up @@ -34,61 +34,6 @@ dependencies {
implementation dep.supportCoreUtils
}

install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name artifactName
url siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'dewarder'
name 'Artem Glugovsky'
email 'dewarder@gmail.com'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}


task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

task classesJar(type: Jar) {
from "$buildDir/intermediates/classes/release"
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

Expand All @@ -108,7 +53,7 @@ bintray {
vcsUrl = gitUrl
version {
name = artifactVersion
desc = 'Add VectorDrawable support for cancel icon. Add setCancelIcon method for Drawable'
desc = 'Fix bug related to reattaching view'
released = new Date()
vcsTag = "$artifactVersion"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ public boolean onTouchEvent(MotionEvent event) {
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
if (mHoldingCircle.getParent() != null){
((ViewGroup)mHoldingCircle.getParent()).removeView(mHoldingCircle);
if (mHoldingCircle.getParent() != null) {
((ViewGroup) mHoldingCircle.getParent()).removeView(mHoldingCircle);
}
getDecorView().addView(mHoldingCircle, mHoldingDrawable.getIntrinsicWidth(), mHoldingDrawable.getIntrinsicHeight());
}
Expand Down

0 comments on commit 79689f9

Please sign in to comment.