Skip to content

Commit bfc58ed

Browse files
author
Oleksii Shliama
committed
Updated version.
Updated Readme.md
1 parent 42c9f88 commit bfc58ed

File tree

5 files changed

+119
-5
lines changed

5 files changed

+119
-5
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Phoenix-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1386) [![Yalantis](https://github.com/Yalantis/Phoenix/blob/master/badge.png)](http://yalantis.com/?utm_source=github)
2+
13
# Phoenix Pull-to-Refresh
24

3-
This project aims to provide a simple and customizable pull to refresh implementation. Made in [Yalantis] (http://yalantis.com/)
5+
#### This project aims to provide a simple and customizable pull to refresh implementation. Made in [Yalantis] (http://yalantis.com/?utm_source=github)
46

57
Check this [project on Dribbble] (https://dribbble.com/shots/1650317-Pull-to-Refresh-Rentals)
68
Check this [project on Behance] (https://www.behance.net/gallery/20411445/Mobile-Animations-Interactions)
@@ -13,7 +15,7 @@ Check this [project on Behance] (https://www.behance.net/gallery/20411445/Mobile
1315

1416
1. Include the library as local library project.
1517

16-
``` compile 'com.yalantis:phoenix:1.1.2' ```
18+
``` compile 'com.yalantis:phoenix:1.2.0' ```
1719

1820
2. Include the PullToRefreshView widget in your layout.
1921

@@ -67,6 +69,11 @@ If you need to change progress state:
6769

6870
# Changelog
6971

72+
### Version: 1.2
73+
74+
* Sample updated with RecyclerView example
75+
* Showing the refresh view just in it's bounds. (Issue with transparent / empty ListView)
76+
7077
### Version: 1.0
7178

7279
* Initial Build

badge.png

16.1 KB
Loading

build.gradle

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,19 @@ buildscript {
55
dependencies {
66
classpath 'com.android.tools.build:gradle:1.2.3'
77
}
8-
}
8+
}
9+
10+
def isReleaseBuild() {
11+
return version.contains("SNAPSHOT") == false
12+
}
13+
14+
allprojects {
15+
version = VERSION_NAME
16+
group = GROUP
17+
18+
repositories {
19+
mavenCentral()
20+
}
21+
}
22+
23+
apply plugin: 'android-reporting'

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=1.1.2
21-
VERSION_CODE=4
20+
VERSION_NAME=1.2.0
21+
VERSION_CODE=5
2222
GROUP=com.yalantis
2323

2424
POM_DESCRIPTION=Android Library to add beautiful Pull-to-Refresh widget

mavenpush.gradle

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
apply plugin: 'maven'
2+
apply plugin: 'signing'
3+
4+
def sonatypeRepositoryUrl
5+
if (isReleaseBuild()) {
6+
println 'RELEASE BUILD'
7+
sonatypeRepositoryUrl = hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
8+
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
9+
} else {
10+
println 'DEBUG BUILD'
11+
sonatypeRepositoryUrl = hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
12+
: "https://oss.sonatype.org/content/repositories/snapshots/"
13+
}
14+
15+
def getRepositoryUsername() {
16+
return hasProperty('nexusUsername') ? nexusUsername : ""
17+
}
18+
19+
def getRepositoryPassword() {
20+
return hasProperty('nexusPassword') ? nexusPassword : ""
21+
}
22+
23+
afterEvaluate { project ->
24+
uploadArchives {
25+
repositories {
26+
mavenDeployer {
27+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
28+
29+
pom.artifactId = POM_ARTIFACT_ID
30+
31+
repository(url: sonatypeRepositoryUrl) {
32+
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
33+
}
34+
35+
pom.project {
36+
name POM_NAME
37+
packaging POM_PACKAGING
38+
description POM_DESCRIPTION
39+
url POM_URL
40+
41+
scm {
42+
url POM_SCM_URL
43+
connection POM_SCM_CONNECTION
44+
developerConnection POM_SCM_DEV_CONNECTION
45+
}
46+
47+
licenses {
48+
license {
49+
name POM_LICENCE_NAME
50+
url POM_LICENCE_URL
51+
distribution POM_LICENCE_DIST
52+
}
53+
}
54+
55+
developers {
56+
developer {
57+
id POM_DEVELOPER_ID
58+
name POM_DEVELOPER_NAME
59+
}
60+
}
61+
}
62+
}
63+
}
64+
}
65+
66+
signing {
67+
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
68+
sign configurations.archives
69+
}
70+
71+
task androidJavadocs(type: Javadoc) {
72+
source = android.sourceSets.main.java.sourceFiles
73+
}
74+
75+
task androidJavadocsJar(type: Jar) {
76+
classifier = 'javadoc'
77+
//basename = artifact_id
78+
from androidJavadocs.destinationDir
79+
}
80+
81+
task androidSourcesJar(type: Jar) {
82+
classifier = 'sources'
83+
//basename = artifact_id
84+
from android.sourceSets.main.java.sourceFiles
85+
}
86+
87+
artifacts {
88+
//archives packageReleaseJar
89+
archives androidSourcesJar
90+
archives androidJavadocsJar
91+
}
92+
}

0 commit comments

Comments
 (0)