Skip to content

Commit 831d97c

Browse files
authored
Merge pull request #8 from CleverTap/0.1.4
SDK-290: Release v0.1.4
2 parents 9e0c7ed + d400bf4 commit 831d97c

File tree

73 files changed

+372
-219
lines changed

Some content is hidden

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

73 files changed

+372
-219
lines changed

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
Change Log
22
==========
33

4-
Version 0.1.3 *(24 October, 2017)*
4+
Version 0.1.4 *(8 July, 2020)*
55
-------------------------------------------
6+
- Add a method to return Push Notification response
67

8+
Version 0.1.3 *(24 October, 2017)*
9+
-------------------------------------------
710
- Update podspec to weak link UIkit framework to allow safe linking to < iOS 10 targets
811

9-
1012
Version 0.1.2 *(19 September, 2017)*
1113
-------------------------------------------
12-
1314
- Update podspec to weak link UserNotifications framework to allow safe linking to < iOS 10 targets
1415

15-
1616
Version 0.1.1 *(23 July, 2017)*
1717
-------------------------------------------
18-
- add support for Back button in slideshow
19-
- add autoDismiss flag for granular control of notification dismissal on action url click
20-
- tweaks to item caption, subcaption, and imageview border display
18+
- Add support for Back button in slideshow
19+
- Add autoDismiss flag for granular control of notification dismissal on action url click
20+
- Tweaks to item caption, subcaption, and imageview border display
2121

2222
Version 0.1.0 *(8 March, 2017)*
2323
-------------------------------------------
24-
2524
- Initial release.

CTNotificationContent.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "CTNotificationContent"
3-
s.version = "0.1.3"
3+
s.version = "0.1.4"
44
s.summary = "A Notification Content Extension class to display custom content interfaces for iOS 10 push notifications"
55
s.homepage = "https://github.com/CleverTap/CTNotificationContent"
66
s.license = "MIT"

