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

fix: 适配rnoh0.72.27 #7

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified harmony/maps.har
Binary file not shown.
19 changes: 15 additions & 4 deletions harmony/maps/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '1.10.3-0.0.5';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';

/**
* BuildProfile Class is used only for compatibility purposes.
*/
export default class BuildProfile {
static readonly HAR_VERSION = '1.10.3-0.0.4';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
static readonly TARGET_NAME = 'default';
static readonly HAR_VERSION = HAR_VERSION;
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
static readonly DEBUG = DEBUG;
static readonly TARGET_NAME = TARGET_NAME;
}
4 changes: 2 additions & 2 deletions harmony/maps/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@react-native-oh-tpl/react-native-maps",
"version": "1.10.3-0.0.4",
"version": "1.10.3-0.0.5",
"description": "Map for React Native",
"main": "Index.ets",
"main": "index.ets",
"author": "",
"license": "Apache-2.0",
"dependencies": {
Expand Down
8 changes: 7 additions & 1 deletion harmony/maps/src/main/ets/AIRMaps/AIRMap.ets
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ export struct AIRMap {
"speed": 0,
"timeStamp": 0,
"direction": 0,
"timeSinceBoot": 0
"timeSinceBoot": 0,
//fixme 6.14 liwang新增
"altitudeAccuracy": 0,
"speedAccuracy": 0,
"directionAccuracy": 0,
"uncertaintyOfTimeSinceBoot": 0,
"sourceType": geoLocationManager.LocationSourceType.GNSS
};
this.mapController?.setMyLocation(position);
this.animateToRegion({latitude: result.latitude, longitude: result.longitude}, 500);
Expand Down
2 changes: 1 addition & 1 deletion harmony/maps/src/main/ets/LWLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

import { TAG } from './sharedTypes'
const RELEASE = false;
const RELEASE = true;

export function LWLog(...args: any[]) {
if (RELEASE) {
Expand Down