italia / cieid-android-sdk

BSD 3-Clause "New" or "Revised" License
17 stars 11 forks source link

Add Kotlin test missing dependency and fix test dir tree (fix build) #16

Open Enrico204 opened 3 years ago

Enrico204 commented 3 years ago

io.kotlintest dependency specification was missing in the current master branch. Also, the test code was misplaced. Both these issues prevent a successful build: https://jitpack.io/com/github/italia/cieid-android-sdk/b5a7baef9e/build.log

This pull request adds the missing dependency for io.kotlintest and move test files to the right path (in SDK library), so both Android Studio and gradle tool can distinguish between tests and actual code.

Note that I slightly modified imports in both test files to upgrade them to Kotlintest 3.4, as I can't make the 3.2 works.

These fixes also enables this repo to be included directly in Android Studio using https://jitpack.io/ (no need to publish this library in a maven repo)