Skip to content

Commit

Permalink
tmp publish swift package
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jun 16, 2024
1 parent a99a201 commit 11c17d6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commonMain/kotlin/at/asitplus/KmmResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private constructor(
contract {
callsInPlace(block, InvocationKind.AT_MOST_ONCE)
}
@Suppress("UNCHECKED_CAST")
return when (isSuccess) {
true -> catching { block(getOrThrow()) }
false -> this as KmmResult<R>
Expand Down
Binary file added tmp/KmmResult.xcframework.zip
Binary file not shown.
18 changes: 18 additions & 0 deletions tmp/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// swift-tools-version:5.3
import PackageDescription

let package = Package(
name: "KmmResult",
platforms: [
.iOS(.v14),
],
products: [
.library(name: "KmmResult", targets: ["KmmResult"])
],
targets: [
.binaryTarget(
name: "KmmResult",
url: "https://raw.githubusercontent.com/a-sit-plus/KmmResult/feature/fixes/tmp/KmmResult.xcframework.zip",
checksum:"db6e19b7325adf177a45da823428674fd7cd43725a9548289843f60655a6b687")
]
)

0 comments on commit 11c17d6

Please sign in to comment.