And attached also my proguard file

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2971465
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-dontwarn javax.xml.**
-dontwarn com.sun.**
-dontwarn org.odata4j.**
#-dontwarn org.restlet.**

# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontshrink
-dontoptimize
-dontpreverify

# If you want to enable optimization, you should include the
# following:
# -optimizations 
!code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
# -optimizationpasses 5
# -allowaccessmodification
#
# Note that you cannot just include these flags in your own
# configuration file; if you are including this file, optimization
# will be turned off. You'll need to either edit this file, or
# duplicate the contents of this file and remove the include of this
# file from your project's proguard.config path property.

#-ignorewarnings
-keepdirectories
-keepattributes *Annotation*
-libraryjars /libs/odata4j-0.6.0-nojpabundle.jar
-libraryjars /libs/acra-4.2.3.jar
-libraryjars /libs/org.restlet.ext.atom.jar
-libraryjars /libs/org.restlet.ext.crypto.jar
-libraryjars /libs/org.restlet.ext.httpclient.jar
-libraryjars /libs/org.restlet.ext.jaas.jar
-libraryjars /libs/org.restlet.ext.json.jar
-libraryjars /libs/org.restlet.ext.net.jar
-libraryjars /libs/org.restlet.ext.odata.jar
-libraryjars /libs/org.restlet.ext.rdf.jar
-libraryjars /libs/org.restlet.ext.xml.jar
-libraryjars /libs/org.restlet.jar
-libraryjars <java.home>/lib/rt.jar(java/**,javax/**)

-keep public class * extends android.app.Activity
-keep public class * extends com.actionbarsherlock.app.SherlockActivity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment
-keep public class * extends org.restlet.ext.odata.Service
-keep public class com.android.vending.licensing.ILicensingService
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
-keep class org.** { *; }
-keep class com.sun.** { *; }
-keep class org.odata4j.** { *; }
-keep class javax.** { *; }
-keep public class com.android.vending.licensing.ILicensingService
-keep class org.restlet.** { *; }

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

-keep public class * extends android.view.View {
    public <init>(android.content.Context);
    public <init>(android.content.Context, android.util.AttributeSet);
    public <init>(android.content.Context, android.util.AttributeSet, int);
    public void set*(...);
}

-keepclassmembers class * extends android.os.AsyncTask {
        protected void onPreExecute();
        protected *** doInBackground(...);
        protected void onPostExecute(...);
}

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

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

-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.**

#ACRA specifics
# we need line numbers in our stack traces otherwise they are pretty useless
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

# ACRA needs "annotations" so add this... 
-keepattributes *Annotation*

# keep this class so that logging will show 'ACRA' and not a obfuscated name 
like 'a'.
# Note: if you are removing log messages elsewhere in this file then this isn't 
necessary
-keep class org.acra.ACRA {
        *;
}

# keep this around for some enums that ACRA needs
-keep class org.acra.ReportingInteractionMode {
   *;
}

# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public void addCustomData(java.lang.String,java.lang.String);
}

# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public org.acra.ErrorReporter$ReportsSenderWorker 
handleSilentException(java.lang.Throwable);
}

Reply via email to