auto-parse

AutoParse for ParseObject

License

License

The Apache 2.0 License (Apache 2.0)
Categories

Categories

Auto Application Layer Libs Code Generators FST Data Data Formats Serialization
GroupId

GroupId

com.infstory
ArtifactId

ArtifactId

auto-parse-processor
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

auto-parse
AutoParse for ParseObject
Project URL

Project URL

https://github.com/8tory/auto-parse
Source Code Management

Source Code Management

https://github.com/8tory/auto-parse

Download auto-parse-processor

How to add to project

<!-- https://jarcasting.com/artifacts/com.infstory/auto-parse-processor/ -->
<dependency>
    <groupId>com.infstory</groupId>
    <artifactId>auto-parse-processor</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.infstory/auto-parse-processor/
implementation 'com.infstory:auto-parse-processor:1.0.2'
// https://jarcasting.com/artifacts/com.infstory/auto-parse-processor/
implementation ("com.infstory:auto-parse-processor:1.0.2")
'com.infstory:auto-parse-processor:jar:1.0.2'
<dependency org="com.infstory" name="auto-parse-processor" rev="1.0.2">
  <artifact name="auto-parse-processor" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.infstory', module='auto-parse-processor', version='1.0.2')
)
libraryDependencies += "com.infstory" % "auto-parse-processor" % "1.0.2"
[com.infstory/auto-parse-processor "1.0.2"]

Dependencies

compile (4)

Group / Artifact Type Version
com.infstory : auto-parse jar 1.0.2
org.ow2.asm : asm jar 4.1
com.google.code.findbugs : jsr305 jar 2.0.3
com.google.auto.service : auto-service jar 1.0-rc1

test (4)

Group / Artifact Type Version
com.google.testing.compile : compile-testing jar 0.4
com.google.android : android jar 4.1.1.4
com.infstory » parse jar 1.8.0
com.facebook.android : facebook-android-sdk jar 3.20.0

Project Modules

There are no modules declared in this project.

AutoParse

Android Arsenal Download JitPack Build Status Join the chat at https://gitter.im/yongjhih/auto-parse

auto-parse

Easy to use ParseObject.

before:

ParseObject gameScore = new ParseObject("GameScore");
gameScore.put("score", 1337);
gameScore.put("playerName", "Sean Plott");
gameScore.put("cheatMode", false);
gameScore.saveInBackground();

after:

ParseGameScore gameScore = ParseGameScore.create();
gameScore.setScore(1337);
gameScore.setPlayerName("Sean Plott");
gameScore.setCheatMode(false);
ParseGameScore.saveInBackground();
ParseQuery<AutoParse_ParseGameScore> = ParseQuery.getQuery(AutoParse_ParseGameScore.class);
// ...
ParseGameScore gameScore = (ParseGameScore) query.findFirst();
gameScore.getScore();
gameScore.getPlayerName();
gameScore.getCheatMode();

Usage

@ParseClassName("GameScore")
@AutoParse
public abstract class ParseGameScore extends ParseObject implements Parcelable {

  public abstract ParseGameScore setPlayerName(String playerName); // put("playerName", name);
  public abstract String getPlayerName(); // getString("playerName");

  public abstract Integer getScore();
  public abstract ParseGameScore setScore(Integer score);

  public abstract Boolean getCheatMode();
  public abstract Boolean ParseGameScoresetCheatMode(Boolean cheatMode);

  public static ParseGameScore create() {
    return new AutoParse_ParseGameScore();
  }
}

Installation

via jitpack:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
    }
}

repositories {
    maven { url "https://jitpack.io" }
}

apply plugin: 'android-apt'

dependencies {
    compile 'com.github.yongjhih.auto-parse:auto-parse:-SNAPSHOT'
    apt 'com.github.yongjhih.auto-parse:auto-parse-processor:-SNAPSHOT'
}

via jcenter:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
    }
}

repositories {
    jcenter()
}

apply plugin: 'android-apt'

dependencies {
    compile 'com.infstory:auto-parse:1.0.0'
    apt 'com.infstory:auto-parse-processor:1.0.0'
}

See Also

auto-parse uses compile-time annotation that's faster than runtime annotation reflection.

License

Copyright 2015 8tory, Inc.
Copyright 2014 Frankie Sardo
Copyright 2013 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
com.infstory

8tory - Facebook Memories

SNS 8tory Facebook Memories / Stories

Versions

Version
1.0.2
1.0.1
1.0.0