Clone or download
danielsanfr and Jawnnypoo Feature kotlin delegates (#892)
* Implement generic delegate for attributes

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for boolean

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for double

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for float

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for int

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for long

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for string

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for bytes

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for map

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for list

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for JsonArray

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for JsonObject

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for ParseRelation

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement specialized property delegation for Enum

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Implement generic delegate for attributes with some checks

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Small fix on ParseDelegate set property type

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Add basic documentation to all delegate classes

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Add property delegation documentation on README.md

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>

* Update kotlin version

Signed-off-by: Daniel San <danielsan@ilhasoft.com.br>
Latest commit 696af29 Oct 2, 2018

README.md

Parse SDK for Android

License Build 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, 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

dependencies {
    implementation "com.github.parse-community.Parse-SDK-Android:parse:latest.version.here"
    // for FCM Push support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:fcm:latest.version.here"
    // for Kotlin extensions support (optional)
    implementation "com.github.parse-community.Parse-SDK-Android:ktx:latest.version.here"
}

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

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

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

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

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.