-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Android π€Anything related to the Android platform (Gradle, NDK, Android SDK)Anything related to the Android platform (Gradle, NDK, Android SDK)Linking πDiscovering and copying prebuilds from packages into the hostDiscovering and copying prebuilds from packages into the host
Description
When we're auto-linking prebuilds for Android, we have an opportunity fail early by passing the arch(s) being built and fail if a specific prebuilt binary is missing.
If we're not failing and the binary is missing, it will simply fail to load at runtime instead.
Somewhere around here:
react-native-node-api/packages/host/android/build.gradle
Lines 136 to 149 in 5c67f90
task linkNodeApiModules { | |
doLast { | |
exec { | |
// TODO: Support --strip-path-suffix | |
commandLine 'npx', 'react-native-node-api', 'link', '--android', rootProject.rootDir.absolutePath | |
standardOutput = System.out | |
errorOutput = System.err | |
// Enable color output | |
environment "FORCE_COLOR", "1" | |
} | |
android.sourceSets.main.jniLibs.srcDirs += file("../auto-linked/android").listFiles() | |
} | |
} |
Metadata
Metadata
Assignees
Labels
Android π€Anything related to the Android platform (Gradle, NDK, Android SDK)Anything related to the Android platform (Gradle, NDK, Android SDK)Linking πDiscovering and copying prebuilds from packages into the hostDiscovering and copying prebuilds from packages into the host