Browse Source

Merge remote-tracking branch 'upstream/develop' into triggerMediaScan

Conflicts:
	src/com/owncloud/android/ui/fragment/OCFileListFragment.java
	src/com/owncloud/android/ui/preview/PreviewImageActivity.java
	src/com/owncloud/android/ui/preview/PreviewImageFragment.java
tobiasKaminsky 10 years ago
parent
commit
d7b32ecc17
100 changed files with 362 additions and 115 deletions
  1. 2 2
      .classpath
  2. 10 6
      .gitignore
  3. 3 0
      .gitmodules
  4. 22 0
      .travis.yml
  5. 30 16
      AndroidManifest.xml
  6. 85 49
      SETUP.md
  7. 8 0
      THIRD_PARTY.txt
  8. BIN
      libs/disklrucache-2.0.2.jar
  9. BIN
      libs/jackrabbit-webdav-2.2.5-jar-with-dependencies.jar
  10. BIN
      libs/touch-image-view.jar
  11. 0 3
      lint.xml
  12. 2 2
      oc_jb_workaround/AndroidManifest.xml
  13. BIN
      oc_jb_workaround/res/drawable-xhdpi/main_app_icon.png
  14. BIN
      oc_jb_workaround/res/drawable-xhdpi/workaround_app_icon.png
  15. 1 0
      owncloud-android-library
  16. 38 11
      pom.xml
  17. 1 0
      project.properties
  18. BIN
      res/drawable-hdpi-v11/notification_icon.png
  19. BIN
      res/drawable-hdpi-v9/ic_action_create_dir.png
  20. BIN
      res/drawable-hdpi-v9/ic_action_settings.png
  21. BIN
      res/drawable-hdpi-v9/ic_action_upload.png
  22. BIN
      res/drawable-hdpi/copy_link.png
  23. BIN
      res/drawable-hdpi/file.png
  24. BIN
      res/drawable-hdpi/file_doc.png
  25. BIN
      res/drawable-hdpi/file_image.png
  26. BIN
      res/drawable-hdpi/file_movie.png
  27. BIN
      res/drawable-hdpi/file_pdf.png
  28. BIN
      res/drawable-hdpi/file_ppt.png
  29. BIN
      res/drawable-hdpi/file_sound.png
  30. BIN
      res/drawable-hdpi/file_xls.png
  31. BIN
      res/drawable-hdpi/file_zip.png
  32. BIN
      res/drawable-hdpi/folder_public.png
  33. BIN
      res/drawable-hdpi/ic_action_create_dir.png
  34. BIN
      res/drawable-hdpi/ic_action_settings.png
  35. BIN
      res/drawable-hdpi/ic_action_upload.png
  36. BIN
      res/drawable-hdpi/ic_favorite.png
  37. BIN
      res/drawable-hdpi/ic_menu_archive.png
  38. BIN
      res/drawable-hdpi/notification_icon.png
  39. BIN
      res/drawable-hdpi/shared_with_me.png
  40. BIN
      res/drawable-hdpi/shared_with_me_folder.png
  41. BIN
      res/drawable-hdpi/sharedlink.png
  42. BIN
      res/drawable-hdpi/winter_holidays_icon.png
  43. BIN
      res/drawable-ldpi-v9/ic_action_create_dir.png
  44. BIN
      res/drawable-ldpi-v9/ic_action_settings.png
  45. BIN
      res/drawable-ldpi-v9/ic_action_upload.png
  46. BIN
      res/drawable-ldpi/copy_link.png
  47. BIN
      res/drawable-ldpi/file.png
  48. BIN
      res/drawable-ldpi/file_doc.png
  49. BIN
      res/drawable-ldpi/file_image.png
  50. BIN
      res/drawable-ldpi/file_movie.png
  51. BIN
      res/drawable-ldpi/file_pdf.png
  52. BIN
      res/drawable-ldpi/file_ppt.png
  53. BIN
      res/drawable-ldpi/file_sound.png
  54. BIN
      res/drawable-ldpi/file_xls.png
  55. BIN
      res/drawable-ldpi/file_zip.png
  56. BIN
      res/drawable-ldpi/ic_action_create_dir.png
  57. BIN
      res/drawable-ldpi/ic_action_settings.png
  58. BIN
      res/drawable-ldpi/ic_action_upload.png
  59. BIN
      res/drawable-ldpi/ic_menu_archive.png
  60. BIN
      res/drawable-ldpi/winter_holidays_icon.png
  61. BIN
      res/drawable-mdpi-v11/notification_icon.png
  62. BIN
      res/drawable-mdpi-v9/ic_action_create_dir.png
  63. BIN
      res/drawable-mdpi-v9/ic_action_settings.png
  64. BIN
      res/drawable-mdpi-v9/ic_action_upload.png
  65. BIN
      res/drawable-mdpi/copy_link.png
  66. BIN
      res/drawable-mdpi/file.png
  67. BIN
      res/drawable-mdpi/file_doc.png
  68. BIN
      res/drawable-mdpi/file_image.png
  69. BIN
      res/drawable-mdpi/file_movie.png
  70. BIN
      res/drawable-mdpi/file_pdf.png
  71. BIN
      res/drawable-mdpi/file_ppt.png
  72. BIN
      res/drawable-mdpi/file_sound.png
  73. BIN
      res/drawable-mdpi/file_xls.png
  74. BIN
      res/drawable-mdpi/file_zip.png
  75. BIN
      res/drawable-mdpi/folder_public.png
  76. BIN
      res/drawable-mdpi/ic_action_create_dir.png
  77. BIN
      res/drawable-mdpi/ic_action_settings.png
  78. BIN
      res/drawable-mdpi/ic_action_upload.png
  79. BIN
      res/drawable-mdpi/ic_favorite.png
  80. BIN
      res/drawable-mdpi/ic_menu_archive.png
  81. BIN
      res/drawable-mdpi/notification_icon.png
  82. BIN
      res/drawable-mdpi/shared_with_me.png
  83. BIN
      res/drawable-mdpi/shared_with_me_folder.png
  84. BIN
      res/drawable-mdpi/sharedlink.png
  85. BIN
      res/drawable-mdpi/winter_holidays_icon.png
  86. BIN
      res/drawable-xhdpi-v11/notification_icon.png
  87. BIN
      res/drawable-xhdpi/copy_link.png
  88. BIN
      res/drawable-xhdpi/ic_favorite.png
  89. BIN
      res/drawable-xhdpi/icon.png
  90. BIN
      res/drawable-xhdpi/notification_icon.png
  91. BIN
      res/drawable-xhdpi/shared_with_me.png
  92. BIN
      res/drawable-xhdpi/sharedlink.png
  93. BIN
      res/drawable/downloading_file_indicator.png
  94. BIN
      res/drawable/ic_favorite.png
  95. BIN
      res/drawable/local_file_indicator.png
  96. BIN
      res/drawable/uploading_file_indicator.png
  97. 31 25
      res/layout-land/account_setup.xml
  98. 59 0
      res/layout-v11/activity_row.xml
  99. 69 0
      res/layout-v11/notification_with_progress_bar.xml
  100. 1 1
      res/layout/account_setup.xml

