Tom Hacohen
dd6ce617cc
Remove the redundant collection getAll() function.
...
We aren't using it, and shouldn't be using it. It's very inefficient,
and doesn't help what we want to do.
2017-02-22 14:06:25 +00:00
Tom Hacohen
6ea0b47d79
Implement applyLocalEntries and create the local entries after fetching.
...
Since we now use a cached version of the localDeleted/Dirty, we can create the entries
after we fetch. We also use the entries to override whatever changes came from the
server because we assume (for now) our copy is the correct one.
2017-02-22 14:06:25 +00:00
Tom Hacohen
2bbddd26cd
Fetch local deleted and dirty at the beginning of sync to avoid inconsistency
...
Without this, those values could change in the middle of the sync
and make us work on different lists at different parts of the
sync code.
2017-02-22 14:06:25 +00:00
Tom Hacohen
d6864f5062
Don't load all resources when syncing, only as needed.
2017-02-22 14:06:25 +00:00
Tom Hacohen
8040ee7d9f
Push entries in chunks instead of all at once.
2017-02-22 14:06:25 +00:00
Tom Hacohen
74b0956f3b
Improve error messages in journal server interactions.
2017-02-22 14:06:25 +00:00
Tom Hacohen
8cfe58a7d1
Add a way to sign releases.
2017-02-22 14:06:25 +00:00
Tom Hacohen
a50eb87162
Fix newly created Calendars to actually work.
2017-02-22 14:06:25 +00:00
Tom Hacohen
c33bc0ee19
Handle failing to connect to server during login.
2017-02-22 14:06:25 +00:00
Tom Hacohen
eb9c3aa907
Fix timezone picker.
2017-02-22 14:06:25 +00:00
Tom Hacohen
5dbea8579e
Redesign calendar look in account page.
2017-02-22 14:06:25 +00:00
Tom Hacohen
7c4e6a11e1
Disallow deleting the last collection.
2017-02-22 14:06:25 +00:00
Tom Hacohen
a10015ee1a
Deletion from server is already handled.
2017-02-22 14:06:25 +00:00
Tom Hacohen
36cefee30a
Make new calendars selected by default.
2017-02-22 14:06:25 +00:00
Tom Hacohen
119ae5b9fe
Fix collection creation.
2017-02-22 14:06:25 +00:00
Tom Hacohen
c5a17291e5
Put a notice to double-check the encryption password.
2017-02-22 14:06:25 +00:00
Tom Hacohen
5dbe217de8
Fix launching of activities following appid rename
2017-02-22 14:06:25 +00:00
Tom Hacohen
c7d817dfe2
Handle invalid account exception in the sync adapter service.
2017-02-22 14:06:25 +00:00
Tom Hacohen
81b927e7fb
Encryption helpers: deal with FIXMEs.
2017-02-22 14:06:25 +00:00
Tom Hacohen
88322f341a
Handle impossible issue in hmac calculation.
2017-02-22 14:06:25 +00:00
Tom Hacohen
833c8c0847
Only add authentication if connecting to the service's hostname.
2017-02-22 14:06:25 +00:00
Tom Hacohen
4008776812
Sync manager: deal with FIXMEs.
2017-02-22 14:06:25 +00:00
Tom Hacohen
c58ae8fb1c
Add contact resource downloader.
2017-02-22 14:06:25 +00:00
Tom Hacohen
44be896df7
Cleanup and improve HttpExceptions.
2017-02-22 14:06:25 +00:00
Tom Hacohen
ff5c5b5230
Remove unused setting to get caldav past days.
2017-02-22 14:06:25 +00:00
Tom Hacohen
69864ac781
Fix user agent and external logging file name.
2017-02-22 14:06:25 +00:00
Tom Hacohen
bfaffc1f38
Change account type.
2017-02-22 14:06:25 +00:00
Tom Hacohen
85baabaf09
Remove translation strings not in original file.
2017-02-22 14:06:25 +00:00
Tom Hacohen
2583f75d41
Rename DavService service.
2017-02-22 14:06:24 +00:00
Tom Hacohen
1b3cd631bc
Update application id.
2017-02-22 14:06:24 +00:00
Tom Hacohen
09719f87a2
Optimise imports.
2017-02-22 14:06:24 +00:00
Tom Hacohen
9bd901e368
Turn startup popups back on.
2017-02-22 14:06:24 +00:00
Tom Hacohen
fcc365a89e
Remove opentasks and donate from startup dialog.
2017-02-22 14:06:24 +00:00
Tom Hacohen
47ca55f03f
Remove reference to opentasks from the UI.
2017-02-22 14:06:24 +00:00
Ricki Hirner
bc7cd65048
Android 7 workaround bugfix
...
* use local version of contact before calculating hash code
* don't stop upload sync if there are deleted contacts
2017-02-22 14:06:24 +00:00
Ricki Hirner
59f8305ba5
Use contact hash codes only on Android 7+ (workaround)
...
vcard4android: don't hash CATEGORIES, more verbose logging
2017-02-22 14:06:24 +00:00
Ricki Hirner
d707a1e643
Implement checksum to check whether DIRTY contacts have "really" changed
...
* contact data hash code = hash code of data fields and group memberships
* Before every contact sync, all dirty contacts are checked whether they're
"really dirty" (= data hash code has changed). If they're not, the DIRTY
flag is reset. Works around Android 7 behavior of setting contacts to DIRTY
even if onky meta data has been updated (for instance, lastContacted after
a call or SMS),
* When an "upload" sync is initiated by notifyChange and there are no
"really dirty" contacts, the sync is ignored.
* contact upload: clearDirty() saves hash code, too
* contact download: create()/update() saves hash code, too
* debugging: sync flags (extras) are now logged
2017-02-22 14:06:24 +00:00
Ricki Hirner
774a19ae83
AccountSettingsActivity: use loader
...
* use Loader for AccountSettingsActivity sync intervals (fixes Android 7 display "issues")
* SyncManager: allow prepare() to skip synchronization
2017-02-22 14:06:24 +00:00
Ricki Hirner
cfb7d6b787
Use isAlwaysSyncable for contacts/calendars again because of buggy Android firmwares
2017-02-22 14:06:24 +00:00
Tom Hacohen
098496a4dc
Bump okhttp version.
2017-02-22 14:06:24 +00:00
Tom Hacohen
7feddf3ff7
Change version identifier.
2017-02-22 14:06:24 +00:00
Tom Hacohen
e07c992701
Improve some strings.
2017-02-22 14:06:24 +00:00
Tom Hacohen
2011d8d121
Update about page.
2017-02-22 14:06:24 +00:00
Tom Hacohen
c0d0621887
Improve auth error error message.
2017-02-22 14:06:24 +00:00
Tom Hacohen
c169fb4afb
Make login password changing work (albeit ugly).
2017-02-22 14:06:24 +00:00
Tom Hacohen
1363865660
Don't require URI in login credentials constructor.
2017-02-22 14:06:24 +00:00
Tom Hacohen
d62d7049f2
Rename DavResourceFinder.
2017-02-22 14:06:24 +00:00
Tom Hacohen
dcb3429884
Enforce all hmac/mac to always be lower case.
2017-02-22 14:06:24 +00:00
Tom Hacohen
80bb0d6a70
Handle errors when syncing journals, not just entries.
...
Also create a helper notification manager that encapsulates all of the
notification creation logic (from throwable).
2017-02-22 14:06:24 +00:00
Tom Hacohen
f2febfeb8c
Improve integrity error, error message.
2017-02-22 14:06:24 +00:00
Tom Hacohen
1730241e5d
Fix login finish button to say 'finish'
2017-02-22 14:06:24 +00:00
Tom Hacohen
44a240fd75
Sync journals when syncing everything else.
2017-02-22 14:06:24 +00:00
Tom Hacohen
0b67be2e89
Remove db reference to homesets.
2017-02-22 14:06:24 +00:00
Tom Hacohen
7e912fecec
Remove menu option to refresh calendars.
2017-02-22 14:06:24 +00:00
Tom Hacohen
30631a0b89
Change DAVdroid to EteSync.
2017-02-22 14:06:24 +00:00
Tom Hacohen
695e87ebff
Update icon.
2017-02-22 14:06:24 +00:00
Tom Hacohen
8b5f87c2d4
Adjust DAVdroid to use the EteSync protocol (mostly working)
...
This commit includes the major changes between DAVdroid and EteSync. It
adjusts the app to use the EteSync protocol and server. It includes some
ugliness still, and it's a squash of many ugly snapshot commits while
hacking on the initial DAVdroid code.
History should be "clean" from this point onwards.
2017-02-21 17:26:19 +00:00
Ricki Hirner
232eaa1d6d
Version bump to 1.3.6
2017-01-01 12:43:47 +01:00
Ricki Hirner
d40af10b1f
Fetch translations from Transifex
2017-01-01 12:26:02 +01:00
Ricki Hirner
364d79535a
Update to ez-vcard 0.10.1
...
* fix REV and PREF problems
2017-01-01 01:13:03 +01:00
Ricki Hirner
d30077657c
Fix permissions notification
...
* ical4android: remove ORGANIZER from all VEVENT components if there are not attendees
2016-12-31 14:16:18 +01:00
Ricki Hirner
4b8c44fe5b
AccountSettings version 5: enable/disable OpenTasks by availability (Android 7.1.1 fix)
...
* better handling of setIsSyncable
2016-12-30 14:29:56 +01:00
Ricki Hirner
88b5a26c3b
Don't show warning on AccountSettings version updates
2016-12-30 14:28:28 +01:00
Ricki Hirner
d5807e44af
Update to SDK level 25
2016-12-30 02:58:54 +01:00
Ricki Hirner
c8ddec9651
Change handling of tasks sync when OpenTasks is not installed
...
* AccountDetailsFragment: at account creation, enable task sync only when OpenTasks is installed
* PackageChangedReceiver: when packages are (un)installed, check for OpenTasks availability and (de)activate task sync for all accounts accordingly
* LocalTaskList: don't cache OpenTasks availability
* sync_*.xml: don't activate sync by default
2016-12-28 22:23:13 +01:00
Ricki Hirner
0a70d91883
Fetch translations from Transifex
2016-12-23 15:54:20 +01:00
Ricki Hirner
7a4fc19814
Version bump to 1.3.5
2016-12-23 15:51:56 +01:00
Ricki Hirner
ef92753ac6
Address book selection changed: update URL as soon as possible
2016-12-19 18:58:35 +01:00
Ricki Hirner
ca38cbe935
Update okhttp to 3.5.0
2016-12-02 15:01:52 +01:00
Ricki Hirner
29068389c7
Log group assignments more verbosely
2016-11-25 21:40:40 +01:00
Ricki Hirner
d2df3c9027
Rename account: don't crash when content providers are not accessible
2016-11-17 19:59:23 +01:00
Ricki Hirner
d34efb103d
Version bump to 1.3.4.1
2016-11-14 18:48:26 +01:00
Ricki Hirner
2fd0ac2dd0
Fetch translations from Transifex
2016-11-14 18:41:48 +01:00
Ricki Hirner
4f796669f6
Avoid some crashes
...
* check whether ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATION can be resolved before launching it
* cert4android: don't crash when service can't be bound
2016-11-14 18:39:25 +01:00
Ricki Hirner
fb7f974987
Allow renaming of accounts
...
* allow renaming of accounts
* always open AccountActivity, even if there are no services (so that users can delete the account from within DAVdroid)
2016-11-14 01:14:46 +01:00
Ricki Hirner
900f1fd857
Fetch translations from Transifex
2016-11-13 20:34:11 +01:00
Ricki Hirner
e0a5748da3
Update build tools to 25.0.0, fix WiFiManager leak
2016-11-13 20:22:10 +01:00
Ricki Hirner
fa17659ce8
Fetch translations from Transifex
2016-11-04 12:02:08 +01:00
Ricki Hirner
8d4eeb763b
Version bump to 1.3.4
...
* library updates
2016-11-04 12:01:24 +01:00
Ricki Hirner
3c1e9302df
Add app-wide HTTP proxy setting
2016-10-30 22:21:54 +01:00
Ricki Hirner
f2d5fe32c5
Debug info: send inline on Android <4.1 and when creating an attachment doesn't work
2016-10-22 02:05:58 +02:00
Ricki Hirner
08639b2e89
Version bump to 1.3.3.1
2016-10-21 19:52:55 +02:00
Ricki Hirner
5b50aa024e
Fetch translations from Transifex
2016-10-21 19:50:09 +02:00
Ricki Hirner
d8fb9c8373
Library updates
...
* dav4android: disable compression for GET requests because it may change the ETag
* better logging for ical4j messages
* tests
2016-10-21 11:08:50 +02:00
Ricki Hirner
b3dda2c112
ProGuard update; signing config
2016-10-18 12:36:41 +02:00
Ricki Hirner
ae8bf4d49e
Use string resource for logging file provider authority; vcard4android update
2016-10-17 23:57:53 +02:00
Ricki Hirner
8e5ca5a72d
Share debug info: always use attachment
...
* share debug info: always use attachment (before: send inline if it was small enough)
* use FileProvider for debug info attachment (for Android 7 compatibility)
* dav4android, ical4android fixes
2016-10-17 17:47:27 +02:00
Ricki Hirner
2e78e1e746
Add useless ProGuard rule
2016-10-15 16:51:35 +02:00
Ricki Hirner
fb4321f35f
Fetch translations from Transifex
2016-10-14 21:19:39 +02:00
Ricki Hirner
7d7e2584ed
Version bump to 1.3.3
2016-10-14 21:00:29 +02:00
Ricki Hirner
118d873cdf
ical4android: ignore invalid DUE < DTSTART for tasks
2016-10-12 17:03:46 +02:00
Ricki Hirner
e7e30e9f2f
Remove VCard RFC6868 setting (always enabled now; setting not needed for Posteo compatibility anymore)
2016-10-12 16:45:26 +02:00
Ricki Hirner
bd8470e7eb
Switch to JUnit4
2016-10-10 21:03:18 +02:00
Ricki Hirner
ec0e792f12
Add Gitlab CI
2016-10-10 20:18:37 +02:00
Ricki Hirner
593d907e3a
Improve tests
2016-10-07 14:39:21 +02:00
Ricki Hirner
2c5b93ce43
Fix NPE in "is refreshing progress bar"
2016-10-07 14:39:18 +02:00
Ricki Hirner
68d48bb0f2
Version bump to 1.3.2.2
2016-10-05 11:14:41 +02:00
Ricki Hirner
3acc05b605
Enable verbose logging of allow loggers (for instance, okhttp) / dav4android update
2016-10-04 23:42:03 +02:00
Ricki Hirner
3813c1e0c8
Android 4.0/4.1 fixes
...
* require API level 15 for TransactionTooLargeException
* use SQLite WAL only on API level 16+
* various database access, provider access and UI fixes
2016-10-04 16:23:23 +02:00
Ricki Hirner
4e87186dd8
Version bump to 1.3.2
2016-10-03 20:57:14 +02:00
Ricki Hirner
5e0a3e8b9f
Fetch translations from Transifex
2016-10-03 20:43:01 +02:00
Ricki Hirner
3bd96955cc
Avoid "no transaction" exception
2016-10-03 20:11:56 +02:00
Ricki Hirner
3952181df2
Minimal layout change
2016-10-03 12:13:59 +02:00
Ricki Hirner
054dba6ff8
Show progress bar when synchronization is active
2016-09-26 23:07:35 +02:00
Ricki Hirner
68781fd96e
Increase SEQUENCE only when we're ORGANIZER
2016-09-26 23:07:35 +02:00
Ricki Hirner
00a400569a
Query/use CalDAV email address as account name, if available
2016-09-26 23:07:35 +02:00
Ricki Hirner
08b1886f9e
Always increase SEQUENCE
2016-09-26 23:07:35 +02:00
Ricki Hirner
d2d7ce8fe3
lint: don't keep references to Context in static fields
2016-09-26 23:07:35 +02:00
Ricki Hirner
1354afebf7
Version bump to 1.3.1
...
* some cert4android tests
2016-09-18 17:39:07 +02:00
Ricki Hirner
08c8390202
Import strings from Transifex
2016-09-18 16:50:27 +02:00
Ricki Hirner
d688eb5196
Always use PROPFIND instead of REPORT addressbook-query
2016-09-18 16:43:11 +02:00
Ricki Hirner
b757cba521
README changes
2016-09-02 12:22:45 +02:00
Ricki Hirner
4fea7880e7
Fetch translations from Transifex
2016-09-02 12:13:22 +02:00
Ricki Hirner
9555c066bd
lint optimizations
...
* permissions: declare AUTHENTICATE_ACCOUNTS, GET_ACCOUNTS and MANAGE_ACCOUNTS only until SDK level 22
* minor optimizations and bug fixes
2016-09-02 12:02:42 +02:00
Ricki Hirner
290ce7ad80
Version bump to 1.3
...
* vcard4android: fix bug concerning generated formatted postal addresses
2016-09-02 00:55:44 +02:00
Ricki Hirner
55ad06e328
New launcher logo
2016-09-02 00:55:39 +02:00
Ricki Hirner
19ab4a14ce
Use cert4android instead of MemorizingTrustManager
...
* use cert4android instead of MemorizingTrustManager
* new app setting: distrust system certificates
* add network security config to manifest so that user-installed CAs will be accepted in Android 7 again
* update gradle
2016-09-02 00:38:02 +02:00
Ricki Hirner
ac940b3a12
Accept intent extras for LoginActivity
2016-08-13 23:14:33 +02:00
Ricki Hirner
7416c62c97
Fetch translations from Transifex
2016-08-06 00:13:16 +02:00
Ricki Hirner
eb70f8690f
Fix OpenTasks regression bug
...
* version bump to 1.2.3
* enable OpenTasks sync on Android <6 again
2016-08-05 23:32:03 +02:00
Ricki Hirner
bab84d7d0f
Improve HTTP authentication
...
* use preemptive Basic auth automatically for HTTPS connections
* cache auth parameters (Basic/Digest)
2016-08-05 23:20:19 +02:00
Ricki Hirner
ae145d897e
Fetch translations from Transifex
2016-08-02 19:30:20 +02:00
Ricki Hirner
d675fb961e
Request ignoring battery optimization
...
* startup dialog: request to ignore battery optimizations
* remove F-Droid donation startup dialog (only useful for davdroid-ose)
* version bump to 1.2.2
2016-08-02 19:30:15 +02:00
Ricki Hirner
967bc50256
Avoid sync error when OpenTasks is not installed
2016-08-01 21:54:56 +02:00
Ricki Hirner
2617063835
Clean up launcher icon
...
* clean up launcher icon
* update dependencies
2016-08-01 21:15:55 +02:00
Ricki Hirner
7fbdf96546
Allow large transactions
...
* version bump to 1.2.1-ose
* upgrade to okhttp 3.4.1
* ical4android/vcard4android: split oversized transactions
2016-07-27 14:33:06 +02:00
Ricki Hirner
f6cb92dd6d
Remove gplay flavour to keep DAVdroid-OSE repo clean
...
* Remove gplay flavour to keep DAVdroid-OSE repo clean
* update Android gradle plugin to 2.1.2
2016-07-11 13:45:27 +02:00
Ricki Hirner
b49bdda7e8
Fix NPE, add intent to view FAQ to upgrade notification
2016-07-11 12:55:55 +02:00
Ricki Hirner
19b54748cd
Version bump to 1.2
...
* move ETag requirement from vcard4android to davdroid
* more debug info
* vcard4android: support for custom labels (X-ABLabel)
2016-07-02 10:32:12 +02:00
Ricki Hirner
41ce609237
Support X-ABLabel for custom types
...
* vcard4android: support X-ABLabel for custom types
2016-07-01 22:10:20 +02:00
Ricki Hirner
aafcc36c4d
Version bump to 1.1.1.2
...
* allow ProGuard optimization to remove non-relevant bytecode from flavors
* check flavors with direct comparison instead of .equals() to allwo optimizations
* store cookies per HttpClient, and not per DAVdroid instance (allows multiple sessions for parallel syncs)
* fetch translations from Transifex
2016-06-24 13:39:26 +02:00
Ricki Hirner
2496a3bf05
Add standard and gplay product flavor
2016-06-24 00:06:43 +02:00
Ricki Hirner
54e6426dc4
Version bump to 1.1.1.1
...
* add yield points to allow processing of groups with many contacts
* new script to generate contacts for testing
2016-06-23 11:42:12 +02:00
Ricki Hirner
4542da7d89
Version bump to 1.1.1
...
* fetch translations from Transifex
2016-06-21 21:05:18 +02:00
Ricki Hirner
977409511a
Handle cookies correctly using a name/domain/path MultiKeyMap
2016-06-21 20:51:52 +02:00
Ricki Hirner
ad8c832819
Version bump to 1.1
...
* fetch translations from Transifex
* fix account settings version update routine
2016-06-19 19:15:38 +02:00
Ricki Hirner
389af2b738
Better group support
...
* change group methods to less specific values
* new account settings version: change group method to CATEGORIES for updated accounts
* change group method from CATEGORIES to GROUP_VCARDS automatically when a group VCard is received
GUI:
* AccountSettings: disable CalDAV/CardDAV options when the corresponding service is not available
* AccountSettings: new option to choose contact group method
* account setup: allow to choose contact group method at account creation
2016-06-19 18:52:56 +02:00
Ricki Hirner
be2e15e463
Merge branch 'master' into vcard4-groups
2016-06-12 15:52:07 +02:00
Ricki Hirner
c7c13520f9
Version bump to 1.0.9.2
...
* version bump to 1.0.9.2
* fetch translations from Transifex
2016-06-11 09:06:21 +02:00
Ricki Hirner
317144630c
Make use of RFC6868 optional
...
* make use of RFC6868 for VCards optional because some defect servers don't accept it
* minor UI improvements (thanks biociahi)
2016-06-11 08:53:29 +02:00
Ricki Hirner
34bc27fa79
Switch from preference-v7 to preference-v14 to make preferences look more Material (thanks biociahi!)
2016-06-11 08:53:15 +02:00
Ricki Hirner
210735a500
Switch from preference-v7 to preference-v14 to make preferences look more Material (thanks biociahi!)
2016-06-09 10:13:47 +02:00
Ricki Hirner
b30733c64b
Basic support for VCard4-style groups
...
* rewritten contact group support to support VCard3 CATEGORIES and VCard4-style KIND/MEMBER groups
* new account setting: contact group method (VCard3/VCard4/Apple "VCard4-as-VCard3")
* keep unknown properties when saving/generating VCards
2016-06-08 21:44:31 +02:00
Ricki Hirner
91234a688f
Upgrade to okhttp 3.3.1
2016-05-30 12:02:04 +02:00
Ricki Hirner
5675e544b5
Better alarm handling
...
* ical4android: better alarm handling
* API change: pass OutputStream instead of returning it
2016-05-28 16:00:23 +02:00
Ricki Hirner
42a261b84e
Revert "Contact/event/task upload: use streams directly without extra byte[] array"
...
This reverts commit 3bde3758fc
.
Version bump to 1.0.9.1
Reason: A server MAY reject a request that contains a message body but not a Content-Length
by responding with 411 (Length Required). (RFC 7230 3.3.3 Message Body Length)
2016-05-26 22:08:22 +02:00
Ricki Hirner
0d1825cbf3
Revert "Contact/event/task upload: use streams directly without extra byte[] array"
...
This reverts commit 3bde3758fc
.
2016-05-26 22:04:03 +02:00
Ricki Hirner
9b8fc983cd
Version bump to 1.0.9
...
* upgrade to okhttp 3.3 to reduce HTTP/2 incompatibilties
* vcard4android: enable RFC 6868 support in ez-vcard
* minor improvements and bug fixes
* new translations from Transifex
* version bump to 1.0.9
2016-05-25 21:37:43 +02:00
Ricki Hirner
3bde3758fc
Contact/event/task upload: use streams directly without extra byte[] array
2016-05-23 15:10:35 +02:00
Ricki Hirner
fd1f59d124
Logs: show which contact/event/task is being prepared for upload
2016-05-23 14:28:27 +02:00