mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
32 lines
634 B
Swift
32 lines
634 B
Swift
//
|
|
// SilentPushEventEmitter.swift
|
|
// Lux
|
|
//
|
|
// Created by John Short on 9/29/25.
|
|
//
|
|
|
|
import React
|
|
|
|
@objc(SilentPushEventEmitter)
|
|
open class SilentPushEventEmitter: RCTEventEmitter {
|
|
|
|
public static weak var emitter: RCTEventEmitter?
|
|
|
|
override init() {
|
|
super.init()
|
|
SilentPushEventEmitter.emitter = self
|
|
}
|
|
|
|
open override func supportedEvents() -> [String] {
|
|
["SilentPushReceived"]
|
|
}
|
|
|
|
@objc(emitEventWithPayload:)
|
|
public static func emitEvent(with payload: [String: Any]) {
|
|
guard let emitter = emitter else {
|
|
return
|
|
}
|
|
emitter.sendEvent(withName: "SilentPushReceived", body: payload)
|
|
}
|
|
}
|