Skip to content

Commit

Permalink
- xcframework and pods version 0.1.9
Browse files Browse the repository at this point in the history
- bugs fixes with ios sdk
- signature changes
- improvement
  • Loading branch information
erpankajpatel committed Dec 31, 2021
1 parent 2540346 commit 7b6073b
Show file tree
Hide file tree
Showing 53 changed files with 2,884 additions and 154 deletions.
2 changes: 1 addition & 1 deletion PhylloConnect.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pod::Spec.new do |spec|


spec.name = 'PhylloConnect'
spec.version = '0.1.8'
spec.version = '0.1.9'
spec.summary = 'Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your iOS app.'
spec.description = 'Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your iOS app. Connect SDK manages work platform authentication (credential validation, multi-factor authentication, error handling, etc).'

Expand Down
10 changes: 5 additions & 5 deletions PhylloConnect.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>PhylloConnect.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>PhylloConnect.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreGraphics;
@import Foundation;
@import QuartzCore;
@import UIKit;
#endif

Expand All @@ -206,6 +209,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# pragma pop_macro("any")
#endif





@class NSString;
@class NSBundle;
@class NSCoder;
Expand All @@ -218,6 +225,80 @@ SWIFT_CLASS("_TtC13PhylloConnect19LoginViewController")
@end


@class NSData;

/// Concrete implementation of <code>SVGParser</code> that uses Foundation’s <code>XMLParser</code> to parse a given SVG file.
SWIFT_CLASS("_TtC13PhylloConnect14NSXMLSVGParser")
@interface NSXMLSVGParser : NSXMLParser <NSXMLParserDelegate>
/// :nodoc:
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// The <code>XMLParserDelegate</code> method called when the parser has started parsing an SVG element. This implementation will loop through all supported attributes and dispatch the attribiute value to the given curried function.
- (void)parser:(NSXMLParser * _Nonnull)parser didStartElement:(NSString * _Nonnull)elementName namespaceURI:(NSString * _Nullable)namespaceURI qualifiedName:(NSString * _Nullable)qName attributes:(NSDictionary<NSString *, NSString *> * _Nonnull)attributeDict;
/// The <code>XMLParserDelegate</code> method called when the parser has ended parsing an SVG element. This methods pops the last element parsed off the stack and checks if there is an enclosing container layer. Every valid SVG file is guaranteed to have at least one container layer (at a minimum, a <code>SVGRootElement</code> instance).
/// If the parser has finished parsing a <code>SVGShapeElement</code>, it will resize the parser’s <code>containerLayer</code> bounding box to fit all subpaths
/// If the parser has finished parsing a <code><svg></code> element, that <code>SVGRootElement</code>‘s container layer is added to this parser’s <code>containerLayer</code>.
- (void)parser:(NSXMLParser * _Nonnull)parser didEndElement:(NSString * _Nonnull)elementName namespaceURI:(NSString * _Nullable)namespaceURI qualifiedName:(NSString * _Nullable)qName;
/// The <code>XMLParserDelegate</code> method called when the parser has finished parsing the SVG document. All supported elements and attributes are guaranteed to be dispatched at this point, but there’s no guarantee that all elements have finished parsing.
/// seealso:
/// <code>CanManageAsychronousParsing</code> <code>finishedProcessing(shapeLayer:)</code>
/// seealso:
/// <code>XMLParserDelegate</code> (<code>parserDidEndDocument(_:)</code>)[https://developer.apple.com/documentation/foundation/xmlparserdelegate/1418172-parserdidenddocument]
- (void)parserDidEndDocument:(NSXMLParser * _Nonnull)parser;
/// The <code>XMLParserDelegate</code> method called when the parser has reached a fatal error in parsing. Parsing is stopped if an error is reached and you may want to check that your SVG file passes validation.
/// seealso:
/// <code>XMLParserDelegate</code> (<code>parser(_:parseErrorOccurred:)</code>)[https://developer.apple.com/documentation/foundation/xmlparserdelegate/1412379-parser]
/// seealso:
/// (SVG Validator)[https://validator.w3.org/]
- (void)parser:(NSXMLParser * _Nonnull)parser parseErrorOccurred:(NSError * _Nonnull)parseError;
- (nonnull instancetype)initWithData:(NSData * _Nonnull)data SWIFT_UNAVAILABLE;
@end





