-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #648 from FabioCornelli/watchos-support
Add WatchOS support
- Loading branch information
Showing
35 changed files
with
784 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
resources-build-logic/src/main/kotlin/multiplatform-library-extended-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2024 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("multiplatform-library-convention") | ||
} | ||
|
||
kotlin { | ||
watchosX64() | ||
watchosArm32() | ||
watchosArm64() | ||
watchosSimulatorArm64() | ||
|
||
sourceSets { | ||
val commonMain by getting | ||
|
||
val watchosMain by creating { | ||
dependsOn(commonMain) | ||
} | ||
val watchosX64Main by getting { | ||
dependsOn(watchosMain) | ||
} | ||
val watchosArm32Main by getting{ | ||
dependsOn(watchosMain) | ||
} | ||
val watchosArm64Main by getting{ | ||
dependsOn(watchosMain) | ||
} | ||
val watchosSimulatorArm64Main by getting{ | ||
dependsOn(watchosMain) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...urces-test/src/watchosMain/kotlin/dev/icerock/moko/resources/test/MockResourcesFactory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package dev.icerock.moko.resources.test | ||
|
||
import dev.icerock.moko.resources.FontResource | ||
import dev.icerock.moko.resources.ImageResource | ||
|
||
actual fun createImageResourceMock(): ImageResource = ImageResource("") | ||
actual fun createFontResourceMock(): FontResource = FontResource("") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.