diff --git a/app/build.gradle b/app/build.gradle index bc09030..feee4a0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -132,4 +132,7 @@ dependencies { provided libraries.autoValueAnnotations provided libraries.xposed + + provided libraries.lombok + annotationProcessor libraries.lombok } diff --git a/app/src/main/java/com/icecream/snorlax/module/pokemon/PokemonMoveMeta.java b/app/src/main/java/com/icecream/snorlax/module/pokemon/PokemonMoveMeta.java index 5b5a0a8..6f6c4eb 100644 --- a/app/src/main/java/com/icecream/snorlax/module/pokemon/PokemonMoveMeta.java +++ b/app/src/main/java/com/icecream/snorlax/module/pokemon/PokemonMoveMeta.java @@ -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() { @@ -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; - } } diff --git a/buildscript/dependencies.gradle b/buildscript/dependencies.gradle index cce0768..82c1ce7 100644 --- a/buildscript/dependencies.gradle +++ b/buildscript/dependencies.gradle @@ -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 = [ @@ -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}" ] }