Google Drive API doesn't play well with ProGuard (NPE)

后端 未结 6 856
渐次进展
渐次进展 2020-11-30 04:06

Currently, I\'m having experience that, a piece of code, which makes use of Google Drive API is running fine without introducing ProGuard.

However,

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 04:38

    Proper combination is :

    -keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault

    There's proguard configuration prepared by Google for project google-api-java-client

    https://github.com/google/google-api-java-client/blob/57fe35766cbba0a0d5a9a296be81468d730a29f8/google-api-client-assembly/proguard-google-api-client.txt

提交回复
热议问题