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].
14
+
For more information about Parse and its features, see [the website][parseplatform.org], [blog][blog] and [getting started][guide].
15
+
16
+
## Getting Started
17
+
### Installation
18
+
-**Option 1:** Gradle
19
+
20
+
Add dependency to the application level `build.gradle` file.
21
+
22
+
```groovy
23
+
dependencies {
24
+
compile 'com.parse:parse-android:1.15.8'
25
+
}
26
+
```
27
+
28
+
Snapshots of the development version are available in [jFrog's `snapshots` repository][snap].
29
+
30
+
-**Option 2:** Compiling for yourself into AAR file
31
+
32
+
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:
33
+
34
+
```
35
+
./gradlew clean jarRelease
36
+
```
37
+
Output file can be found in `Parse/build/outputs/` with extension .aar
38
+
39
+
You can link to your project to your AAR file as you please.
40
+
41
+
### Setup
42
+
-**Option 1:** Setup in the Manifest
43
+
44
+
You may define `com.parse.SERVER_URL` and `com.parse.APPLICATION_ID` meta-data in your `AndroidManifest.xml`:
45
+
46
+
```
47
+
<application ...>
48
+
<meta-data
49
+
android:name="com.parse.SERVER_URL"
50
+
android:value="@string/parse_server_url" />
51
+
<meta-data
52
+
android:name="com.parse.APPLICATION_ID"
53
+
android:value="@string/parse_app_id" />
54
+
...
55
+
</application>
56
+
```
57
+
58
+
Initialize Parse in a custom class that extends `Application`:
59
+
```
60
+
import com.parse.Parse;
61
+
import android.app.Application;
62
+
63
+
public class App extends Application {
64
+
@Override
65
+
public void onCreate() {
66
+
super.onCreate();
67
+
Parse.initialize(this);
68
+
}
69
+
}
70
+
```
71
+
72
+
-**Option 2:** Setup in the Application
73
+
74
+
Initialize Parse in a custom class that extends `Application`:
For either option, the custom `Application` class must be registered in `AndroidManifest.xml`:
93
+
```
94
+
<application
95
+
android:name=".App"
96
+
...>
97
+
...
98
+
</application>
99
+
```
23
100
24
101
## Usage
25
102
Everything can done through the supplied gradle wrapper:
26
103
27
-
### Compile a JAR
28
-
```
29
-
./gradlew clean jarRelease
30
-
```
31
-
Outputs can be found in `Parse/build/libs/`
32
-
33
104
### Run the Tests
34
105
```
35
106
./gradlew clean testDebug
@@ -43,7 +114,7 @@ Results can be found in `Parse/build/reports/`
43
114
Results can be found in `Parse/build/reports/`
44
115
45
116
## 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).
117
+
We want to make contributing to this project as easy and transparent as possible. Please refer to the [Contribution Guidelines][contributing].
47
118
48
119
## Other Parse Projects
49
120
@@ -65,23 +136,35 @@ We want to make contributing to this project as easy and transparent as possible
65
136
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