clean conditionals and bump version
This commit is contained in:
parent
7614ae3fcb
commit
d293b9ec60
@ -5,7 +5,7 @@
|
||||
// Created by Taylor Johnson on 7/20/20.
|
||||
//
|
||||
import Foundation
|
||||
#if (arch(arm64) || arch(x86_64)) || targetEnvironment(macCatalyst)
|
||||
#if arch(arm64) || arch(x86_64) || targetEnvironment(macCatalyst)
|
||||
import WidgetKit
|
||||
#endif
|
||||
|
||||
@ -19,21 +19,21 @@ class RNWidgetCenter: NSObject {
|
||||
|
||||
@objc(reloadTimelines:)
|
||||
func reloadTimelines(_ kind: String) {
|
||||
#if (arch(arm64) || arch(x86_64)) || targetEnvironment(macCatalyst)
|
||||
#if arch(arm64) || arch(x86_64) || targetEnvironment(macCatalyst)
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: kind)
|
||||
#endif
|
||||
}
|
||||
|
||||
@objc(reloadAllTimelines)
|
||||
func reloadAllTimelines() {
|
||||
#if (arch(arm64) || arch(x86_64)) || targetEnvironment(macCatalyst)
|
||||
#if arch(arm64) || arch(x86_64) || targetEnvironment(macCatalyst)
|
||||
WidgetCenter.shared.reloadAllTimelines()
|
||||
#endif
|
||||
}
|
||||
|
||||
@objc(getCurrentConfigurations:reject:)
|
||||
func getCurrentConfigurations (_ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
||||
#if (arch(arm64) || arch(x86_64)) || targetEnvironment(macCatalyst)
|
||||
#if arch(arm64) || arch(x86_64) || targetEnvironment(macCatalyst)
|
||||
WidgetCenter.shared.getCurrentConfigurations {result in
|
||||
switch result {
|
||||
case .success(let widgetInfo):
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "react-native-widget-center",
|
||||
"title": "React Native Widget Center",
|
||||
"version": "0.0.7",
|
||||
"version": "0.0.8",
|
||||
"description": "WidgetCenter for React Native",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user