To start
developing your first OpenFeint-enabled game on Android are:
|
Work with test usersFor information about how to use the OpenFeint test users functionality which enables user data accumulated during development and testing to be purged from the server, see http://support.openfeint.com/dev/test-users/Obfuscate your code with ProGuardWe recommend that you obfuscate your application code before release. For your convenience 'ProGuard' is integrated with our example. You should download the latest version from: http://proguard.sourceforge.net/ ProGuard integrates easily with Ant but cannot be integrated into the Eclipse build process. Reference http://developer.android.com/guide/developing/other-ide.html for help in setting up an Ant build environment.Once Ant is up and running you can put your copy of ProGuard in a proguard subdirectory of your Android project. Be sure to copy proguard-config.txt and proguard-obfuscation.xml from OpenFeint's example application and place them into your Android project's root directory.Download and extract the latest version of proguard. Put it in a subdirectory named 'proguard' in the OpenFeint Android SDK's MyOpenFeintSample folder. Open build.xml and after the first line: <?xml... ?>and before the <project> tag, add:
<!DOCTYPE project [ <!ENTITY proguard-obfuscation SYSTEM "proguard-obfuscation.xml"> ]>This line defines an XML entity and allows us to essentially import the entirety of proguard-obfuscation.xml later in the build.xml document. At some point after the &proguard-obfuscation;This imports proguard-obfuscation.xml which will modify the Ant build process. See proguard-obfuscation.xml for a description of the modifications. If you experience any issues co-existing with Eclipse you might want to modify your local.properties file to re-direct the out.classes.dir to the same spot as Eclipse by default: out.classes.dir=bin/ Building with noobfuscate to true :
ant -Dnoobfuscate=true debug ant -Dnoobfuscate=true release |