Skip to content

Commit f0bbb4b

Browse files
authored
Merge pull request #615 from nextcloud/rewrite-auto-upload
Rewrite auto upload
2 parents 530177f + c5f748d commit f0bbb4b

30 files changed

+1327
-490
lines changed

Diff for: .drone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pipeline:
22
test:
3-
image: nextcloudci/android:android-7
3+
image: nextcloudci/android:android-14
44
commands:
55
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
66
- emulator -avd test -no-window &

Diff for: AndroidManifest.xml

+9-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<uses-sdk
2727
android:minSdkVersion="14"
28-
android:targetSdkVersion="24" />
28+
android:targetSdkVersion="25" />
2929

3030
<!-- GET_ACCOUNTS is needed for API < 23.
3131
For API >= 23 results in the addition of CONTACTS group to the list of permissions that may be
@@ -61,6 +61,7 @@
6161
android:name=".MainApp"
6262
android:icon="@mipmap/ic_launcher"
6363
android:label="@string/app_name"
64+
android:fullBackupContent="@xml/backup_config"
6465
android:theme="@style/Theme.ownCloud.Toolbar"
6566
android:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity">
6667
<activity
@@ -128,10 +129,6 @@
128129
android:name="android.content.SyncAdapter"
129130
android:resource="@xml/syncadapter_files" />
130131
</service>
131-
<service
132-
android:name=".services.SyncedFolderJobService"
133-
android:permission="android.permission.BIND_JOB_SERVICE"
134-
android:exported="true"/>
135132

136133
<provider
137134
android:name=".providers.FileContentProvider"
@@ -244,6 +241,13 @@
244241
<action android:name="android.intent.action.BOOT_COMPLETED" />
245242
</intent-filter>
246243
</receiver>
244+
<receiver android:name=".services.ShutdownReceiver">
245+
<intent-filter>
246+
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
247+
<action android:name="android.intent.action.QUICKBOOT_POWEROFF" />
248+
</intent-filter>
249+
</receiver>
250+
247251

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

Diff for: CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.4.2 (March , 2017)
2+
- Auto Upload (Android 6+)
3+
- Auto Upload improvements and fixes
4+
- Filtering improvements
5+
- Fix for Android permissions (removed read phone state permission)
6+
- Fix re-upload of files
7+
- Avoid toggling favourite for all selected files
8+
- Link to providers list in the setup screen
9+
- further bugfixes and improvements
10+
111
## 1.4.1 (January 27, 2017)
212
- Share URLs to Nextcloud
313
- Improve performance of Auto Upload view

Diff for: build.gradle

+15-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
buildscript {
99
repositories {
1010
jcenter()
11+
maven {
12+
url 'https://oss.sonatype.org/content/repositories/snapshots/'
13+
}
1114
}
1215
dependencies {
1316
classpath 'com.android.tools.build:gradle:2.2.3'
@@ -20,7 +23,7 @@ apply plugin: 'pmd'
2023
apply plugin: 'findbugs'
2124

2225
ext {
23-
supportLibraryVersion = '24.2.1'
26+
supportLibraryVersion = '25.0.0'
2427

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

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

44-
compile 'com.github.nextcloud:android-library:1.0.11'
48+
compile 'com.github.nextcloud:android-library:1.0.12'
4549
compile "com.android.support:support-v4:${supportLibraryVersion}"
4650
compile "com.android.support:design:${supportLibraryVersion}"
4751
compile 'com.jakewharton:disklrucache:2.0.2'
4852
compile "com.android.support:appcompat-v7:${supportLibraryVersion}"
4953
compile 'com.getbase:floatingactionbutton:1.10.1'
5054
compile 'com.google.code.findbugs:annotations:2.0.1'
51-
55+
compile group: 'commons-io', name: 'commons-io', version: '2.4'
56+
compile 'com.google.android.gms:play-services:10.2.0'
57+
compile 'com.github.evernote:android-job:v1.1.7'
5258

5359
/// dependencies for local unit tests
5460
testCompile 'junit:junit:4.12'
@@ -89,6 +95,11 @@ android {
8995
htmlReport true
9096
htmlOutput file("$project.buildDir/reports/lint/lint.html")
9197
}
98+
99+
dexOptions {
100+
javaMaxHeapSize "4g"
101+
}
102+
92103
compileSdkVersion 24
93104
buildToolsVersion "24.0.2"
94105

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

114+
multiDexEnabled true
103115
applicationId "com.nextcloud.client"
104116
}
105117

Diff for: res/xml/backup_config.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<full-backup-content>
3+
<exclude domain="sharedpref" path="evernote_jobs.xml" />
4+
<exclude domain="database" path="evernote_jobs.db" />
5+
</full-backup-content>

0 commit comments

Comments
 (0)