Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Jul 16, 2024
1 parent 9dbf6f5 commit 71e05bd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
14 changes: 10 additions & 4 deletions CalciumCommon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ kotlin {
val iosTargets = listOf(iosX64(), iosArm64(), iosSimulatorArm64())

iosTargets.forEach {
it.binaries.framework {
baseName = "CalciumCommon"
xcf.add(this)
}
it.binaries.framework {
baseName = "CalciumCommon"
xcf.add(this)
}
}

sourceSets {
commonMain.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

package com.romanpodymov.kmm.shared

import kotlinx.coroutines.*

interface CalculatorButtonRepresentable {
val displayingValue: String
}
Expand Down Expand Up @@ -38,4 +40,19 @@ sealed class CalculatorButton {
object Clear : CalculatorButton()
class SomeDigit(val digit: Digit) : CalculatorButton()
class SomeOperation(val operation: Operation) : CalculatorButton()
}

val fibonacciSeq = sequence {
var a = 0
var b = 1

yield(1)

while (true) {
yield(a + b)

val tmp = a + b
a = b
b = tmp
}
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
plugins {
kotlin("multiplatform").version("2.0.20-Beta1").apply(false)
kotlin("multiplatform").version("2.0.20-Beta2").apply(false)
}

0 comments on commit 71e05bd

Please sign in to comment.