Parse SDK for Android


Source link: https://github.com/ParsePlatform/Parse-SDK-Android

Parse SDK for Android

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.

Resources

An Android Mandrill API Connector.

Android quantity view with add and remove button to simply use as a complex widget with handful of quick customizations.

Gitter.im Java SDK that facilitates communication with Gitter API.

AutoBundle generates boilerplate code for field binding with android.os.Bundle.

Github API for Android platform.

Animated value change on a TextView made easy. Just call setValue(float value) on a CountingTextView and watch the magic happen.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes