!749 location code optimize

Merge pull request !749 from Zhangfeng/master
This commit is contained in:
openharmony_ci 2024-07-09 06:32:18 +00:00 committed by Gitee
commit a48cdcd625
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 17 additions and 17 deletions

View File

@ -44,6 +44,7 @@ LocatorCallbackNapi::LocatorCallbackNapi()
fixNumber_ = 0;
inHdArea_ = true;
singleLocation_ = nullptr;
locationPriority_ = 0;
InitLatch();
}

View File

@ -3,7 +3,6 @@
"*LocatorImpl*";
"*GetInstance*";
"*LocatorProxy*";
"*LocationSwitchCallbackHost*";
"*LocatorCallbackHost*";
"*CountryCodeCallbackHost*";

View File

@ -17,7 +17,7 @@
namespace OHOS {
namespace Location {
void OnLocationReport(const std::unique_ptr<Location>& location)
void LocatorCallbackHost::OnLocationReport(const std::unique_ptr<Location>& location)
{
}

View File

@ -14,22 +14,22 @@
import("//base/location/config.gni")
import("//build/ohos.gni")
local_base_sources = [
"$LOCATION_GNSS_ROOT/source/agnss_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/agnss_ni_manager.cpp",
"$LOCATION_GNSS_ROOT/source/geofence_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_ability.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_ability_skeleton.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_common_event_subscriber.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/string_utils.cpp",
"$LOCATION_LOCATOR_ROOT/source/location_config_manager.cpp",
"$LOCATION_LOCATOR_ROOT/source/subability_common.cpp",
"$LOCATION_LOCATOR_ROOT/source/work_record.cpp",
"$LOCATION_LOCATOR_ROOT/source/work_record_statistic.cpp",
]
if (location_feature_with_gnss) {
local_base_sources = [
"$LOCATION_GNSS_ROOT/source/agnss_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/agnss_ni_manager.cpp",
"$LOCATION_GNSS_ROOT/source/geofence_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_ability.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_ability_skeleton.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_common_event_subscriber.cpp",
"$LOCATION_GNSS_ROOT/source/gnss_event_callback.cpp",
"$LOCATION_GNSS_ROOT/source/string_utils.cpp",
"$LOCATION_LOCATOR_ROOT/source/location_config_manager.cpp",
"$LOCATION_LOCATOR_ROOT/source/subability_common.cpp",
"$LOCATION_LOCATOR_ROOT/source/work_record.cpp",
"$LOCATION_LOCATOR_ROOT/source/work_record_statistic.cpp",
]
ohos_shared_library("lbsservice_gnss") {
sources = local_base_sources