Move shared classes into an Android library module because the Android API is needed