diff --git a/mobile-test-revert b/mobile-test-revert index 91105439..9192837f 100755 --- a/mobile-test-revert +++ b/mobile-test-revert @@ -2,7 +2,5 @@ # reverse of mobile-test-setup - reverts the changes made to AndroidManifest.xml and any resource files -mv mobile/AndroidManifest.xml~ mobile/AndroidManifest.xml - mv mobile/res/values/strings.xml~ mobile/res/values/strings.xml diff --git a/mobile-test-setup b/mobile-test-setup index 23534a18..f88d1f05 100755 --- a/mobile-test-setup +++ b/mobile-test-setup @@ -2,14 +2,11 @@ # quick-n-dirty script to rename the mobile build for tests - -# rename the package, so it can be installed alongside the regular build -test -f mobile/AndroidManifest.xml~ || cp mobile/AndroidManifest.xml mobile/AndroidManifest.xml~ -sed -e 's/package="com.cradle.iitc_mobile"/package="com.cradle.iitc_mobile.test"/' mobile/AndroidManifest.xml~ > mobile/AndroidManifest.xml - - # rename the app title test -f mobile/res/values/strings.xml~ || cp mobile/res/values/strings.xml mobile/res/values/strings.xml~ sed -e 's/IITC Mobile/IITCm Test/' mobile/res/values/strings.xml~ > mobile/res/values/strings.xml +# also, you'll need to build with +# ant -Doverride.package.name=com.cradle.iitc_mobile.test ... +# or similar diff --git a/mobile/build.xml b/mobile/build.xml index 5d1f821a..b5dff7df 100644 --- a/mobile/build.xml +++ b/mobile/build.xml @@ -86,6 +86,45 @@ In all cases you must update the value of version-tag below to read 'custom' instead of an integer, in order to avoid having your file be overridden by tools such as "android update project" --> + + + + + + + + + + + + + + + + +