Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

api level is now provided as a property and not hardcoded in build.xml

  • Loading branch information...
commit c7592225cd60cc80b8c21704940c70d3797f7fb5 1 parent 1fe1003
@jonasmaturana jonasmaturana authored
Showing with 6 additions and 2 deletions.
  1. +2 −0  README.md
  2. +2 −0  build.properties
  3. +2 −2 build.xml
View
2  README.md
@@ -49,6 +49,8 @@ Change the following value in the `build.properties` file:
* `tested.main_activity` the fully qualified name of your main activity.
* `tested.project.apk` path to the APK you want to test.
+You might have to change `android.api.level` if you do not have api level 8 installed.
+
**Notice:** Make sure that the app you are trying to test is signed with the `key.store` certificate.
View
2  build.properties
@@ -3,6 +3,8 @@ tested.main_activity=sh.calabash.test.activities.LoginActivity
tested.project.apk=YourApp.apk
#You might have to update these values
+android.api.level=8
+
key.store=${user.home}/.android/debug.keystore
key.store.password=android
key.alias=androiddebugkey
View
4 build.xml
@@ -22,7 +22,7 @@
<property name="dx" location="${env.ANDROID_HOME}/platform-tools/dx${bat}" />
<property name="apkbuilder" location="${env.ANDROID_HOME}/tools/apkbuilder${bat}" />
- <property name="android.lib" location="${env.ANDROID_HOME}/platforms/android-4/android.jar"/>
+ <property name="android.lib" location="${env.ANDROID_HOME}/platforms/android-${android.api.level}/android.jar"/>
<path id="android.antlibs">
<pathelement path="${env.ANDROID_HOME}/tools/lib/anttasks.jar" />
</path>
@@ -42,7 +42,7 @@
</path>
<path id="android.target.classpath">
- <fileset dir="${env.ANDROID_HOME}/platforms/android-8/" includes="*.jar"/>
+ <fileset dir="${env.ANDROID_HOME}/platforms/android-${android.api.level}/" includes="*.jar"/>
</path>
<target name="test" description="Run test features" depends="package">
Please sign in to comment.
Something went wrong with that request. Please try again.