Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] #338 - Update to Kotlin MPP plugin #341

Closed

Conversation

patjackson52
Copy link

First stab at refactoring to MPP plugin(issue #338 ). Needs lots of work before production ready. Purpose of this PR is get a discussion started on how to proceed with multiple issues, and work towards a PR that can be merged. This refactor removes the old 4.x code (master has 4.x & 5.x in separate modules).

common module builds the jvm, js, ios (& other native possibly)
android module builds the android artifact
sample module contains android sample app

Here are issues that need resolved:

  1. use of deprecated synchronized in Timber.kt needs to find a multiplatform solution. Does not seem possible without a dependency on a library. Perhaps using a coroutine scope?
  2. implementation of iOS logging - should be straightforward
  3. android-lint needs to be updated. The API has changed in 5.x (or make API consistent with 4.x, if that is even possible)
  4. js testing not working - ran into issue with the com.moowork.gradle:gradle-node-plugin:1.2.0 plugin conflicting with gradle 4.7. Currently setup with the 'de.solugo.gradle:gradle-nodejs-plugin:0.6.0', but that has error when running
  5. refactor android tests and include in android module

@@ -26,9 +26,9 @@ android {
}

dependencies {
api project(':jdk')
api project(':common')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the jdk.

I just had an android library with just the common artifact and couldn't call anything until I added jdk as well. jdk artifact does some magic so the whole thing can be consumed by other java modules.

ext.versions = [
'minSdk': 9,
'compileSdk': 28,
ext.versions = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always keep the original code style. None of this is supposed to pollute the changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants