Skip to content

Commit

Permalink
Release 12.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
intercom-ios-release-robot committed Apr 22, 2022
1 parent d844363 commit b49044d
Show file tree
Hide file tree
Showing 81 changed files with 660 additions and 143 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 12.1.1
###### Release Date: 22-02-2022

### 🐛 Bug Fixes
* Fixed an issue where a Custom Bot that was collecting data attributes would crash if the same path was displayed to users a second time.

## 12.1.0
###### Release Date: 31-3-2022

Expand Down
2 changes: 1 addition & 1 deletion Intercom.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Intercom'
s.version = '12.1.0'
s.version = '12.1.1'
s.summary = 'The Intercom iOS SDK, for integrating Intercom into your iOS application.'
s.license = { :type => "Apache 2.0", :file => "LICENSE" }
s.authors = {"Brian Boyle"=>"[email protected]", "Mike McNamara"=>"[email protected]", "Katherine Brennan"=>"[email protected]", "Himanshi Goyal"=>"[email protected]", "Niamh Coleman"=>"[email protected]"}
Expand Down
10 changes: 5 additions & 5 deletions Intercom.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_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Intercom.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</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Intercom.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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <UIKit/UIKit.h>
#import "ICMContentViewController.h"
#import <Intercom/ICMContentViewController.h>
@class HelpCenterMetricService;

@protocol ICMContentViewControllerDelegate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <Foundation/Foundation.h>
#import "ICMSafeNetworkModel.h"
#import <Intercom/ICMSafeNetworkModel.h>

@interface ICMAvatar : ICMSafeNetworkModel <NSSecureCoding>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ICMTeammatePresenceView.h"
#import <Intercom/ICMTeammatePresenceView.h>

@interface ICMAvatarView : UIView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ITBBlockAppearance.h"
#import <Intercom/ITBBlockAppearance.h>

@interface ICMBlockAppearance : NSObject <ITBBlockAppearance>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <UIKit/UIKit.h>
#import "ICMSafeNetworkModel.h"
#import <Intercom/ICMSafeNetworkModel.h>

static NSString *const kICMIntercomConfigChangedNotification = @"kICMIntercomConfigChangedNotification";
static NSString *const kICMMessengerBackgroundImageLoadedNotification = @"kICMMessengerBackgroundImageLoadedNotification";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMContentViewControllerDelegate.h"
#import <Intercom/ICMContentViewControllerDelegate.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMValidatorProtocol.h"
#import <Intercom/ICMValidatorProtocol.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ICMUnreadManager.h"
#import "ICMDataManagerProtocol.h"
#import <Intercom/ICMUnreadManager.h>
#import <Intercom/ICMDataManagerProtocol.h>

@class ICMConversation;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 Intercom. All rights reserved.
//

#import "ICMTextField.h"
#import <Intercom/ICMTextField.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMValidatorProtocol.h"
#import <Intercom/ICMValidatorProtocol.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// ICMAttribute.h
// IntercomSDK
//
// Created by Dale Cantwell on 20/02/2019.
// Copyright © 2019 Intercom. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Intercom/ICMSafeNetworkModel.h>

typedef NS_ENUM(NSUInteger, ICMFormAttributeInputType) {
ICMFormAttributeInputTypeSimpleText = 0,
ICMFormAttributeInputTypeEmail = 1,
ICMFormAttributeInputTypePhone = 2,
ICMFormAttributeInputTypePicker = 3,
ICMFormAttributeInputTypeInteger = 4,
ICMFormAttributeInputTypeFloat = 5,
ICMFormAttributeInputTypeDate = 6,
ICMFormAttributeInputTypeBoolean = 7,
ICMFormAttributeInputTypeWebsite = 8,
ICMFormAttributeInputTypeUnknown = 9,
};

NS_ASSUME_NONNULL_BEGIN

@interface ICMFormAttribute : ICMSafeNetworkModel

@property (nonatomic, copy) NSString *customBotId;
@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *type;
@property (nonatomic, copy) NSArray<NSString *> *options;
@property (nonatomic, strong, nullable) id value;

+ (instancetype)instanceFromDictionary:(NSDictionary *)dictionary;
+ (void)storeFormError:(NSString *)error key:(NSString *)key;
+ (NSString *)fetchFormErrorForKey:(NSString *)key;
+ (void)clearFormErrorsCache;
- (ICMFormAttributeInputType)formInputType;
- (NSString *)uniqueId;


@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMHTTPClientProtocol.h"
#import <Intercom/ICMHTTPClientProtocol.h>

@class ArticleMetaData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef ICMHTTPClientProtocol_h
#define ICMHTTPClientProtocol_h

#import "ICMEngine.h"
#import <Intercom/ICMEngine.h>

@class ITBUpload;
@class ICMConversationsResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMMetricEvent.h"
#import <Intercom/ICMMetricEvent.h>
@class ICMOpsMetricEvent;

