Parse-SDK-Android

Parse SDK for Android

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者parse-community/Parse-SDK-Android
主編程語言Java
編程語言Java (語言數: 4)
平台
許可證Other
所有者活动
創建於2015-08-12 22:57:48
推送於2025-03-30 23:46:07
最后一次提交2025-03-31 01:45:45
發布數68
最新版本名稱4.3.0 (發布於 )
第一版名稱1.10.0 (發布於 )
用户参与
星數1.9k
關注者數105
派生數735
提交數595
已啟用問題?
問題數828
打開的問題數129
拉請求數312
打開的拉請求數3
關閉的拉請求數75
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?