Skip to content

Commit 23c1dee

Browse files
rogerhuJawnnypoo
authored andcommitted
Update README with Jitpack (#816)
* Update README with Jitpack * remove publishing snapshots
1 parent b4beae3 commit 23c1dee

File tree

4 files changed

+30
-46
lines changed

4 files changed

+30
-46
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ before_install:
1616
after_success:
1717
- ./gradlew coveralls
1818
- codecov
19-
- ./scripts/publish_snapshot.sh
2019

2120
cache:
2221
directories:

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Parse SDK for Android
22

3-
[![Maven Central][maven-svg]][maven-link]
3+
[![Bintray][bintray-svg]][bintray-link]
44
[![License][license-svg]][license-link]
55

66
[![Build Status][build-status-svg]][build-status-link]
@@ -23,8 +23,6 @@ For more information about Parse and its features, see [the website][parseplatfo
2323
}
2424
```
2525

26-
Snapshots of the development version are available in [jFrog's `snapshots` repository][snap].
27-
2826
- **Option 2:** Compiling for yourself into AAR file
2927

3028
If you want to manually compile the SDK, begin by cloning the repository locally or retrieving the source code for a particular [release][releases]. Open the project in Android Studio and run the following commands in the Terminal of Android Studio:
@@ -35,7 +33,8 @@ For more information about Parse and its features, see [the website][parseplatfo
3533
Output file can be found in `Parse/build/outputs/` with extension .aar
3634

3735
You can link to your project to your AAR file as you please.
38-
36+
37+
3938
### Setup
4039
Initialize Parse in a custom class that extends `Application`:
4140
```java
@@ -81,6 +80,28 @@ Results can be found in `Parse/build/reports/`
8180
```
8281
Results can be found in `Parse/build/reports/`
8382

83+
## Snapshots
84+
85+
Snapshots of the development version can be obtained by using [Jitpack][jitpack-snapshot-link]:
86+
87+
Add the Maven link in your root `build.gradle` file:
88+
89+
```groovy
90+
allprojects {
91+
repositories {
92+
maven { url 'https://jitpack.io' }
93+
}
94+
}
95+
```
96+
97+
Add the dependency to your `app/build.gradle`:
98+
99+
```groovy
100+
dependencies {
101+
implementation 'com.github.parse-community:Parse-SDK-Android:master-SNAPSHOT'
102+
}
103+
```
104+
84105
## How Do I Contribute?
85106
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines][contributing].
86107

@@ -110,9 +131,11 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
110131
[latest]: https://search.maven.org/remote_content?g=com.parse&a=parse-android&v=LATEST
111132
[snap]: https://oss.jfrog.org/artifactory/oss-snapshot-local/com/parse/parse-android/
112133

113-
[maven-svg]: https://maven-badges.herokuapp.com/maven-central/com.parse/parse-android/badge.svg?style=flat
114-
[maven-link]: https://maven-badges.herokuapp.com/maven-central/com.parse/parse-android
115-
134+
[bintray-svg]: https://api.bintray.com/packages/parse/maven/com.parse:parse-android/images/download.svg
135+
[bintray-link]: https://bintray.com/parse/maven/com.parse:parse-android
136+
137+
[jitpack-snapshot-link]: https://jitpack.io/#parse-community/Parse-SDK-Android/master-SNAPSHOT
138+
116139
[license-svg]: https://img.shields.io/badge/license-BSD-lightgrey.svg
117140
[license-link]: https://github.com/parse-community/Parse-SDK-Android/blob/master/LICENSE
118141

gradle/gradle-mvn-push.gradle

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,3 @@ publishing {
154154
}
155155

156156
// End of Bintray plugin
157-
158-
apply plugin: "com.jfrog.artifactory"
159-
160-
artifactory {
161-
contextUrl = 'https://oss.jfrog.org'
162-
publish {
163-
repository {
164-
repoKey = 'oss-snapshot-local' // The Artifactory repository key to publish to
165-
166-
username = System.getenv('BINTRAY_USER')
167-
password = System.getenv('BINTRAY_API_KEY')
168-
maven = true
169-
}
170-
defaults {
171-
publishArtifacts = true
172-
publications('mavenAar')
173-
}
174-
}
175-
}

scripts/publish_snapshot.sh

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

0 commit comments

Comments
 (0)