+ 2 - 2
.classpath

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="src" path="gen"/>
 	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="gen"/>
 	<classpathentry kind="output" path="bin/classes"/>
 </classpath>

+ 10 - 6
.gitignore

@@ -13,18 +13,22 @@ bin/
 gen/
 target/
 
-# Local configuration file (sdk path, etc)
+# Local configuration files (sdk path, etc)
 local.properties
+oc_workaround/local.properties
+oc_framework/local.properties
+oc_framework-test-project/local.properties
+tests/local.properties
 
 # Mac .DS_Store files
 .DS_Store
 
-# These files are created automatically by Eclipse:
-tests/proguard-project.txt
-tests/project.properties
-tests/ant.properties
-tests/build.xml
+# Proguard README
 proguard-project.txt
+oc_workaround/proguard-project.txt
+oc_framework/proguard-project.txt
+oc_framework-test-project/proguard-project.txt
+tests/proguard-project.txt
 
 # Should not be commited inside this repo:
 actionbarsherlock/

+ 3 - 0
.gitmodules

@@ -1,3 +1,6 @@
 [submodule "actionbarsherlock"]
 	path = actionbarsherlock
 	url = git://github.com/JakeWharton/ActionBarSherlock.git
+[submodule "owncloud-android-library"]
+	path = owncloud-android-library
+	url = git://github.com/owncloud/android-library.git

