Skip to content

Commit 7133b80

Browse files
committed
添加oh_pckage.json的version和name
适配@rnoh/react-native-openharmony
1 parent 2fa4a41 commit 7133b80

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

harmony/fs.har

-2.83 KB
Binary file not shown.

harmony/fs/BuildProfile.ets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default class BuildProfile {
2-
static readonly HAR_VERSION = '2.20.0-0.1.0';
2+
static readonly HAR_VERSION = '2.20.0-0.1.2';
33
static readonly BUILD_MODE_NAME = 'debug';
44
static readonly DEBUG = true;
5+
static readonly TARGET_NAME = 'default';
56
}

harmony/fs/oh-package.json5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "rnoh-fs",
3-
"version": "2.20.0-0.1.0",
2+
"name": "@react-native-oh-tpl/react-native-fs",
3+
"version": "2.20.0-0.1.2",
44
"description": "Please describe the basic information.",
55
"main": "index.ets",
66
"types": "module",
77
"dependencies": {
8-
"rnoh": "file:../rnoh"
8+
"@rnoh/react-native-openharmony": "file:../react_native_openharmony"
99
}
1010
}

harmony/fs/src/main/ets/FsPackage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* SOFTWARE.
2323
*/
2424

25-
import { RNPackage, TurboModulesFactory } from 'rnoh/ts';
26-
import type { TurboModule, TurboModuleContext } from 'rnoh/ts';
25+
import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/ts';
26+
import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';
2727
import { FsTurboModule } from './FsTurboModule';
2828

2929
class FsTurboModulesFactory extends TurboModulesFactory {

harmony/fs/src/main/ets/FsTurboModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* SOFTWARE.
2323
*/
2424

25-
import { TurboModule, RNOHError } from 'rnoh/ts';
25+
import { TurboModule, RNOHError } from '@rnoh/react-native-openharmony/ts';
2626
import fs, { ReadTextOptions, WriteOptions } from '@ohos.file.fs';
2727
import hash from '@ohos.file.hash';
2828
import { BusinessError } from '@ohos.base';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-oh-tpl/react-native-fs",
3-
"version": "2.20.0-0.1.0",
3+
"version": "2.20.0-0.1.2",
44
"description": "Native filesystem access for react-native",
55
"main": "FS.common.js",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)