You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library that gives you access to the powerful Parse cloud platform from your Android app.
11
-
For more information about Parse and its features, see [the website][parseplatform.org] and [getting started][guide].
12
-
13
-
## Download
14
-
Add the dependency in Gradle:
15
-
16
-
```groovy
17
-
dependencies {
18
-
compile 'com.parse:parse-android:1.15.8'
19
-
}
20
-
```
21
-
22
-
Snapshots of the development version are available in [jFrog's `snapshots` repository][snap].
10
+
For more information about Parse and its features, see [the website][parseplatform.org], [blog][blog] and [getting started][guide].
11
+
12
+
## Getting Started
13
+
### Installation
14
+
-**Option 1:** Gradle
15
+
16
+
Add dependency to the application level `build.gradle` file.
17
+
18
+
```groovy
19
+
dependencies {
20
+
compile 'com.parse:parse-android:1.15.8'
21
+
}
22
+
```
23
+
24
+
Snapshots of the development version are available in [jFrog's `snapshots` repository][snap].
25
+
26
+
-**Option 2:** Compiling for yourself into AAR file
27
+
28
+
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:
29
+
30
+
```
31
+
./gradlew clean jarRelease
32
+
```
33
+
Output file can be found in `Parse/build/outputs/` with extension .aar
34
+
35
+
You can link to your project to your AAR file as you please.
36
+
37
+
### Setup
38
+
-**Option 1:** Setup in the Manifest
39
+
40
+
You may define `com.parse.SERVER_URL` and `com.parse.APPLICATION_ID` meta-data in your `AndroidManifest.xml`:
41
+
42
+
```
43
+
<application ...>
44
+
<meta-data
45
+
android:name="com.parse.SERVER_URL"
46
+
android:value="@string/parse_server_url" />
47
+
<meta-data
48
+
android:name="com.parse.APPLICATION_ID"
49
+
android:value="@string/parse_app_id" />
50
+
...
51
+
</application>
52
+
```
53
+
54
+
Initialize Parse in a custom class that extends `Application`:
55
+
```
56
+
import com.parse.Parse;
57
+
import android.app.Application;
58
+
59
+
public class App extends Application {
60
+
@Override
61
+
public void onCreate() {
62
+
super.onCreate();
63
+
Parse.initialize(this);
64
+
}
65
+
}
66
+
```
67
+
68
+
-**Option 2:** Setup in the Application
69
+
70
+
Initialize Parse in a custom class that extends `Application`:
For either option, the custom `Application` class must be registered in `AndroidManifest.xml`:
89
+
```
90
+
<application
91
+
android:name=".App"
92
+
...>
93
+
...
94
+
</application>
95
+
```
23
96
24
97
## Usage
25
98
Everything can done through the supplied gradle wrapper:
26
99
27
-
### Compile a JAR
28
-
```
29
-
./gradlew clean jarRelease
30
-
```
31
-
Outputs can be found in `Parse/build/libs/`
32
-
33
100
### Run the Tests
34
101
```
35
102
./gradlew clean testDebug
@@ -43,7 +110,7 @@ Results can be found in `Parse/build/reports/`
43
110
Results can be found in `Parse/build/reports/`
44
111
45
112
## How Do I Contribute?
46
-
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines](CONTRIBUTING.md).
113
+
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines][contributing].
47
114
48
115
## Other Parse Projects
49
116
@@ -65,6 +132,7 @@ We want to make contributing to this project as easy and transparent as possible
65
132
As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.
0 commit comments