RxRecyclerAdapter | Rx based RecyclerView Adapter | RecyclerView library
kandi X-RAY | RxRecyclerAdapter Summary
kandi X-RAY | RxRecyclerAdapter Summary
Rx based generic RecyclerView Adapter Library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RxRecyclerAdapter
RxRecyclerAdapter Key Features
RxRecyclerAdapter Examples and Code Snippets
Community Discussions
Trending Discussions on RxRecyclerAdapter
QUESTION
I have developed an Android app, using Moshi as one of its dependencies.
Today I want to enable minify for this project. So I set minifyEnabled true
in my build.gradle
.
After that, I found that all responses from server become null.
First of all, I am using Retrofit2 to call APIs. The JSON body in Response.body()
is not null and have correct values.
The response body is as below (simplified):
{"status":"success","data":{"user": "I am a user"}}
And I am using the code below to convert it to my own object:
val someResponse = Moshi.Builder().add(KotlinJsonAdapterFactory()).build().adapter(SomeResponse::class.java).fromJson(theJsonString)
While the code for SomeResponse
:
ANSWER
Answered 2019-Jul-23 at 21:51I think the solution here is easy: Add a @Keep - Anotation to your model (SomeResponse), so the marshalling-names shouldn't be obfuscated anymore. :-)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RxRecyclerAdapter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page