/// A <code>CAShapeLayer</code> subclass that allows you to easily work with sublayers and get sizing information
SWIFT_CLASS("_TtC13PhylloConnect8SVGLayer")
@interface SVGLayer : CAShapeLayer
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end


@interface SVGLayer (SWIFT_EXTENSION(PhylloConnect))
/// Applies the given fill color to all sublayers
@property (nonatomic) CGColorRef _Nullable fillColor;
@end


@class NSNumber;

@interface SVGLayer (SWIFT_EXTENSION(PhylloConnect))
/// Applies the given line width to all <code>CAShapeLayer</code>s
@property (nonatomic) CGFloat lineWidth;
/// Applies the given stroke color to all <code>CAShapeLayer</code>s
@property (nonatomic) CGColorRef _Nullable strokeColor;
@end


/// A <code>UIView</code> subclass that can be used in Interface Builder where you can set the @IBInspectable propert <code>SVGName</code> in the side panel. Use the UIView extensions if you want to creates SVG views programmatically.
SWIFT_CLASS("_TtC13PhylloConnect7SVGView")
@interface SVGView : UIView
/// The name of the SVG file in the main bundle
@property (nonatomic, copy) IBInspectable NSString * _Nullable svgName;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end











Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,33 +1,147 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name PhylloConnect
import AuthenticationServices
import CoreGraphics
import Foundation
@_exported import PhylloConnect
import SafariServices
import Swift
import UIKit
import WebKit
import _Concurrency
public func unown<T, U, V>(_ owner: T, _ method: @escaping (T) -> ((U) -> V)) -> (U) -> V where T : AnyObject
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor(unsafe) public class LoginViewController : UIKit.UIViewController {
@_Concurrency.MainActor(unsafe) @objc override dynamic public func viewDidLoad()
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
}
extension Swift.Dictionary {
public mutating func add(_ dictionary: [Key : Value])
}
public protocol SVGShapeElement : Fillable, Identifiable, SVGElement, Strokable, Stylable, Transformable {
var svgLayer: QuartzCore.CAShapeLayer { get set }
}
extension UIKit.UIColor {
convenience public init?(cssName: Swift.String)
}
public protocol Fillable {
}
public protocol SVGContainerElement : DelaysApplyingAttributes, Fillable, Identifiable, SVGElement, Strokable, Stylable, Transformable {
var containerLayer: QuartzCore.CALayer { get set }
}
public protocol SVGParser {
init(svgData: Foundation.Data, supportedElements: SVGParserSupportedElements?, completion: ((SVGLayer) -> ())?)
var completionBlock: ((SVGLayer) -> ())? { get }
var supportedElements: SVGParserSupportedElements? { get }
var containerLayer: SVGLayer { get }
func startParsing()
}
public struct SVGParserSupportedElements {
public typealias ElementGenerator = () -> SVGElement
public let tags: [Swift.String : SVGParserSupportedElements.ElementGenerator]
public init(tags: [Swift.String : SVGParserSupportedElements.ElementGenerator])
public static var barebones: SVGParserSupportedElements {
get
}
public static var allSupportedElements: SVGParserSupportedElements {
get
}
}
extension QuartzCore.CALayer {
@discardableResult
convenience public init(svgURL: Foundation.URL, parser: SVGParser? = nil, completion: @escaping (SVGLayer) -> ())
@available(*, deprecated, renamed: "init(svgURL:parser:completion:)")
@discardableResult
convenience public init(SVGURL: Foundation.URL, parser: SVGParser? = nil, completion: @escaping (SVGLayer) -> ())
@discardableResult
convenience public init(svgData: Foundation.Data, parser: SVGParser? = nil, completion: @escaping (SVGLayer) -> ())
@available(*, deprecated, renamed: "init(svgData:parser:completion:)")
@discardableResult
convenience public init(SVGData: Foundation.Data, parser: SVGParser? = nil, completion: @escaping (SVGLayer) -> ())
}
public protocol Identifiable {
}
extension NSXMLSVGParser : SVGParser {
}
@objc @_hasMissingDesignatedInitializers open class NSXMLSVGParser : Foundation.XMLParser, Foundation.XMLParserDelegate {
public var completionBlock: ((SVGLayer) -> ())?
public var supportedElements: SVGParserSupportedElements?
open var containerLayer: SVGLayer
convenience public init(svgURL: Foundation.URL, supportedElements: SVGParserSupportedElements? = nil, completion: ((SVGLayer) -> ())? = nil)
@available(*, deprecated, renamed: "init(svgURL:supportedElements:completion:)")
convenience public init(SVGURL: Foundation.URL, supportedElements: SVGParserSupportedElements? = nil, completion: ((SVGLayer) -> ())? = nil)
required public init(svgData: Foundation.Data, supportedElements: SVGParserSupportedElements? = SVGParserSupportedElements.allSupportedElements, completion: ((SVGLayer) -> ())? = nil)
@available(*, deprecated, renamed: "init(svgData:supportedElements:completion:)")
convenience public init(SVGData: Foundation.Data, supportedElements: SVGParserSupportedElements? = SVGParserSupportedElements.allSupportedElements, completion: ((SVGLayer) -> ())? = nil)
public func startParsing()
@objc open func parser(_ parser: Foundation.XMLParser, didStartElement elementName: Swift.String, namespaceURI: Swift.String?, qualifiedName qName: Swift.String?, attributes attributeDict: [Swift.String : Swift.String])
@objc open func parser(_ parser: Foundation.XMLParser, didEndElement elementName: Swift.String, namespaceURI: Swift.String?, qualifiedName qName: Swift.String?)
@objc public func parserDidEndDocument(_ parser: Foundation.XMLParser)
@objc public func parser(_ parser: Foundation.XMLParser, parseErrorOccurred parseError: Swift.Error)
@objc deinit
}
public struct PhylloConfig {
public static var shared: PhylloConfig
public init()
public var env: PhylloEnvironment
public var phylloVC: UIKit.UIViewController
public var developerName: Swift.String
public var deepLinkURL: Swift.String
public var sdkToken: Swift.String
public var environment: PhylloEnvironment
public var clientDisplayName: Swift.String
public var token: Swift.String
public var userId: Swift.String
public var workPlatformId: Swift.String
}
public protocol Stylable {
}
extension UIKit.UIBezierPath {
convenience public init(pathString: Swift.String)
@available(*, deprecated, message: "This method is deprecated. If you want to parse a single path, instantiate a new instance of SVGPath using the SVGPath(singlePathString:) initializer and pass the path string.")
public class func pathWithSVGURL(_ SVGURL: Foundation.URL) -> UIKit.UIBezierPath?
}
public class PhylloConnect {
required public init(configuration: PhylloConfig)
public func launchSDK(workPlatformId: Swift.String)
open class PhylloConnect {
public static let shared: PhylloConnect
public init(config: PhylloConfig = PhylloConfig())
required public init?(coder aDecoder: Foundation.NSCoder)
public func open()
@objc deinit
}
extension UIKit.UIView {
@_Concurrency.MainActor(unsafe) convenience public init(pathString: Swift.String)
@_Concurrency.MainActor(unsafe) convenience public init(svgNamed: Swift.String, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
@available(*, deprecated, renamed: "init(svgNamed:parser:completion:)")
@_Concurrency.MainActor(unsafe) convenience public init(SVGNamed: Swift.String, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
@_Concurrency.MainActor(unsafe) convenience public init(svgURL: Foundation.URL, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
@available(*, deprecated, renamed: "init(svgURL:parser:completion:)")
@_Concurrency.MainActor(unsafe) convenience public init(SVGURL: Foundation.URL, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
@_Concurrency.MainActor(unsafe) convenience public init(svgData: Foundation.Data, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
@available(*, deprecated, renamed: "init(svgData:parser:completion:)")
@_Concurrency.MainActor(unsafe) convenience public init(SVGData svgData: Foundation.Data, parser: SVGParser? = nil, completion: ((SVGLayer) -> ())? = nil)
}
extension QuartzCore.CALayer {
open func applyOnSublayers<T>(ofType: T.Type, closure: (T) -> ()) where T : QuartzCore.CALayer
public func sublayers<T, U>(in layer: T) -> [U] where T : QuartzCore.CALayer
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor(unsafe) open class SVGView : UIKit.UIView {
@objc @IBInspectable @_Concurrency.MainActor(unsafe) open var svgName: Swift.String? {
@objc get
@objc set
}
@available(*, deprecated, renamed: "svgName")
@_Concurrency.MainActor(unsafe) open var SVGName: Swift.String?
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect)
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
}
public protocol SVGElement {
static var elementName: Swift.String { get }
var supportedAttributes: [Swift.String : (Swift.String) -> ()] { get set }
func didProcessElement(in container: SVGContainerElement?)
}
extension Swift.String {
public subscript(integerRange: Swift.Range<Swift.Int>) -> Swift.String {
get
}
}
public enum PhylloEnvironment : Swift.String {
case dev
case sandbox
Expand All @@ -38,6 +152,73 @@ public enum PhylloEnvironment : Swift.String {
get
}
}
@_hasMissingDesignatedInitializers open class SVGCache {
public static let `default`: SVGCache
final public let memoryCache: Foundation.NSCache<Foundation.NSString, SVGLayer>
public subscript(key: Swift.String) -> SVGLayer? {
get
set
}
public func removeObject(key: Swift.String)
@objc deinit
}
public protocol Strokable {
}
extension Swift.FloatingPoint {
public var toRadians: Self {
get
}
public var toDegrees: Self {
get
}
}
public protocol Transformable {
var layerToTransform: QuartzCore.CALayer { get }
}
public protocol SVGLayerType {
var boundingBox: CoreGraphics.CGRect { get }
}
extension SVGLayerType where Self : QuartzCore.CALayer {
@discardableResult
public func resizeToFit(_ rect: CoreGraphics.CGRect) -> Self
}
@objc @_inheritsConvenienceInitializers open class SVGLayer : QuartzCore.CAShapeLayer, SVGLayerType {
public var boundingBox: CoreGraphics.CGRect
@objc override dynamic public init()
@objc override dynamic public init(layer: Any)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
}
extension SVGLayer {
public var svgLayerCopy: SVGLayer? {
get
}
}
extension SVGLayer {
@objc override dynamic open var fillColor: CoreGraphics.CGColor? {
@objc get
@objc set
}
}
extension SVGLayer {
@objc override dynamic open var lineWidth: CoreGraphics.CGFloat {
@objc get
@objc set
}
@objc override dynamic open var strokeColor: CoreGraphics.CGColor? {
@objc get
@objc set
}
}
extension QuartzCore.CAShapeLayer {
convenience public init(pathString: Swift.String)
}
public protocol DelaysApplyingAttributes {
var delayedAttributes: [Swift.String : Swift.String] { get set }
}
extension DelaysApplyingAttributes where Self : SVGElement {
public mutating func applyDelayedAttributes()
}
extension PhylloEnvironment : Swift.Equatable {}
extension PhylloEnvironment : Swift.Hashable {}
extension PhylloEnvironment : Swift.RawRepresentable {}
Loading

0 comments on commit 7b6073b

Please sign in to comment.