commit 1f3123b1b77d9b28637b897e6b687dff0881f4d4 Author: David A. Velasco Date: Mon Jan 20 13:51:09 2014 +0100 Initial commit of ownCloud Android library diff --git a/.classpath b/.classpath new file mode 100644 index 00000000..51769745 --- /dev/null +++ b/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..b25559d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# built application files +*.apk +*.ap_ + +# files for the dex VM +*.dex + +# Java class files +*.class + +# generated files +bin/ +gen/ +target/ + +# Local configuration files (sdk path, etc) +local.properties +sample_client/local.properties +tests/local.properties +tests/test_cases/local.properties + +# Mac .DS_Store files +.DS_Store + +# Proguard README +proguard-project.txt +sample_client/proguard-project.txt +tests/proguard-project.txt +tests/test_cases/proguard-project.txt diff --git a/.project b/.project new file mode 100644 index 00000000..4b5c2951 --- /dev/null +++ b/.project @@ -0,0 +1,33 @@ + + + ownCloud Android Library + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 00000000..30dda12f --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + diff --git a/build.xml b/build.xml new file mode 100644 index 00000000..6b112f43 --- /dev/null +++ b/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/commons-httpclient-3.1.jar b/libs/commons-httpclient-3.1.jar new file mode 100644 index 00000000..7c59774a Binary files /dev/null and b/libs/commons-httpclient-3.1.jar differ diff --git a/libs/jackrabbit-webdav-2.7.2.jar b/libs/jackrabbit-webdav-2.7.2.jar new file mode 100644 index 00000000..6ebfbf70 Binary files /dev/null and b/libs/jackrabbit-webdav-2.7.2.jar differ diff --git a/libs/slf4j-api-1.7.5.jar b/libs/slf4j-api-1.7.5.jar new file mode 100644 index 00000000..8f004d39 Binary files /dev/null and b/libs/slf4j-api-1.7.5.jar differ diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..e811ffda --- /dev/null +++ b/pom.xml @@ -0,0 +1,75 @@ + + + + 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 + + + + org.apache.jackrabbit + jackrabbit-webdav + 2.7.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/project.properties b/project.properties new file mode 100644 index 00000000..91d2b024 --- /dev/null +++ b/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-19 +android.library=true diff --git a/res/values/empty.xml b/res/values/empty.xml new file mode 100644 index 00000000..bddce4c9 --- /dev/null +++ b/res/values/empty.xml @@ -0,0 +1,26 @@ + + + + diff --git a/sample_client/.classpath b/sample_client/.classpath new file mode 100644 index 00000000..51769745 --- /dev/null +++ b/sample_client/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sample_client/.project b/sample_client/.project new file mode 100644 index 00000000..d1b87431 --- /dev/null +++ b/sample_client/.project @@ -0,0 +1,33 @@ + + + ownCloud Sample Client + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/sample_client/AndroidManifest.xml b/sample_client/AndroidManifest.xml new file mode 100644 index 00000000..6b406176 --- /dev/null +++ b/sample_client/AndroidManifest.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + diff --git a/sample_client/ant.properties b/sample_client/ant.properties new file mode 100644 index 00000000..b0971e89 --- /dev/null +++ b/sample_client/ant.properties @@ -0,0 +1,17 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked into Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source.dir' for the location of your java source folder and +# 'out.dir' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + diff --git a/sample_client/assets/oc_sample.png b/sample_client/assets/oc_sample.png new file mode 100644 index 00000000..31a346cf Binary files /dev/null and b/sample_client/assets/oc_sample.png differ diff --git a/sample_client/build.xml b/sample_client/build.xml new file mode 100644 index 00000000..a10a9149 --- /dev/null +++ b/sample_client/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample_client/project.properties b/sample_client/project.properties new file mode 100644 index 00000000..f3419563 --- /dev/null +++ b/sample_client/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-19 +android.library.reference.1=.. diff --git a/sample_client/res/drawable-hdpi/ic_launcher.png b/sample_client/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 00000000..6fe153bb Binary files /dev/null and b/sample_client/res/drawable-hdpi/ic_launcher.png differ diff --git a/sample_client/res/drawable-ldpi/ic_launcher.png b/sample_client/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 00000000..1bc470be Binary files /dev/null and b/sample_client/res/drawable-ldpi/ic_launcher.png differ diff --git a/sample_client/res/drawable-mdpi/ic_launcher.png b/sample_client/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 00000000..9008b9d3 Binary files /dev/null and b/sample_client/res/drawable-mdpi/ic_launcher.png differ diff --git a/sample_client/res/layout/file_in_list.xml b/sample_client/res/layout/file_in_list.xml new file mode 100644 index 00000000..a3552483 --- /dev/null +++ b/sample_client/res/layout/file_in_list.xml @@ -0,0 +1,29 @@ + + + + diff --git a/sample_client/res/layout/main.xml b/sample_client/res/layout/main.xml new file mode 100644 index 00000000..816c465f --- /dev/null +++ b/sample_client/res/layout/main.xml @@ -0,0 +1,122 @@ + + + + + +