AAkira / Napier

Logging library for Kotlin Multiplatform
Apache License 2.0
786 stars 34 forks source link

Could not find com.github.aakira:napier-ios:1.4.0. #47

Closed schmidt9 closed 4 years ago

schmidt9 commented 4 years ago

Error when using version 1.4.0

Could not resolve com.github.aakira:napier-ios:1.4.0

iosMain {
dependencies {
implementation "com.github.aakira:napier-ios:$napierVersion"
}
}
AAkira commented 4 years ago

Thank you for reporting. I see...

I changed the .module file in ios directory on Napier 1.4.0. I think you don't need to set com.github.aakira:napier-ios.

You can write the implementation line only once from Kotlin 1.4.0.

kotlin {
    sourceSets {
        commonMain {
            dependencies {
                implementation 'com.github.aakira:napier:1.4.0'
            }
        }
    }
}

Cf. https://kotlinlang.org/docs/reference/whatsnew14.html#specifying-dependencies-only-once

Do you need napier-ios module?

schmidt9 commented 4 years ago

In works now on Android and iOS with commonMain dependency indeed. Thanks