Skip to content

Releases: AAkira/Napier

2.0.0-alpha2

16 Aug 17:44
2913d6d
Compare
Choose a tag to compare

Support apple artifacts

  • macOS
  • watchOS
  • tvOS

2.0.0-alpha1

12 Aug 03:15
Compare
Choose a tag to compare
  • Update Kotlin 1.5.21
  • Run on other threads 🎉
    Thanks @PhilipDukhov

Example

You can use this library on a background thread on iOS using Kotlin.coroutines as native-mt.

  • Define coroutine scopes
internal val mainScope = SharedScope(Dispatchers.Main)

internal val backgroundScope = SharedScope(Dispatchers.Default)

internal class SharedScope(private val context: CoroutineContext) : CoroutineScope {
    private val job = Job()
    private val exceptionHandler = CoroutineExceptionHandler { _, throwable ->
        println("[Coroutine Exception] $throwable")
    }

    override val coroutineContext: CoroutineContext
        get() = context + job + exceptionHandler
}
  • Usage
backgroundScope.launch {
    suspendFunction()
}

1.5.0

11 May 17:16
a06a4c4
Compare
Choose a tag to compare

Changes

Kotlin1.5

Update Kotlin 1.5 🎉

Upload artifacts to the maven central.

⚠️ The package name is renamed.
cf.Maven central rules

com.github.aakira => io.github.aakira

sourceSets {
    val commonMain by getting {
        dependencies {
            implementation("io.github.aakira:napier:1.5.0")
        }
    }
}

1.4.1

31 Aug 14:45
8ffbde0
Compare
Choose a tag to compare

You should change dependencies of Android module from com.github.aakira:napier-android:$napierVersion to com.github.aakira:napier:$napierVersion.

1.4.0

19 Aug 17:08
ef939a3
Compare
Choose a tag to compare

Support Kotlin 1.4.0 🎉

1.3.0

07 Apr 16:52
a4f573e
Compare
Choose a tag to compare

Kotlin 1.3.71
#42

1.2.0

09 Mar 10:54
6685f34
Compare
Choose a tag to compare

Kotlin 1.3.70

1.1.0

24 Nov 02:34
a30a818
Compare
Choose a tag to compare
  • Kotlin 1.3.60

1.0.0

18 Sep 01:53
c6187b6
Compare
Choose a tag to compare

Happy announcement!
Napier is 1.0.0

It has iOS artifact included x64, arm64, and arm32.

You can call this.

  • after
dependencies {
    // include x64, arm64, arm32
    implementation "com.github.aakira:napier-ios:$napierVersion"
}
  • before
dependencies {
     // x64
    implementation 'com.github.aakira:napier-iosX64:$napierVersion'
    // arm
    implementation 'com.github.aakira:napier-iosArm32:$napierVersion'
    implementation 'com.github.aakira:napier-iosArm64:$napierVersion'
}

0.0.8

02 Sep 16:30
e2fd294
Compare
Choose a tag to compare

Kotlin 1.3.50

※ JS example doesn't work now.