@react-native-ohos/react-native-haptic-feedback 2.3.4 → 2.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/harmony/haptic_feedback/BuildProfile.ets +16 -16
- package/harmony/haptic_feedback/index.ets +2 -0
- package/harmony/haptic_feedback/oh-package.json5 +1 -1
- package/harmony/haptic_feedback/src/main/ets/{RNHapticFeedbackPackage.ts → RNHapticFeedbackPackage.ets} +2 -1
- package/harmony/haptic_feedback.har +0 -0
- package/package.json +8 -2
- package/harmony/haptic_feedback/oh-package-lock.json5 +0 -31
- /package/harmony/haptic_feedback/{ts.ts → ts.ets} +0 -0
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ This project is based on [react-native-haptic-feedback@2.3.3](https://github.com
|
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
|
7
|
-
- [中文](https://
|
|
7
|
+
- [中文](https://gitcode.com/CPF-RN/usage-docs/blob/master/zh-cn/react-native-haptic-feedback.md)
|
|
8
8
|
|
|
9
|
-
- [English](https://
|
|
9
|
+
- [English](https://gitcode.com/CPF-RN/usage-docs/blob/master/en/react-native-haptic-feedback.md)
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
-
*/
|
|
4
|
-
export const HAR_VERSION = '2.
|
|
5
|
-
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
-
export const DEBUG = true;
|
|
7
|
-
export const TARGET_NAME = 'default';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
-
*/
|
|
12
|
-
export default class BuildProfile {
|
|
13
|
-
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
-
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
-
static readonly DEBUG = DEBUG;
|
|
16
|
-
static readonly TARGET_NAME = TARGET_NAME;
|
|
1
|
+
/**
|
|
2
|
+
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
+
*/
|
|
4
|
+
export const HAR_VERSION = '2.4.0-beta.1';
|
|
5
|
+
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
+
export const DEBUG = true;
|
|
7
|
+
export const TARGET_NAME = 'default';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
+
*/
|
|
12
|
+
export default class BuildProfile {
|
|
13
|
+
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
+
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
+
static readonly DEBUG = DEBUG;
|
|
16
|
+
static readonly TARGET_NAME = TARGET_NAME;
|
|
17
17
|
}
|
|
@@ -8,6 +8,7 @@ import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/t
|
|
|
8
8
|
import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';
|
|
9
9
|
import { TM } from "./generated/ts";
|
|
10
10
|
import { RNHapticFeedbackTurboModule } from './RNHapticFeedbackTurboModule';
|
|
11
|
+
import { RNOHPackage } from "@rnoh/react-native-openharmony";
|
|
11
12
|
|
|
12
13
|
class RNHapticFeedbackTurboModuleFactory extends TurboModulesFactory {
|
|
13
14
|
createTurboModule(name: string): TurboModule | null {
|
|
@@ -22,7 +23,7 @@ class RNHapticFeedbackTurboModuleFactory extends TurboModulesFactory {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
export class RNHapticFeedbackPackage extends
|
|
26
|
+
export class RNHapticFeedbackPackage extends RNOHPackage {
|
|
26
27
|
createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
|
|
27
28
|
return new RNHapticFeedbackTurboModuleFactory(ctx);
|
|
28
29
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-ohos/react-native-haptic-feedback",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-beta.1",
|
|
4
4
|
"description": "Basic haptic feedback for iOS and android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -110,6 +110,12 @@
|
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"harmony": {
|
|
113
|
-
"alias": "react-native-haptic-feedback"
|
|
113
|
+
"alias": "react-native-haptic-feedback",
|
|
114
|
+
"autolinking": {
|
|
115
|
+
"etsPackageClassName": "HapticFeedbackPackage",
|
|
116
|
+
"cppPackageClassName": "RNHapticFeedbackPackage",
|
|
117
|
+
"cmakeLibraryTargetName": "rnoh_haptic_feedback",
|
|
118
|
+
"ohPackageName": "@react-native-ohos/react-native-haptic-feedback"
|
|
119
|
+
}
|
|
114
120
|
}
|
|
115
121
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"stableOrder": true,
|
|
4
|
-
"enableUnifiedLockfile": false
|
|
5
|
-
},
|
|
6
|
-
"lockfileVersion": 3,
|
|
7
|
-
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
|
8
|
-
"specifiers": {
|
|
9
|
-
"@ohos/materialprogressbar@2.1.3-rc.0": "@ohos/materialprogressbar@2.1.3-rc.0",
|
|
10
|
-
"@ppd/ffrt@1.1.5": "@ppd/ffrt@1.1.5",
|
|
11
|
-
"@rnoh/react-native-openharmony@../../../../tester/25P4/harmony/react_native_openharmony-6.0.0.202.har": "@rnoh/react-native-openharmony@../../../../tester/25P4/harmony/react_native_openharmony-6.0.0.202.har"
|
|
12
|
-
},
|
|
13
|
-
"packages": {
|
|
14
|
-
"@ppd/ffrt@1.1.5": {
|
|
15
|
-
"name": "@ppd/ffrt",
|
|
16
|
-
"version": "1.1.5",
|
|
17
|
-
"integrity": "sha512-MbXdRqeNHQQv4ALTGdosvOCQI+xH8nt0+E2/aFLS4UuGJ5541MAeenRCDOrgIG05k7SnSJ4WngsCfjj3FbTCQg==",
|
|
18
|
-
"resolved": "https://ohpm.openharmony.cn/ohpm/@ppd/ffrt/-/ffrt-1.1.5.har",
|
|
19
|
-
"registryType": "ohpm"
|
|
20
|
-
},
|
|
21
|
-
"@rnoh/react-native-openharmony@../../../../tester/25P4/harmony/react_native_openharmony-6.0.0.202.har": {
|
|
22
|
-
"name": "@rnoh/react-native-openharmony",
|
|
23
|
-
"version": "0.77.56",
|
|
24
|
-
"resolved": "../../../../tester/25P4/harmony/react_native_openharmony-6.0.0.202.har",
|
|
25
|
-
"registryType": "local",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@ppd/ffrt": "1.1.5"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
File without changes
|