Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlsCorrea committed May 4, 2022
2 parents adafaaf + 2d93436 commit 6b6873a
Show file tree
Hide file tree
Showing 23 changed files with 646 additions and 79 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
#ifndef OSHEALTHFITNESSLIB_SWIFT_H
#define OSHEALTHFITNESSLIB_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -184,18 +184,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreData;
@import Foundation;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
Expand All @@ -221,8 +215,6 @@ SWIFT_CLASS("_TtC18OSHealthFitnessLib13BackgroundJob")
- (nonnull instancetype)initWithEntity:(NSEntityDescription * _Nonnull)entity insertIntoManagedObjectContext:(NSManagedObjectContext * _Nullable)context OBJC_DESIGNATED_INITIALIZER;
@end

@class NSString;
@class NSDate;
@class Notification;

@interface BackgroundJob (SWIFT_EXTENSION(OSHealthFitnessLib))
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name OSHealthFitnessLib
import BackgroundTasks
import CloudKit
Expand All @@ -12,7 +12,6 @@ import Swift
import UIKit
import UserNotifications
import UserNotificationsUI
import _Concurrency
public enum HealthKitErrors : Swift.Int, Foundation.CustomNSError, Foundation.LocalizedError {
case variableNotAvailable
case variableNotAuthorized
Expand All @@ -33,16 +32,16 @@ public enum HealthKitErrors : Swift.Int, Foundation.CustomNSError, Foundation.Lo
public var errorDescription: Swift.String? {
get
}
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public init?(rawValue: Swift.Int)
public var rawValue: Swift.Int {
get
}
}
extension Swift.String {
extension String {
public func decode<T>(string: Swift.String) -> T where T : Swift.Decodable
}
extension Swift.Encodable {
extension Encodable {
public func encode() -> Swift.String
}
open class HealthFitnessPlugin {
Expand All @@ -58,7 +57,7 @@ open class HealthFitnessPlugin {
public func advancedQuery(variable: Swift.String, startDate: Foundation.Date, endDate: Foundation.Date, timeUnit: Swift.String, operationType: Swift.String, mostRecent: Swift.Bool, timeUnitLength: Swift.Int, completion: @escaping (Swift.Bool, Swift.String?, Foundation.NSError?) -> Swift.Void)
@objc deinit
}
extension Foundation.Date {
extension Date {
public init(_ dateString: Swift.String)
public static func - (recent: Foundation.Date, previous: Foundation.Date) -> (year: Swift.Int?, month: Swift.Int?, week: Swift.Int?, day: Swift.Int?, hour: Swift.Int?, minute: Swift.Int?, second: Swift.Int?)
public func startOfHour() -> Foundation.Date
Expand All @@ -82,23 +81,23 @@ public class BackgroundJobParameters : Swift.Codable {
final public let isActive: Swift.Bool?
public init(id: Swift.Int64?, variable: Swift.String?, timeUnit: Swift.String?, timeUnitGrouping: Swift.Int?, notificationFrequency: Swift.String?, notificationFrequencyGrouping: Swift.Int?, jobFrequency: Swift.String?, condition: Swift.String?, value: Swift.Double?, notificationHeader: Swift.String?, notificationBody: Swift.String?, isActive: Swift.Bool?)
@objc deinit
public func encode(to encoder: Swift.Encoder) throws
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@_hasMissingDesignatedInitializers public class QueryParameters : Swift.Codable {
final public let variable: Swift.String?
final public let startDate: Swift.String?, endDate: Swift.String?
final public let timeUnit: Swift.String?, operationType: Swift.String?
final public let timeUnitLength: Swift.Int?
@objc deinit
public func encode(to encoder: Swift.Encoder) throws
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class BackgroundJob : CoreData.NSManagedObject {
@objc override dynamic public init(entity: CoreData.NSEntityDescription, insertInto context: CoreData.NSManagedObjectContext?)
@objc deinit
}
extension OSHealthFitnessLib.BackgroundJob {
extension BackgroundJob {
@nonobjc public class func fetchRequest() -> CoreData.NSFetchRequest<OSHealthFitnessLib.BackgroundJob>
@objc @NSManaged dynamic public var comparision: Swift.String? {
@objc get
Expand Down Expand Up @@ -153,7 +152,7 @@ extension OSHealthFitnessLib.BackgroundJob {
@objc override dynamic public init(entity: CoreData.NSEntityDescription, insertInto context: CoreData.NSManagedObjectContext?)
@objc deinit
}
extension OSHealthFitnessLib.Notification {
extension Notification {
@nonobjc public class func fetchRequest() -> CoreData.NSFetchRequest<OSHealthFitnessLib.Notification>
@objc @NSManaged dynamic public var body: Swift.String? {
@objc get
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name OSHealthFitnessLib
import BackgroundTasks
import CloudKit
import CoreData
import Foundation
import HealthKit
import NotificationCenter
@_exported import OSHealthFitnessLib
import Swift
import UIKit
import UserNotifications
import UserNotificationsUI
public enum HealthKitErrors : Swift.Int, Foundation.CustomNSError, Foundation.LocalizedError {
case variableNotAvailable
case variableNotAuthorized
case operationNotAllowed
case errorWhileReading
case errorWhileWriting
case variableHasWriteDenied
case badParameterType
case authorizationError
case notAvailableOnDevice
case unitNotAvailable
case featureNotAvailableiOS13
case backgroundJobAlreadyExists
case featureNotAvailableiOS14
case invalidBackgroundJobID
case backgroundJobNotFound
case unsubscribeError
public var errorDescription: Swift.String? {
get
}
public typealias RawValue = Swift.Int
public init?(rawValue: Swift.Int)
public var rawValue: Swift.Int {
get
}
}
extension String {
public func decode<T>(string: Swift.String) -> T where T : Swift.Decodable
}
extension Encodable {
public func encode() -> Swift.String
}
open class HealthFitnessPlugin {
public init()
public func deleteBackgroundJobs(id: Swift.String?, completion: @escaping (Swift.Bool, Foundation.NSError?) -> Swift.Void)
public func countBackgroundJobsFor(variable: Swift.String) -> Swift.Int
public func listBackgroundJobs(completion: @escaping (Swift.Bool, Swift.String?, Foundation.NSError?) -> Swift.Void)
public func writeData(variable: Swift.String, value: Swift.Double, completion: @escaping (Swift.Bool, Foundation.NSError?) -> Swift.Void)
public func getLastRecord(variable: Swift.String, mostRecent: Swift.Bool, timeUnitLength: Swift.Int, completion: @escaping (Swift.Bool, Swift.String?, Foundation.NSError?) -> Swift.Void)
public func requestPermissions(customPermissions: Swift.String, allVariables: Swift.String, fitnessVariables: Swift.String, healthVariables: Swift.String, profileVariables: Swift.String, summaryVariables: Swift.String, completion: @escaping (Swift.Bool, Foundation.NSError?) -> Swift.Void)
public func setBackgroundJob(variable: Swift.String, timeUnit: Swift.String, timeUnitGrouping: Swift.Int, notificationFrequency: Swift.String, notificationFrequencyGrouping: Swift.Int, jobFrequency: Swift.String, condition: Swift.String, value: Swift.Double, notificationHeader: Swift.String, notificationBody: Swift.String, completion: @escaping (Swift.Bool, Swift.String?, Foundation.NSError?) -> Swift.Void)
public func updateBackgroundJob(id: Swift.Int64?, notificationFrequency: Swift.String?, notificationFrequencyGrouping: Swift.Int?, condition: Swift.String?, value: Swift.Double?, notificationHeader: Swift.String?, notificationBody: Swift.String?, isActive: Swift.Bool?, completion: @escaping (Swift.Bool, Foundation.NSError?) -> Swift.Void)
public func advancedQuery(variable: Swift.String, startDate: Foundation.Date, endDate: Foundation.Date, timeUnit: Swift.String, operationType: Swift.String, mostRecent: Swift.Bool, timeUnitLength: Swift.Int, completion: @escaping (Swift.Bool, Swift.String?, Foundation.NSError?) -> Swift.Void)
@objc deinit
}
extension Date {
public init(_ dateString: Swift.String)
public static func - (recent: Foundation.Date, previous: Foundation.Date) -> (year: Swift.Int?, month: Swift.Int?, week: Swift.Int?, day: Swift.Int?, hour: Swift.Int?, minute: Swift.Int?, second: Swift.Int?)
public func startOfHour() -> Foundation.Date
public func startOfDay() -> Foundation.Date
public func startOfWeek() -> Foundation.Date
public func startOfMonth() -> Foundation.Date
public func startOfYear() -> Foundation.Date
}
public class BackgroundJobParameters : Swift.Codable {
final public let id: Swift.Int64?
final public let variable: Swift.String?
final public let timeUnit: Swift.String?
final public let timeUnitGrouping: Swift.Int?
final public let notificationFrequency: Swift.String?
final public let notificationFrequencyGrouping: Swift.Int?
final public let jobFrequency: Swift.String?
final public let condition: Swift.String?
final public let value: Swift.Double?
final public let notificationHeader: Swift.String?
final public let notificationBody: Swift.String?
final public let isActive: Swift.Bool?
public init(id: Swift.Int64?, variable: Swift.String?, timeUnit: Swift.String?, timeUnitGrouping: Swift.Int?, notificationFrequency: Swift.String?, notificationFrequencyGrouping: Swift.Int?, jobFrequency: Swift.String?, condition: Swift.String?, value: Swift.Double?, notificationHeader: Swift.String?, notificationBody: Swift.String?, isActive: Swift.Bool?)
@objc deinit
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@_hasMissingDesignatedInitializers public class QueryParameters : Swift.Codable {
final public let variable: Swift.String?
final public let startDate: Swift.String?, endDate: Swift.String?
final public let timeUnit: Swift.String?, operationType: Swift.String?
final public let timeUnitLength: Swift.Int?
@objc deinit
required public init(from decoder: Swift.Decoder) throws
public func encode(to encoder: Swift.Encoder) throws
}
@objc @_inheritsConvenienceInitializers public class BackgroundJob : CoreData.NSManagedObject {
@objc override dynamic public init(entity: CoreData.NSEntityDescription, insertInto context: CoreData.NSManagedObjectContext?)
@objc deinit
}
extension BackgroundJob {
@nonobjc public class func fetchRequest() -> CoreData.NSFetchRequest<OSHealthFitnessLib.BackgroundJob>
@objc @NSManaged dynamic public var comparision: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var id: Swift.Int64 {
@objc get
@objc set
}
@objc @NSManaged dynamic public var isActive: Swift.Bool {
@objc get
@objc set
}
@objc @NSManaged dynamic public var lastNotificationTimestamp: Foundation.Date? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var notificationFrequency: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var notificationFrequencyGrouping: Swift.Int64 {
@objc get
@objc set
}
@objc @NSManaged dynamic public var operation: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var timeUnit: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var timeUnitGrouping: Swift.Int64 {
@objc get
@objc set
}
@objc @NSManaged dynamic public var value: Swift.Double {
@objc get
@objc set
}
@objc @NSManaged dynamic public var variable: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var notification: OSHealthFitnessLib.Notification? {
@objc get
@objc set
}
}
@objc @_inheritsConvenienceInitializers public class Notification : CoreData.NSManagedObject {
@objc override dynamic public init(entity: CoreData.NSEntityDescription, insertInto context: CoreData.NSManagedObjectContext?)
@objc deinit
}
extension Notification {
@nonobjc public class func fetchRequest() -> CoreData.NSFetchRequest<OSHealthFitnessLib.Notification>
@objc @NSManaged dynamic public var body: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var id: Swift.Int64 {
@objc get
@objc set
}
@objc @NSManaged dynamic public var title: Swift.String? {
@objc get
@objc set
}
@objc @NSManaged dynamic public var relationship: OSHealthFitnessLib.BackgroundJob? {
@objc get
@objc set
}
}
extension OSHealthFitnessLib.HealthKitErrors : Swift.Equatable {}
extension OSHealthFitnessLib.HealthKitErrors : Swift.Hashable {}
extension OSHealthFitnessLib.HealthKitErrors : Swift.RawRepresentable {}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
#ifndef OSHEALTHFITNESSLIB_SWIFT_H
#define OSHEALTHFITNESSLIB_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -186,18 +186,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreData;
@import Foundation;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
Expand All @@ -223,8 +217,6 @@ SWIFT_CLASS("_TtC18OSHealthFitnessLib13BackgroundJob")
- (nonnull instancetype)initWithEntity:(NSEntityDescription * _Nonnull)entity insertIntoManagedObjectContext:(NSManagedObjectContext * _Nullable)context OBJC_DESIGNATED_INITIALIZER;
@end

@class NSString;
@class NSDate;
@class Notification;

@interface BackgroundJob (SWIFT_EXTENSION(OSHealthFitnessLib))
Expand Down Expand Up @@ -264,7 +256,7 @@ SWIFT_CLASS("_TtC18OSHealthFitnessLib12Notification")
#endif

#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
#ifndef OSHEALTHFITNESSLIB_SWIFT_H
#define OSHEALTHFITNESSLIB_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -450,18 +442,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreData;
@import Foundation;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
Expand All @@ -487,8 +473,6 @@ SWIFT_CLASS("_TtC18OSHealthFitnessLib13BackgroundJob")
- (nonnull instancetype)initWithEntity:(NSEntityDescription * _Nonnull)entity insertIntoManagedObjectContext:(NSManagedObjectContext * _Nullable)context OBJC_DESIGNATED_INITIALIZER;
@end

@class NSString;
@class NSDate;
@class Notification;

@interface BackgroundJob (SWIFT_EXTENSION(OSHealthFitnessLib))
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 6b6873a

Please sign in to comment.