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

Multiple flavours wrong pull directory #88

Closed
ptrudec opened this issue Mar 7, 2019 · 2 comments · Fixed by #99
Closed

Multiple flavours wrong pull directory #88

ptrudec opened this issue Mar 7, 2019 · 2 comments · Fixed by #99

Comments

@ptrudec
Copy link

ptrudec commented Mar 7, 2019

I have two flavours of app: main and chain. Main has applicationId = "com.domain.app" and Chain has applicationId = "com.domain.app.chain" . When i try to pull tapes it pulls from /sdcard/okreplay/tapes/com.domain.app.chain.test/ and when i comment Chain flavour in gradle it pulls from /sdcard/okreplay/tapes/com.domain.app.test/ like it should be. Also folder on sd card is named com.domain.app.chain.test no matter if Chain is commented or not in gradle. Does this library has support for multiple flavours?

@slott
Copy link

slott commented Jan 20, 2020

I can recall this worked prior to version 1.5 - so for now I'm having a custom task to pull the tapes...

@slott
Copy link

slott commented Jan 20, 2020

Here is a little bash script that will do the work

#!/bin/bash
TAPE_PATH=/sdcard/okreplay/tapes/<applicationId>

CURRENT_DIR=`pwd`
echo $CURRENT_DIR
# This is where we want the tapes to be dumped
cd "app/src/androidTest/assets/tapes"
for d in `adb shell ls ${TAPE_PATH}`; do
    adb pull ${TAPE_PATH}/${d}
done
cd $CURRENT_DIR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants