New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target Android API level 27 #1228

Merged
merged 12 commits into from Oct 31, 2018

Conversation

Projects
None yet
1 participant
@daniele-athome
Member

daniele-athome commented Oct 22, 2018

This is a big one. And I have time until 2018-11-01.
The main part is #1198. Technical notes are there.


https://developer.android.com/about/versions/oreo/android-8.0-changes

Target Android API level 27
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
@codecov

This comment has been minimized.

codecov bot commented Oct 22, 2018

Codecov Report

Merging #1228 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1228      +/-   ##
=========================================
- Coverage    0.52%   0.52%   -0.01%     
=========================================
  Files         287     288       +1     
  Lines       25244   25290      +46     
  Branches     3305    3316      +11     
=========================================
  Hits          133     133              
- Misses      25098   25144      +46     
  Partials       13      13
Impacted Files Coverage Δ
...java/org/kontalk/ui/prefs/MaintenanceFragment.java 0% <0%> (ø) ⬆️
...va/org/kontalk/service/gcm/GcmListenerService.java 0% <0%> (ø) ⬆️
...main/java/org/kontalk/service/DownloadService.java 0% <0%> (ø) ⬆️
...pp/src/main/java/org/kontalk/util/Preferences.java 0% <0%> (ø) ⬆️
...ntalk/service/msgcenter/StartMessageCenterJob.java 0% <0%> (ø)
...java/org/kontalk/service/NetworkStateReceiver.java 0% <0%> (ø) ⬆️
...a/org/kontalk/provider/MessagesProviderClient.java 0% <0%> (ø) ⬆️
...in/java/org/kontalk/ui/ComposeMessageFragment.java 0% <0%> (ø) ⬆️
...ontalk/service/msgcenter/MessageCenterService.java 0% <0%> (ø) ⬆️
...pp/src/main/java/org/kontalk/util/SystemUtils.java 2.73% <0%> (-0.1%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a45e65...131be34. Read the comment docs.

daniele-athome added some commits Oct 25, 2018

Use foreground service for API level 26+
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Time to resume normal StrictMode operations
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Transform MediaService into a JobIntentService
Since it doesn't use a foreground notification.

Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Disable foreground setting preference if mandatory on device
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Some fine-tuning with network state checks
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
It seems that whitelisting an app is enough for allowing it to start …
…background services.

So let's keep the message center in the background if allowed.

Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Fix CI build
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Enable foreground service only if the user chose to battery optimize …
…the app and push notifications are not available

Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Implement some way of resuming the message center in extreme doze mode
There is still work to do though.

Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Schedule a restart job if we have pending work
Signed-off-by: Daniele Ricci <daniele@casaricci.it>
Fix hold/release pair
Signed-off-by: Daniele Ricci <daniele@casaricci.it>

@daniele-athome daniele-athome merged commit 131be34 into master Oct 31, 2018

0 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details

@daniele-athome daniele-athome added this to the Next milestone Oct 31, 2018

@daniele-athome daniele-athome deleted the feature/sdk-target-27 branch Oct 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment