Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Fix yarn dev command for running android #1534

Merged
merged 5 commits into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Execute the following (and make sure the lines are in your `~/.bash_profile`):
```bash
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_NDK=/usr/local/share/android-ndk
# Optional to speedup java builds
export GRADLE_OPTS='-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError"'
```

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build:metro": "echo 'NOT WORKING RIGHT NOW'",
"build:gen-graphql-types": "gql-gen --schema http://localhost:8080/graphql --template graphql-codegen-typescript-template --out ./typings/ 'src/**/*.tsx'",
"predev": "./scripts/pre-dev.sh",
"dev": "react-native run-android --appIdSuffix \"debug\"",
"dev": "react-native run-android --appIdSuffix \"debug\" --no-packager && react-native start",
"dev:show-menu": "adb devices | grep '\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} adb -s {} shell input keyevent 82",
"dev:clear-data": "adb shell pm clear org.celo.mobile.debug",
"dev:clean-android": "cd android && ./gradlew clean",
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/scripts/unlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ adb wait-for-device shell \
'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'


echo "locksettings set-pin 123456" | adb shell
echo "locksettings set-pin 123456" | adb shell || true

sleep 1
echo "Device is done booting"
Expand Down