@protocol ICMMetricProtocol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import <Foundation/Foundation.h>
#import "ICMSafeNetworkModel.h"
#import "ICMAvatar.h"
#import <Intercom/ICMSafeNetworkModel.h>
#import <Intercom/ICMAvatar.h>

@interface ICMParticipant : ICMSafeNetworkModel <NSSecureCoding>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//

#import "ICMParticipant.h"
#import <Intercom/ICMParticipant.h>
@class ICMSocialAccount;

@interface ICMParticipatingAdmin : ICMParticipant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 Intercom. All rights reserved.
//

#import "ICMTextField.h"
#import <Intercom/ICMTextField.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 Intercom. All rights reserved.
//

#import "ICMTextField.h"
#import <Intercom/ICMTextField.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class ICMBaseViewController;
#import "ICMInAppsViewController.h"
#import "ICMWindowProvider.h"
#import "ICMNavigationController.h"
#import <Intercom/ICMInAppsViewController.h>
#import <Intercom/ICMWindowProvider.h>
#import <Intercom/ICMNavigationController.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "ICMSafeNetworkModel.h"
#import <Intercom/ICMSafeNetworkModel.h>

@class ICMParticipant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <UIKit/UIKit.h>
#import "ICMRootViewController.h"
#import <Intercom/ICMRootViewController.h>

@interface ICMWindow : UIWindow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <UIKit/UIKit.h>
#import "ITBBlockAppearance.h"
#import <Intercom/ITBBlockAppearance.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ITBLoadingView.h"
#import <Intercom/ITBLoadingView.h>

@protocol ITBBlockAppearance <NSObject>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,17 @@ SWIFT_CLASS("_TtC8Intercom22AvailableTeammatesView")
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

typedef SWIFT_ENUM(NSInteger, CardType, open) {
CardTypePost = 0,
CardTypeTicket = 1,
};


SWIFT_PROTOCOL("_TtP8Intercom16CardViewDelegate_")
@protocol CardViewDelegate
- (void)cardButtonTappedFor:(enum CardType)cardType;
@end

@protocol ConversationCardInfoProtocol;
@protocol ConversationCardDelegate;
@class UITraitCollection;
Expand Down Expand Up @@ -553,19 +564,62 @@ SWIFT_CLASS("_TtC8Intercom20SurveyViewController")
@end



@interface SurveyViewController (SWIFT_EXTENSION(Intercom)) <ICMErrorViewDelegate>
- (void)didSelectErrorAction;
@end




@interface SurveyViewController (SWIFT_EXTENSION(Intercom)) <ICMContentViewController>
- (void)reload;
- (void)closeButtonTapped;
- (void)viewDidDismissBySwipe;
@end

@class TicketStatus;
@class ICMFormAttribute;

SWIFT_CLASS("_TtC8Intercom6Ticket")
@interface Ticket : NSObject
- (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title ticketDescription:(NSString * _Nullable)ticketDescription iconURL:(NSString * _Nullable)iconURL currentStatus:(TicketStatus * _Nonnull)currentStatus statusList:(NSArray<TicketStatus *> * _Nonnull)statusList attributes:(NSArray<ICMFormAttribute *> * _Nonnull)attributes assignee:(ICMParticipant * _Nonnull)assignee OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dictionary OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


@protocol IntercomConversationPart;
@protocol IntercomConversationPartDelegate;

SWIFT_CLASS("_TtC8Intercom14TicketCardView")
@interface TicketCardView : IntercomConversationCustomCell
@property (nonatomic, weak) id <CardViewDelegate> _Nullable delegate;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)configureWithPart:(id <IntercomConversationPart> _Null_unspecified)part reloadDelegate:(id <IntercomConversationPartDelegate> _Null_unspecified)delegate;
+ (CGSize)estimatedSizeForPart:(id <IntercomConversationPart> _Null_unspecified)part withinWidth:(CGFloat)width SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC8Intercom27TicketDetailsViewController")
@interface TicketDetailsViewController : UIViewController
- (void)viewDidLoad;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end



SWIFT_CLASS("_TtC8Intercom12TicketStatus")
@interface TicketStatus : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
- (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title createdDate:(NSDate * _Nullable)createdDate statusDetail:(NSString * _Nullable)statusDetail isCurrentStatus:(BOOL)isCurrentStatus OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


@class UIEvent;
@class UICollectionViewLayout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Intercom/ICMUserAttributes.h>
#import <Intercom/ICMFormAttribute.h>
#import <Intercom/ICMUserAttributesValidation.h>
#import <Intercom/ICMCompany.h>
#import <Intercom/ICMHelpCenterCollection.h>
Expand Down Expand Up @@ -83,6 +84,7 @@
#import <Intercom/ITBLoadingView.h>
#import <Intercom/ITBImageLoader.h>
#import <Intercom/ITBBlock.h>
#import <Intercom/IntercomConversationCustomCell.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Loading

0 comments on commit b49044d

Please sign in to comment.