Skip to content
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

HMS integration #9

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

HMS integration #9

wants to merge 14 commits into from

Conversation

OKatrych
Copy link

@OKatrych OKatrych commented Nov 3, 2021

Separate CoLocation into two implementations:

  1. CoLocationGms - GMS implementation
  2. CoLocationHms - HMS implementation

Let the CoLocation.from decide which locationServicesSource to use:
when both GMS and HMS are available then use the GMS.

Create LocationRequest and LocationSettingsRequest which are wrappers
to the platform related classes and use them to define requests without
using specific (GMS/HMS) classes.

Change the minSdkVersion to 19 (HMS requirement).

Create separate tests for both tools.

Modify Sample app to be able to test HMS on Huawei devices

Oleksandr Katrych and others added 5 commits November 1, 2021 19:56
Separate CoLocation into two implementations:
 1. `CoLocationGms` - GMS implementation
 2. `CoLocationHms` - HMS implementation

Let the `CoLocation.from` decide which `locationServicesSource` to use:
when both GMS and HMS are available then use the GMS.

Create `LocationRequest` and `LocationSettingsRequest` which are wrappers
to the platform related classes and use them to define requests without
using specific (GMS/HMS) classes.

Change the minSdkVersion to 19 (HMS requirement).

Create separate tests for both tools.
Add ability to switch between location providers.
Modify Sample app to be able to test HMS on Huawei devices
@OKatrych OKatrych mentioned this pull request Nov 3, 2021
@@ -47,6 +49,8 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"

implementation "androidx.multidex:multidex:2.0.1"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huawei lib is too huge

@patloew
Copy link
Owner

patloew commented Nov 5, 2021

Thanks for the contribution, it's really appreciated. Without looking too much into details of the PR, if HMS integration should be added, it should not be in the main library, but as a second library which depends on the main library, as an add on. Otherwise this would introduce HMS dependency even when users of the library only need to use Google services - which is probably still the most common way of using this library.

If this is reworked in a way so that the HMS implementation is moved to a library_hms module, then I will consider this PR again.

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.

None yet

2 participants