File tree 7 files changed +490
-1168
lines changed
Example/Example.xcodeproj
7 files changed +490
-1168
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ NS_ASSUME_NONNULL_BEGIN
50
50
- (void )presentInteractionAtIndex : (NSInteger )index fromViewController : (UIViewController *)viewController ;
51
51
- (void )presentInteractionWithJSON : (NSDictionary *)JSON fromViewController : (UIViewController *)viewController ;
52
52
53
- - (void )checkSDKConfiguration ;
54
53
- (void )resetSDK ;
55
54
56
55
@end
Original file line number Diff line number Diff line change @@ -143,29 +143,4 @@ - (void)resetSDK {
143
143
[self setValue: nil forKey: @" engagementBackend" ];
144
144
}
145
145
146
- - (void )checkSDKConfiguration {
147
- BOOL hasPhotoLibraryUsageDescription = [[NSBundle mainBundle ].infoDictionary objectForKey: @" NSPhotoLibraryUsageDescription" ] != nil ;
148
-
149
- if (!hasPhotoLibraryUsageDescription) {
150
- ApptentiveLogError (@" No Photo Library Usage Description Set. This will cause your app to be rejected during app review." );
151
- }
152
-
153
- BOOL hasAppIDSet = self.appID != nil ;
154
-
155
- if (!hasAppIDSet) {
156
- ApptentiveLogError (@" No App ID set. This may keep the ratings prompt from directing users to your app in the App Store." );
157
- }
158
-
159
- BOOL hasResources = [Apptentive resourceBundle ] != nil ;
160
-
161
- if (!hasResources) {
162
- ApptentiveLogError (@" Missing resources." );
163
- #if APPTENTIVE_COCOAPODS
164
- ApptentiveLogError (@" Try cleaning derived data and/or `pod deintegrate && pod install`." );
165
- #else
166
- ApptentiveLogError (@" Please make sure the resources are added to the appropriate target(s)." );
167
- #endif
168
- }
169
- }
170
-
171
146
@end
Original file line number Diff line number Diff line change @@ -566,6 +566,10 @@ Returns a Boolean value indicating whether the given event will cause an Interac
566
566
567
567
- (void )setPushNotificationIntegration : (ApptentivePushProvider)pushProvider withDeviceToken : (NSData *)deviceToken APPTENTIVE_SWIFT_NAME(setPushProvider(_:deviceToken:));
568
568
569
+ #if APPTENTIVE_DEBUG
570
+ - (void )checkSDKConfiguration;
571
+ #endif
572
+
569
573
@end
570
574
571
575
/* *
Original file line number Diff line number Diff line change @@ -609,6 +609,33 @@ - (void)setAPIKey:(NSString *)APIKey baseURL:(NSURL *)baseURL {
609
609
}
610
610
}
611
611
612
+ #if APPTENTIVE_DEBUG
613
+ - (void )checkSDKConfiguration {
614
+ BOOL hasPhotoLibraryUsageDescription = [[NSBundle mainBundle ].infoDictionary objectForKey: @" NSPhotoLibraryUsageDescription" ] != nil ;
615
+
616
+ if (!hasPhotoLibraryUsageDescription) {
617
+ ApptentiveLogError (@" No Photo Library Usage Description Set. This will cause your app to be rejected during app review." );
618
+ }
619
+
620
+ BOOL hasAppIDSet = self.appID != nil ;
621
+
622
+ if (!hasAppIDSet) {
623
+ ApptentiveLogError (@" No App ID set. This may keep the ratings prompt from directing users to your app in the App Store." );
624
+ }
625
+
626
+ BOOL hasResources = [Apptentive resourceBundle ] != nil ;
627
+
628
+ if (!hasResources) {
629
+ ApptentiveLogError (@" Missing resources." );
630
+ #if APPTENTIVE_COCOAPODS
631
+ ApptentiveLogError (@" Try cleaning derived data and/or `pod deintegrate && pod install`." );
632
+ #else
633
+ ApptentiveLogError (@" Please make sure the resources are added to the appropriate target(s)." );
634
+ #endif
635
+ }
636
+ }
637
+ #endif
638
+
612
639
@end
613
640
614
641
Original file line number Diff line number Diff line change 26
26
#import " ApptentiveEngagementBackend.h"
27
27
#import " ApptentiveMessageCenterViewController.h"
28
28
29
- #if APPTENTIVE_DEBUG
30
- #import " Apptentive+Debugging.h"
31
- #endif
32
-
33
29
typedef NS_ENUM (NSInteger , ATBackendState) {
34
30
ATBackendStateStarting,
35
31
ATBackendStateWaitingForDataProtectionUnlock,
You can’t perform that action at this time.
0 commit comments