You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andy Scherzinger 7e76347805
Merge pull request #309 from nextcloud/renameRemote
3 days ago
gradle/wrapper Bump gradle from 3.3.2 to 3.4.0 1 month ago
sample_client move tests from test_client to library 4 months ago
scripts Drone: update FindBugs results to reflect reduced error/warning count [skip ci] 1 week ago
src rename to convention "xyRemoteOperation" 3 days ago
test_client move tests from test_client to library 4 months ago
.codecov.yml add new line 9 months ago
.drone.yml make notify via email on error work again 1 month ago
.gitignore Restore .gitignore, remove files that were added 4 years ago
.pullapprove.yml pullApprove: require single code review/approval 4 months ago
LICENSE.md renamed to Nextcloud 3 years ago
README.md Update README.md 5 months ago
THIRD_PARTY.txt update third party lib info 1 year ago
build.gradle findbugs -> spotbugs 1 week ago
gradle.properties move tests from test_client to library 4 months ago
gradlew Added gradle support to the owncloud-android-library 4 years ago
gradlew.bat Added gradle support to the owncloud-android-library 4 years ago
lint.xml fixed lint warnings / errors 7 months ago
settings.gradle move tests from test_client to library 4 months ago
wait_for_emulator.sh fixing execution permission 2 years ago

README.md

Nextcloud Android Library Build Status Codacy Badge

Introduction

Using Nextcloud Android library it will be the easiest way to communicate with Nextcloud servers. Add this library in your project and integrate your application with Nextcloud seamlessly.

Use Library

In the repository it is not only the library project but also the example project “sample_client”; thanks to it you will learn how to use the library.

There are different ways of adding this library to your code

Gradle / Maven dependency

At the moment we do not have a publishing mechanism to a maven repository so the easiest way to add the library to your app is via a JitPack Dependency

repositories {
    ...
    maven { url "https://jitpack.io" }
}
dependencies {
    ...
    compile 'com.github.nextcloud:android-library:-SNAPSHOT'

As a git submodule

Basically get this code and compile it having it integrated via a git submodule:

  1. go into your own apps directory on the command line and add this lib as a submodule: git submodule add https://github.com/nextcloud/android-library nextcloud-android-library
  2. Import/Open your app in Android Studio

Branching strategy

The repository holds one main branch with an infinite lifetime:

  • master

Branch origin/master is considered the main branch where the source code of HEAD always reflects a state with the latest delivered development changes for the next release.

Other branches, some supporting branches are used to aid parallel development between team members, ease tracking of features and to assist in quickly fixing live production problems. Unlike the main branch, these branches always have a limited life time, since they will be removed eventually (feature branching).

Development process

We are all about quality while not sacrificing speed so we use a very pragmatic workflow.

  • create an issue with feature request
    • discuss it with other developers
    • create mockup if necessary
    • must be approved --> label approved
    • after that no conceptual changes!
  • develop code
  • create pull request
  • to assure the quality of the app, any PR gets reviewed, approved and tested by two developers before it will be merged to master

License

Nextcloud Android Library is available under MIT license. See LICENSE.md with the full license text.

Third party libraries

Nextcloud Android Library uses Apache JackRabbit, version 2.12.4. 
Copyright (C) 2004-2010 The Apache Software Foundation. 
Licensed under Apache License, Version 2.0.
Apache JackRabbit depends on Commons HTTPClient version 3.1 and SLF4j version 1.7.5; both included also. 
Copyright (C) 2004-2010 The Apache Software Foundation. 
Licensed under Apache License, Version 2.0.

Compatibility

Nextcloud Android library is valid for Android version 3.0 and up (with android:minSdkVersion="11" and android:targetSdkVersion="24").

Nextcloud Android library supports Nextcloud server from version 9+.

When using newer libraries in your application that integrates with the Nextcloud Android library you could hit a conflict issue with the logging libraries used by our (outdated) HTTPClient. In order to mitigate the issues, please add the following in your build.gradle for the time being:

configurations.all {
    exclude group: "org.slf4j", module: "slf4j-log4j12"
    exclude group: "log4j", module: "log4j"
}