Hi,
I noticed that in the LVL library you recommend to obfuscate out code.

Why don't you make a small guide on how to obfuscate your APK? :)
I'm trying with this target into my buil-impl.xml file in the post-
compile section  using netbeans project and the apk is correctly
obfuscated but it launch a force close when starting the software.

<target name="optimize" depends="compile">
          <jar basedir="${outdir-classes}" destfile="temp.jar"/>
          <java jar="${proguard-home}/proguard.jar" fork="true"
failonerror="true">
                  <jvmarg value="-Dmaximum.inlined.code.length=32"/>
                  <arg value="-injars temp.jar"/>
                  <arg value="-outjars optimized.jar"/>
                  <arg value="-libraryjars ${android-jar}"/>
                  <!-- <arg value="-libraryjars ${library-jar}/
some_lib_used.jar"/> -->
                  <arg value="-dontpreverify"/>
                  <arg value="-dontoptimize"/>
                  <arg value="-dontusemixedcaseclassnames"/>
                  <arg value="-repackageclasses ''"/>
                  <arg value="-allowaccessmodification"/
>
                  <arg value="-keep public class MAIN CLASS"/>
                  <arg value="-optimizationpasses 1"/>
                  <arg value="-verbose"/>
                  <arg value="-dontskipnonpubliclibraryclasses"/>
                  <arg value="-dontskipnonpubliclibraryclassmembers"/>
          </java>
          <delete file="temp.jar"/>
          <delete dir="${outdir-classes}"/>
          <mkdir dir="${outdir-classes}"/>
          <unzip src="optimized.jar" dest="${outdir-classes}"/>
          <delete file="optimized.jar"/>
  </target>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to