Skip to content

Commit

Permalink
essai commande
Browse files Browse the repository at this point in the history
  • Loading branch information
jerydarkside committed Jul 3, 2023
1 parent 3f20d79 commit 178510f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 18 deletions.
7 changes: 2 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// swift-tools-version:5.3
import PackageDescription

let remoteKotlinUrl = "https://maven.pkg.github.com/touchlab/KMMBridgeKickStart/co/touchlab/kmmbridgekickstart/allshared-kmmbridge/0.13.0/allshared-kmmbridge-0.13.0.zip"
let remoteKotlinChecksum = "fe57822fa8ae5806e791558b1a632c3cd3af6f185d8e866ff4e132f40f68a6d4"
let packageName = "allshared"
let packageName = "FRAMEWORK_NAME"

let package = Package(
name: packageName,
Expand All @@ -19,8 +17,7 @@ let package = Package(
targets: [
.binaryTarget(
name: packageName,
url: remoteKotlinUrl,
checksum: remoteKotlinChecksum
path: "./allshared/build/XCFrameworks/debug/\(packageName).xcframework"
)
,
]
Expand Down
40 changes: 27 additions & 13 deletions allshared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
// kotlin("native.cocoapods")
id("co.touchlab.faktory.kmmbridge")
`maven-publish`
}

kotlin {
ios()
ios{ // can be set for any of your targets
binaries {
framework("FRAMEWORK_NAME") {
isStatic = true // or false for dynamic framework
}
}
}
// Note: iosSimulatorArm64 target requires that all dependencies have M1 support
iosSimulatorArm64()

// iosX64 { // can be set for any of your targets
// binaries {
// framework("FRAMEWORK_NAME") {
// isStatic = true // or false for dynamic framework
// }
// }
// }

sourceSets {
val commonMain by getting {
dependencies {
Expand All @@ -33,17 +47,17 @@ kotlin {
}
}

cocoapods {
summary = "KMMBridgeKickStart sample"
homepage = "https://www.touchlab.co"
ios.deploymentTarget = "13.5"
extraSpecAttributes["libraries"] = "'c++', 'sqlite3'"

framework {
export(project(":analytics"))
isStatic = true
}
}
// cocoapods {
// summary = "KMMBridgeKickStart sample"
// homepage = "https://www.touchlab.co"
// ios.deploymentTarget = "13.5"
// extraSpecAttributes["libraries"] = "'c++', 'sqlite3'"
//
// framework {
// export(project(":analytics"))
// isStatic = true
// }
// }
}

addGithubPackagesRepository()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import co.touchlab.kmmbridgekickstart.repository.BreedRepository
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch

class LaClasseDeJery {
fun essaiPrint() {
println("Ca marche !!!")
}
}
class CallbackBreedRepository(private val breedRepository: BreedRepository) {
private val mainScope = MainScope()

Expand All @@ -22,6 +27,7 @@ class CallbackBreedRepository(private val breedRepository: BreedRepository) {
}
}


fun refreshBreeds() {
mainScope.launch { breedRepository.refreshBreeds() }
}
Expand Down

0 comments on commit 178510f

Please sign in to comment.