-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remoção de dependencias externas. Uso da lib Gson para conversão da r…
…esposta. Utilização do ProGuard para optimizar a lib
- Loading branch information
Showing
4 changed files
with
122 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#https://www.guardsquare.com/en/proguard/manual/introduction | ||
|
||
# Java runtime | ||
-libraryjars <java.home>/lib/rt.jar | ||
-verbose | ||
#-dontnote | ||
|
||
-optimizations !code/allocation/variable | ||
#-keepparameternames | ||
-renamesourcefileattribute SourceFile | ||
-repackageclasses 'com.github.nidorx.gson' | ||
-allowaccessmodification | ||
|
||
# Annotations and signatures | ||
-keepattributes *Annotation*,Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod | ||
|
||
|
||
# Preserva todas as classes publicas, seus métodos public e protected | ||
-keep public class com.github.nidorx.http.** { | ||
public protected *; | ||
} | ||
|
||
# Preserva os nomes de métods de todas as .class | ||
-keepclassmembernames class * { | ||
java.lang.Class class$(java.lang.String); | ||
java.lang.Class class$(java.lang.String, boolean); | ||
} | ||
|
||
# Preserva todos os nomes de métodos nativos e o nome de suas classes | ||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
# Preserve the special static methods that are required in all enumeration classes. | ||
-keepclassmembers class * extends java.lang.Enum { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
# Explicitly preserve all serialization members. The Serializable interface | ||
# is only a marker interface, so it wouldn't save them. | ||
# You can comment this out if your library doesn't use serialization. | ||
# If your code contains serializable classes that have to be backward | ||
# compatible, please refer to the manual. | ||
|
||
-keepclassmembers class * implements java.io.Serializable { | ||
java.lang.Object readResolve(); | ||
java.lang.Object writeReplace(); | ||
static final long serialVersionUID; | ||
private void readObject(java.io.ObjectInputStream); | ||
private void writeObject(java.io.ObjectOutputStream); | ||
static final java.io.ObjectStreamField[] serialPersistentFields; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/main/java/com/github/nidorx/http/util/ObjectMapper.java
This file was deleted.
Oops, something went wrong.