mirror of https://github.com/jwtk/jjwt.git
Merge pull request #295 from jokoframework/roskoff-patch-1
Add Proguard setup section on README
This commit is contained in:
commit
bf6423b52d
23
README.md
23
README.md
|
@ -136,6 +136,29 @@ try {
|
||||||
//don't trust the JWT!
|
//don't trust the JWT!
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
## Android Proguard Setup
|
||||||
|
|
||||||
|
You can use the following rules on your Android projects (see [Proguard Exclusions](https://github.com/jwtk/jjwt/wiki/ProGaurd-exclusions)):
|
||||||
|
|
||||||
|
```
|
||||||
|
-keepnames class com.fasterxml.jackson.databind.** { *; }
|
||||||
|
-dontwarn com.fasterxml.jackson.databind.*
|
||||||
|
-keepattributes InnerClasses
|
||||||
|
|
||||||
|
-keep class org.bouncycastle.** { *; }
|
||||||
|
-keepnames class org.bouncycastle.** { *; }
|
||||||
|
-dontwarn org.bouncycastle.**
|
||||||
|
|
||||||
|
-keep class io.jsonwebtoken.** { *; }
|
||||||
|
-keepnames class io.jsonwebtoken.* { *; }
|
||||||
|
-keepnames interface io.jsonwebtoken.* { *; }
|
||||||
|
|
||||||
|
-dontwarn javax.xml.bind.DatatypeConverter
|
||||||
|
-dontwarn io.jsonwebtoken.impl.Base64Codec
|
||||||
|
|
||||||
|
-keepnames class com.fasterxml.jackson.** { *; }
|
||||||
|
-keepnames interface com.fasterxml.jackson.** { *; }
|
||||||
|
```
|
||||||
|
|
||||||
## Supported Features
|
## Supported Features
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue