@react-native-ohos/cookies 6.3.0-rc.2 → 6.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Use these variables when you tailor your ArkTS code. They must be of the const type.
3
3
  */
4
- export const HAR_VERSION = '6.3.0-rc.2';
4
+ export const HAR_VERSION = '6.4.0-beta.1';
5
5
  export const BUILD_MODE_NAME = 'debug';
6
6
  export const DEBUG = true;
7
7
  export const TARGET_NAME = 'default';
@@ -9,9 +9,9 @@ export const TARGET_NAME = 'default';
9
9
  /**
10
10
  * BuildProfile Class is used only for compatibility purposes.
11
11
  */
12
- export default class BuildProfile {
12
+ export default class BuildProfile {
13
13
  static readonly HAR_VERSION = HAR_VERSION;
14
14
  static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
15
15
  static readonly DEBUG = DEBUG;
16
16
  static readonly TARGET_NAME = TARGET_NAME;
17
- }
17
+ }
@@ -1 +1,4 @@
1
- export * from './ts'
1
+ import { CookiesPackage } from './ts'
2
+
3
+ export * from './ts'
4
+ export default CookiesPackage
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/cookies",
3
- "version": "6.3.0-rc.2",
3
+ "version": "6.4.0-beta.1",
4
4
  "description": "Please describe the basic information.",
5
5
  "main": "Index.ets",
6
6
  "author": "",
@@ -5,7 +5,7 @@
5
5
  import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/ts';
6
6
  import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';
7
7
  import { CookiesModule } from './CookiesModule';
8
-
8
+ import { RNOHPackage } from '@rnoh/react-native-openharmony'
9
9
  class CookiesModulesFactory extends TurboModulesFactory {
10
10
  createTurboModule(name: string): TurboModule | null {
11
11
  if (name === 'RTNCookies') {
@@ -19,7 +19,7 @@ class CookiesModulesFactory extends TurboModulesFactory {
19
19
  }
20
20
  }
21
21
 
22
- export class CookiesPackage extends RNPackage {
22
+ export class CookiesPackage extends RNOHPackage {
23
23
  createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
24
24
  return new CookiesModulesFactory(ctx);
25
25
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/cookies",
3
- "version": "6.3.0-rc.2",
3
+ "version": "6.4.0-beta.1",
4
4
  "description": "Cookie Manager for React Native",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,6 +50,12 @@
50
50
  "react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27"
51
51
  },
52
52
  "harmony": {
53
- "alias": "@react-native-cookies/cookies"
53
+ "alias": "@react-native-cookies/cookies",
54
+ "autolinking": {
55
+ "etsPackageClassName":"CookiesPackage",
56
+ "cppPackageClassName":"CookiesPackage",
57
+ "cmakeLibraryTargetName": "rnoh_cookies",
58
+ "ohPackageName": "@react-native-ohos/cookies"
59
+ }
54
60
  }
55
- }
61
+ }
File without changes