@react-native-ohos/react-native-mail 6.1.2-rc.1 → 6.1.2-rc.2

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.
Files changed (27) hide show
  1. package/README.md +1 -1
  2. package/harmony/mail/index.ets +2 -1
  3. package/harmony/mail/oh-package-lock.json5 +18 -0
  4. package/harmony/mail/oh-package.json5 +1 -1
  5. package/harmony/mail/src/main/cpp/CMakeLists.txt +1 -1
  6. package/harmony/mail/src/main/cpp/MailPackage.h +24 -7
  7. package/harmony/mail/src/main/cpp/generated/RNOH/generated/BaseReactNativeMailPackage.h +65 -72
  8. package/harmony/mail/src/main/cpp/generated/RNOH/generated/turbo_modules/RNMail.cpp +16 -16
  9. package/harmony/mail/src/main/cpp/generated/RNOH/generated/turbo_modules/RNMail.h +16 -16
  10. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/ComponentDescriptors.h +22 -24
  11. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/EventEmitters.cpp +18 -16
  12. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/EventEmitters.h +19 -17
  13. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/Props.cpp +21 -19
  14. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/Props.h +20 -18
  15. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/ShadowNodes.cpp +19 -17
  16. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/ShadowNodes.h +25 -23
  17. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/States.cpp +18 -16
  18. package/harmony/mail/src/main/cpp/generated/react/renderer/components/react_native_mail/States.h +23 -19
  19. package/harmony/mail/src/main/ets/{RNMailPackge.ts → RNMailPackge.ets} +2 -2
  20. package/harmony/mail/src/main/ets/generated/components/ts.ts +5 -5
  21. package/harmony/mail/src/main/ets/generated/index.ets +5 -5
  22. package/harmony/mail/src/main/ets/generated/ts.ts +6 -6
  23. package/harmony/mail/src/main/ets/generated/turboModules/RNMail.ts +16 -16
  24. package/harmony/mail/src/main/ets/generated/turboModules/ts.ts +5 -5
  25. package/harmony/mail.har +0 -0
  26. package/package.json +18 -8
  27. /package/harmony/mail/{ts.ts → ts.ets} +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @react-native-ohos/react-native-mail
2
2
 
