Skip to content

Commit a20dda4

Browse files
committed
Read libraryPath from entry
1 parent ac9594e commit a20dda4

File tree

1 file changed

+1
-2
lines changed
  • packages/react-native-node-api-modules/src/node/prebuilds

1 file changed

+1
-2
lines changed

packages/react-native-node-api-modules/src/node/prebuilds/android.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export async function createAndroidLibsDirectory({
4444
// Delete and recreate any existing output directory
4545
await fs.promises.rm(outputPath, { recursive: true, force: true });
4646
await fs.promises.mkdir(outputPath, { recursive: true });
47-
for (const [triplet] of Object.entries(libraryPathByTriplet)) {
48-
const libraryPath = libraryPathByTriplet[triplet as AndroidTriplet];
47+
for (const [triplet, libraryPath] of Object.entries(libraryPathByTriplet)) {
4948
assert(
5049
fs.existsSync(libraryPath),
5150
`Library not found: ${libraryPath} for triplet ${triplet}`

0 commit comments

Comments
 (0)