+ 22 - 0
.travis.yml

@@ -0,0 +1,22 @@
+language: android
+android:
+  components:
+    - build-tools-20.0.0
+    - android-19
+    - android-17
+    - android-14
+    - extra-android-support
+  licenses:
+    - 'android-sdk-license-5be876d5'
+    - 'android-sdk-license-598b93a6'
+  
+jdk: oraclejdk7
+
+before_install:
+  - rm pom.xml
+  - ./setup_env.sh
+
+script:
+  - ant clean
+  - ant debug
+

+ 30 - 16
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 <http://www.gnu.org/licenses/>.
  -->
 <manifest package="com.owncloud.android"
-    android:versionCode="105000"
-    android:versionName="1.5.0" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionCode="10600000"
+    android:versionName="1.6.0" xmlns:android="http://schemas.android.com/apk/res/android">
 
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
@@ -54,16 +54,12 @@
             >
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
-
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
         </activity>
         <activity android:name=".ui.activity.UploadFilesActivity">
         </activity>
- 		<activity android:name=".ui.activity.InstantUploadActivity">
-        </activity>
-        <activity android:name=".ui.activity.FailedUploadActivity" android:theme="@android:style/Theme.Dialog" android:excludeFromRecents="true"/>
-        <activity android:name=".Uploader" >
+        <activity android:name=".ui.activity.Uploader" >
             <intent-filter>
                 <action android:name="android.intent.action.SEND" >
                 </action>
@@ -83,7 +79,8 @@
 
                 <data android:mimeType="*/*" >
                 </data>
-            </intent-filter>
+
+			</intent-filter>
         </activity>
         <activity
             android:name=".ui.activity.Preferences"
@@ -92,11 +89,15 @@
         <activity android:name=".ui.activity.PreferencesNewSessionewSession" >
         </activity>
         
-        <activity	android:name=".ui.preview.PreviewImageActivity" />
+        <activity	
+            android:name=".ui.preview.PreviewImageActivity" 
+            />
 		        
-        <activity	android:name=".ui.preview.PreviewVideoActivity"
-					android:label="@string/app_name"
-					android:theme="@style/Theme.ownCloud.Fullscreen" >
+        <activity	
+            android:name=".ui.preview.PreviewVideoActivity"
+			android:label="@string/app_name"
+			android:theme="@style/Theme.ownCloud.Fullscreen" 
+			>
 		</activity>        
 
         <service
@@ -113,7 +114,7 @@
         <service
             android:name=".syncadapter.FileSyncService"
             android:exported="true" 
-            android:process=":sync">
+            >
             <intent-filter>
                 <action android:name="android.content.SyncAdapter" />
             </intent-filter>
@@ -149,12 +150,12 @@
             </intent-filter>
         </activity>
 
+        <service android:name=".services.OperationsService" />
         <service android:name=".files.services.FileDownloader" />
         <service android:name=".files.services.FileUploader" />
         <service android:name=".media.MediaService" />
         
         <activity android:name=".ui.activity.PinCodeActivity" />
-        <activity android:name=".ui.activity.AccountSelectActivity" android:uiOptions="none" android:label="@string/prefs_accounts"></activity>
         <activity android:name=".ui.activity.ConflictsResolveActivity"/>
         <activity android:name=".ui.activity.GenericExplanationActivity"/>
         <activity android:name=".ui.activity.ErrorsWhileCopyingHandlerActivity"/>
@@ -169,6 +170,10 @@
                 <action android:name="android.hardware.action.NEW_PICTURE" />
                 <data android:mimeType="image/*" />
             </intent-filter>
+            <intent-filter>
+                <action android:name="android.hardware.action.NEW_VIDEO" />
+                <data android:mimeType="video/*" />
+            </intent-filter>
             <intent-filter>
                 <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
             </intent-filter>
@@ -178,7 +183,16 @@
                 <action android:name="android.intent.action.BOOT_COMPLETED"/>
             </intent-filter>
         </receiver>
-        <service android:name=".files.services.FileObserverService"/>
+        <service android:name=".services.observer.FileObserverService"/>
+        
+		<activity
+			android:name=".ui.activity.CopyToClipboardActivity"
+			android:label="@string/copy_link"
+			android:icon="@drawable/copy_link"/>
+
+        <activity 
+			android:name=".ui.activity.MoveActivity"
+			android:label="@string/app_name"/>
         
     </application>
 

