clean-architecture-koin-boilerplate icon indicating copy to clipboard operation
clean-architecture-koin-boilerplate copied to clipboard

Dependency update and migration to AndroidX

Open xmellado opened this issue 6 years ago • 4 comments

Hello,

I will use your template for a new project at work and we have decided to update its dependencies. I have updated all library versions and migrate everything to AndroidX, including tests. There is a changelog file with all the changes and I have added a plugin for checking dependency updates.

I hope you find it useful, Xavi

xmellado avatar Nov 30 '18 10:11 xmellado

Very good migration but I am unable to execute instrumental tests

LukasAnda avatar Jan 04 '19 14:01 LukasAnda

Hi, @LukasAnda I have "fixed" instrumentation tests. There were two problems:

  1. The compilation issue was introduced by Mockito Android 2.23.x, which is not compatible with current Android Gradle Plugin. When a new version of the Android Gradle Plugin becomes available, this dependency can be updated.
  2. Koin 1.0.2 makes the browser activity test fail, since the mocked BufferooRepository does not work properly. So I downgraded the version to 1.0.1 and it works fine. If you or anyone reading this thread can help me with this issue, I will appreciate it.

Thanks for pointing this problem, Xavi

xmellado avatar Jan 05 '19 13:01 xmellado

Hi @xmellado thanks for response :) I've been trying to solve it by myself, and I submitted an issue to Koin team. Here you can view the issue https://github.com/InsertKoinIO/koin/issues/326

LukasAnda avatar Jan 16 '19 13:01 LukasAnda

Hi, @LukasAnda I have updated Koin to version 2.0 and I have fixed the instrumental tests ;) Regards, Xavi

xmellado avatar May 17 '19 09:05 xmellado