Skip to content

Use LifecycleManager in Android#1366

Merged
JulianKast merged 31 commits intodevelopfrom
feature/android_lcm
Jun 12, 2020
Merged

Use LifecycleManager in Android#1366
JulianKast merged 31 commits intodevelopfrom
feature/android_lcm

Conversation

@bilal-alsharifi
Copy link
Copy Markdown
Contributor

@bilal-alsharifi bilal-alsharifi commented May 29, 2020

Fixes #1365

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).
  • I have tested Android, Java SE, and Java EE

Unit Tests

Unit tests have been updated to use LifecycleManager instead of SdlProxyBase

Core Tests

It is preferred to run most of the basic tests to make sure the new LifecycleManager is working as expected:

  • Test connecting an Android app using all possible transports
  • Test connecting a cloud app
  • Test RPC encryption
  • Test video and audio streaming

Core version / branch / commit hash / module tested against: 6.1.0
HMI name / version / branch / commit hash / module tested against: Generic HMI 0.8.0

Summary

This PR includes the following changes:

  • Add LifecylceManager to Android and update SdlManager to use the new LifecylceManager
  • Refactor LifecylceManager in both Android and JavaSE to put most of the common logic in BaseLifecylceManager
  • Refactor SdlManager in both Android and JavaSE to put most of the common logic in BaseSdlManager

CLA

@bilal-alsharifi bilal-alsharifi marked this pull request as draft May 29, 2020 20:12
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2020

Codecov Report

Merging #1366 into develop will decrease coverage by 1.51%.
The diff coverage is 12.59%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1366      +/-   ##
=============================================
- Coverage      47.52%   46.01%   -1.52%     
- Complexity      4441     4461      +20     
=============================================
  Files            489      494       +5     
  Lines          23972    24905     +933     
  Branches        2775     2954     +179     
=============================================
+ Hits           11392    11459      +67     
- Misses         11882    12734     +852     
- Partials         698      712      +14     
Impacted Files Coverage Δ Complexity Δ
...gers/lifecycle/BaseEncryptionLifecycleManager.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...devicelink/managers/lifecycle/PoliciesFetcher.java 0.00% <ø> (ø) 0.00 <0.00> (?)
...elink/managers/lifecycle/BaseLifecycleManager.java 12.61% <12.61%> (ø) 10.00 <10.00> (?)
...m/smartdevicelink/exception/SdlExceptionCause.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...va/com/smartdevicelink/exception/SdlException.java 0.00% <0.00%> (-22.73%) 0.00% <0.00%> (ø%)
...tdevicelink/Dispatcher/ProxyMessageDispatcher.java 61.76% <0.00%> (-14.71%) 4.00% <0.00%> (-1.00%)
...java/com/smartdevicelink/managers/ProxyBridge.java 0.00% <0.00%> (-3.80%) 0.00% <0.00%> (-2.00%)
...tdevicelink/managers/audio/AudioDecoderCompat.java 70.00% <0.00%> (-3.34%) 3.00% <0.00%> (ø%)
...n/java/com/smartdevicelink/proxy/SdlProxyBase.java 7.73% <0.00%> (-0.85%) 23.00% <0.00%> (-8.00%)
... and 6 more

@bilal-alsharifi bilal-alsharifi marked this pull request as ready for review June 5, 2020 20:58
@bilal-alsharifi bilal-alsharifi changed the title [WIP]Use LifecycleManager in Android Use LifecycleManager in Android Jun 8, 2020
Comment thread base/src/main/java/com/smartdevicelink/managers/BaseSdlManager.java
Comment thread javaSE/src/main/java/com/smartdevicelink/managers/SdlManager.java Outdated
Comment thread javaSE/src/main/java/com/smartdevicelink/managers/SdlManager.java Outdated
Comment thread javaSE/src/main/java/com/smartdevicelink/managers/SdlManager.java Outdated
Comment thread javaSE/src/main/java/com/smartdevicelink/managers/SdlManager.java Outdated
Comment thread javaSE/src/main/java/com/smartdevicelink/managers/SdlManager.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants