Skip to content

Commit 97ae2c3

Browse files
Release 11.0.0
1 parent 28c6d17 commit 97ae2c3

File tree

531 files changed

+10429
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

531 files changed

+10429
-12
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 11.0.0
2+
###### Release Date: 06-01-2022
3+
4+
### 🚀 Enhancements
5+
* Version 11.0.0 of the Intercom iOS SDK sets the minimum target iOS version to iOS 13. Developers who's apps target iOS 10, 11 or 12 will need to bump their target version to a minimum of iOS 13 to begin using version 11.0.0 of the Intercom iOS SDK.
6+
7+
### 🐛 Bug Fixes
8+
* Fixed an issue where rotating to landscape glitched the UI.
9+
* Fixed an issue where images were losing their file extension when uploading from a mobile device.
10+
111
## 10.4.0
212
###### Release Date: 16-12-2021
313

Intercom.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Intercom'
3-
s.version = '10.4.0'
3+
s.version = '11.0.0'
44
s.summary = 'The Intercom iOS SDK, for integrating Intercom into your iOS application.'
55
s.license = { :type => "Apache 2.0", :file => "LICENSE" }
66
s.authors = {"Brian Boyle"=>"[email protected]", "Mike McNamara"=>"[email protected]", "Katherine Brennan"=>"[email protected]", "Himanshi Goyal"=>"[email protected]"}
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.library = "icucore", "xml2"
1111
s.requires_arc = true
1212
s.source = { :git => 'https://github.com/intercom/intercom-ios.git', :tag => s.version.to_s }
13-
s.platform = :ios, '10.0'
13+
s.platform = :ios, '13.0'
1414
s.preserve_paths = 'Intercom.xcframework'
1515
s.vendored_frameworks = 'Intercom.xcframework'
1616
end

Intercom.xcframework/Info.plist

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_i386_x86_64-simulator</string>
9+
<string>ios-arm64_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>Intercom.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>i386</string>
1615
<string>x86_64</string>
1716
</array>
1817
<key>SupportedPlatform</key>
@@ -22,13 +21,12 @@
2221
</dict>
2322
<dict>
2423
<key>LibraryIdentifier</key>
25-
<string>ios-arm64_armv7</string>
24+
<string>ios-arm64</string>
2625
<key>LibraryPath</key>
2726
<string>Intercom.framework</string>
2827
<key>SupportedArchitectures</key>
2928
<array>
3029
<string>arm64</string>
31-
<string>armv7</string>
3230
</array>
3331
<key>SupportedPlatform</key>
3432
<string>ios</string>
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
//
2+
// ICMCompany.h
3+
//
4+
// Created by Intercom on 17/01/2017.
5+
// Copyright (c) 2017 Intercom. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
/**
11+
* The ICMCompany object is used for adding companies to users in Intercom.
12+
* All of the default attributes you can modify are available as properties on ICMCompany.
13+
* This is an example of how to create an ICMCompany object to update default attributes.
14+
*
15+
* ICMCompany *company = [ICMCompany new];
16+
* company.companyId = @"12345";
17+
* company.name = @"TestCorp";
18+
*
19+
* You can also add custom attributes to your company.
20+
*
21+
* ICMCompany *company = [ICMCompany new];
22+
* company.companyId = @"12345";
23+
* company.name = @"TestCorp";
24+
* company.customAttributes = @{@"employee_count" : @200};
25+
*
26+
*/
27+
@interface ICMCompany : NSObject
28+
29+
/**
30+
The ID of the company.
31+
@note This property is required
32+
*/
33+
@property (nonatomic, copy, nullable) NSString *companyId;
34+
35+
/**
36+
The name of the company.
37+
*/
38+
@property (nonatomic, copy, nullable) NSString *name;
39+
40+
/**
41+
The created at date for this company.
42+
*/
43+
@property (nonatomic, strong, nullable) NSDate *createdAt;
44+
45+
/**
46+
The monthly spend of the company.
47+
*/
48+
@property (nonatomic, strong, nullable) NSNumber *monthlySpend;
49+
50+
/**
51+
The plan of the company.
52+
*/
53+
@property (nonatomic, copy, nullable) NSString *plan;
54+
55+
/**
56+
Custom attributes for this user.
57+
@note Each key must be an NSString and each value must be of type NSString, NSNumber or NSNull.
58+
*/
59+
@property (nonatomic, strong, nullable) NSDictionary<NSString *, id> *customAttributes;
60+
61+
/**
62+
Gives you a null value to apply to string attributes.
63+
64+
@return the value to set on string attributes which you wish to be null
65+
*/
66+
+ (nonnull NSString *)nullStringAttribute;
67+
68+
/**
69+
Gives you a null value to apply to number attributes.
70+
71+
@return the value to set on number attributes which you wish to be null
72+
*/
73+
+ (nonnull NSNumber *)nullNumberAttribute;
74+
75+
/**
76+
Gives you a null value to apply to date attributes.
77+
78+
@return the value to set on date attributes which you wish to be null
79+
*/
80+
+ (nonnull NSDate *)nullDateAttribute;
81+
82+
/**
83+
A dictionary representation for the company.
84+
*/
85+
- (nonnull NSDictionary<NSString *, id> *)attributes;
86+
87+
@end
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// ICMHelpCenterArticle.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 03/06/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
/**
14+
ICMHelpCenterArticle represents a Help Center article.
15+
*/
16+
NS_SWIFT_NAME(HelpCenterArticle)
17+
@interface ICMHelpCenterArticle : NSObject
18+
19+
/**
20+
The id of this article.
21+
*/
22+
@property (nonatomic, copy) NSString *articleId;
23+
24+
/**
25+
The title of this article.
26+
*/
27+
@property (nonatomic, copy) NSString *title;
28+
29+
- (instancetype)initWithArticleId:(NSString *)articleId
30+
title:(NSString *)title;
31+
32+
@end
33+
34+
NS_ASSUME_NONNULL_END
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// ICMHelpCenterArticleSearchResult.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 04/06/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
/**
14+
ICMHelpCenterArticleSearchResult represents the result of a Help Center search.
15+
*/
16+
NS_SWIFT_NAME(HelpCenterArticleSearchResult)
17+
@interface ICMHelpCenterArticleSearchResult : NSObject
18+
19+
/**
20+
The id of this article.
21+
*/
22+
@property (nonatomic, copy) NSString *articleId;
23+
24+
/**
25+
The title of this article.
26+
*/
27+
@property (nonatomic, copy) NSString *title;
28+
29+
/**
30+
The summary of this article.
31+
*/
32+
@property (nonatomic, copy) NSString *summary;
33+
34+
/**
35+
A snippet of this article that matches the search term.
36+
*/
37+
@property (nonatomic, copy) NSString *matchingSnippet;
38+
39+
- (instancetype)initWithArticleId:(NSString *)articleId
40+
title:(NSString *)title
41+
summary:(nullable NSString *)summary
42+
matchingSnippet:(nullable NSString *)matchingSnippet;
43+
44+
@end
45+
46+
NS_ASSUME_NONNULL_END
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// ICMHelpCenterCollection.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 26/05/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
/**
14+
ICMHelpCenterCollection represents a Help Center collection.
15+
*/
16+
NS_SWIFT_NAME(HelpCenterCollection)
17+
@interface ICMHelpCenterCollection : NSObject
18+
19+
/**
20+
The id of this collection.
21+
*/
22+
@property (nonatomic, copy) NSString *collectionId;
23+
24+
/**
25+
The title of this collection.
26+
*/
27+
@property (nonatomic, copy) NSString *title;
28+
29+
/**
30+
A summary of this collection.
31+
*/
32+
@property (nonatomic, copy, nullable) NSString *summary;
33+
34+
- (instancetype)initWithCollectionId:(NSString *)collectionId
35+
title:(NSString *)title
36+
summary:(nullable NSString *)summary;
37+
38+
@end
39+
40+
NS_ASSUME_NONNULL_END
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
//
2+
// ICMHelpCenterCollectionContent.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 03/06/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
@class ICMHelpCenterArticle;
11+
@class ICMHelpCenterSection;
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
/**
16+
ICMHelpCenterCollection represents a Help Center collection and its contents.
17+
*/
18+
NS_SWIFT_NAME(HelpCenterCollectionContent)
19+
@interface ICMHelpCenterCollectionContent : NSObject
20+
21+
/**
22+
The id of this collection.
23+
*/
24+
@property (nonatomic, copy) NSString *collectionId;
25+
26+
/**
27+
The title of this collection.
28+
*/
29+
@property (nonatomic, copy) NSString *title;
30+
31+
/**
32+
A summary of this collection.
33+
*/
34+
@property (nonatomic, copy, nullable) NSString *summary;
35+
36+
/**
37+
The articles contained in this collection.
38+
*/
39+
@property (nonatomic, strong) NSArray<ICMHelpCenterArticle *> *articles;
40+
41+
/**
42+
The sections contained in this collection.
43+
*/
44+
@property (nonatomic, strong) NSArray<ICMHelpCenterSection *> *sections;
45+
46+
- (instancetype)initWithCollectionId:(NSString *)collectionId
47+
title:(NSString *)title
48+
summary:(nullable NSString *)summary
49+
articles:(NSArray<ICMHelpCenterArticle *> *)articles
50+
sections:(NSArray<ICMHelpCenterSection *> *)sections;
51+
52+
53+
@end
54+
55+
NS_ASSUME_NONNULL_END
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// ICMHelpCenterDataError.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 08/06/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
extern NSErrorDomain const ICMHelpCenterDataErrorDomain;
14+
15+
typedef NS_ERROR_ENUM(ICMHelpCenterDataErrorDomain, ICMHelpCenterDataError) {
16+
contentNotAvailable = 1,
17+
networkError,
18+
somethingWentWrong,
19+
noUserRegistered,
20+
noAppRegistered
21+
};
22+
23+
NS_ASSUME_NONNULL_END
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// ICMHelpCenterSection.h
3+
// IntercomSDK-Dynamic
4+
//
5+
// Created by Michael McNamara on 03/06/2021.
6+
// Copyright © 2021 Intercom. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
@class ICMHelpCenterArticle;
11+
12+
NS_ASSUME_NONNULL_BEGIN
13+
14+
/**
15+
ICMHelpCenterSection represents a Help Center section.
16+
*/
17+
NS_SWIFT_NAME(HelpCenterSection)
18+
@interface ICMHelpCenterSection : NSObject
19+
20+
/**
21+
The title of this section.
22+
*/
23+
@property (nonatomic, copy) NSString *title;
24+
25+
/**
26+
The articles contained in this section.
27+
*/
28+
@property (nonatomic, strong) NSArray<ICMHelpCenterArticle *> *articles;
29+
30+
- (instancetype)initWithTitle:(NSString *)title
31+
articles:(NSArray<ICMHelpCenterArticle *> *)articles;
32+
33+
@end
34+
35+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)