-
Notifications
You must be signed in to change notification settings - Fork 825
Removed lombok dependency from the project #2373
Conversation
We don't want to just generate code and remove lombok. Adding boilerplate is not an option. A solution should be there. So in whichever class lombok was used except maybe for builder, should have kotlin specific methods to reduce boilerplate instead |
Yeah, I agree. I just thought that they should have separate PR's because they have two separate open issues. I made the Kotlin changes already and was gonna give a second PR after this was merged. |
I think there'd be no point to add boilerplate just to remove it. Because this commit will be dirty history then |
Alright Ill integrate Kotlin now |
|
||
@Type("user") | ||
@JsonNaming(PropertyNamingStrategy.KebabCaseStrategy::class) | ||
open class User( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be in data
@@ -26,4 +26,4 @@ | |||
private int year; | |||
private String logoUrl; | |||
private String holder; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add line feed
@@ -15,4 +15,4 @@ | |||
|
|||
@PrimaryKey | |||
private String date; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add line feed
@@ -26,4 +26,4 @@ | |||
private int id; | |||
private String name; | |||
private String link; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add line feed
@@ -25,4 +25,4 @@ | |||
private String startsAt; | |||
private String endsAt; | |||
private String hash; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add line feed
@@ -49,10 +50,12 @@ | |||
private String level; | |||
@Index | |||
private String startDate; | |||
@JsonProperty("is-bookmarked") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
private boolean isBookmarked; | ||
private String createdAt; | ||
private String deletedAt; | ||
private String submittedAt; | ||
@JsonProperty("is-mail-sent") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line below
@@ -47,6 +48,7 @@ | |||
private String github; | |||
private String mobile; | |||
private String website; | |||
@JsonProperty("is-featured") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested Changes
3b3e763
to
0e5d2a0
Compare
@sriramr98 I have streamlined everything to bare minimum changes. Do any further changes required and check if app is working as expected |
0e5d2a0
to
3dd719d
Compare
Hi @iamareebjamal! It looks like one or more of your builds have failed.
|
3dd719d
to
44c68d2
Compare
Hi @iamareebjamal! It looks like one or more of your builds have failed.
|
Hi @iamareebjamal! It looks like one or more of your builds have failed.
|
Hi @sriramr98! It looks like one or more of your builds have failed.
|
0710190
to
bf90474
Compare
@sriramr98 Please fix any intermediate error and update the PR |
bf90474
to
03bd191
Compare
- Add kotlin support in main app - Move JSONAPI models to another module data - Update Realm and split using RealmModule - Convert preleminary classes to data classes - Balance classes of lombok and Kotlin within modules - Fix kotlin properties and tests - Add mockito extension inline for kotlin classes
03bd191
to
0a7aaae
Compare
Fixes #2371
Changes: Removed all Lombok annotations and replaced them with appropriate getters, setters, constructors, toString and hashCode methods.