Skip to content
The Android SDK for the Parse Platform
Java Kotlin
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bolts-tasks see if JitPack uses (#1025) Apr 23, 2020
coroutines Fix signup method name (#1017) Apr 16, 2020
facebook Fix signup method name (#1017) Apr 16, 2020
fcm Fix signup method name (#1017) Apr 16, 2020
gcm Add facebook and twitter modules (#1002) Feb 13, 2020
google Fix signup method name (#1017) Apr 16, 2020
gradle/wrapper Update dependencies (#994) Dec 11, 2019
ktx Add facebook and twitter modules (#1002) Feb 13, 2020
parse Add bolts tasks to this library (#1018) Apr 21, 2020
twitter Add facebook and twitter modules (#1002) Feb 13, 2020
.codecov.yml CI: report coverage as failing when < 45% (#598) Mar 13, 2017
.gitignore Add automated docs in Travis CI (#801) Apr 13, 2018
.travis.yml Update dependencies (#994) Dec 11, 2019
CHANGELOG.md Add nullability annotations to ParseCloud (#1008) Feb 27, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#935) Mar 21, 2019
CONTRIBUTING.md Cleanup (#861) Jul 25, 2018
LICENSE transfer code Apr 5, 2017
PATENTS transfer code Apr 5, 2017
README.md Update README.md Feb 14, 2020
build.gradle Fix signup method name (#1017) Apr 16, 2020
gradle.properties Firebase is still not using AndroidX so use Jetifier for now (#942) Apr 16, 2019
gradlew Update dependencies (#994) Dec 11, 2019
gradlew.bat Update to support 26, gradle 4.1. Changes min to 14 Aug 22, 2017
settings.gradle Add bolts tasks to this library (#1018) Apr 21, 2020

README.md

Parse SDK for Android

License Build Status Backers on Open Collective Sponsors on Open Collective Twitter Follow

A library that gives you access to the powerful Parse cloud platform from your Android app. For more information about Parse and its features, see the website, getting started, and blog.

Dependency

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Then, add the library to your project build.gradle

ext {
   parseVersion = "latest.version.here"
}
dependencies {
    implementation "com.github.parse-community.Parse-SDK-Android:parse:$parseVersion"
    // for Google login/signup support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:google:$parseVersion"
    // for Facebook login/signup support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:facebook:$parseVersion"
    // for Twitter login/signup support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:twitter:$parseVersion"
    // for FCM Push support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:fcm:$parseVersion"
    // for Kotlin extensions support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:ktx:$parseVersion"
}

replacing latest.version.here with the latest released version (see JitPack badge above).

Setup

Initialize Parse in a custom class that extends Application:

import com.parse.Parse;
import android.app.Application;

public class App extends Application {
    @Override
    public void onCreate() {
      super.onCreate();

      Parse.initialize(new Parse.Configuration.Builder(this)
        .applicationId("YOUR_APP_ID")
        // if desired
        .clientKey("YOUR_CLIENT_KEY")
        .server("https://your-server-address/parse/")
        .build()
      );
    }
}

The custom Application class must be registered in AndroidManifest.xml:

<application
    android:name=".App"
    ...>
    ...
</application>

Note that if you are testing with a server using http, you will need to add android:usesCleartextTraffic="true" to your above <application> definition, but you should only do this while testing and should use https for your final product.

See the guide for the rest of the SDK usage.

How Do I Contribute?

We want to make contributing to this project as easy and transparent as possible. Please refer to the Contribution Guidelines.

Other Parse Projects

These are other official libraries we made that can help you create your Parse app.

License

Copyright (c) 2015-present, Parse, LLC.
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.

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.

You can’t perform that action at this time.