From: masensio Date: Thu, 3 Apr 2014 09:02:54 +0000 (+0200) Subject: Merge pull request #392 from pmarasse/pullup X-Git-Tag: oc-android-1.7.0_signed~352 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/7a9149a66ab8caffbec4f0eaf46cd5615e19e1e4?hp=28ef4217e56e2db9805af6153ebd074a7a85488b Merge pull request #392 from pmarasse/pullup Modified actionbar to allow display of icon+text on tablets --- diff --git a/.gitmodules b/.gitmodules index 12d15b6e..f0ca8721 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = git://github.com/JakeWharton/ActionBarSherlock.git [submodule "owncloud-android-library"] path = owncloud-android-library - url = git@github.com:owncloud/android-library.git + url = git://github.com/owncloud/android-library.git diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..7ec196c7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: java +jdk: oraclejdk7 +before_install: + # Install base Android SDK + - sudo apt-get update -qq + - sudo apt-get install -qq libstdc++6:i386 lib32z1 + - export COMPONENTS=build-tools-18.1.0,android-14,android-17,android-19,sysimg-19,extra-android-support + - curl -L https://raw.github.com/embarkmobile/android-sdk-installer/master/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS + - source ~/.android-sdk-installer/env + - rm pom.xml + - ./setup_env.sh + +script: + - ant clean + - ant debug + diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 465dec84..3067a40f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -3,7 +3,7 @@ ownCloud Android client application Copyright (C) 2012 Bartek Przybylski - Copyright (C) 2012-2013 ownCloud Inc. + Copyright (C) 2012-2014 ownCloud Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, @@ -18,8 +18,8 @@ along with this program. If not, see . --> + android:versionCode="105005" + android:versionName="1.5.5" xmlns:android="http://schemas.android.com/apk/res/android"> @@ -80,12 +80,10 @@ - + - - - + - + - + + + diff --git a/SETUP.md b/SETUP.md index 13c4f592..a9650644 100644 --- a/SETUP.md +++ b/SETUP.md @@ -12,6 +12,7 @@ NOTE: You must have git in your environment path variable to perform the next op * Pull changes from your develop branch: "git pull origin develop" * Make official ownCloud repo known as upstream: "git remote add upstream git@github.com:owncloud/android.git" * Make sure to get the latest changes from official android/develop branch: "git pull upstream develop" +* Complete the setup of project properties and resolve pending dependencies running "setup_env.bat" or "./setup_env.sh" . At this point you can continue using different tools to build the project. Section 2, 3 and 4 describe some of the existing alternatives. @@ -19,21 +20,20 @@ At this point you can continue using different tools to build the project. Secti NOTE: You must have the Android SDK 'tools/', and 'platforms-tools/' folders in your environment path variable. -* Complete the setup of project properties and resolve pending dependencies running "setup_env.bat" or "./setup_env.sh" . * Run "ant clean" . -* Run "ant debug" to generate a debuggable version of the ownCkoud app. +* Run "ant debug" to generate a debuggable version of the ownCloud app. ### 3. Building with console/maven: 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, install oc_framework, then build ownCloud with mvn: +Download/install Android plugin for Maven, install owncloud-android-library, 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-19 -am install -* cd ../android/oc_framework +* cd ../android/owncloud-android-library * mvn install * cd .. @@ -48,15 +48,15 @@ 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 as root. +* Create a new "Android Project from Existing Code". Choose android/owncloud-android-library 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. +* Make sure android/owncloud-android-library/bin/classes.jar was created. * Import ownCloud Android project. * Clean project and compile. * 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. + - Two library projects should appear referred in the bottom square: actionbarsherlock/library and owncloud-android-library. Add them if needed. * After those actions you should be good to go. HAVE FUN! NOTE: Even though API level is set to 19, APK also runs on older devices because in AndroidManifest.xml minSdkVersion is set to 8. diff --git a/oc_jb_workaround/AndroidManifest.xml b/oc_jb_workaround/AndroidManifest.xml index ea251057..640b6aba 100644 --- a/oc_jb_workaround/AndroidManifest.xml +++ b/oc_jb_workaround/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="0100014" + android:versionName="1.0.14" > 1.5.1-SNAPSHOT 1.6 - 4.4_r1 + 4.4.2_r2 19 4.2.0 @@ -50,10 +50,10 @@ apklib - + com.owncloud.android - oc_framework + owncloud-android-library ${owncloud.version} diff --git a/res/drawable-hdpi-v11/notification_icon.png b/res/drawable-hdpi-v11/notification_icon.png new file mode 100644 index 00000000..9e634a8c Binary files /dev/null and b/res/drawable-hdpi-v11/notification_icon.png differ diff --git a/res/drawable-hdpi/copy_link.png b/res/drawable-hdpi/copy_link.png new file mode 100644 index 00000000..35df55f7 Binary files /dev/null and b/res/drawable-hdpi/copy_link.png differ diff --git a/res/drawable-hdpi/notification_icon.png b/res/drawable-hdpi/notification_icon.png new file mode 100644 index 00000000..fd2bc5b4 Binary files /dev/null and b/res/drawable-hdpi/notification_icon.png differ diff --git a/res/drawable-ldpi/copy_link.png b/res/drawable-ldpi/copy_link.png new file mode 100644 index 00000000..b3caf522 Binary files /dev/null and b/res/drawable-ldpi/copy_link.png differ diff --git a/res/drawable-mdpi-v11/notification_icon.png b/res/drawable-mdpi-v11/notification_icon.png new file mode 100644 index 00000000..e33e6535 Binary files /dev/null and b/res/drawable-mdpi-v11/notification_icon.png differ diff --git a/res/drawable-mdpi/copy_link.png b/res/drawable-mdpi/copy_link.png new file mode 100644 index 00000000..4e2af289 Binary files /dev/null and b/res/drawable-mdpi/copy_link.png differ diff --git a/res/drawable-mdpi/notification_icon.png b/res/drawable-mdpi/notification_icon.png new file mode 100644 index 00000000..2e8beda6 Binary files /dev/null and b/res/drawable-mdpi/notification_icon.png differ diff --git a/res/drawable-xhdpi-v11/notification_icon.png b/res/drawable-xhdpi-v11/notification_icon.png new file mode 100644 index 00000000..1ad49714 Binary files /dev/null and b/res/drawable-xhdpi-v11/notification_icon.png differ diff --git a/res/drawable-xhdpi/copy_link.png b/res/drawable-xhdpi/copy_link.png new file mode 100644 index 00000000..c69eb05a Binary files /dev/null and b/res/drawable-xhdpi/copy_link.png differ diff --git a/res/drawable-xhdpi/notification_icon.png b/res/drawable-xhdpi/notification_icon.png new file mode 100644 index 00000000..b3855d61 Binary files /dev/null and b/res/drawable-xhdpi/notification_icon.png differ diff --git a/res/layout-v11/notification_with_progress_bar.xml b/res/layout-v11/notification_with_progress_bar.xml new file mode 100644 index 00000000..f4d4fab3 --- /dev/null +++ b/res/layout-v11/notification_with_progress_bar.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/notification_with_progress_bar.xml b/res/layout/notification_with_progress_bar.xml new file mode 100644 index 00000000..1df31dc5 --- /dev/null +++ b/res/layout/notification_with_progress_bar.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + diff --git a/res/layout/preview_image_fragment.xml b/res/layout/preview_image_fragment.xml index 253c829b..cddd1ff2 100644 --- a/res/layout/preview_image_fragment.xml +++ b/res/layout/preview_image_fragment.xml @@ -26,13 +26,12 @@ android:background="@color/background_color" android:gravity="center_horizontal" --> - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/ssl_untrusted_cert_layout.xml b/res/layout/ssl_untrusted_cert_layout.xml new file mode 100644 index 00000000..6a30c2e0 --- /dev/null +++ b/res/layout/ssl_untrusted_cert_layout.xml @@ -0,0 +1,460 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +