Skip to content

Commit

Permalink
Experiment with native bridged model layer
Browse files Browse the repository at this point in the history
  • Loading branch information
aabewhite committed Dec 17, 2024
1 parent d1df73e commit c91aebf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let package = Package(
.package(url: "https://source.skip.tools/skip-ui.git", from: "1.7.0"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "1.0.0"),
.package(url: "https://source.skip.tools/skip-model.git", from: "1.0.0"),
.package(url: "https://source.skip.tools/skip-fuse.git", "0.0.0"..<"2.0.0"),
.package(url: "https://source.skip.tools/skip-firebase.git", "0.4.0"..<"2.0.0")
],
targets: [
Expand All @@ -32,10 +33,9 @@ let package = Package(
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [.plugin(name: "skipstone", package: "skip")]),
.target(name: "FireSideModel", dependencies: [
.product(name: "SkipFoundation", package: "skip-foundation"),
.product(name: "SkipModel", package: "skip-model"),
.product(name: "SkipFirebaseFirestore", package: "skip-firebase"),
.product(name: "SkipFirebaseAuth", package: "skip-firebase")
.product(name: "SkipFuse", package: "skip-fuse"),
.product(name: "SkipFirebaseFirestore", package: "skip-firebase")
], resources: [.process("Resources")], plugins: [.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "FireSideModelTests", dependencies: [
"FireSideModel",
Expand Down
6 changes: 3 additions & 3 deletions Sources/FireSideModel/FireSideModel.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SkipFoundation
import OSLog
import Observation
import SkipFoundation
import SkipFuse

#if !SKIP
import FirebaseCore
Expand All @@ -12,7 +12,7 @@ import SkipFirebaseFirestore

let logger: Logger = Logger(subsystem: "fire.side", category: "FireSideModel")

public actor FireSideModel {
public struct FireSideModel {
/// The global Firestore instance for the app, configured using the default
/// `Android/app/google-services.json` and `Darwin/GoogleService-Info.plist` configuration files
/// which can be downloaded for your project from https://console.firebase.google.com/project/
Expand Down
1 change: 1 addition & 0 deletions Sources/FireSideModel/Message.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation
import Observation
import SkipFuse

#if !SKIP
import FirebaseCore
Expand Down
3 changes: 3 additions & 0 deletions Sources/FireSideModel/Skip/skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
# - block: 'dependencies'
# contents:
# - 'implementation("androidx.compose.runtime:runtime")'
skip:
mode: 'native'
bridging: true

0 comments on commit c91aebf

Please sign in to comment.