From: masensio Date: Wed, 11 Dec 2013 17:20:42 +0000 (-0800) Subject: Merge pull request #327 from LukeOwncloud/develop X-Git-Tag: oc-android-1.5.5~107 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/edfbd585bec1f9cd5a0b3aa0de49c5ae86b75791?hp=e250504597e2249d6e1cf14c852f03321d7aee7b Merge pull request #327 from LukeOwncloud/develop fix/update mvn compile --- diff --git a/SETUP.md b/SETUP.md index 64701577..1b5de18d 100644 --- a/SETUP.md +++ b/SETUP.md @@ -25,15 +25,17 @@ NOTE: You must have the Android SDK 'tools/', and 'platforms-tools/' folders in ### 3. Building with console/maven: -NOTE: You must have mvn in your environment path +NOTE: You must have mvn (version >= 3.1.1) in your environment path. Current Android 'platforms-tools' need to be installed. * Download/install Android plugin for Maven, then build ownCloud with mvn: * "cd .." * "git clone https://github.com/mosabua/maven-android-sdk-deployer.git" * "cd maven-android-sdk-deployer" -* "mvn -pl com.simpligility.android.sdk-deployer:android-17 -am install" -* "cd ../android" -* Now you can create APK using "mvn package" +* "mvn -pl com.simpligility.android.sdk-deployer:android-19 -am install" +* "cd ../android/oc_framework" +* "mvn install" +* "cd .." +* Now you can create ownCloud APK using "mvn package" ### 4. Building with Eclipse: @@ -44,13 +46,13 @@ NOTE: You must have the Android SDK 'tools/', and 'platforms-tools/' folders in * Clean project and compile. * If any error appear, check the project properties; in the 'Android' section, API Level should be greater or equal than 14. * Make sure android/actionbarsherlock/library/bin/library.jar was created. -* Create a new "Android Project from Existing Code". Choose android/oc_framework/library as root. +* Create a new "Android Project from Existing Code". Choose android/oc_framework as root. * Clean project and compile. * If any error appear, check the project properties; in the 'Android' section, API Level should be 19 or greater. * Make sure android/oc_framework/bin/classes.jar was created. * Import ownCloud Android project. * Clean project and compile. -* If any error appears, check the project properties; in the 'Android' section: +* If any error appears, check the project properties of owncloud-android project; in the 'Android' section: - API Level should be 19 or greater. - Two library projects should appear referred in the bottom square: actionbarsherlock/library and oc_framework. Add them if needed. * After those actions you should be good to go. HAVE FUN! diff --git a/oc_framework/pom.xml b/oc_framework/pom.xml new file mode 100755 index 00000000..674c0310 --- /dev/null +++ b/oc_framework/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + com.owncloud.android + oc_framework + ${owncloud.version} + jar + oc_framework for Owncloud Android + + + 1.5.1-SNAPSHOT + 1.6 + + 4.4_r1 + + 19 + + + oc_framwork for Owncloud for Android + + + + + android + android + ${google.android-version} + provided + + + + commons-httpclient + commons-httpclient + 3.1 + + + + org.apache.jackrabbit + jackrabbit-webdav + 2.5.2 + + + + + + ${project.artifactId} + + src + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.0 + + ${java-version} + ${java-version} + + + + + com.jayway.maven.plugins.android.generation2 + android-maven-plugin + 3.8.0 + + + ${env.ANDROID_HOME} + ${google.android-api} + + + true + + + + + + + + diff --git a/pom.xml b/pom.xml index a55a77a1..4e4b7241 100644 --- a/pom.xml +++ b/pom.xml @@ -5,13 +5,17 @@ 4.0.0 com.owncloud.android owncloud - 1.3.21-SNAPSHOT + ${owncloud.version} apk Owncloud Android + 1.5.1-SNAPSHOT 1.6 - 4.2.2_r2 + + 4.4_r1 + + 19 4.2.0 @@ -22,7 +26,7 @@ scm:git:git@github.com:owncloud/android.git https://github.com/owncloud/android - + @@ -51,6 +55,13 @@ jackrabbit-webdav 2.5.2 + + + + com.owncloud.android + oc_framework + ${owncloud.version} + @@ -74,12 +85,11 @@ com.jayway.maven.plugins.android.generation2 android-maven-plugin - 3.5.0 + 3.8.0 - ${env.ANDROID_HOME} - 17 + ${google.android-api} true