CTNotificationContent.xcodeproj/project.pbxproj

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 50;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -165,7 +165,7 @@
165165
525715E01E67B8C0000E455B /* Project object */ = {
166166
isa = PBXProject;
167167
attributes = {
168-
LastUpgradeCheck = 0820;
168+
LastUpgradeCheck = 1130;
169169
ORGANIZATIONNAME = CleverTap;
170170
TargetAttributes = {
171171
525715E81E67B8C0000E455B = {
@@ -176,11 +176,12 @@
176176
};
177177
};
178178
buildConfigurationList = 525715E31E67B8C0000E455B /* Build configuration list for PBXProject "CTNotificationContent" */;
179-
compatibilityVersion = "Xcode 3.2";
180-
developmentRegion = English;
179+
compatibilityVersion = "Xcode 9.3";
180+
developmentRegion = en;
181181
hasScannedForEncodings = 0;
182182
knownRegions = (
183183
en,
184+
Base,
184185
);
185186
mainGroup = 525715DF1E67B8C0000E455B;
186187
productRefGroup = 525715EA1E67B8C0000E455B /* Products */;
@@ -222,20 +223,29 @@
222223
isa = XCBuildConfiguration;
223224
buildSettings = {
224225
ALWAYS_SEARCH_USER_PATHS = NO;
226+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
225227
CLANG_ANALYZER_NONNULL = YES;
226228
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
227229
CLANG_CXX_LIBRARY = "libc++";
228230
CLANG_ENABLE_MODULES = YES;
229231
CLANG_ENABLE_OBJC_ARC = YES;
232+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
230233
CLANG_WARN_BOOL_CONVERSION = YES;
234+
CLANG_WARN_COMMA = YES;
231235
CLANG_WARN_CONSTANT_CONVERSION = YES;
236+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
232237
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
233238
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
234239
CLANG_WARN_EMPTY_BODY = YES;
235240
CLANG_WARN_ENUM_CONVERSION = YES;
236241
CLANG_WARN_INFINITE_RECURSION = YES;
237242
CLANG_WARN_INT_CONVERSION = YES;
243+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
244+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
245+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
238246
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
247+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
248+
CLANG_WARN_STRICT_PROTOTYPES = YES;
239249
CLANG_WARN_SUSPICIOUS_MOVE = YES;
240250
CLANG_WARN_UNREACHABLE_CODE = YES;
241251
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -259,7 +269,7 @@
259269
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
260270
GCC_WARN_UNUSED_FUNCTION = YES;
261271
GCC_WARN_UNUSED_VARIABLE = YES;
262-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
272+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
263273
MTL_ENABLE_DEBUG_INFO = YES;
264274
ONLY_ACTIVE_ARCH = YES;
265275
SDKROOT = iphoneos;
@@ -273,20 +283,29 @@
273283
isa = XCBuildConfiguration;
274284
buildSettings = {
275285
ALWAYS_SEARCH_USER_PATHS = NO;
286+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
276287
CLANG_ANALYZER_NONNULL = YES;
277288
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
278289
CLANG_CXX_LIBRARY = "libc++";
279290
CLANG_ENABLE_MODULES = YES;
280291
CLANG_ENABLE_OBJC_ARC = YES;
292+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
281293
CLANG_WARN_BOOL_CONVERSION = YES;
294+
CLANG_WARN_COMMA = YES;
282295
CLANG_WARN_CONSTANT_CONVERSION = YES;
296+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
283297
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
284298
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
285299
CLANG_WARN_EMPTY_BODY = YES;
286300
CLANG_WARN_ENUM_CONVERSION = YES;
287301
CLANG_WARN_INFINITE_RECURSION = YES;
288302
CLANG_WARN_INT_CONVERSION = YES;
303+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
304+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
305+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
289306
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
307+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
308+
CLANG_WARN_STRICT_PROTOTYPES = YES;
290309
CLANG_WARN_SUSPICIOUS_MOVE = YES;
291310
CLANG_WARN_UNREACHABLE_CODE = YES;
292311
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -304,7 +323,7 @@
304323
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
305324
GCC_WARN_UNUSED_FUNCTION = YES;
306325
GCC_WARN_UNUSED_VARIABLE = YES;
307-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
326+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
308327
MTL_ENABLE_DEBUG_INFO = NO;
309328
SDKROOT = iphoneos;
310329
TARGETED_DEVICE_FAMILY = "1,2";
@@ -326,7 +345,12 @@
326345
DYLIB_INSTALL_NAME_BASE = "@rpath";
327346
INFOPLIST_FILE = CTNotificationContent/Info.plist;
328347
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
329-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
348+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
349+
LD_RUNPATH_SEARCH_PATHS = (
350+
"$(inherited)",
351+
"@executable_path/Frameworks",
352+
"@loader_path/Frameworks",
353+
);
330354
PRODUCT_BUNDLE_IDENTIFIER = com.clevertap.CTNotificationContent;
331355
PRODUCT_NAME = "$(TARGET_NAME)";
332356
SKIP_INSTALL = YES;
@@ -345,7 +369,12 @@
345369
DYLIB_INSTALL_NAME_BASE = "@rpath";
346370
INFOPLIST_FILE = CTNotificationContent/Info.plist;
347371
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
348-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
372+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
373+
LD_RUNPATH_SEARCH_PATHS = (
374+
"$(inherited)",
375+
"@executable_path/Frameworks",
376+
"@loader_path/Frameworks",
377+
);
349378
PRODUCT_BUNDLE_IDENTIFIER = com.clevertap.CTNotificationContent;
350379
PRODUCT_NAME = "$(TARGET_NAME)";
351380
SKIP_INSTALL = YES;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

CTNotificationContent/BaseCTNotificationContentViewController.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import <UIKit/UIKit.h>
32
#import <UserNotifications/UserNotifications.h>
43
#import <UserNotificationsUI/UserNotificationsUI.h>
@@ -12,5 +11,4 @@
1211

1312
- (CTNotificationViewController *)getParentViewController;
1413

15-
1614
@end

CTNotificationContent/BaseCTNotificationContentViewController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import "BaseCTNotificationContentViewController.h"
32
#import "CTNotificationViewController.h"
43

CTNotificationContent/CTNotificationContent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import <UIKit/UIKit.h>
32

43
//! Project version number for CTNotificationContent.

CTNotificationContent/CTNotificationViewController.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import <UIKit/UIKit.h>
32

43
typedef NS_ENUM(NSInteger, CTNotificationContentType) {
@@ -13,4 +12,6 @@ typedef NS_ENUM(NSInteger, CTNotificationContentType) {
1312

1413
- (void)openUrl:(NSURL * _Nonnull)url; // convenience method
1514

15+
- (void)userDidReceiveNotificationResponse:(UNNotificationResponse *_Nullable)response; // implement in your subclass to get notification response
16+
1617
@end

CTNotificationContent/CTNotificationViewController.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import "CTNotificationViewController.h"
32
#import "BaseCTNotificationContentViewController.h"
43
#import <UserNotifications/UserNotifications.h>
@@ -11,7 +10,6 @@ @interface CTNotificationViewController () <UNNotificationContentExtension>
1110

1211
@end
1312

14-
1513
@implementation CTNotificationViewController
1614

1715
- (void)viewDidLoad {
@@ -43,6 +41,7 @@ - (void)didReceiveNotification:(UNNotification *)notification {
4341
- (void)didReceiveNotificationResponse:(UNNotificationResponse *)response
4442
completionHandler:(void (^)(UNNotificationContentExtensionResponseOption))completion {
4543
UNNotificationContentExtensionResponseOption actionResponseOption = [self.contentViewController handleAction:response.actionIdentifier];
44+
[self userDidReceiveNotificationResponse:response];
4645
completion(actionResponseOption);
4746
}
4847

@@ -57,12 +56,16 @@ - (void)displayContentController: (BaseCTNotificationContentViewController *) co
5756
self.contentViewController = contentController;
5857
}
5958

60-
6159
- (void)userDidPerformAction:(NSString *)action withProperties:(NSDictionary *)properties {
6260
// no-op here
6361
// implement in your subclass to get user event type data
6462
}
6563

64+
- (void)userDidReceiveNotificationResponse:(UNNotificationResponse *)response {
65+
// no-op here
66+
// implement in your subclass to get notification response
67+
}
68+
6669
// convenience
6770
- (void)openUrl:(NSURL *)url {
6871
[self.extensionContext openURL:url completionHandler:nil];

CTNotificationContent/Categories/UIImage+CTImage.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#import <UIKit/UIKit.h>
32

43
@interface UIImage (CTImage)

0 commit comments

Comments
 (0)