Skip to content

更新公仓配置 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified harmony/exception_handler.har
Binary file not shown.
7 changes: 1 addition & 6 deletions harmony/exception_handler/hvigorfile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import { harTasks } from '@ohos/hvigor-ohos-plugin';

export default {
system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
}
export { harTasks } from '@ohos/hvigor-ohos-plugin';
4 changes: 1 addition & 3 deletions harmony/exception_handler/src/main/module.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"name": "exception_handler",
"type": "har",
"deviceTypes": [
"default",
"tablet",
"2in1"
"default"
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-oh-tpl/react-native-exception-handler",
"version": "2.10.10-0.0.4",
"version": "2.10.10-0.0.5",
"description": "A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.",
"react-native": "src/index",
"source": "src/index",
Expand All @@ -18,6 +18,7 @@
"!android/build",
"ios",
"!ios/build",
"harmony/exception_handler",
"harmony/exception_handler.har",
"!harmony/build",
"!harmony/oh_modules",
Expand Down
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export const setNativeExceptionHandler = (handler = noop, forceAppQuit = true, e
}
if (Platform.OS === "ios") {
ExceptionHandlerTurboModule.setHandlerforNativeException(handler, executeDefaultHandler);
// @ts-ignore
} else if (Platform.OS === "harmony") {
ExceptionHandlerTurboModule.setHandlerforNativeException(handler, forceAppQuit, executeDefaultHandler);
} else {
ExceptionHandlerTurboModule.setHandlerforNativeException(handler, forceAppQuit, executeDefaultHandler);
}
Expand Down