Understanding Different Gradle Caches for Android Projects, part 1.

There are several ways Gradle stores information between builds to drastically reduce subsequent build times. You may be familiar with some of these methods, but what’s important is that they build upon each other gradually improving build speed. If you are only benefiting from one, then you have something to gain by also looking into the others.

Continue reading “Understanding Different Gradle Caches for Android Projects, part 1.”

Spoon and test apk WRITE_STORAGE_PERMISSION

I want to get this out quick without a lot of polish because something is better than nothing.

We use Spoon to aggregate our end-to-end tests and capture screenshots of our Android app. In order to save these screenshots, our app’s AndroidManifest.xml needs to declare the WRITE_STORAGE_PERMISSION permission.

However this is the only reason that our app needs this permission. We don’t write to external storage any other time in the actual app. So my goal was to remove this permission from our app manifest and see if I could instead declare it our test .apk.

Continue reading “Spoon and test apk WRITE_STORAGE_PERMISSION”