diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcf37ae..38a6d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ jobs: instrumented: strategy: matrix: - api-level: [ 24, 29, 31 ] + api-level: [ 24, 29, 31, 34 ] runs-on: macos-latest name: Test API ${{ matrix.api-level }} needs: verify diff --git a/README.md b/README.md index 9df2dd0..9349ac1 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ Since the generation of the dominant color is an asynchronous operation that can the results of the operation using the `DominantColorState.result` object. For more examples of getting a dominant color see -the [demo app](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/dominant) +the [demo app](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant) ### Generate a color Palette @@ -188,20 +188,20 @@ Since the generation of the dominant color is an asynchronous operation that can the results of the operation using the `DominantColorState.result` object. For more examples of generating a Palette see -the [demo app](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/palette) +the [demo app](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/palette) ### Sources In order to generate a color palette, you must first have an `ImageBitmap` object. This library provides some extensions artifacts for some popular sources. -| Artifact | Library | Loader | Input Class | Demo | -|:--------------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------|-------------------|-------------|---------------------------------------------------------------------------------------------------------------------------| -| [`extensions-base64`](extensions-base64/README.md) | N/A | `Base64Loader` | `String` | [`Base64DemoScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/dominant/Base64DemoScreen.kt) | -| [`extensions-bytearray`](extensions-bytearray/README.md) | N/A | `ByteArrayLoader` | `ByteArray` | N/A | -| [`extensions-libres`](extensions-libres/README.md) | [libres](https://github.com/Skeptick/libres) | `LibresLoader` | `Image` | [`LibresPaletteScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/palette/LibresPaletteScreen.kt) | -| [`extensions-network`](extensions-network/README.md) | [ktor](https://github.com/ktorio/ktor) | `NetworkLoader` | `Url` | [`NetworkDemoScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/dominant/NetworkDemoScreen.kt) | -| [`extensions-resources`](extensions-resources/README.md) | [Compose Multiplatform Resources](https://github.com/JetBrains/compose-multiplatform/tree/master/components/resources) | `ResourceLoader` | `Resource` | [`ResourcesPaletteScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/palette/ResourcesPaletteScreen.kt) | +| Artifact | Library | Loader | Input Class | Demo | +|:--------------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------|-------------------|-------------|------------------------------------------------------------------------------------------------------------------------| +| [`extensions-base64`](extensions-base64/README.md) | N/A | `Base64Loader` | `String` | [`Base64DemoScreen`](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/Base64DemoScreen.kt) | +| [`extensions-bytearray`](extensions-bytearray/README.md) | N/A | `ByteArrayLoader` | `ByteArray` | N/A | +| [`extensions-libres`](extensions-libres/README.md) | [libres](https://github.com/Skeptick/libres) | `LibresLoader` | `Image` | [`LibresPaletteScreen`](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/palette/LibresPaletteScreen.kt) | +| [`extensions-network`](extensions-network/README.md) | [ktor](https://github.com/ktorio/ktor) | `NetworkLoader` | `Url` | [`NetworkDemoScreen`](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/NetworkDemoScreen.kt) | +| [`extensions-resources`](extensions-resources/README.md) | [Compose Multiplatform Resources](https://github.com/JetBrains/compose-multiplatform/tree/master/components/resources) | `ResourceLoader` | `Resource` | [`ResourcesPaletteScreen`](demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/palette/ResourcesPaletteScreen.kt) | Each of these extensions provides a `ImageBitmapLoader` object that can be used to generate an `ImageBitmap` from the input class. For example, the `NetworkLoader` can be used to generate diff --git a/extensions-base64/README.md b/extensions-base64/README.md index b3ac676..18d727f 100644 --- a/extensions-base64/README.md +++ b/extensions-base64/README.md @@ -1,10 +1,11 @@ # Base64 Extensions -This extension provides `Base64Loader` a `ImageBitmapLoader` for loading base64 encoded images to a `ImageBitmap`. +This extension provides `Base64Loader` a `ImageBitmapLoader` for loading base64 encoded images to +a `ImageBitmap`. | Loader | Input Class | Demo | |----------------|-------------|----------------------------------------------------------------------------------------------------------------| -| `Base64Loader` | `String` | [`Base64DemoScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/dominant/Base64DemoScreen.kt) | +| `Base64Loader` | `String` | [`Base64DemoScreen`](../demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/Base64DemoScreen.kt) | # Setup diff --git a/extensions-libres/README.md b/extensions-libres/README.md index d9c6302..12a1c73 100644 --- a/extensions-libres/README.md +++ b/extensions-libres/README.md @@ -5,7 +5,7 @@ loading [Libres](https://github.com/Skeptick/libres) `Image` objects. | Library | Loader | Input Class | Demo | |----------------------------------------------|----------------|-------------|---------------------------------------------------------------------------------------------------------------------| -| [libres](https://github.com/Skeptick/libres) | `LibresLoader` | `Image` | [`LibresPaletteScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/palette/LibresPaletteScreen.kt) | +| [libres](https://github.com/Skeptick/libres) | `LibresLoader` | `Image` | [`LibresPaletteScreen`](../demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/palette/LibresPaletteScreen.kt) | ## Setup diff --git a/extensions-network/README.md b/extensions-network/README.md index 8a5220a..0f1bb79 100644 --- a/extensions-network/README.md +++ b/extensions-network/README.md @@ -2,9 +2,9 @@ This extension provides `Network` a `ImageBitmapLoader` for loading images from a URL. -| Library | Loader | Input Class | Demo | -|------------------------------------------------------|----------------------------------------|-----------------|-------| -| [`extensions-network`](extensions-network/README.md) | [ktor](https://github.com/ktorio/ktor) | `NetworkLoader` | `Url` | [`NetworkDemoScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/dominant/NetworkDemoScreen.kt) | +| Library | Loader | Input Class | Demo | +|----------------------------------------|-----------------|-------------|------------------------------------------------------------------------------------------------------------------| +| [ktor](https://github.com/ktorio/ktor) | `NetworkLoader` | `Url` | [`NetworkDemoScreen`](../demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/NetworkDemoScreen.kt) | ## Setup diff --git a/extensions-resources/README.md b/extensions-resources/README.md index 192a109..e1e2736 100644 --- a/extensions-resources/README.md +++ b/extensions-resources/README.md @@ -3,9 +3,12 @@ This extension provides `ResourceLoader` a `ImageBitmapLoader` for images using Compose Multiplatform Resources. -| Library | Loader | Input Class | Demo | -|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|------------------|------------| -| [`extensions-resources`](extensions-resources/README.md) | [Compose Multiplatform Resources](https://github.com/JetBrains/compose-multiplatform/tree/master/components/resources) | `ResourceLoader` | `Resource` | [`ResourcesPaletteScreen`](demo/composeApp/src/commonMain/kotlin/dev/jordond/kmpalette/palette/ResourcesPaletteScreen.kt) | +| Library | Loader | Input Class | Demo | +|------------------------------------------------------------------------------------------------------------------------|------------------|-------------|---------------------------------------------------------------------------------------------------------------------------| +| [Compose Multiplatform Resources](https://github.com/JetBrains/compose-multiplatform/tree/master/components/resources) | `ResourceLoader` | `Resource` | [`ResourcesPaletteScreen`](../demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/palette/ResourcesPaletteScreen.kt) | + +Each of these extensions provides a `ImageBitmapLoader` object that can be used to generate +an `ImageBitmap` from the input class. For example, the `NetworkLoader` can be used to generate ## Setup @@ -34,7 +37,7 @@ android { res.srcDirs("src/androidMain/resources") resources.srcDirs("src/commonMain/resources") } - + // ... } ```