Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with native bridged model layer #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading