Skip to content

Commit 0b9c1aa

Browse files
committed
Published library to Maven Central as an AAR and updated README to reflect changes
1 parent bec0860 commit 0b9c1aa

File tree

6 files changed

+45
-10
lines changed

6 files changed

+45
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build
12
.gradle
23
/local.properties
34
.idea/

README.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,42 @@ iOS 7's new parallax effect.
1313
Demo
1414
----
1515

16-
Feel free to download the [demo](https://github.com/nvanbenschoten/motion/releases) to try
17-
out motion.
16+
Feel free to download the [demo][1] to try out motion.
17+
18+
Setup
19+
-----
20+
* In Eclipse, just import the library as an Android library project.
21+
* Project > Clean to generate the binaries you need, like R.java, etc.
22+
* Then, just add Motion as a dependency to your existing project and you're good to go!
23+
24+
**Or**:
25+
26+
* [Download the .jar file][2]
27+
* Add the .jar files to your project's `libs` folder, or add them as external jars to your project's
28+
build path.
29+
30+
**Or**:
31+
32+
Add the following to your `build.gradle`:
33+
34+
repositories {
35+
mavenCentral()
36+
}
37+
38+
dependencies{
39+
compile 'com.nvanbenschoten.motion:library:1.0.1'
40+
}
41+
42+
**Or**:
43+
44+
Add the following to your `pom.xml`:
45+
46+
<dependency>
47+
<groupId>com.nvanbenschoten.motion</groupId>
48+
<artifactId>library</artifactId>
49+
<version>1.0.1</version>
50+
<type>aar</type>
51+
</dependency>
1852

1953
Usage
2054
-----
@@ -75,4 +109,7 @@ License
75109
distributed under the License is distributed on an "AS IS" BASIS,
76110
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77111
See the License for the specific language governing permissions and
78-
limitations under the License.
112+
limitations under the License.
113+
114+
[1]: https://github.com/nvanbenschoten/motion/releases
115+
[2]: https://github.com/nvanbenschoten/motion/releases/download/v1.0.1/com.nvanbenschoten.motion-1.0.1.jar

gradle.properties

Lines changed: 2 additions & 2 deletions
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.0.0
21-
VERSION_CODE=26
20+
VERSION_NAME=1.0.1
21+
VERSION_CODE=28
2222
GROUP=com.nvanbenschoten.motion
2323

2424
POM_DESCRIPTION=An Android library allowing images to exhibit a parallax effect

motion/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion 8
1010
targetSdkVersion 20
1111
versionCode 26
12-
versionName '1.0.0'
12+
versionName '1.0.1'
1313
}
1414
buildTypes {
1515
release {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.nvanbenschoten.motion">
4-
<application />
4+
<application android:allowBackup="true"/>
55
</manifest>

motion/src/main/res/values/strings.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)