+ 85 - 49
SETUP.md

@@ -1,56 +1,92 @@
   
-  If you want to start help developing ownCloud please follow the [contribution guidlines][0] and observe these instructions:
+If you want to start help developing ownCloud please follow the [contribution guidelines][0] and observe these instructions.
+
+If you have any problems, start again with 1) and work your way down. If something still does not work as described here, please open a new issue describing exactly what you did, what happened, and what should have happened.
+  
+### 1) Fork and download android/develop repository:
+
+NOTE: Android SDK with platforms 8, 14 and 19 (and maybe others) need to be installed.
+      You must have the Android SDK 'tools/', and 'platforms-tools/' folders in your environment path variable.
+      "git" need to be installed and in your environment path variable.
+
+* Navigate to https://github.com/owncloud/android, click fork.
+* Clone your new repo: "git clone git@github.com:YOURGITHUBNAME/android.git"
+* Move to the project folder with "cd android"
+* Checkout remote develop branch: "git checkout -b develop remotes/origin/develop"
+* 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. Sections 2a), 2b), and 2c) describe some of the existing alternatives.
+
+### 2a) Building with Ant:
   
-  1. Fork and download android/develop repository:
-
-  -  NOTE: You must have git in your enviroment path
-  -  Navigate to https://github.com/owncloud/android, click fork.
-  -  Clone your new repo: "git clone git@github.com:YOURGITHUBNAME/android.git"
-  -  "cd android"
-  -  Checkout remote develop branch: "git checkout -b develop remotes/origin/develop"
-  -  Pull changes from your develop branch: "git pull origin develop"
-  -  Make sure to get the latest changes from official android/develop branch:
-  -  Make official owncloud repo known as upstream: "git remote add upstream git@github.com:owncloud/android.git"
-  -  Pull latest changes from upstream: "git pull upstream develop"
-
-  2. Building with console/maven:
-
-  -  OPTIONAL, CONTINUE WITH STEP 3 IF NOT REQUIRED!
-  -  NOTE: You must have mvn in your enviroment path
-  -  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"
-
-  3. Building with Eclipse:
-
-  -  NOTE: You must have android/tools, and 'platforms-tools' in your enviroment path
-  -  Prepare building with Eclipse:
-  -  "setup_env.bat" or "./setup_env.sh"
-  -  Open Eclipse and create new "Android Project from Existing Code". As root choose android/actionbarsherlock/library
-  -  Increase Android API level until project compiles. 14 should work. 
-  -  Clean project and compile.
-  -  Make sure android/actionbarsherlock/library/bin/library.jar was created!
-  -  Import OwnCloud Android project.
-  -  Increase Android API level to 17.
-  -  Clean project and compile.
-  -  After those actions you should be good to go. HAVE FUN!
-  -  NOTE: Even though API level is set to 17, APK also runs on older devices because in AndroidManifest.xml minSdkVersion is set to 8.
-
-  4. Create pull request:
+NOTE: You must have the Android SDK 'tools/', and 'platforms-tools/' folders in your environment path variable.
+
+* Run "ant clean" .
+* Run "ant debug" to generate a debuggable version of the ownCloud app.
+
+### 2b) 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 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/owncloud-android-library
+* mvn install
+* cd ..
+
+Now you can create ownCloud APK using "mvn package"
+
+### 2c) Building with Eclipse:
+
+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" .
+* Open Eclipse and create new "Android Project from Existing Code". Choose android/actionbarsherlock/library as root.
+* 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.
+* If "error loading libz.so.1" appears, try "sudo apt-get install lib32z1"
+* Make sure android/actionbarsherlock/library/bin/library.jar was created.
+* Create a new "Android Project from Existing Code". Choose android/owncloud-android-library as root. (test and sample clients are not required.)
+* 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/owncloud-android-library/bin/owncloud android library.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 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.
+
+### 3) Create pull request:
   
