1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-22 15:26:24 +00:00

117 Commits

Author SHA1 Message Date
Loïc Blot
77ab787db7 Add privacy policy inside application and repository
This should permit to prevent Google play removal due to this missing information.
2019-01-16 16:56:53 +01:00
Loic Blot
449a6b2a81
Message date is a long, not a int 2018-03-18 12:16:25 +01:00
Loic Blot
15c9617a2b
Fix iteration on restore + add a log to understand where we are in restoration process 2018-03-18 11:37:36 +01:00
Loic Blot
f2348d0a46
Version 2.0.2: fetch last http error issue properly from low level go client 2018-02-12 22:57:43 +01:00
Loïc Blot
61ed3d2791
SMS restore now used GoLang HTTP client. (#180)
This permits to remove the whole android HTTP client from source
2018-02-10 15:59:46 +01:00
Loic Blot
8ad3b251b0
Migrate getAllSmsIds to golang implementation 2018-02-10 11:23:46 +01:00
Loic Blot
db2cc05a3a
OCHttpClient::getPhoneList now used GoLang aar
* add handleEarlyHTTPStatus to properly handle http return codes in java part
* cleanup dead code
2018-02-10 10:44:53 +01:00
Loic Blot
1f26787983
Improve ASyncContactLoad performance by using addAll instead of looping + add 2018-02-10 09:49:41 +01:00
Loic Blot
d57810b5d8 Replace C++ with Cmake with GoLang gomobile
* Add ncsmsgo.arr which is the GoLang gomobile part
See: https://gitlab.com/nerzhul/ncsmsgo
* Android-NDK is not needed anymore
* Android app getVersion() now uses the Golang part
* Use the next getLastHTTPStatus() call in getVersion()
* Android app pushSms() now uses the Golang part
* JNI SmsBuffer has been replaced with GoLang aar bindings
-> This permits to remove some java code & increase performance
* Prepare a insecure switch flag to the Golang client
2018-02-09 23:59:01 +01:00
Loic Blot
d12bd8b835
Add a new connection error type & fix periodic sync 2017-12-06 21:11:42 +01:00
Loic Blot
580d4c1588
Enhance connection error messages
Handle each exception in OCHttpClient::execute separately to help diagnose
2017-12-01 22:45:58 +01:00
Loic Blot
141dfa40ed
Add Transfer-Encoding option chunked in requests 2017-12-01 19:45:16 +01:00
Loic Blot
f4b20b5873
Release 1.3.2 2017-11-25 12:10:42 +01:00
Loic Blot
fe2a27f4cb
Fix some HTTP client errors, especially closing write output
This fixes issue #162
2017-11-08 23:39:35 +01:00
Loic Blot
a17bffb68c
Re-initiate the SSL trust manager and remove org.apache.commons.httpclient
+ fix a wrong string
2017-11-03 12:21:16 +01:00
Loic Blot
5cb6c63f16
Refactor the whole OCHttpClient to use modern android http client 2017-11-03 12:16:54 +01:00
Loic Blot
c08e0fbd51
use java.net.URL instead of URI 2017-10-30 09:17:02 +01:00
Loic Blot
8e15e18b09
Code style fixes 2017-10-30 08:37:08 +01:00
Loic Blot
eae84dadfb
Fix a NullPointerException reported by Play store 2017-10-30 08:34:17 +01:00
Loic Blot
587099dba7
Fullsync: add a complete sync message when sync is done instead of telling nothing to sync 2017-09-12 08:10:58 +02:00
Loic Blot
47abfac7c3
Fix wrong Thread created Toast
This fixes #153
2017-09-12 08:03:06 +02:00
Loic Blot
3edd898d7d
Full sync is now fixed
Full sync was previously not really good, Sms were ordered by date DESC, then the last date was good and when multiple loop iterations occurs, only 1 iteration happened
SmsBuffer now owns LastMessageDate instead of AndroidSmsFetcher
Full sync is now owned by AsyncsmsSync instead of MainActivity
Last message date is more accurate and less error prone
2017-09-11 21:56:34 +02:00
Loic Blot
56eecb98bc
Remove a useless try/catch 2017-09-04 22:28:42 +02:00
Loic Blot
0407f719ef
Add SmsEntry object to remove a JsonObject unoptimized storage object 2017-09-04 22:27:36 +02:00
Loic Blot
ebfd1ccfbf
SmsBuffer: add push helper function to factorize code 2017-09-04 20:26:25 +02:00
Loic Blot
d092ba4a4d Fix JNI implementation, don't use static methods in Java 2017-08-24 08:27:24 +02:00
Loic Blot
11bbed02b8 Don't let Java choose when cleaning SmsBuffer, do it ourself 2017-08-24 08:27:24 +02:00
Loic Blot
5e6a1fc28e SmsBuffer is now working, replace json objects with the SmsBuffer on sync 2017-08-24 08:27:24 +02:00
Loic Blot
47c2923d0e Update tools versions & prepare JNI work to reduce memory & CPU usage 2017-08-24 08:27:24 +02:00
Loïc Blot
c1abafc72c SmsDataProvider: factorize field names 2017-08-22 16:50:16 +02:00
Loic Blot
c125201c4b
Code style fixes 2017-06-07 00:26:05 +02:00
Loic Blot
0eb1af2da8
BindObjectPref now takes resId and resolve setting directly 2017-06-07 00:00:43 +02:00
Loic Blot
1d45d0a318
Add an option to disable sync notification
Fix #150
2017-06-06 23:50:20 +02:00
Loïc Blot
d4904797f7 Contactload code cleanup 2017-05-22 14:25:31 +02:00
Loïc Blot
a5a03dbfcd More code cleanup 2017-05-22 14:10:36 +02:00
Loïc Blot
e2c65cf867 Code cleanups 2017-05-22 13:26:04 +02:00
Loïc Blot
c682d7fd0d Properly handle InvalidArgumentException when URI is not valid in HTTP connector
This fixes issue #149
2017-05-03 15:47:29 +02:00
Loic Blot
afa0fc2fac
Add a feature to reinitialize synchronization cursor 2017-03-23 20:43:32 +01:00
Andy Scherzinger
f83eebe4dd Drawer, Toolbar and minor UI optimizations (#145)
* initial add of toolbar and hamburger menu to main activity
* toolbar added to preferences and accounts screens
* fixed original string (name)
* Layout fix for content
* initial add of toolbar and hamburger menu to main activity
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* toolbar added to preferences and accounts screens
* Layout fix for content
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* fixes after rebase
* consolidate style since minVersion=16, make drawer to be behind the systembar
* optimize drawer header
* add back navigation to login activity, fix spinner background
* add back navigation
* more launcher icon to mipmap folders
* fix identation
* fix license header
* revert code style deletion, change identation
* proper notification icon
* proper resolution for login logo
* fix large notification icon
* removed unused Eclair switch since support is v16+
* only use small notification icon
* spaces->tabs
* fix toolbar style for Android 4.x
2017-03-23 20:16:31 +01:00
Loïc Blot
8b482f51c4 HTTPClient: add redirection follower 2017-01-20 11:35:19 +01:00
Loïc Blot
82d1de3463 HTTPClient: send application name & version code in User Agent
Also ignore cookies like owncloud android lib & set http version to 1.1
2017-01-20 11:35:11 +01:00
Loic Blot
bcefc1fdf2 HTTPClient: Permit circular redirection.
This should fixes #128
2017-01-18 23:00:18 +01:00
Loic Blot
62ad5b1d34 Import some sources from legacy HTTP Client to permit using self signed certificates like before
It's not the perfect solution but this works

Rename HTTPRequestBuilder to OCHttpClient & make it child of HttpClient
2016-12-20 22:17:44 +01:00
Loic Blot
25e2d13409 Rewrite our HTTP Client to remove the owncloud library dependency and doing authentication ourselves
* Fixes issue #122
* Cleanup the code
* Drop owncloud library support, this will help the unofficial F-Droid build
2016-12-20 21:34:52 +01:00
Loic Blot
1bb93a5068 Verify connection when restoring messages 2016-12-08 22:14:29 +01:00
Loic Blot
819fa4543d Don't restore already existing messages 2016-12-08 21:43:32 +01:00
Loic Blot
9bb0a7d2f2 Add a label for progression, show it to user and fix sms restauration.
This is almost finished but needs some polish
2016-12-08 21:15:58 +01:00
Loic Blot
13ad6237fe Restore the default SMS app at the end 2016-12-08 01:18:28 +01:00
Loic Blot
184d2e12fd Add some preparations for progress 2016-12-08 01:14:12 +01:00
Loic Blot
b13e98e2dc Feedback when restore is finished 2016-12-08 00:58:27 +01:00