Skip to content

Commit

Permalink
Nodeify tweaks for compiling Android
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Nov 20, 2021
1 parent d8fb236 commit b609a3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ task hemroidBuild(type: Exec) {
executable execPath
}

task nodeify(type:Exec) {
commandLine '../../node_modules/.bin/rn-nodeify --install "crypto,stream" --hack'
}

hemroidBuild.dependsOn nodeify
preBuild.dependsOn hemroidBuild

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"app:watch": "shadow-cljs watch android",
"app:packager": "react-native start --host 0.0.0.0 --port 8081",
"app:android": "react-native run-android",
"postinstall": "rn-nodeify --install \"crypto,stream\" --hack"
"postinstall": "node_modules/.bin/rn-nodeify --install \"crypto,stream\" --hack"
},
"dependencies": {
"@react-native-community/async-storage": "^1.11.0",
Expand Down

0 comments on commit b609a3f

Please sign in to comment.