mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
start real device by ./run-osx.sh real
Former-commit-id: f63e033e1840e3c97463dda4f330183dae61a3d6
This commit is contained in:
parent
5a2f28b940
commit
c3d45f10c7
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,6 +27,7 @@ project.xcworkspace
|
||||
.idea
|
||||
.gradle
|
||||
local.properties
|
||||
syng-im.iml
|
||||
|
||||
# node.js
|
||||
#
|
||||
|
17
run-osx.sh
17
run-osx.sh
@ -28,15 +28,24 @@ function tab () {
|
||||
EOF
|
||||
}
|
||||
|
||||
if [ ! -z $1 ]
|
||||
then
|
||||
device_type="$1"
|
||||
else
|
||||
device_type="genymotion"
|
||||
fi
|
||||
|
||||
if [ "$device_type" = "genymotion" ]
|
||||
then
|
||||
# Find Device based on Android version 6.0.0
|
||||
device=$(/Applications/Genymotion\ Shell.app/Contents/MacOS/genyshell -c "devices list" | grep "6.0.0")
|
||||
|
||||
echo ${device##*| }
|
||||
#echo ${device##*| }
|
||||
# Launch device in Genymotion
|
||||
open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name "${device##*| }"
|
||||
fi
|
||||
|
||||
# Install deps, prepare for genymotion and figwheel
|
||||
re-natal deps && re-natal use-android-device genymotion && re-natal use-figwheel
|
||||
re-natal deps && re-natal use-android-device "${device_type}" && re-natal use-figwheel
|
||||
|
||||
# open figwheel in new tab
|
||||
tab "lein figwheel android"
|
||||
@ -49,4 +58,4 @@ sleep 10s
|
||||
|
||||
adb reverse tcp:8081 tcp:8081 && adb reverse tcp:3449 tcp:3449
|
||||
|
||||
react-native run-android
|
||||
react-native run-android
|
||||
|
Loading…
x
Reference in New Issue
Block a user