3
- This project is based on [react-native-mail](https://github.com/chirag04/react-native-mail)
3
+ This project is based on [react-native-mail@6.1.1](https://github.com/chirag04/react-native-mail/tree/v6.1.1)
4
4
 
5
5
  ## Documentation
6
6
 
@@ -3,5 +3,6 @@
3
3
  * Use of this source code is governed by a MIT license that can be
4
4
  * found in the LICENSE file.
5
5
  */
6
-
6
+ import {RNMailPackage as MailPackage } from "./src/main/ets/RNMailPackge";
7
7
  export * from './ts';
8
+ export default MailPackage
@@ -0,0 +1,18 @@
1
+ {
2
+ "meta": {
3
+ "stableOrder": true
4
+ },
5
+ "lockfileVersion": 3,
6
+ "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
7
+ "specifiers": {
8
+ "@rnoh/react-native-openharmony@../react_native_openharmony": "@rnoh/react-native-openharmony@../react_native_openharmony"
9
+ },
10
+ "packages": {
11
+ "@rnoh/react-native-openharmony@../react_native_openharmony": {
12
+ "name": "@rnoh/react-native-openharmony",
13
+ "version": "0.72.27",
14
+ "resolved": "../react_native_openharmony",
15
+ "registryType": "local"
16
+ }
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-mail",
3
- "version": "6.1.2-rc.1",
3
+ "version": "6.1.2-rc.2",
4
4
  "description": "",
5
5
  "main": "index.ets",
6
6
  "author": "",
@@ -5,5 +5,5 @@ set(rnoh_mail_generated_dir "${CMAKE_CURRENT_SOURCE_DIR}/generated")
5
5
  file(GLOB_RECURSE rnoh_mail_generated_SRC "${rnoh_mail_generated_dir}/**/*.cpp")
6
6
  file(GLOB rnoh_mail_SRC CONFIGURE_DEPENDS *.cpp)
7
7
  add_library(rnoh_mail SHARED ${rnoh_mail_SRC} ${rnoh_mail_generated_SRC})
8
- target_include_directories(rnoh_mail PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${rnoh_mail_generated_dir} ${CMAKE_CURRENT_SOURCE_DIR}/generated/RNOH/generated)
8
+ target_include_directories(rnoh_mail PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${rnoh_mail_generated_dir})
9
9
  target_link_libraries(rnoh_mail PUBLIC rnoh)
@@ -1,19 +1,36 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
2
- // Use of this source code is governed by a MIT license that can be
3
- // found in the LICENSE file.
4
-
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
5
24
  #ifndef MAILPACKAGE_H
6
25
  #define MAILPACKAGE_H
7
26
 
8
-
9
27
  #include "generated/RNOH/generated/BaseReactNativeMailPackage.h"
10
28
  #pragma once
11
29
 
12
-
13
30
  namespace rnoh {
14
31
  class MailPackage : public BaseReactNativeMailPackage {
15
32
  using Super = BaseReactNativeMailPackage;
16
33
  using Super::Super;
17
34
  };
18
35
  } // namespace rnoh
19
- #endif //MAILPACKAGE_H
36
+ #endif // MAILPACKAGE_H
@@ -1,72 +1,65 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- #pragma once
6
-
7
- #include "RNOH/Package.h"
8
- #include "RNOH/ArkTSTurboModule.h"
9
- #include "RNOH/generated/turbo_modules/RNMail.h"
10
-
11
- namespace rnoh {
12
-
13
- class BaseReactNativeMailPackageTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
14
- public:
15
- SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
16
- if (name == "RNMail") {
17
- return std::make_shared<RNMail>(ctx, name);
18
- }
19
- return nullptr;
20
- };
21
- };
22
-
23
- class BaseReactNativeMailPackageEventEmitRequestHandler : public EventEmitRequestHandler {
24
- public:
25
- void handleEvent(Context const &ctx) override {
26
- auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
27
- auto componentName = ctx.shadowViewRegistry->getComponentName(ctx.tag);
28
-
29
- if (eventEmitter == nullptr) {
30
- return;
31
- }
32
-
33
- std::vector<std::string> supportedComponentNames = {
34
- };
35
-
36
- std::vector<std::string> supportedEventNames = {
37
- };
38
-
39
- if (std::find(supportedComponentNames.begin(), supportedComponentNames.end(), componentName) != supportedComponentNames.end() &&
40
- std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
41
- eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
42
- }
43
- }
44
- };
45
-
46
-
47
- class BaseReactNativeMailPackage : public Package {
48
- public:
49
- BaseReactNativeMailPackage(Package::Context ctx) : Package(ctx){};
50
-
51
- std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
52
- return std::make_unique<BaseReactNativeMailPackageTurboModuleFactoryDelegate>();
53
- }
54
-
55
- std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
56
- return {
57
- };
58
- }
59
-
60
- ComponentJSIBinderByString createComponentJSIBinderByName() override {
61
- return {
62
- };
63
- };
64
-
65
- EventEmitRequestHandlers createEventEmitRequestHandlers() override {
66
- return {
67
- std::make_shared<BaseReactNativeMailPackageEventEmitRequestHandler>(),
68
- };
69
- }
70
- };
71
-
72
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #pragma once
6
+
7
+ #include "RNOH/Package.h"
8
+ #include "RNOH/ArkTSTurboModule.h"
9
+ #include "RNOH/generated/turbo_modules/RNMail.h"
10
+
11
+ namespace rnoh {
12
+
13
+ class BaseReactNativeMailPackageTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
14
+ public:
15
+ SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
16
+ if (name == "RNMail") {
17
+ return std::make_shared<RNMail>(ctx, name);
18
+ }
19
+ return nullptr;
20
+ };
21
+ };
22
+
23
+ class BaseReactNativeMailPackageEventEmitRequestHandler : public EventEmitRequestHandler {
24
+ public:
25
+ void handleEvent(Context const &ctx) override {
26
+ auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
27
+ if (eventEmitter == nullptr) {
28
+ return;
29
+ }
30
+
31
+ std::vector<std::string> supportedEventNames = {
32
+ };
33
+ if (std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
34
+ eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
35
+ }
36
+ }
37
+ };
38
+
39
+
40
+ class BaseReactNativeMailPackage : public Package {
41
+ public:
42
+ BaseReactNativeMailPackage(Package::Context ctx) : Package(ctx){};
43
+
44
+ std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
45
+ return std::make_unique<BaseReactNativeMailPackageTurboModuleFactoryDelegate>();
46
+ }
47
+
48
+ std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
49
+ return {
50
+ };
51
+ }
52
+
53
+ ComponentJSIBinderByString createComponentJSIBinderByName() override {
54
+ return {
55
+ };
56
+ };
57
+
58
+ EventEmitRequestHandlers createEventEmitRequestHandlers() override {
59
+ return {
60
+ std::make_shared<BaseReactNativeMailPackageEventEmitRequestHandler>(),
61
+ };
62
+ }
63
+ };
64
+
65
+ } // namespace rnoh
@@ -1,16 +1,16 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- #include "RNMail.h"
6
-
7
- namespace rnoh {
8
- using namespace facebook;
9
-
10
- RNMail::RNMail(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
11
- methodMap_ = {
12
- ARK_METHOD_METADATA(mail, 2),
13
- };
14
- }
15
-
16
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #include "RNMail.h"
6
+
7
+ namespace rnoh {
8
+ using namespace facebook;
9
+
10
+ RNMail::RNMail(const ArkTSTurboModule::Context ctx, const std::string name) : ArkTSTurboModule(ctx, name) {
11
+ methodMap_ = {
12
+ ARK_METHOD_METADATA(mail, 2),
13
+ };
14
+ }
15
+
16
+ } // namespace rnoh
@@ -1,16 +1,16 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- #pragma once
6
-
7
- #include "RNOH/ArkTSTurboModule.h"
8
-
9
- namespace rnoh {
10
-
11
- class JSI_EXPORT RNMail : public ArkTSTurboModule {
12
- public:
13
- RNMail(const ArkTSTurboModule::Context ctx, const std::string name);
14
- };
15
-
16
- } // namespace rnoh
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ #pragma once
6
+
7
+ #include "RNOH/ArkTSTurboModule.h"
8
+
9
+ namespace rnoh {
10
+
11
+ class JSI_EXPORT RNMail : public ArkTSTurboModule {
12
+ public:
13
+ RNMail(const ArkTSTurboModule::Context ctx, const std::string name);
14
+ };
15
+
16
+ } // namespace rnoh
@@ -1,24 +1,22 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "ShadowNodes.h"
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- void react_native_mail_registerComponentDescriptorsFromCodegen(
22
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
-
24
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <react/renderer/components/react_native_mail/ShadowNodes.h>
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+
16
+ namespace facebook {
17
+ namespace react {
18
+
19
+
20
+
21
+ } // namespace react
22
+ } // namespace facebook
@@ -1,16 +1,18 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include "EventEmitters.h"
12
-
13
-
14
- namespace facebook::react {
15
-
16
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_mail/EventEmitters.h>
12
+
13
+
14
+ namespace facebook {
15
+ namespace react {
16
+
17
+ } // namespace react
18
+ } // namespace facebook
@@ -1,17 +1,19 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
-
17
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateEventEmitterH.js
9
+ */
10
+ #pragma once
11
+
12
+ #include <react/renderer/components/view/ViewEventEmitter.h>
13
+
14
+
15
+ namespace facebook {
16
+ namespace react {
17
+
18
+ } // namespace react
19
+ } // namespace facebook
@@ -1,19 +1,21 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsCpp.js
9
- */
10
-
11
- #include "Props.h"
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_mail/Props.h>
12
+ #include <react/renderer/core/PropsParserContext.h>
13
+ #include <react/renderer/core/propsConversions.h>
14
+
15
+ namespace facebook {
16
+ namespace react {
17
+
18
+
19
+
20
+ } // namespace react
21
+ } // namespace facebook
@@ -1,18 +1,20 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
-
13
-
14
- namespace facebook::react {
15
-
16
-
17
-
18
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsH.js
9
+ */
10
+ #pragma once
11
+
12
+
13
+
14
+ namespace facebook {
15
+ namespace react {
16
+
17
+
18
+
19
+ } // namespace react
20
+ } // namespace facebook
@@ -1,17 +1,19 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeCpp.js
9
+ */
10
+
11
+ #include <react/renderer/components/react_native_mail/ShadowNodes.h>
12
+
13
+ namespace facebook {
14
+ namespace react {
15
+
16
+
17
+
18
+ } // namespace react
19
+ } // namespace facebook
@@ -1,23 +1,25 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
-
22
-
23
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateShadowNodeH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <react/renderer/components/react_native_mail/EventEmitters.h>
14
+ #include <react/renderer/components/react_native_mail/Props.h>
15
+ #include <react/renderer/components/react_native_mail/States.h>
16
+ #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
+ #include <jsi/jsi.h>
18
+
19
+ namespace facebook {
20
+ namespace react {
21
+
22
+
23
+
24
+ } // namespace react
25
+ } // namespace facebook
@@ -1,16 +1,18 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateStateCpp.js
9
+ */
10
+ #include <react/renderer/components/react_native_mail/States.h>
11
+
12
+ namespace facebook {
13
+ namespace react {
14
+
15
+
16
+
17
+ } // namespace react
18
+ } // namespace facebook
@@ -1,19 +1,23 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateStateH.js
8
+ */
9
+ #pragma once
10
+
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #include <react/renderer/mapbuffer/MapBuffer.h>
14
+ #include <react/renderer/mapbuffer/MapBufferBuilder.h>
15
+ #endif
16
+
17
+ namespace facebook {
18
+ namespace react {
19
+
20
+
21
+
22
+ } // namespace react
23
+ } // namespace facebook
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { RNPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony/ts';
25
+ import { RNOHPackage, TurboModulesFactory } from '@rnoh/react-native-openharmony';
26
26
  import type { TurboModule, TurboModuleContext, } from '@rnoh/react-native-openharmony/ts';
27
27
  import { TM } from "./generated/ts"
28
28
  import { RNMailTurboModule } from './RNMailTurboModule';
@@ -40,7 +40,7 @@ class RNMailTurboModulesFactory extends TurboModulesFactory {
40
40
  }
41
41
  }
42
42
 
43
- export class RNMailPackage extends RNPackage {
43
+ export class RNMailPackage extends RNOHPackage {
44
44
  createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
45
45
  return new RNMailTurboModulesFactory(ctx);
46
46
  }
@@ -1,5 +1,5 @@
1
-
2
- /**
3
- */
4
-
5
- export {}
1
+
2
+ /**
3
+ */
4
+
5
+ export {}
@@ -1,5 +1,5 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- export * from "./ts"
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ export * from "./ts"
@@ -1,6 +1,6 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- export * as RNC from "./components/ts"
6
- export * as TM from "./turboModules/ts"
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ export * as RNC from "./components/ts"
6
+ export * as TM from "./turboModules/ts"
@@ -1,16 +1,16 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- import { Tag } from "@rnoh/react-native-openharmony/ts"
6
-
7
- export namespace RNMail {
8
- export const NAME = 'RNMail' as const
9
-
10
- export type options = {subject?: string, recipients?: string[], ccRecipients?: string[], bccRecipients?: string[], body?: string, customChooserTitle?: string, isHTML?: boolean, attachments?: {path?: string, uri?: string, type?: string, mimeType?: string, name?: string}[]}
11
-
12
- export interface Spec {
13
- mail(option: options, callback: (error: string, event: string) => void): void;
14
-
15
- }
16
- }
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ import { Tag } from "@rnoh/react-native-openharmony/ts"
6
+
7
+ export namespace RNMail {
8
+ export const NAME = 'RNMail' as const
9
+
10
+ export type options = {subject?: string, recipients?: string[], ccRecipients?: string[], bccRecipients?: string[], body?: string, customChooserTitle?: string, isHTML?: boolean, attachments?: {path?: string, uri?: string, type?: string, mimeType?: string, name?: string}[]}
11
+
12
+ export interface Spec {
13
+ mail(option: options, callback: (error: string, event: string) => void): void;
14
+
15
+ }
16
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * This code was generated by "react-native codegen-lib-harmony"
3
- */
4
-
5
- export * from "./RNMail"
1
+ /**
2
+ * This code was generated by "react-native codegen-lib-harmony"
3
+ */
4
+
5
+ export * from "./RNMail"
package/harmony/mail.har CHANGED
Binary file
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-mail",
3
- "version": "6.1.2-rc.1",
3
+ "version": "6.1.2-rc.2",
4
4
  "description": "A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android and e-mail on harmony",
5
5
  "author": {
6
6
  "name": "Chirag Jain",
7
7
  "email": "jain_chirag04@yahoo.com",
8
8
  "url": "http://chiragjain.tumblr.com"
9
9
  },
10
- "license": "MIT",
11
10
  "scripts": {
12
- "codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-mail --cpp-output-path ./harmony/mail/src/main/cpp/generated --ets-output-path ./harmony/mail/src/main/ets/generated --turbo-modules-spec-paths ./src/NativeRNMail.harmonys.ts"
11
+ "codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-mail --cpp-output-path ./harmony/mail/src/main/cpp/generated --ets-output-path ./harmony/mail/src/main/ets/generated --turbo-modules-spec-paths ./src/NativeRNMail.harmonys.ts --arkts-components-spec-paths ./src"
13
12
  },
13
+ "license": "MIT",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "https://github.com/react-native-oh-library/react-native-mail.git"
@@ -26,7 +26,14 @@
26
26
  "index.d.ts"
27
27
  ],
28
28
  "harmony": {
29
- "alias": "react-native-mail"
29
+ "alias": "react-native-mail",
30
+ "autolinking": {
31
+ "etsPackageClassName":"MailPackage",
32
+ "cppPackageClassName":"MailPackage",
33
+ "cmakeLibraryTargetName": "rnoh_mail",
34
+ "ohPackageName": "@react-native-ohos/react-native-mail"
35
+ }
36
+
30
37
  },
31
38
  "keywords": [
32
39
  "react",
@@ -37,10 +44,13 @@
37
44
  "email",
38
45
  "MFMailComposeViewController"
39
46
  ],
40
- "dependencies": {
41
- "react-native-mail": "6.1.1"
42
- },
43
47
  "devDependencies": {
48
+ "metro": "0.82.5",
49
+ "memfs": "4.17.2",
50
+ "@react-native-community/cli": "11.4.1",
44
51
  "react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27"
52
+ },
53
+ "dependencies": {
54
+ "react-native-mail": "6.1.1"
45
55
  }
46
- }
56
+ }
File without changes