Skip to content

Commit 71ffd48

Browse files
committed
修复原生模块注册问题,确保HTTP服务器和RPA服务正常工作
1 parent f06f81f commit 71ffd48

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

auto-rpa-app/android/app/src/main/java/com/rpaapp/MainApplication.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class MainApplication : Application(), ReactApplication {
1919
// Packages that cannot be autolinked yet can be added manually here, for example:
2020
// add(MyReactNativePackage())
2121
// TODO: Add HttpServerReactPackage when dependency issues are resolved
22+
add(RPAServicePackage())
2223
}
2324

2425
override fun getJSMainModuleName(): String = "index"

auto-rpa-app/react-native.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ module.exports = {
22
dependencies: {
33
'react-native-http-bridge': {
44
platforms: {
5-
android: null, // disable Android platform auto linking
5+
android: {
6+
sourceDir: '../node_modules/react-native-http-bridge/android/',
7+
packageImportPath: 'import me.alwx.HttpServer.HttpServerReactPackage;',
8+
},
69
},
710
},
811
},

0 commit comments

Comments
 (0)