mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-20 02:18:26 +00:00
Get correct path to adb from Android Studio
If adb really isn't found (unsure what conditions would cause that to happen), then `false` will be called which will result in that warning message being displayed instead. Fixes #351
This commit is contained in:
parent
d62f78050e
commit
e2d1bc4520
@ -17,7 +17,8 @@ allprojects {
|
|||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
task forwardDebugPort(type: Exec) {
|
task forwardDebugPort(type: Exec) {
|
||||||
commandLine 'adb', 'forward', 'tcp:8082', 'tcp:8082'
|
def adb = android.getAdbExe()?.toString() ?: 'false'
|
||||||
|
commandLine adb, 'forward', 'tcp:8082', 'tcp:8082'
|
||||||
ignoreExitValue true
|
ignoreExitValue true
|
||||||
doLast {
|
doLast {
|
||||||
if (execResult.getExitValue() != 0) {
|
if (execResult.getExitValue() != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user