@react-native-ohos/react-native-sensors 7.2.2-rc.2 → 7.2.3-rc.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.
@@ -0,0 +1,11 @@
1
+ [
2
+ {
3
+ "Name": "react-native-sensors",
4
+ "License": "MIT License",
5
+ "License File": "https://github.com/react-native-sensors/react-native-sensors/blob/master/LICENSE",
6
+ "Version Number": "7.2.1-rc.2",
7
+ "Owner" : "xiafeng@huawei.com",
8
+ "Upstream URL": "https://github.com/react-native-sensors/react-native-sensors",
9
+ "Description": "A developer friendly approach for sensors in React Native"
10
+ }
11
+ ]
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @react-native-ohos/react-native-sensors
2
2
 
3
- This project is based on [react-native-sensors](https://github.com/react-native-sensors/react-native-sensors/tree/v7.2.1-rc.2)
3
+ This project is based on [react-native-sensors](https://github.com/react-native-sensors/react-native-sensors/tree/v7.2.1-rc.2)@7.3.6
4
4
 
5
5
  ## Documentation
6
6
 
@@ -10,4 +10,4 @@ This project is based on [react-native-sensors](https://github.com/react-native-
10
10
 
11
11
  ## License
12
12
 
13
- This project is licensed under [The MIT License (MIT)](https://github.com/react-native-sensors/react-native-sensors/blob/master/LICENSE), Please enjoy and participate
13
+ This project is licensed under [The MIT License (MIT)](https://gitcode.com/openharmony-sig/rntpc_react-native-sensors/blob/master/LICENSE), Please enjoy and participate
@@ -12,5 +12,7 @@
12
12
  * See the License for the specific language governing permissions and
13
13
  * limitations under the License.
14
14
  */
15
-
16
- export * from './ts'
15
+
16
+ import { SensorsPackage } from './src/main/ets/SensorsPackage.ets'
17
+ export * from './ts.ets'
18
+ export default SensorsPackage;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  name: "@react-native-ohos/react-native-sensors",
3
- version: "7.2.2-rc.2",
3
+ version: "7.2.3-rc.1",
4
4
  description: "Please describe the basic information.",
5
5
  main: "Index.ets",
6
6
  author: "",
@@ -16,6 +16,7 @@
16
16
  import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/ts';
17
17
  import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';
18
18
  import { RTNSensorsTurboModule } from './RTNSensorsTurboModule';
19
+ import { RNOHPackage } from '@rnoh/react-native-openharmony';
19
20
 
20
21
  class SensorsModulesFactory extends TurboModulesFactory {
21
22
  createTurboModule(name: string): TurboModule | null {
@@ -30,7 +31,7 @@ class SensorsModulesFactory extends TurboModulesFactory {
30
31
  }
31
32
  }
32
33
 
33
- export class SensorsPackage extends RNPackage {
34
+ export class SensorsPackage extends RNOHPackage {
34
35
  createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
35
36
  return new SensorsModulesFactory(ctx);
36
37
  }
@@ -14,4 +14,4 @@
14
14
  */
15
15
 
16
16
  export * from './src/main/ets/RTNSensorsTurboModule'
17
- export * from './src/main/ets/SensorsPackage'
17
+ export * from './src/main/ets/SensorsPackage.ets'
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-sensors",
3
- "version": "7.2.2-rc.2",
3
+ "version": "7.2.3-rc.1",
4
4
  "description": "A developer friendly approach for sensors in react-native",
5
5
  "scripts": {
6
6
  "contributor:add": "all-contributors add",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "types": "index.d.ts",
18
- "repository": "git@github.com:react-native-sensors/react-native-sensors.git",
19
- "homepage": "https://github.com/react-native-sensors/react-native-sensors",
18
+ "repository": "https://gitcode.com/openharmony-sig/rntpc_react-native-sensors.git",
19
+ "homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-sensors.git",
20
20
  "keywords": [
21
21
  "react-native",
22
22
  "harmony"
@@ -54,12 +54,10 @@
54
54
  "rxjs": ">= 6"
55
55
  },
56
56
  "devDependencies": {
57
- "all-contributors-cli": "6.1.2",
58
57
  "babel-core": "6.26.3",
59
58
  "babel-jest": "24.1.0",
60
59
  "babel-preset-react-native": "4.0.0",
61
60
  "husky": "4.2.3",
62
- "jest": "24.1.0",
63
61
  "metro-config": "^0.67.0",
64
62
  "prettier": "2.2.1",
65
63
  "pretty-quick": "3.1.0",
@@ -67,12 +65,16 @@
67
65
  "react-native": "^0.68.0",
68
66
  "regenerator-runtime": "0.13.1",
69
67
  "rxjs-marbles": "5.0.0",
70
- "semantic-release": "17.3.9",
71
- "react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27",
72
- "travis-deploy-once": "5.0.11"
68
+ "react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27"
73
69
  },
74
70
  "harmony": {
75
- "alias": "react-native-sensors"
71
+ "alias": "react-native-sensors",
72
+ "autolinking": {
73
+ "etsPackageClassName": "SensorsPackage",
74
+ "cppPackageClassName": "SensorsPackage",
75
+ "cmakeLibraryTargetName": "rnoh_sensors",
76
+ "ohPackageName": "@react-native-ohos/react-native-sensors"
77
+ }
76
78
  },
77
79
  "files": [
78
80
  "src",