-  -  NOTE: You must sign the [Contributor Agreement][1] before your changes can be accepted!
-  -  Commit your changes locally: "git commit -a"
-  -  Push your changes to your Github repo: "git push"
-  -  Browse to https://github.com/YOURGITHUBNAME/android/pulls and issue pull request
-  -  Click "Edit" and set "base:develop"
-  -  Again, click "Edit" and set "compare:develop"
-  -  Enter description and send pull request.
+NOTE: You must sign the [Contributor Agreement][1] before your changes can be accepted!
+
+* Commit your changes locally: "git commit -a"
+* Push your changes to your Github repo: "git push"
+* Browse to https://github.com/YOURGITHUBNAME/android/pulls and issue pull request
+* Click "Edit" and set "base:develop"
+* Again, click "Edit" and set "compare:develop"
+* Enter description and send pull request.
+
+### 4) Create another pull request:
+
+To make sure your new pull request does not contain commits which are already contained in previous PRs, create a new branch which is a clone of upstream/develop.
+
+* git fetch upstream
+* git checkout -b my_new_develop_branch upstream/develop
+* If you want to rename that branch later: "git checkout -b my_new_develop_branch_with_new_name"
+* Push branch to server: "git push -u origin name_of_local_develop_branch"
+* Use Github to issue PR
 
 
 [0]: https://github.com/owncloud/android/blob/master/CONTRIBUTING.md
 [1]: http://owncloud.org/about/contributor-agreement/
-

+ 8 - 0
THIRD_PARTY.txt

@@ -60,4 +60,12 @@ The third party software included and used by this project is:
    A binary JAR file must be generated from this linked project
    and included in the ownCloud client APK.
    See http://http://actionbarsherlock.com/
+   
+ * TouchImageView, commit 6dbeac4f11936185ba374c73144ac431c23c9aab
+   Copyright (c) 2012 Michael Ortiz
+   Licensed under MIT License
+   JAR file libs/touch-image-view.jar has been generated by ownCloud Inc., including without 
+   modifications com.ortiz.touch.ExtendedViewPager and com.ortiz.touch.TouchImageView classes. 
+   See https://github.com/MikeOrtiz/TouchImageView
+ 
  

BIN
libs/disklrucache-2.0.2.jar


BIN
libs/jackrabbit-webdav-2.2.5-jar-with-dependencies.jar


BIN
libs/touch-image-view.jar


+ 0 - 3
lint.xml

@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<lint>
-</lint>

+ 2 - 2
oc_jb_workaround/AndroidManifest.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.owncloud.android.workaround.accounts"
-    android:versionCode="0100010"
-    android:versionName="1.0.10" >
+    android:versionCode="0100018"
+    android:versionName="1.0.18" >
 
     <uses-sdk
         android:minSdkVersion="16"

BIN
oc_jb_workaround/res/drawable-xhdpi/main_app_icon.png


BIN
oc_jb_workaround/res/drawable-xhdpi/workaround_app_icon.png


+ 1 - 0
owncloud-android-library

@@ -0,0 +1 @@
+Subproject commit 5bd0d7387712ce3f53869294761ac4d8537841cd

+ 38 - 11
pom.xml

@@ -5,13 +5,17 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.owncloud.android</groupId>
     <artifactId>owncloud</artifactId>
-    <version>1.3.21-SNAPSHOT</version>
+    <version>${owncloud.version}</version>
     <packaging>apk</packaging>
     <name>Owncloud Android</name>
 
     <properties>
+        <owncloud.version>1.5.1-SNAPSHOT</owncloud.version>
         <java-version>1.6</java-version>
-        <google.android-version>4.2.2_r2</google.android-version>
+        <!-- Given by maven-android-sdk-deployer -->
+        <google.android-version>4.4.2_r3</google.android-version>
+        <!-- Usually the latest Android API -->
+        <google.android-api>19</google.android-api>
         <actionbarsherlock-version>4.2.0</actionbarsherlock-version>
     </properties>
 
@@ -22,9 +26,32 @@
         <developerConnection>scm:git:git@github.com:owncloud/android.git</developerConnection>
         <url>https://github.com/owncloud/android</url>
     </scm>
-
+    
     <dependencies>
