alexstyl / contactstore

A modern, strongly-typed contacts API for Android.
https://alexstyl.github.io/contactstore
Apache License 2.0
440 stars 15 forks source link

Test implementation of ContactStore #5

Closed alexstyl closed 3 years ago

alexstyl commented 3 years ago

I am working on an implementation of the ContactStore interface that can be used in unit tests. That way users of the api will be able to have a consistent behavior (that will work as close to the real implementation as possible) without having to create their own "Fake" of the store.

There are going to be some limitations. Each OEM might have modified the ContactProvider in the device in any way, which means that the test implementation can not match the behavior found in every single possible device/configuration.

Open to suggestions and ideas.

alexstyl commented 3 years ago

This was introduced in https://github.com/alexstyl/contactstore/releases/tag/0.3.1