Git Product home page Git Product logo

parse-sdk-android's Introduction

parse-repository-header-sdk-android


Build Status Snyk Badge codecov

android min api auto-release

Backers on Open Collective Sponsors on Open Collective License Forum Twitter Follow


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


Getting Started

Compatibility

The Parse Android SDK has the following Android API and Gradle Plugin compatibility.

SDK version Minimum API level Targeting API level Gradle Plugin
1.26 < API 16 API 29 3.6.2
2.0 >= API 16 API 30 4.2.2
2.1 >= API 21 API 31 7.0.3

Add Dependency

Add the line maven { url 'https://www.jitpack.io' } to your settings.gradle file, inside the repositories property, for example:

dependencyResolutionManagement {
    repositories {
        maven { url 'https://www.jitpack.io' }
    }
}

Older versions of Android studio require different steps. See the following list of Android Studio versions for alternative instructions. You can find the version of your Android Studio installation by clicking on Help > About in the top menu.

Arctic Fox | 2020.3.1 or older

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 file.

Then, add the library to your (module:app) build.gradle file, replacing latest.version.here with the version of the Parse Android SDK you would like to use. We commend always updating your app to use the latest release version.

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"
    // for Kotlin coroutines support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:coroutines:$parseVersion"
    // for RxJava support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:rxjava:$parseVersion"
}

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.

Contributing

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

More Parse Android Projects

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


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-sdk-android's People

Contributors

grantland avatar rogerhu avatar wangmengyan95 avatar jawnnypoo avatar natario1 avatar mtrezza avatar semantic-release-bot avatar hermanliang avatar azlekov avatar richardjrossiii avatar addisonelliott avatar mmimeault avatar tomwfox avatar dependabot[bot] avatar danielsanfr avatar flovilmart avatar cjosepha avatar dplewis avatar lukas1994 avatar rommansabbir avatar shlusiak avatar stanleyw avatar oliveiradev avatar iernie avatar phillwiggins avatar nlutsenko avatar hallucinogen avatar aontas avatar egk35 avatar ecdpalma avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.