Skip to content

Commit

Permalink
android: set npm_gyp_path_to_use (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
okhiroyuki authored Oct 28, 2023
1 parent 1ce509c commit 6201f31
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,7 @@ cdvPluginPostBuildExtras += { ->
description = "Building native modules for ${abi_name}."
workingDir "${rootProject.buildDir}/nodejs-native-assets-temp-build/nodejs-native-assets-${abi_name}/nodejs-project/"

String npm_gyp_path_to_use; // Check common paths for nodejs-mobile-gyp
if ( file("${project.projectDir}/../../nodejs-mobile-gyp/bin/node-gyp.js").exists() ) {
npm_gyp_path_to_use = "${project.projectDir}/../../nodejs-mobile-gyp/bin/node-gyp.js";
} else {
npm_gyp_path_to_use = "${project.projectDir}/../node_modules/nodejs-mobile-gyp/bin/node-gyp.js";
}
String npm_gyp_path_to_use = "${workingDir}/node_modules/nodejs-mobile-gyp/bin/node-gyp.js"

environment ('npm_config_node_engine', 'v8' )
environment ('npm_config_nodedir', "${project.projectDir}/libs/cdvnodejsmobile/libnode/" )
Expand Down

0 comments on commit 6201f31

Please sign in to comment.