ADD: iOS 16 Lock Screen Widgets

This commit is contained in:
Marcos Rodriguez Velez 2022-09-14 19:09:21 -04:00
parent 756e826f09
commit 295f5d7d23
4 changed files with 51 additions and 27 deletions

View file

@ -1,6 +1,6 @@
PODS:
- boost (1.76.0)
- BugsnagReactNative (7.17.3):
- BugsnagReactNative (7.17.4):
- React-Core
- BVLinearGradient (2.6.2):
- React-Core
@ -311,7 +311,7 @@ PODS:
- React-Core
- react-native-tor (0.1.8):
- React
- react-native-webview (11.23.0):
- react-native-webview (11.23.1):
- React-Core
- react-native-widget-center (0.0.8):
- React
@ -386,7 +386,7 @@ PODS:
- React
- rn-ldk (0.8.1):
- React-Core
- RNCAsyncStorage (1.17.9):
- RNCAsyncStorage (1.17.10):
- React-Core
- RNCClipboard (1.10.0):
- React-Core
@ -398,13 +398,13 @@ PODS:
- React-Core
- RNFS (2.19.0):
- React-Core
- RNGestureHandler (2.5.0):
- RNGestureHandler (2.6.0):
- React-Core
- RNHandoff (0.0.3):
- React
- RNKeychain (8.0.0):
- React-Core
- RNLocalize (2.2.1):
- RNLocalize (2.2.3):
- React-Core
- RNPrivacySnapshot (1.0.0):
- React
@ -441,12 +441,12 @@ PODS:
- React-RCTText
- ReactCommon/turbomodule/core
- Yoga
- RNScreens (3.15.0):
- RNScreens (3.17.0):
- React-Core
- React-RCTImage
- RNSecureKeyStore (1.0.0):
- React
- RNShare (7.8.0):
- RNShare (7.9.0):
- React-Core
- RNSVG (12.4.4):
- React-Core
@ -732,7 +732,7 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
BugsnagReactNative: 24f614fbd87c52821e380cf9b429e4a93f523e7b
BugsnagReactNative: ae943adb18227043d6ca0589bc3fedef8fd32288
BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
@ -777,7 +777,7 @@ SPEC CHECKSUMS:
react-native-safe-area-context: 9e40fb181dac02619414ba1294d6c2a807056ab9
react-native-tcp-socket: c1b7297619616b4c9caae6889bcb0aba78086989
react-native-tor: 3b14e9160b2eb7fa3f310921b2dee71a5171e5b7
react-native-webview: e771bc375f789ebfa02a26939a57dbc6fa897336
react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581
react-native-widget-center: 6bf4d5aa5ab10a9dbbf7ddf9192f06cc1d66ccd5
React-perflogger: 0afaf2f01a47fd0fc368a93bfbb5bd3b26db6e7f
React-RCTActionSheet: 59f35c4029e0b532fc42114241a06e170b7431a2
@ -794,24 +794,24 @@ SPEC CHECKSUMS:
RealmJS: 772520fb85c19b65c2ea0c8f9aa6e790a905a377
RemobileReactNativeQrcodeLocalImage: 57aadc12896b148fb5e04bc7c6805f3565f5c3fa
rn-ldk: fe694aaca0c661e7eb32cd9989dade5fe7e9c4e9
RNCAsyncStorage: b2489b49e38c85e10ed45a888d13a2a4c7b32ea1
RNCAsyncStorage: 0c357f3156fcb16c8589ede67cc036330b6698ca
RNCClipboard: f1736c75ab85b627a4d57587edb4b60999c4dd80
RNCPushNotificationIOS: 87b8d16d3ede4532745e05b03c42cff33a36cc45
RNDefaultPreference: 08bdb06cfa9188d5da97d4642dac745218d7fb31
RNDeviceInfo: aad3c663b25752a52bf8fce93f2354001dd185aa
RNFS: fc610f78fdf8bfc89a9e5cc2f898519f4dba1002
RNGestureHandler: bad495418bcbd3ab47017a38d93d290ebd406f50
RNGestureHandler: 920eb17f5b1e15dae6e5ed1904045f8f90e0b11e
RNHandoff: d3b0754cca3a6bcd9b25f544f733f7f033ccf5fa
RNKeychain: 4f63aada75ebafd26f4bc2c670199461eab85d94
RNLocalize: cbcb55d0e19c78086ea4eea20e03fe8000bbbced
RNLocalize: a64514b46a01375fdfae9349036b4dc7130333b5
RNPrivacySnapshot: 71919dde3c6a29dd332115409c2aec564afee8f4
RNQuickAction: 6d404a869dc872cde841ad3147416a670d13fa93
RNRate: 94f57c773e155ca0d0aeeba9c10a32bce9030daf
RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c
RNReanimated: b5b17149593e7c05e4ec5c0efea1f21e05829510
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
RNScreens: 0df01424e9e0ed7827200d6ed1087ddd06c493f9
RNSecureKeyStore: f1ad870e53806453039f650720d2845c678d89c8
RNShare: 31b418e3ff2084712f0f39618bafa5f97a322c0e
RNShare: be91a5c149585affb02c25b351bd07ba927c7006
RNSVG: ecd661f380a07ba690c9c5929c475a44f432d674
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
RNWatch: dae6c858a2051dbdcfb00b9a86cf4d90400263b4
@ -821,4 +821,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 53c058f42bf11a3d01891a40676ea8f9c6a9ecf9
COCOAPODS: 1.10.1
COCOAPODS: 1.11.3