-
+        <!-- Dirty trick, but it works. TouchImageView library is not available as Maven project. -->
+        <dependency>
+            <groupId>touch-image-view.jar</groupId>
+            <artifactId>touch-image-view.jar</artifactId>
+            <version>1.0</version>
+            <scope>system</scope>
+            <systemPath>${basedir}/libs/touch-image-view.jar</systemPath>
+        </dependency>
+          
+        <!-- This causes a (version?) conflict during packaging since sherlockactionbar also includes compatibility-v4 -->
+        <!--<dependency>
+            <groupId>android.support</groupId>
+            <artifactId>compatibility-v4</artifactId>
+            <version>19.1.0</version>
+        </dependency>-->
+        <!-- Instead we need to include the exact same version -->
+        <dependency>
+            <groupId>android-support-v4.jar</groupId>
+            <artifactId>android-support-v4.jar</artifactId>
+            <version>1.0</version>
+            <scope>system</scope>
+            <systemPath>${basedir}/third_party/android-support-library/android-support-v4.jar</systemPath>
+        </dependency>
+        
         <dependency>
             <groupId>android</groupId>
             <artifactId>android</artifactId>
@@ -46,11 +73,12 @@
             <type>apklib</type>
         </dependency>
 
+        <!-- MUST BE INSTALLED FIRST: cd owncloud-android-library; mvn install -->
         <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-webdav</artifactId>
-            <version>2.5.2</version>
-        </dependency>
+         <groupId>com.owncloud.android</groupId>
+         <artifactId>owncloud-android-library</artifactId>
+         <version>${owncloud.version}</version>
+      </dependency>
 
     </dependencies>
 
@@ -74,12 +102,11 @@
             <plugin>
                 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                 <artifactId>android-maven-plugin</artifactId>
-                <version>3.5.0</version>
+                <version>3.8.0</version>
                 <configuration>
                     <sdk>
-                        <!-- platform or api level (api level 4 = platform 1.6)-->
                         <path>${env.ANDROID_HOME}</path>
-                        <platform>17</platform>
+                        <platform>${google.android-api}</platform>
                     </sdk>
                 </configuration>
                 <extensions>true</extensions>

+ 1 - 0
project.properties

@@ -10,3 +10,4 @@
 # Project target.
 target=android-19
 android.library.reference.1=actionbarsherlock/library
+android.library.reference.2=../android-library/android-library

BIN
res/drawable-hdpi-v11/notification_icon.png


BIN
res/drawable-hdpi-v9/ic_action_create_dir.png


BIN
res/drawable-hdpi-v9/ic_action_settings.png


BIN
res/drawable-hdpi-v9/ic_action_upload.png


BIN
res/drawable-hdpi/copy_link.png


BIN
res/drawable-hdpi/file.png


BIN
res/drawable-hdpi/file_doc.png


BIN
res/drawable-hdpi/file_image.png


BIN
res/drawable-hdpi/file_movie.png


BIN
res/drawable-hdpi/file_pdf.png


BIN
res/drawable-hdpi/file_ppt.png


BIN
res/drawable-hdpi/file_sound.png


BIN
res/drawable-hdpi/file_xls.png


BIN
res/drawable-hdpi/file_zip.png


BIN
res/drawable-hdpi/folder_public.png


BIN
res/drawable-hdpi/ic_action_create_dir.png


BIN
res/drawable-hdpi/ic_action_settings.png


BIN
res/drawable-hdpi/ic_action_upload.png


BIN
res/drawable-hdpi/ic_favorite.png


BIN
res/drawable-hdpi/ic_menu_archive.png


BIN
res/drawable-hdpi/notification_icon.png


BIN
res/drawable-hdpi/shared_with_me.png


BIN
res/drawable-hdpi/shared_with_me_folder.png


BIN
res/drawable-hdpi/sharedlink.png


BIN
res/drawable-hdpi/winter_holidays_icon.png


BIN
res/drawable-ldpi-v9/ic_action_create_dir.png


BIN
res/drawable-ldpi-v9/ic_action_settings.png


BIN
res/drawable-ldpi-v9/ic_action_upload.png


BIN
res/drawable-ldpi/copy_link.png


BIN
res/drawable-ldpi/file.png


BIN
res/drawable-ldpi/file_doc.png


BIN
res/drawable-ldpi/file_image.png


BIN
res/drawable-ldpi/file_movie.png


BIN
res/drawable-ldpi/file_pdf.png


BIN
res/drawable-ldpi/file_ppt.png


BIN
res/drawable-ldpi/file_sound.png


BIN
res/drawable-ldpi/file_xls.png


BIN
res/drawable-ldpi/file_zip.png


BIN
res/drawable-ldpi/ic_action_create_dir.png


