Skip to content

Commit

Permalink
preparation for v0.2 release (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
psuzn authored Apr 17, 2024
1 parent c3a42a4 commit deb5f40
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 15 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ All notable changes to this project will be documented in this file.

### Security

## [0.2.0] - 2024-04-17

This version contains general house keeping, dependencies updates and ci improvement for better maintainability.

### Breaking Changes

- Group name has been updated to `me.sujanpoudel.multiplatform.utils` from `me.sujanpoudel.mputils`
- Artifact `paths` has been renamed to `multiplatform-paths`.

> Follow [migration guide](https://github.com/psuzn/multiplatform-paths/blob/main/migration-guides.md##v01x-to-v2x) to migrate from v0.1 to v0.2.
## [0.1.1] - 2023-12-28

### Added
Expand Down
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@



# Multiplatform Paths

[![Maven Central](https://img.shields.io/maven-central/v/me.sujanpoudel.multiplatform.utils/paths?label=version&color=blue)](https://search.maven.org/search?q=me.sujanpoudel.multiplatform.utils)
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/me.sujanpoudel.multiplatform.utils/paths?label=snapshot&server=https%3A%2F%2Fs01.oss.sonatype.org)](https://s01.oss.sonatype.org/content/repositories/snapshots/me/sujanpoudel/multiplatform/)
[![Maven Central](https://img.shields.io/maven-central/v/me.sujanpoudel.multiplatform.utils/multiplatform-paths?label=version&color=blue)](https://search.maven.org/search?q=me.sujanpoudel.multiplatform.utils)
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/me.sujanpoudel.multiplatform.utils/multiplatform-paths?label=snapshot&server=https%3A%2F%2Fs01.oss.sonatype.org)
[![CI](https://github.com/psuzn/multiplatform-paths/actions/workflows/CI.yaml/badge.svg)](https://github.com/psuzn/mp-utils/actions/workflows/CI.yaml)

[![kotlin](https://img.shields.io/badge/kotlin-1.9.21-blue?logo=kotlin)](http://kotlinlang.org)
[![compose-multiplatform](https://img.shields.io/badge/Compose_Multiplatform-1.5.11-blue?logo=jetpackcompose)](https://github.com/JetBrains/compose-jb)
[![kotlin](https://img.shields.io/badge/kotlin-1.9.23-blue?logo=kotlin)](http://kotlinlang.org)

![license](https://img.shields.io/github/license/psuzn/multiplatform-paths?label=License)

Platform-specific application home and cache directories for KMP
Platform-specific application home and cache directories for KMP.
<br />

> **Note** <br />
> Version 0.2.x has some breaking changes from v0.1.x. To update to 0.2.x please follow the [migration guide](https://github.com/psuzn/multiplatform-paths/blob/main/migration-guides.md##v01x-to-v2x)
<br />
![badge-JVM](https://img.shields.io/badge/JVM(desktop)-orange)
![badge-Android](https://img.shields.io/badge/Android-dodgerblue?logo=android&logoColor=white)
Expand Down Expand Up @@ -44,7 +45,7 @@ repositories {
}

dependencies {
implementation("me.sujanpoudel.multiplatform.utils:multiplatform-paths:0.1.1")
implementation("me.sujanpoudel.multiplatform.utils:multiplatform-paths:0.2.0")
}
```

Expand Down Expand Up @@ -116,7 +117,7 @@ repositories {
}

dependencies {
implementation("me.sujanpoudel.multiplatform.utils:platform-identifier:0.1.1")
implementation("me.sujanpoudel.multiplatform.utils:platform-identifier:0.2.0")
}
```

Expand Down Expand Up @@ -180,7 +181,7 @@ repositories {
}

dependencies {
implementation("me.sujanpoudel.multiplatform.utils:context-provider:0.1.1")
implementation("me.sujanpoudel.multiplatform.utils:context-provider:0.2.0")
}
```

Expand All @@ -199,7 +200,7 @@ val context: Context = applicationContext
### Snapshots

Snapshots of the development version are available in Sonatype's
snapshots [repository](https://s01.oss.sonatype.org/content/repositories/snapshots/me/sujanpoudel/multiplatform).
snapshots [repository](https://s01.oss.sonatype.org/content/repositories/snapshots/me/sujanpoudel/multiplatform/utils).

```kotlin
repositories {
Expand All @@ -208,9 +209,9 @@ repositories {
}

dependencies {
implementation("me.sujanpoudel.multiplatform.utils:paths:0.1.1-2-SNAPSHOT")
implementation("me.sujanpoudel.multiplatform.utils:platform-identifier:0.1.1-2-SNAPSHOT")
implementation("me.sujanpoudel.multiplatform.utils:context-provider:0.1.1-2-SNAPSHOT")
implementation("me.sujanpoudel.multiplatform.utils:multiplatform-paths:0.2.0-SNAPSHOT")
implementation("me.sujanpoudel.multiplatform.utils:platform-identifier:0.2.0-SNAPSHOT")
implementation("me.sujanpoudel.multiplatform.utils:context-provider:0.2.0-SNAPSHOT")
}
```

Expand Down
40 changes: 40 additions & 0 deletions migration-guides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Migration guide

### v0.1.x to v.2.x

- Update the implementation

```kotlin

implementation("me.sujanpoudel.mputils:paths:0.1.x")
implementation("me.sujanpoudel.mputils:platform-identifier:0.1.x")
implementation("me.sujanpoudel.mputils:context-provider:0.1.x")
```

with following:

```kotlin

implementation("me.sujanpoudel.multiplatform.utils:multiplatform-paths:0.2.0")
implementation("me.sujanpoudel.multiplatform.utils:platform-identifier:0.2.0")
implementation("me.sujanpoudel.multiplatform.utils:context-provider:0.2.0")
```

- Update the any import with `me.sujanpoudel.mputils.*` with `me.sujanpoudel.util.*`

```kotlin
import me.sujanpoudel.mputils.paths.appDataDirectory // old import
import me.sujanpoudel.utils.paths.appDataDirectory // replace with this


import me.sujanpoudel.mputils.paths.appCacheDirectory // old import
import me.sujanpoudel.utils.paths.appCacheDirectory // replace with this

import me.sujanpoudel.mputils.platformIdentifier.platform // old import
import me.sujanpoudel.multiplatform.utils.platformIdentifier.platform // replace with this


import me.sujanpoudel.mputils.contextProvider.applicationContext // old import
import me.sujanpoudel.utils.contextProvider.applicationContext // replace with this

```

0 comments on commit deb5f40

Please sign in to comment.