-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Feature request] Can Appium espresso server apk be build without starting the Appium server? #851
Comments
Sounds good. Let me try to prepare something subcommand to build an espresso server like https://github.com/appium/appium-xcuitest-driver/blob/master/package.json#L34-L35 |
Still wip, but adding like.... https://github.com/appium/appium-espresso-driver/compare/master...KazuCocoa:appium-espresso-driver:kazucocoa/espresso-server-build?expand=1 |
I'd like to use this for running Espresso automation with a cloud service. I pulled down the change and ran the script. It did build the apk, but executing tests using the built server did not work due to missing grade build dependencies. How can I execute the |
@pr4bh4sh As a workaround, you can try this.... worked for me for now.
I understand this doesn't totally solve your issue of getting the apk without needing to start the Appium server and create a session, but its a couple less steps than your current solution. |
Thanks, @jamesvanhorn The simplified steps work fine. The extra step is done to ensure that it picks the local change when making changes in the espresso driver apk. |
@KazuCocoa just checking if you got a chance to look into this feature. |
I did some other appum stuff, which needs fixes, but I do not forget this |
The PR #858 is ready. |
2.18.0+ will have https://github.com/appium/appium-espresso-driver#scripts Currently, it supports gradle log, app package customization and espresso build config. https://github.com/appium/appium-espresso-driver/blob/master/scripts/build-espresso.js is the change, so feel free to create a pr to add your necessary configs. Basically only environment variables can give |
@KazuCocoa Not sure if I should create a new issue or this can be address here, Let me know I'll create a new issue if needed. I can't run the new build-espresso script, I used the instructions from https://github.com/appium/appium-espresso-driver#scripts
|
What about 2.18.1? The command had |
Works with 2.18.1, Thanks for fixing it @KazuCocoa. The issue can be closed now. I'll raise a PR if anything else is required. |
For future visitors' reference: The command introduced in this PR builds the espresso apk without signing it. Use apksigner to sign the espresso server after it is created, rather than trying to pass keys to this command. As this command will log your key and password in the logs. Sign the apk locally on your machine or if you are using CI use secret env vars so your key and password are not exposed in the logs. |
Can you give an example of how to use apksigner? Not something I have experience with and I’m unsure of the difficulty involved here. |
https://developer.android.com/studio/command-line/apksigner Example:
|
I'm trying to find a stand-alone command to build the appium espresso server apk.
Currently, to build a server apk I use the below step.
./gradlew clean assembleDebug assembleAndroidTest
insideappium-espresso-driver/espresso-server
directory.npm install && npm link
inappium-espresso-driver
directory.I saw this Gradle command in the appium server log while creating the server apk
Is there a command option where the capability can be passed as a command line argument?
or possibly a node js command line tool to build the appium espresso server which accepts the keystore details, espressoBuildConfig and builds the apk file.
cc @KazuCocoa
The text was updated successfully, but these errors were encountered: