Christoffer Quist Adamsen
d3a75cb569
Retain generic signature of TypeToken with R8 version 3.0 and higher
2021-08-05 09:18:32 +02:00
Marius Volkhart
ceae88bd66
Update proguard.cfg ( #1693 )
...
TypeAdapter is an abstract class, and R8 warns about this during the build.
2020-05-13 12:49:59 -07:00
hqzxzwb
d6e6a01f02
Keep TypeAdapter
s from being stripped ( #1546 )
2019-10-03 15:50:21 -07:00
donaldchai
49d8630978
Update sample ProGuard config to mark fields instead of all members. ( #1531 )
...
GSON only needs to reflect based on fields:
4d942db168/gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java (L152)
There's no reason to disallow optimizing methods.
2019-05-08 23:23:54 -07:00
Farid Forootan Shad
f426700bc4
update proguard to fix R8 compatibility issue ( #1527 )
...
https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#member-in-a-data-object-is-always
2019-05-07 15:18:59 -07:00
Lyubomyr Shaydariv
bdea5b9e99
Removed the executable flag from clearly text files
2018-04-26 10:23:15 +03:00
Warren Smith
9f8ace9ac4
Dont warn on sun.misc package.
2017-09-15 08:18:32 -07:00
Chaitanya Pramod
74f4f74b8b
Prevent Proguard from stripping interface info from @JsonAdapter classes
...
Previously after Proguard, the classes would no longer implement the interfaces, leading to `JsonAdapterAnnotationTypeAdapterFactory` throwing.
Fixes #925
2016-09-14 18:57:35 +05:30
Marcelo Camargo
bddc1a9ed3
Fixed code style to remove explicit casting op.
...
· Separated binary operators
2016-02-14 03:47:05 -02:00
inder123
8cf538169c
Updated proguard.cfg example to Gson only settings
...
Fixed https://github.com/google/gson/issues/713
2015-10-18 10:21:32 -07:00
Jesse Wilson
bb92447317
Retain annotations when using proguard + gson. From patch on issue 358.
...
Fixes issue 358.
2011-12-16 05:18:01 +00:00
Inderjeet Singh
f127398ad1
Made the proguard example work by using -keepattributes Signature (as advised in https://sourceforge.net/tracker/?func=detail&aid=3375947&group_id=54750&atid=474704 )
2011-07-25 06:23:02 +00:00
Inderjeet Singh
a85807818f
Invoking Gson toJson and fromJson with-in the Android application.
...
Gson.fromJson does not currently work in this application with proguard enabled: The reason seems to be that Cart's field List<LineItem> gets rewritten as raw List type.
2011-07-23 01:08:34 +00:00
Inderjeet Singh
ea4cfcd4b9
initial cut at an example Android application that uses Proguard with Gson
2011-07-22 20:55:37 +00:00