Giter Club home page Giter Club logo

parse-sdk-android's Introduction

Parse SDK for Android

Maven Central Dependencies References License

Build Status Coverage Status

Join Chat

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, blog and getting started.

Getting Started

Installation

  • Option 1: Gradle

    Add dependency to the application level build.gradle file.

    dependencies {
      compile 'com.parse:parse-android:1.16.4-SNAPSHOT'
    }

    Snapshots of the development version are available in jFrog's snapshots repository.

  • Option 2: Compiling for yourself into AAR file

    If you want to manually compile the SDK, begin by cloning the repository locally or retrieving the source code for a particular release. Open the project in Android Studio and run the following commands in the Terminal of Android Studio:

    ./gradlew clean jarRelease
    

    Output file can be found in Parse/build/outputs/ with extension .aar

    You can link to your project to your AAR file as you please.

Setup

  • Option 1: Setup in the Manifest

    You may define com.parse.SERVER_URL and com.parse.APPLICATION_ID meta-data in your AndroidManifest.xml:

    <application ...>
      <meta-data
        android:name="com.parse.SERVER_URL"
        android:value="@string/parse_server_url" />
      <meta-data
        android:name="com.parse.APPLICATION_ID"
        android:value="@string/parse_app_id" />
      ...
    </application>
  • Option 2: Setup in the Application

    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")
          .server("http://localhost:1337/parse/")
          .build()
        );
      }
    }

For either option, the custom Application class must be registered in AndroidManifest.xml:

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

Usage

Everything can done through the supplied gradle wrapper:

Run the Tests

./gradlew clean testDebug

Results can be found in Parse/build/reports/

Get Code Coverage Reports

./gradlew clean jacocoTestReport

Results can be found in Parse/build/reports/

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

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

Contributors

addisonelliott avatar allsimon avatar aontas avatar batkov avatar daisuke-nomura avatar dplewis avatar egk35 avatar flovilmart avatar grantland avatar hallucinogen avatar hermanliang avatar iernie avatar jawnnypoo avatar juliengenoud avatar kiloreux avatar lacker avatar lukas1994 avatar mmimeault avatar natario1 avatar nlutsenko avatar richardjrossiii avatar rogerhu avatar sowrabh avatar stanleyw avatar wangmengyan95 avatar

Watchers

 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.