diff --git a/app/README.md b/app/README.md index 21075df1f..b058974bb 100644 --- a/app/README.md +++ b/app/README.md @@ -3,8 +3,10 @@ ### Requirements Install `nodejs v18`, [circom](https://docs.circom.io/) and [snarkjs](https://github.com/iden3/snarkjs) -For android, install java and the android sdk -For ios, install [cocoapods](https://cocoapods.org/) + +For android, install java, android studio and the android sdk + +For ios, install Xcode and [cocoapods](https://cocoapods.org/) ### Installation @@ -58,8 +60,10 @@ yarn start ``` Then press `a` for android or `i` for iOS -If you want to see the logs and have a better ios developer exprience, open `/ios` in Xcode and launch the app from there instead -To see the android logs you'll have to use the Android Studio Logcat +If you want to see the logs and have a better ios developer experience, open `/ios` in Xcode and launch the app from there instead. +Currently, proof generation seems to fail sometimes with the react native server, so prefer using Xcode instead. + +To see the android logs you'll have to use the Android Studio Logcat. To export an apk: ``` diff --git a/app/scripts/build_android_module.sh b/app/scripts/build_android_module.sh index e79cf0a39..3e72789df 100755 --- a/app/scripts/build_android_module.sh +++ b/app/scripts/build_android_module.sh @@ -1,5 +1,6 @@ +mkdir -p ark-circom-passport/passport cp ../circuits/build/proof_of_passport_final.zkey ark-circom-passport/passport/ -echo "proof_of_passport_final.zkey to ark-circom-passport" +echo "copied proof_of_passport_final.zkey to ark-circom-passport" ARCHITECTURE="aarch64-linux-android" diff --git a/app/scripts/download_current_zkey.sh b/app/scripts/download_current_zkey.sh index 1190719ba..9d4f17be4 100755 --- a/app/scripts/download_current_zkey.sh +++ b/app/scripts/download_current_zkey.sh @@ -1,3 +1,4 @@ +mkdir -p ../circuits/build cd ../circuits/build wget https://current-pop-zkey.s3.eu-north-1.amazonaws.com/proof_of_passport_final.zkey # ios cd ../../app \ No newline at end of file