Skip to content

Commit

Permalink
Merge pull request #165 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.15.0
  • Loading branch information
Alex009 authored Feb 2, 2021
2 parents b3b8e6f + dad607c commit efd2339
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ This is a Kotlin MultiPlatform library that provides access to the resources on
- kotlin 1.4.21
- 0.13.2
- 0.14.0
- 0.15.0

## Installation
root build.gradle
Expand All @@ -67,7 +68,7 @@ buildscript {
}
dependencies {
classpath "dev.icerock.moko:resources-generator:0.14.0"
classpath "dev.icerock.moko:resources-generator:0.15.0"
}
}
Expand All @@ -84,7 +85,7 @@ project build.gradle
apply plugin: "dev.icerock.mobile.multiplatform-resources"
dependencies {
commonMainApi("dev.icerock.moko:resources:0.14.0")
commonMainApi("dev.icerock.moko:resources:0.15.0")
}
multiplatformResources {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object Deps {

private const val mokoGraphicsVersion = "0.5.0"
private const val mokoParcelizeVersion = "0.5.0"
const val mokoResourcesVersion = "0.14.0"
const val mokoResourcesVersion = "0.15.0"

object Android {
const val compileSdk = 28
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

package dev.icerock.moko.resources.desc.image

interface ImageDesc {
companion object
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

package dev.icerock.moko.resources.desc.image

import dev.icerock.moko.resources.ImageResource

class ImageDescResource(val resource: ImageResource) : ImageDesc

@Suppress("FunctionName")
fun ImageDesc.Companion.Resource(resource: ImageResource): ImageDesc = ImageDescResource(resource)

fun ImageResource.asImageDesc() = ImageDesc.Resource(this)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

package dev.icerock.moko.resources.desc.image

class ImageDescUrl(val url: String) : ImageDesc

@Suppress("FunctionName")
fun ImageDesc.Companion.Url(url: String): ImageDesc = ImageDescUrl(url)

fun String.asImageUrl(): ImageDesc = ImageDesc.Url(this)

0 comments on commit efd2339

Please sign in to comment.