Skip to content

Commit

Permalink
Make compatible with newer XCode (#46)
Browse files Browse the repository at this point in the history
xcode 14 compatibility
  • Loading branch information
bitgamma authored Sep 19, 2022
1 parent af61b02 commit 9c5b897
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion ios/StatusKeycard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@ class StatusKeycard: RCTEventEmitter {
var cardChannel: CardChannel? = nil
var nfcStartPrompt: String = "Hold your iPhone near a Status Keycard."

private var _keycardController: Any? = nil

@available(iOS 13.0, *)
private(set) lazy var keycardController: KeycardController? = nil
private var keycardController: KeycardController? {
get {
return _keycardController as? KeycardController
}

set(kc) {
_keycardController = kc
}
}

@objc
func nfcIsSupported(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-status-keycard",
"homepage": "https://keycard.status.im/",
"version": "2.5.37",
"version": "2.5.38",
"description": "React Native library to interact with Status Keycard using NFC connection",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9c5b897

Please sign in to comment.