BIN
res/drawable-ldpi/ic_action_settings.png


BIN
res/drawable-ldpi/ic_action_upload.png


BIN
res/drawable-ldpi/ic_menu_archive.png


BIN
res/drawable-ldpi/winter_holidays_icon.png


BIN
res/drawable-mdpi-v11/notification_icon.png


BIN
res/drawable-mdpi-v9/ic_action_create_dir.png


BIN
res/drawable-mdpi-v9/ic_action_settings.png


BIN
res/drawable-mdpi-v9/ic_action_upload.png


BIN
res/drawable-mdpi/copy_link.png


BIN
res/drawable-mdpi/file.png


BIN
res/drawable-mdpi/file_doc.png


BIN
res/drawable-mdpi/file_image.png


BIN
res/drawable-mdpi/file_movie.png


BIN
res/drawable-mdpi/file_pdf.png


BIN
res/drawable-mdpi/file_ppt.png


BIN
res/drawable-mdpi/file_sound.png


BIN
res/drawable-mdpi/file_xls.png


BIN
res/drawable-mdpi/file_zip.png


BIN
res/drawable-mdpi/folder_public.png


BIN
res/drawable-mdpi/ic_action_create_dir.png


BIN
res/drawable-mdpi/ic_action_settings.png


BIN
res/drawable-mdpi/ic_action_upload.png


BIN
res/drawable-mdpi/ic_favorite.png


BIN
res/drawable-mdpi/ic_menu_archive.png


BIN
res/drawable-mdpi/notification_icon.png


BIN
res/drawable-mdpi/shared_with_me.png


BIN
res/drawable-mdpi/shared_with_me_folder.png


BIN
res/drawable-mdpi/sharedlink.png


BIN
res/drawable-mdpi/winter_holidays_icon.png


BIN
res/drawable-xhdpi-v11/notification_icon.png


BIN
res/drawable-xhdpi/copy_link.png


BIN
res/drawable-xhdpi/ic_favorite.png


BIN
res/drawable-xhdpi/icon.png


BIN
res/drawable-xhdpi/notification_icon.png


BIN
res/drawable-xhdpi/shared_with_me.png


BIN
res/drawable-xhdpi/sharedlink.png


BIN
res/drawable/downloading_file_indicator.png


BIN
res/drawable/ic_favorite.png


BIN
res/drawable/local_file_indicator.png


BIN
res/drawable/uploading_file_indicator.png


+ 31 - 25
res/layout-land/account_setup.xml

@@ -27,7 +27,7 @@
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_above="@id/buttonOK"
+        android:layout_above="@+id/bottom_block"
         android:layout_alignParentTop="true"
         android:orientation="horizontal" >
         
@@ -67,7 +67,7 @@
 				    android:text="@string/auth_check_server"
 				    android:visibility="gone" />
 				<TextView
-				    android:id="@+id/auth_message"
+				    android:id="@+id/instructions_message"
 				    android:layout_width="wrap_content"
 				    android:layout_height="wrap_content"
 				    android:layout_gravity="fill_horizontal"
@@ -186,27 +186,33 @@
 						           
 	</LinearLayout>
        
-	<Button
-	    android:id="@id/buttonOK"
-	    android:layout_width="match_parent"
-	    android:layout_height="wrap_content"
-	    android:layout_above="@+id/welcome_link"
-	    android:layout_centerHorizontal="true"
-	    android:enabled="false"
-	    android:onClick="onOkClick"
-	    android:text="@string/setup_btn_connect" />
-
-	<Button
-	    android:id="@id/welcome_link"
-	    android:layout_width="wrap_content"
-	    android:layout_height="wrap_content"
-	    android:layout_alignParentBottom="true"
-	    android:layout_centerHorizontal="true"
-	    android:background="@android:color/transparent"
-	    android:onClick="onRegisterClick"
-	    android:paddingBottom="5dp"
-	    android:paddingTop="5dp"
-	    android:text="@string/auth_register"
-	    android:textColor="#0000FF"/>
-	
+    <LinearLayout
+        android:id="@id/bottom_block"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+		android:layout_alignParentBottom="true"
+        android:orientation="vertical" >
+        
+		<Button
+		    android:id="@+id/buttonOK"
+		    android:layout_width="match_parent"
+		    android:layout_height="wrap_content"
+		    android:layout_gravity="center_horizontal"
+		    android:enabled="false"
+		    android:onClick="onOkClick"
+		    android:text="@string/setup_btn_connect" />
+		
+		<Button
+		    android:id="@+id/welcome_link"
+		    android:layout_width="wrap_content"
+		    android:layout_height="wrap_content"
+		    android:layout_gravity="center_horizontal"
+		    android:background="@android:color/transparent"
+		    android:onClick="onRegisterClick"
+		    android:paddingBottom="5dp"
+		    android:paddingTop="5dp"
+		    android:text="@string/auth_register"
+		    android:textColor="#0000FF"/>
+	</LinearLayout>
+		
 </RelativeLayout>