View file

@ -70,11 +70,19 @@ struct WalletInformationWidget: Widget {
let kind: String = "WalletInformationWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: WalletInformationWidgetProvider()) { entry in
WalletInformationWidgetEntryView(entry: entry)
if #available(iOSApplicationExtension 16.0, *) {
return StaticConfiguration(kind: kind, provider: WalletInformationWidgetProvider()) { entry in
WalletInformationWidgetEntryView(entry: entry)
}
.configurationDisplayName("Balance")
.description("View your accumulated balance.").supportedFamilies([.systemSmall, .accessoryRectangular])
} else {
return StaticConfiguration(kind: kind, provider: WalletInformationWidgetProvider()) { entry in
WalletInformationWidgetEntryView(entry: entry)
}
.configurationDisplayName("Balance")
.description("View your accumulated balance.").supportedFamilies([.systemSmall])
}
.configurationDisplayName("Balance")
.description("View your accumulated balance.").supportedFamilies([.systemSmall])
}
}

View file

@ -73,11 +73,19 @@ struct MarketWidget: Widget {
let kind: String = "MarketWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: MarketWidgetProvider()) { entry in
MarketWidgetEntryView(entry: entry)
if #available(iOSApplicationExtension 16.0, *) {
return StaticConfiguration(kind: kind, provider: MarketWidgetProvider()) { entry in
MarketWidgetEntryView(entry: entry)
}
.configurationDisplayName("Market")
.description("View the current market information.").supportedFamilies([.systemSmall, .accessoryRectangular])
} else {
return StaticConfiguration(kind: kind, provider: MarketWidgetProvider()) { entry in
MarketWidgetEntryView(entry: entry)
}
.configurationDisplayName("Market")
.description("View the current market information.").supportedFamilies([.systemSmall])
}
.configurationDisplayName("Market")
.description("View the current market information.").supportedFamilies([.systemSmall])
}
}

View file

@ -87,11 +87,19 @@ struct PriceWidget: Widget {
let kind: String = "PriceWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: PriceWidgetProvider()) { entry in
PriceWidgetEntryView(entry: entry)
if #available(iOSApplicationExtension 16.0, *) {
return StaticConfiguration(kind: kind, provider: PriceWidgetProvider()) { entry in
PriceWidgetEntryView(entry: entry)
}
.configurationDisplayName("Price")
.description("View the current price of Bitcoin.").supportedFamilies([.systemSmall, .accessoryRectangular])
} else {
return StaticConfiguration(kind: kind, provider: PriceWidgetProvider()) { entry in
PriceWidgetEntryView(entry: entry)
}
.configurationDisplayName("Price")
.description("View the current price of Bitcoin.").supportedFamilies([.systemSmall])
}
.configurationDisplayName("Price")
.description("View the current price of Bitcoin.").supportedFamilies([.systemSmall])
}
}