mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-28 09:32:33 +00:00
!749 location code optimize
Merge pull request !749 from Zhangfeng/master
This commit is contained in:
commit
a48cdcd625
@ -44,6 +44,7 @@ LocatorCallbackNapi::LocatorCallbackNapi()
|
|||||||
fixNumber_ = 0;
|
fixNumber_ = 0;
|
||||||
inHdArea_ = true;
|
inHdArea_ = true;
|
||||||
singleLocation_ = nullptr;
|
singleLocation_ = nullptr;
|
||||||
|
locationPriority_ = 0;
|
||||||
InitLatch();
|
InitLatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"*LocatorImpl*";
|
"*LocatorImpl*";
|
||||||
"*GetInstance*";
|
"*GetInstance*";
|
||||||
"*LocatorProxy*";
|
"*LocatorProxy*";
|
||||||
|
|
||||||
"*LocationSwitchCallbackHost*";
|
"*LocationSwitchCallbackHost*";
|
||||||
"*LocatorCallbackHost*";
|
"*LocatorCallbackHost*";
|
||||||
"*CountryCodeCallbackHost*";
|
"*CountryCodeCallbackHost*";
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
namespace OHOS {
|
namespace OHOS {
|
||||||
namespace Location {
|
namespace Location {
|
||||||
void OnLocationReport(const std::unique_ptr<Location>& location)
|
void LocatorCallbackHost::OnLocationReport(const std::unique_ptr<Location>& location)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,22 +14,22 @@
|
|||||||
import("//base/location/config.gni")
|
import("//base/location/config.gni")
|
||||||
import("//build/ohos.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) {
|
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") {
|
ohos_shared_library("lbsservice_gnss") {
|
||||||
sources = local_base_sources
|
sources = local_base_sources
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user