Skip to content

Commit

Permalink
Lombok plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
igoticecream committed Oct 12, 2016
1 parent 769ccc9 commit a635824
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 62 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,7 @@ dependencies {
provided libraries.autoValueAnnotations

provided libraries.xposed

provided libraries.lombok
annotationProcessor libraries.lombok
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,69 +21,37 @@

import com.icecream.snorlax.common.Strings;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import static POGOProtos.Enums.PokemonMoveOuterClass.PokemonMove;

@Accessors(prefix = "m")
@SuppressWarnings({"unused", "FieldCanBeLocal", "WeakerAccess"})
public final class PokemonMoveMeta {

@Getter
@Setter
private PokemonMove mMove;
@Getter
@Setter
private PokemonType mType;
@Getter
@Setter
private int mPower;
@Getter
@Setter
private int mAccuracy;
@Getter
@Setter
private double mCriticalChance;
@Getter
@Setter
private int mTime;
@Getter
@Setter
private int mEnergy;
private double mCriticalChance;

PokemonMoveMeta() {
}

public PokemonType getType() {
return mType;
}

public void setType(PokemonType type) {
mType = type;
}

public int getPower() {
return mPower;
}

public void setPower(int power) {
mPower = power;
}

public int getAccuracy() {
return mAccuracy;
}

public void setAccuracy(int accuracy) {
mAccuracy = accuracy;
}

public int getTime() {
return mTime;
}

public void setTime(int time) {
mTime = time;
}

public int getEnergy() {
return mEnergy;
}

public void setEnergy(int energy) {
mEnergy = energy;
}

public double getCriticalChance() {
return mCriticalChance;
}

public void setCriticalChance(double criticalChance) {
mCriticalChance = criticalChance;
}

@Override
public String toString() {
Expand All @@ -96,12 +64,4 @@ public String toString() {
}
return Strings.capitalize(move.toArray(new String[0]));
}

public PokemonMove getMove() {
return mMove;
}

public void setMove(PokemonMove move) {
mMove = move;
}
}
6 changes: 4 additions & 2 deletions buildscript/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ext {
autoValueAnnotations: '1.3',
butterknife : '8.4.0',
timber : '4.3.1',
superuser : "1.0.0.201608240809"
superuser : "1.0.0.201608240809",
lombok : "1.12.6"
]

pluginLibraries = [
Expand Down Expand Up @@ -92,6 +93,7 @@ ext {
butterknife : "com.jakewharton:butterknife:${libraryVersions.butterknife}",
butterknifeCompiler : "com.jakewharton:butterknife-compiler:${libraryVersions.butterknife}",
timber : "com.jakewharton.timber:timber:${libraryVersions.timber}",
superuser : "eu.chainfire:libsuperuser:${libraryVersions.superuser}"
superuser : "eu.chainfire:libsuperuser:${libraryVersions.superuser}",
lombok : "org.projectlombok:lombok:${libraryVersions.lombok}"
]
}

0 comments on commit a635824

Please sign in to comment.