Skip to content

Commit

Permalink
Merge pull request #615 from nextcloud/rewrite-auto-upload
Browse files Browse the repository at this point in the history
Rewrite auto upload
  • Loading branch information
mario authored Mar 3, 2017
2 parents 530177f + c5f748d commit f0bbb4b
Show file tree
Hide file tree
Showing 30 changed files with 1,327 additions and 490 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pipeline:
test:
image: nextcloudci/android:android-7
image: nextcloudci/android:android-14
commands:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
- emulator -avd test -no-window &
Expand Down
14 changes: 9 additions & 5 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="24" />
android:targetSdkVersion="25" />

<!-- GET_ACCOUNTS is needed for API < 23.
For API >= 23 results in the addition of CONTACTS group to the list of permissions that may be
Expand Down Expand Up @@ -61,6 +61,7 @@
android:name=".MainApp"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:fullBackupContent="@xml/backup_config"
android:theme="@style/Theme.ownCloud.Toolbar"
android:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity">
<activity
Expand Down Expand Up @@ -128,10 +129,6 @@
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter_files" />
</service>
<service
android:name=".services.SyncedFolderJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="true"/>

<provider
android:name=".providers.FileContentProvider"
Expand Down Expand Up @@ -244,6 +241,13 @@
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name=".services.ShutdownReceiver">
<intent-filter>
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
<action android:name="android.intent.action.QUICKBOOT_POWEROFF" />
</intent-filter>
</receiver>


<service android:name=".services.observer.FileObserverService" />

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 1.4.2 (March , 2017)
- Auto Upload (Android 6+)
- Auto Upload improvements and fixes
- Filtering improvements
- Fix for Android permissions (removed read phone state permission)
- Fix re-upload of files
- Avoid toggling favourite for all selected files
- Link to providers list in the setup screen
- further bugfixes and improvements

## 1.4.1 (January 27, 2017)
- Share URLs to Nextcloud
- Improve performance of Auto Upload view
Expand Down
18 changes: 15 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
buildscript {
repositories {
jcenter()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
Expand All @@ -20,7 +23,7 @@ apply plugin: 'pmd'
apply plugin: 'findbugs'

ext {
supportLibraryVersion = '24.2.1'
supportLibraryVersion = '25.0.0'

travisBuild = System.getenv("TRAVIS") == "true"

Expand All @@ -40,15 +43,18 @@ repositories {
dependencies {
/// dependencies for app building
compile name: 'touch-image-view'
compile 'com.android.support:multidex:1.0.1'

compile 'com.github.nextcloud:android-library:1.0.11'
compile 'com.github.nextcloud:android-library:1.0.12'
compile "com.android.support:support-v4:${supportLibraryVersion}"
compile "com.android.support:design:${supportLibraryVersion}"
compile 'com.jakewharton:disklrucache:2.0.2'
compile "com.android.support:appcompat-v7:${supportLibraryVersion}"
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.google.code.findbugs:annotations:2.0.1'

compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'com.github.evernote:android-job:v1.1.7'

/// dependencies for local unit tests
testCompile 'junit:junit:4.12'
Expand Down Expand Up @@ -89,6 +95,11 @@ android {
htmlReport true
htmlOutput file("$project.buildDir/reports/lint/lint.html")
}

dexOptions {
javaMaxHeapSize "4g"
}

compileSdkVersion 24
buildToolsVersion "24.0.2"

Expand All @@ -100,6 +111,7 @@ android {
testInstrumentationRunnerArgument "TEST_PASSWORD", "\"$System.env.OCTEST_APP_PASSWORD\""
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"$System.env.OCTEST_SERVER_BASE_URL\""

multiDexEnabled true
applicationId "com.nextcloud.client"
}

Expand Down
5 changes: 5 additions & 0 deletions res/xml/backup_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<exclude domain="sharedpref" path="evernote_jobs.xml" />
<exclude domain="database" path="evernote_jobs.db" />
</full-backup-content>
Loading

0 comments on commit f0bbb4b

Please sign in to comment.