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://www.openfeint.com/ofdeveloper/index.php/kb/article/000038Obfuscate 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 our example application and place it in 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 add the following after the first line , before the tag: ]> Which 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 task in build.xml add the following line: &proguard-obfuscation; This imports proguard-obfuscation.xml which will modify the Ant build process. Reference 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 ant debug or ant release will now obfuscate your code as part of the build process. If you wish to make a build without obfuscation for whatever reason simply set the property noobfuscate to true: ant -Dnoobfuscate=true debug ant -Dnoobfuscate=true release |