Proguard之后,Foursquare紧凑型场地无效

西申

经过proguard集成后,紧凑型场所变为null,这是我的配置文件。没有proguard,它工作正常。准确地说,我现在在列表视图中列出地点,现在已生成列表,但值是空的

 -injars      bin/classes
-outjars     bin/classes-processed.jar
-libraryjars F:/adt-bundle-windows-x86_64-20130917/adt-bundle-windows-x86_64-20130917/sdk/platforms/android-18/android.jar
-repackageclasses ''
-allowaccessmodification
-optimizations !code/simplification/arithmetic
-dontshrink
-printmapping proguard\mapping.txt
-dontusemixedcaseclassnames
-keepattributes     *Annotation*,Signature,*Annotation*,SourceFile,LineNumberTable,InnerClasses
-renamesourcefileattribute demach
-dontpreverify
-verbose
-dontnote
-dontwarn
-ignorewarnings
-printconfiguration proguard\configuration.txt
-dump proguard\classes.txt
-printseeds proguard\seeds.txt

-keep public class * extends android.app.Activity

-keep public class * extends android.app.Service
-keep public class * extends android.app.Fragment
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.preference.Preference


-keep public class * extends android.content.ContentProvider



#Google licensing files
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService

# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
    void set*(***);
    *** get*();
}

# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
    public void *(android.view.View);
}

#Parcels and R
-keep class * extends android.os.Parcelable {
    public static final android.os.Parcelable$Creator *;
}

-keepclassmembers class **.R$* {
    public static <fields>;
}

# Gson specific classes
-keep class sun.misc.Unsafe {
    <fields>;
    <methods>;
}

# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.demach.** {
    <fields>;
    <methods>;
}

# Support libraries on Android
-keep class android.support.** {
    <fields>;
    <methods>;
}

-keepclassmembers class * extends com.actionbarsherlock.ActionBarSherlock {
    <init>(android.app.Activity, int);
}
# Http classes
-keep class org.apache.http.entity.** {
    <fields>;
    <methods>;
}

# google GSON
-keep,allowshrinking class com.google.gson.stream.**

# VIEW - Setters and getters
-keep,allowshrinking class * extends android.view.View {
    <methods>;
}

# ACTIVITY
-keep,allowshrinking class * extends android.app.Activity {
    <methods>;
}

# PARCELABLE
-keep,allowshrinking class * extends android.os.Parcelable {
    <fields>;
    <methods>;
}

# APPLICATION
-keep,allowshrinking class * extends android.app.Application {
    <fields>;
    <methods>;
}

# SERVICE
-keep,allowshrinking class * extends android.app.Service {
    <fields>;
    <methods>;
}

#Android classes
-keep,allowshrinking class * extends android.os.AsyncTask {
    <methods>;
}

#Android classes
-keep,allowshrinking class android.content.ContentProvider {
    <fields>;
    <methods>;
}

#Android classes
-keep,allowshrinking class * extends android.content.BroadcastReceiver {
    <fields>;
    <methods>;
}

#Android classes
# R classes
-keep,allowshrinking class **.R$* {
    <fields>;
}


-keepclasseswithmembernames class * {
    native <methods>;
}

-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
}


# Demach GSON files
-keep,allowshrinking class com.google.gson.demach.** {
    <fields>;
    <methods>;
}

# Demach model
-keep,allowshrinking class com.demach.konotor.model.** {
    <fields>;
    <methods>;
}

# Konotor MAIN class
-keep,allowshrinking class com.demach.konotor.Konotor {
    <fields>;
    <methods>;
}

# Apache entity
-keep,allowshrinking class org.apache.http.entity.** {
    <fields>;
    <methods>;
}

# Client models
-keep,allowshrinking class com.demach.konotor.client.model.** {
    <fields>;
    <methods>;
}

# Service models
-keep,allowshrinking class com.demach.konotor.service.model.** {
    <fields>;
    <methods>;
}

# Konotor cocos 2DX wrapper class
-keep,allowshrinking class com.demach.konotor.cocos2dx.KonotorCocos2DXWrapper {
    <fields>;
    <methods>;
}

# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum  * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
    native <methods>;
}
西申

终于找到了解决方案

-keepclassmembers public class fi.foyt.foursquare.api.entities.CompactVenue {
   <fields>;
   <methods>;
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

创建无依赖的紧凑型jar

使用紧凑型 Laravel 显示数据

SWXMLHash紧凑型根元素

Jwt的紧凑型设备齐全

紧凑型多重ggplot2次系列

是否有常规和紧凑型尺寸规则?

在紧凑型支持[0,alpha,alpha <1

特定于Linux的写保护紧凑型闪存问题

紧凑型 Laravel 中未定义的变量“注释”

如何创建紧凑型材

落后焦炭的Java 11紧凑型字符串魔法[]为byte []

Powershell:具有紧凑型输出的gci滤波器

在C ++ / STL中是否有等效于Python range()的紧凑型

在C ++ / STL中是否有等效于Python range()的紧凑型

在紧凑型环境中未要求iOS 13的presentationControllerDidDismiss()调用Popover

uwp紧凑型叠加在屏幕上的特定位置

Cassandra + Solr:带有紧凑型储物和复合钥匙的桌子

Foursquare场地结果区域设置

蓝牙键盘打印错误的符号,并且无法识别-,p,[,0(thinkpad紧凑型蓝牙键盘)

Foursquare Venue API返回空的场地列表

当设备明显被系统使用时,如何使用ext3文件系统格式化紧凑型闪存盘?

FourSquare API 返回我没有要求的场地

无法让 Foursquare 使用场地推送 API 将实时签到推送到我的 URL

当设置了friendVisits=visited 查询参数时,Foursquare 场地/探索API 不返回数据

如何在搜索模式下使用 Foursquare API 获取超过 50 个场地?

PIVOT之后的无效列名

泛型类上静态Create()方法的紧凑语法?

对 setPhotoURL 的无效调用:在 commitChangesWithCallback 之后

接近堆限制的无效标记紧凑分配失败-JavaScript堆内存溢出