+ 59 - 0
res/layout-v11/activity_row.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ownCloud Android client application
+
+  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,
+  as published by the Free Software Foundation.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<LinearLayout 	xmlns:android="http://schemas.android.com/apk/res/android"
+    			android:id="@+id/list_item"
+				android:layout_width="match_parent"
+				android:layout_height="48dp"
+				android:paddingStart="16dip"
+				android:paddingEnd="16dip"
+				android:paddingRight="16dip"
+				android:paddingLeft="16dip"
+				android:minWidth="196dip"
+				android:background="?android:attr/activatedBackgroundIndicator"
+    			android:orientation="vertical" >
+
+	<LinearLayout
+		android:layout_width="wrap_content"
+		android:layout_height="match_parent"
+		android:duplicateParentState="true" >
+
+		<ImageView
+			android:id="@+id/icon"
+			android:layout_width="40dip"
+			android:layout_height="40dip"
+			android:layout_gravity="center_vertical"
+			android:layout_marginEnd="8dip"
+			android:layout_marginRight="8dip"
+			android:duplicateParentState="true" />
+
+        <TextView
+            android:id="@+id/title"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center_vertical"
+            android:textAppearance="?android:attr/textAppearanceLargePopupMenu"
+            android:duplicateParentState="true"
+            android:singleLine="true"
+            android:ellipsize="marquee"
+            android:fadingEdge="horizontal" />
+
+    </LinearLayout>
+
+</LinearLayout>

+ 69 - 0
res/layout-v11/notification_with_progress_bar.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+    ownCloud Android client application
+    Copyright (C) 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,
+    as published by the Free Software Foundation.
+  
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    >
+    <ImageView android:id="@+id/icon"
+        android:layout_width="@android:dimen/notification_large_icon_width"
+        android:layout_height="@android:dimen/notification_large_icon_height"
+        android:scaleType="center"
+        />
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:minHeight="64dp"
+        android:orientation="vertical"
+        android:paddingRight="12dp"
+        android:paddingLeft="12dp"
+        >
+		<TextView android:id="@+id/title"
+			android:layout_width="match_parent"
+			android:layout_height="wrap_content"
+			android:singleLine="true"
+			android:ellipsize="marquee"
+            android:fadingEdge="horizontal"
+            style="@style/Theme.ownCloud.NotificationText.Title"
+        	/>
+        <TextView android:id="@+id/text"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="-2dp"
+            android:layout_marginBottom="-2dp"
+            android:singleLine="true"
+            android:fadingEdge="horizontal"
+            android:ellipsize="marquee"
+            style="@style/Theme.ownCloud.NotificationText.Content"
+            />
+        <FrameLayout android:id="@+id/progressHolder"
+            android:layout_width="match_parent"
+            android:layout_height="12dp"
+            >
+            <!--  the FrameLayout is needed to change visibility of the
+            	progress bar in Android 2.2, even though 
+            	https://code.google.com/p/android/issues/detail?id=11040 -->
+	        <ProgressBar
+	            android:id="@+id/progress"
+	            android:layout_width="match_parent"
+	            android:layout_height="match_parent"
+	            style="?android:attr/progressBarStyleHorizontal"
+	            />
+        </FrameLayout>
+    </LinearLayout>
+</LinearLayout>

+ 1 - 1
res/layout/account_setup.xml

@@ -54,7 +54,7 @@
             android:visibility="gone" />
         
         <TextView
-            android:id="@+id/auth_message"
+            android:id="@+id/instructions_message"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="fill_horizontal"

Some files were not shown because too many files changed in this diff