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
[screengrab] general improvements, removed deprecated and un-needed code #18003
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@joshdholtz could you review this please? I will resolve merge conflicts right now. |
@penn5 Reviewing this today and working on getting screengrab in maven! |
IIRC (I haven't looked for ages) I added an alternative bintray plugin in this PR. That is obviously useless so feel free to nuke it from my branch (you should have write access) (or you can just deal with maven afterwards) Thanks for the review! |
@penn5 Just wanted to say I'm still working on this one! I wanted to get screengrab added to Maven Central which... took me an embarrassing amount of time to actually figure out 🤦♂️But... I have a PR that I'm merging in that makes it easy for me to upload new screengrab versions - #18672 So... once I fully review and test this PR, I will be able to upload it to Maven Central right away 🥳 |
🤔 |
There are a few issues to iron out (I don't know who introduced them, but I didn't spot them last time): |
Aaaand I just got a deadlock in the example test suite. It's pretty rare, so I'll ignore it :P |
Don't recheck the external storage paths all the time
@joshdholtz ping (in case requesting review doesn't ping, idk how github works) |
@penn5 Ah, thank you for ping! I should get a notification of review request but did not see it if it did come through 😬 Will look at this today! |
screengrab/example/src/androidTest/java/tools/fastlane/localetester/JUnit4StyleTests.java
Outdated
Show resolved
Hide resolved
...ab/screengrab-lib/src/main/java/tools.fastlane.screengrab/FileWritingScreenshotCallback.java
Show resolved
Hide resolved
@joshdholtz if you have no more issues with this, your changes LGTM, barring potential syntax errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I think this is good now! Thank you soooo much for working on this and bearing with me while I was testing it 😊 I'll get the new version of screen grab pushed to maven central right away!
Hey @penn5 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
@penn5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 This was released as part of fastlane 2.187.0 🚀
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
Currently, screengrab does not work on many devices, including Android 11 (due to scoped storage). Plus, many dependencies are outdated, and internal API hacks are (ab)used.
This PR fixes all the issues I could find.
Description
I wrote unit tests and tested on my app, as well as the sample app
Testing Steps
cd screengrab/example && bundler exec fastlane build_and_screengrab