Open matejdro opened 3 years ago
Thanks for letting me know about this. I need to look deeper into this but at least when I download the JAR from https://mvnrepository.com/artifact/org.robolectric/android-all/11-robolectric-6757853 several zip utilities have problems with it
It's there a way to work around this?
I have a fix in #69 - on my side those changes seem to work fine - if you could test it on your side and everything still works for me (and the problem is fixed) I'd like to merge that and do a release
v0.7.9
The same with '13-robolectric-9030017'. Workaround: remove extra keeps in UnMock closure. Probably this happens because by default TextUtils is kept and the whole package is kept:
keepStartingWith "android.text.TextUtils"
keepStartingWith "android.text."
This works for me:
unMock {
keep "android.widget.BaseAdapter"
keep "android.widget.ArrayAdapter"
keep "android.os.Bundle"
keepStartingWith "android.database.MatrixCursor"
keep "android.database.AbstractCursor"
keep "android.database.CrossProcessCursor"
keepStartingWith "android.util."
keepStartingWith "android.text."
keepStartingWith "android.content.ContentValues"
keepStartingWith "android.content.ComponentName"
keepStartingWith "android.content.ContentUris"
keepStartingWith "android.content.ContentProviderOperation"
keepStartingWith "android.content.ContentProviderResult"
keepStartingWith "android.content.UriMatcher"
keepStartingWith "android.content.Intent"
keep "android.location.Location"
keepStartingWith "android.content.res.Configuration"
keepStartingWith "org."
keepStartingWith "libcore."
keepStartingWith "com.android.internal.R"
keepStartingWith "com.android.internal.util."
keepStartingWith "android.net."
keepAndRename "java.nio.charset.Charsets" to "xjava.nio.charset.Charsets"
}
My Config (basically default config, except with new android-all dependency):
Attempting to build my project with above unmock config will result in:
Android 10 (
10-robolectric-5803371
) seems to still work fine.