-
Notifications
You must be signed in to change notification settings - Fork 319
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
Can't access new Bitmap.writeToTestStorage
API
#1139
Comments
Wow thanks for all the feedback. Clearly I should have written a gradle test before release. I'll answer the points one by one
|
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
- Generate kotlin_module files in locations matching maven artifact name, and ensure they are retained in produced .aar/classes.jar to ensure extension functions are recognized - Don't rename ListenableFuture in espresso core - since androidx.test.core uses the actual ListenableFuture dependency - Bump version to prep for next release There is still an issue with the ViewInteraction.captureToImage extension, which gradle does not recognize for an unknown reason. Partially fixes #1139 PiperOrigin-RevId: 400057476
Bitmap.writeToTestStorage is accessible from both kotlin and java. But there is still an issue with ViewInteraction.captureToBitmap |
Fixes #1139 PiperOrigin-RevId: 400770842
Fixes #1139 PiperOrigin-RevId: 400770842
PTAL at the androidx.test:core:1.4.1-alpha03 release. I'm working on a testing sample too which seems to work for me. LMK if you have any more issues |
Description
A couple of things related to the new
Bitmap.writeToTestStorage
API added in #1106 :/META-INF/androidx.test.core.kotlin_module
inside the aar? Are you missing akeep_rule
for that file like you have for thektx
artifact?core
and notcore-ktx
?@JvmStatic
versions of those functions.That is a lot for one issue, should I break these out into separate issues?
Steps to Reproduce
androidTestImplementation 'androidx.test:core:1.4.1-alpha02'
import androidx.test.core.graphics.BitmapStorage.writeToTestStorage
to a testExpected Results
No error
Actual Results
Get a compile error.
e: app/src/androidTest/java/com/example/ExampleInstrumentedTest.kt: (17, 36): Unresolved reference: BitmapStorage
The text was updated successfully, but these errors were encountered: