nackko / herdr

Herdr is a privacy conscious multiplatform mobile data collector
GNU Lesser General Public License v3.0
16 stars 3 forks source link

Kotlin Gradle build scripts #31

Closed nackko closed 4 years ago

nackko commented 4 years ago

Summary:

This PR migrates Gradle build scripts from Groovy to Kotlin syntax. Build files structure was reworked and dependencies were extracted in a new buildSrc directory structure. Content was a manual rewrite from the old ios-cocoapods branch as well as the actual content of the now deleted build.gradle files. A good source found towards the end of the process that would have helped some https://proandroiddev.com/gradle-groovy-to-kotlin-dsl-in-15-minutes-d3129aff227e

There was an issue on Mac but it was due to having opened the Android module directory within Android Studio instead of the root KMM folder. Lesson learned.

Expected behavior:

No behavior change: the Android module should build end deploy exactly as before

Please make sure these boxes are checked before submitting your pull request - thanks!

- [ ] Run the unit tests with gradle test to make sure you didn't break anything