Parse platform 解析jar是否可以简化为具有更少的方法?

Parse platform 解析jar是否可以简化为具有更少的方法?,parse-platform,Parse Platform,由于Android 64k最大方法限制,我试图减少Parse Android SDK提供的方法数量。Parse-1.5.0.jar有大约4500多个方法。有什么建议吗 删除SDK并使用REST API是可能的,但可能会有点费时。尝试使用ProGuard,不要考虑使用REST API。。。老实说,我从来没有听说过这样一个问题的解决办法 只要告诉ProGuard收缩代码,如果不想减慢部署速度,就跳过Obusation等附加功能。proguard project.txt文件大致如下: -dontopt

由于Android 64k最大方法限制,我试图减少Parse Android SDK提供的方法数量。Parse-1.5.0.jar有大约4500多个方法。有什么建议吗


删除SDK并使用REST API是可能的,但可能会有点费时。

尝试使用ProGuard,不要考虑使用REST API。。。老实说,我从来没有听说过这样一个问题的解决办法

只要告诉ProGuard收缩代码,如果不想减慢部署速度,就跳过Obusation等附加功能。
proguard project.txt
文件大致如下:

-dontoptimize
-dontobfuscate
-allowaccessmodification
-dontpreverify

# The remainder of this file is identical to the non-optimized version
# of the Proguard configuration file (except that the other file has
# flags to turn off optimization).

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose

-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService

# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
    native <methods>;
}

# 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);
}

# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

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

# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version.  We know about them, and they are safe.
-dontwarn android.support.**
-不要优化
-顿托夫斯卡特
-允许访问修改
-不要翻转
#此文件的其余部分与未优化版本相同
#Proguard配置文件(除了另一个文件
#关闭优化的标志)。
-dontusemixedcaseclassnames
-DontskipnonPublicLibraryClass
-冗长的
-保持公共类com.google.vending.licensing.ILicensingService
-保持公共类com.android.vending.licensing.ILicensingService
#有关本机方法,请参见http://proguard.sourceforge.net/manual/examples.html#native
-KeepClassSwithMemberNames类*{
本地人;
}
#在视图中保留setter,以便动画仍然可以工作。
#看http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers公共类*扩展了android.view.view{
无效集*(***);
***得到*();
}
#我们希望在活动中保留可以在XML属性onClick中使用的方法
-keepclassmembers类*扩展了android.app.Activity{
public void*(android.view.view);
}
#有关枚举类,请参见http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers枚举*{
公共静态**[]值();
公共静态**valueOf(java.lang.String);
}
-keep class*实现android.os.Parcelable{
公开静态最终android.os.Parcelable$Creator*;
}
-keepclassmembers类**.R$*{
公共静态;
}
#支持库包含对较新平台版本的引用。
#如果此应用程序链接的是较旧的应用程序,请不要警告这些问题
#平台版本。我们知道他们,他们是安全的。
-dontwarn android.support**

面对同样的问题,您可以求助于ProGuard,但使用它会增加构建时间。