Skip to content

Commit d9a600f

Browse files
committed
Temporary work-around deep-referencing into weak-node-api
1 parent 43863ce commit d9a600f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/host/android/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ find_package(hermes-engine REQUIRED CONFIG)
88

99
add_library(weak-node-api INTERFACE)
1010
target_include_directories(weak-node-api INTERFACE
11-
../weak-node-api
12-
../weak-node-api/include
11+
../../weak-node-api/generated
12+
../../weak-node-api/include
1313
)
1414

1515
add_library(node-api-host SHARED

packages/host/android/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ android {
6161
sourceSets {
6262
main {
6363
manifest.srcFile "src/main/AndroidManifestNew.xml"
64-
// Include the weak-node-api to enable a dynamic load
65-
jniLibs.srcDirs += ["../weak-node-api/weak-node-api.android.node"]
64+
// Include the weak-node-api native libraries directly
65+
jniLibs.srcDirs += [
66+
"../../weak-node-api/build/Debug/weak-node-api.android.node",
67+
"../../weak-node-api/build/Release/weak-node-api.android.node"
68+
]
6669
}
6770
}
6871
}

0 commit comments

Comments
 (0)