質問

I'm getting close to putting my app up on the Google Play store and I'm trying to obfuscate with Proguard. It uses GAE and the RequestFactory and I'm getting the 'RequestFactory Validation Tool must be run for...' exception. Seen a few posts on this, and a few answers but nothing definitive and nothing that works for me. I understand the reflection/symbolic issues and have excluded the RequestFactory interface from obfuscation but to no avail. Can someone provide a simplified working example of what should go into the proguard config file to get through this successfully.

Thanks

役に立ちましたか?

解決 2

I can't find a description of what the RequestFactory Validation Tool does internally, but chances are that it has added annotations. ProGuard's obfuscation step removes those by default, but you can keep them:

-keepattributes *Annotation*

他のヒント

May be late after an year. Just this would help for someone using proguard for app engine, Add this to your proguard.cfg file

# Needed to keep generic types and @Key annotations accessed via reflection

-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault

-keepclassmembers class * {
  @com.google.api.client.util.Key <fields>;
}

# Needed by google-http-client-android when linking against an older platform version

-dontwarn com.google.api.client.extensions.android.**

# Needed by google-api-client-android when linking against an older platform version

-dontwarn com.google.api.client.googleapis.extensions.android.**
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top