How to fix Proguard issue with Google Drive REST API

后端 未结 3 740
一向
一向 2021-01-14 15:14

I\'m using the Google Rest API v3 to connect my android app to Google Drive. When I run without Proguard (minifyEnabled=false), all is well. However, when I enable proguard

3条回答
  •  执念已碎
    2021-01-14 15:58

    You need

    -keep class com.google.** { *;} 
    

    and

    -keep class com.fasterxml.** { *;}
    

    Also you might try to keep less from the SDK. These rules are very wide.

    Edit: Wide rules means that it probably will keep more unused classes in your project hence the apk size and method count will be bigger.

提交回复
热议问题