Skip to content

Commit

Permalink
Release 0.3.1
Browse files Browse the repository at this point in the history
- Added version method to help with debugging.
- More robust internal logging and debugging mechanisms.
  • Loading branch information
erpankajpatel authored and chiragphyllo committed Dec 2, 2022
1 parent ea71cdf commit d761269
Show file tree
Hide file tree
Showing 34 changed files with 83,827 additions and 1,964 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.3.0'
spec.version = '0.3.1'
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
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ using UInt = size_t;
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import Foundation;
@import ObjectiveC;
#endif

#endif
Expand All @@ -250,10 +252,100 @@ using UInt = size_t;
#endif

#if defined(__OBJC__)


@class SEGConfiguration;

SWIFT_CLASS_NAMED("ObjCAnalytics")
@interface SEGAnalytics : NSObject
- (nonnull instancetype)initWithConfiguration:(SEGConfiguration * _Nonnull)configuration OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end

@class NSString;

@interface SEGAnalytics (SWIFT_EXTENSION(PhylloConnect))
@property (nonatomic, readonly, copy) NSString * _Nonnull anonymousId;
@property (nonatomic, readonly, copy) NSString * _Nullable userId;
- (NSDictionary<NSString *, id> * _Nullable)traits SWIFT_WARN_UNUSED_RESULT;
- (void)flush;
- (void)reset;
- (NSDictionary<NSString *, id> * _Nullable)settings SWIFT_WARN_UNUSED_RESULT;
- (NSString * _Nonnull)version SWIFT_WARN_UNUSED_RESULT;
@end


@interface SEGAnalytics (SWIFT_EXTENSION(PhylloConnect))
- (void)track:(NSString * _Nonnull)name;
- (void)track:(NSString * _Nonnull)name properties:(NSDictionary<NSString *, id> * _Nullable)properties;
/// Associate a user with their unique ID and record traits about them.
/// \param userId A database ID (or email address) for this user.
/// For more information on how we generate the UUID and Apple’s policies on IDs, see
/// https://segment.io/libraries/ios#ids
/// In the case when user logs out, make sure to call <code>reset()</code> to clear user’s identity info.
///
- (void)identify:(NSString * _Nonnull)userId;
/// Associate a user with their unique ID and record traits about them.
/// \param userId A database ID (or email address) for this user.
/// For more information on how we generate the UUID and Apple’s policies on IDs, see
/// https://segment.io/libraries/ios#ids
///
/// \param traits A dictionary of traits you know about the user. Things like: email, name, plan, etc.
/// In the case when user logs out, make sure to call <code>reset()</code> to clear user’s identity info.
///
- (void)identify:(NSString * _Nonnull)userId traits:(NSDictionary<NSString *, id> * _Nullable)traits;
/// Track a screen change with a title, category and other properties.
/// \param screenTitle The title of the screen being tracked.
///
- (void)screen:(NSString * _Nonnull)title;
/// Track a screen change with a title, category and other properties.
/// \param screenTitle The title of the screen being tracked.
///
/// \param category A category to the type of screen if it applies.
///
- (void)screen:(NSString * _Nonnull)title category:(NSString * _Nullable)category;
/// Track a screen change with a title, category and other properties.
/// \param screenTitle The title of the screen being tracked.
///
/// \param category A category to the type of screen if it applies.
///
/// \param properties Any extra metadata associated with the screen. e.g. method of access, size, etc.
///
- (void)screen:(NSString * _Nonnull)title category:(NSString * _Nullable)category properties:(NSDictionary<NSString *, id> * _Nullable)properties;
/// Associate a user with a group such as a company, organization, project, etc.
/// \param groupId A unique identifier for the group identification in your system.
///
- (void)group:(NSString * _Nonnull)groupId;
/// Associate a user with a group such as a company, organization, project, etc.
/// \param groupId A unique identifier for the group identification in your system.
///
/// \param traits Traits of the group you may be interested in such as email, phone or name.
///
- (void)group:(NSString * _Nonnull)groupId traits:(NSDictionary<NSString *, id> * _Nullable)traits;
- (void)alias:(NSString * _Nonnull)newId;
@end


SWIFT_CLASS_NAMED("ObjCConfiguration")
@interface SEGConfiguration : NSObject
@property (nonatomic) id _Nullable application;
@property (nonatomic) BOOL trackApplicationLifecycleEvents;
@property (nonatomic) BOOL trackDeeplinks;
@property (nonatomic) NSInteger flushAt;
@property (nonatomic) NSTimeInterval flushInterval;
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nonnull defaultSettings;
@property (nonatomic) BOOL autoAddSegmentDestination;
@property (nonatomic, copy) NSString * _Nonnull apiHost;
@property (nonatomic, copy) NSString * _Nonnull cdnHost;
- (nonnull instancetype)initWithWriteKey:(NSString * _Nonnull)writeKey OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL("_TtP13PhylloConnect21PhylloConnectDelegate_")
@protocol PhylloConnectDelegate
@protocol PhylloConnectDelegate <NSObject>
- (void)onAccountConnectedWithAccount_id:(NSString * _Nonnull)account_id work_platform_id:(NSString * _Nonnull)work_platform_id user_id:(NSString * _Nonnull)user_id;
- (void)onAccountDisconnectedWithAccount_id:(NSString * _Nonnull)account_id work_platform_id:(NSString * _Nonnull)work_platform_id user_id:(NSString * _Nonnull)user_id;
- (void)onTokenExpiredWithUser_id:(NSString * _Nonnull)user_id;
Expand All @@ -264,6 +356,7 @@ SWIFT_PROTOCOL("_TtP13PhylloConnect21PhylloConnectDelegate_")




#endif
#if defined(__cplusplus)
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ FOUNDATION_EXPORT const unsigned char PhylloConnectVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <PhylloConnect/PublicHeader.h>


Binary file not shown.
Loading

0 comments on commit d761269

Please sign in to comment.