Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add An Extension to add @Keep annotation to generated classes #146

Closed
wuseal opened this issue Apr 17, 2019 · 2 comments
Closed

Add An Extension to add @Keep annotation to generated classes #146

wuseal opened this issue Apr 17, 2019 · 2 comments

Comments

@wuseal
Copy link
Owner

wuseal commented Apr 17, 2019

The feature is the same as #22

Add an extension via Support customizing this plugin by Extensions module

After adding this extension, it will be convenient to generate classes with @keep annotation combine with existing annotations, Code would be like this with combine Gson Annotation:

@Keep
data class Test(
    @SerializedName("a_b")
    val aB: Int = 0,
    @SerializedName("b_c")
    val bC: Int = 0,
    @SerializedName("c_d")
    val cD: Int = 0
)
@smilechenbiao
Copy link
Contributor

I have completed this requirement

@wuseal
Copy link
Owner Author

wuseal commented May 16, 2019

@smilechenbiao Great! try to Create a Pull Request, and We will merge your PR after review.

@wuseal wuseal added the fixed but not released this issue has been solved but is not released yet label May 20, 2019
@wuseal wuseal closed this as completed Jun 17, 2019
@wuseal wuseal removed the fixed but not released this issue has been solved but is not released yet label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants