Skip to content

Commit

Permalink
Added tvOS support for RateUs, fixed feedback apii failure issue when…
Browse files Browse the repository at this point in the history
… log file attached
  • Loading branch information
saravanan-selvam committed Apr 6, 2022
1 parent 17b133b commit b65d341
Show file tree
Hide file tree
Showing 270 changed files with 1,272 additions and 674 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Apptics-Swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |spec|

spec.name = "Apptics-Swift"
spec.module_name = "Apptics_Swift"
spec.version = "1.0.3"
spec.version = "1.0.4-debug"
spec.summary = "An in-app usage tracking and analytics library for iOS"
spec.license = { :type => "MIT", :text=> <<-LICENSE
MIT License
Expand Down
2 changes: 1 addition & 1 deletion Apptics.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Apptics"
spec.version = "1.0.3"
spec.version = "1.0.4-debug"
spec.summary = "Apptics iOS SDK"
spec.license = { :type => "MIT", :text=> <<-LICENSE
MIT License
Expand Down
52 changes: 26 additions & 26 deletions Apptics.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,46 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
Expand All @@ -50,29 +65,29 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>tvos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64_x86_64-simulator</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
Expand All @@ -91,31 +106,16 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>Apptics.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified Apptics.xcframework/ios-arm64_armv7/Apptics.framework/Apptics
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ typedef void (^internbgNonFatalRequestSuccessBlock)(void);

- (BOOL) shouldCollectData;

- (BOOL) shouldCollectCustomProps;

- (BOOL) shouldSendPersonalizedData;

- (BOOL) isUserLoggedIn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface ZAAESCrypto : NSObject

@property (nonatomic, readonly, nonnull) NSString *password;
@property (nonatomic, readonly, nonnull) NSData *salt;
@property (nonatomic, readonly, nonnull) NSData *iv;

+(ZAAESCrypto* _Nonnull) sharedManager;

- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password salt:(NSData *_Nonnull)salt iv:(NSData *_Nonnull)iv;
// Convenient shorthand. Will randomly generate salt and iv.
- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password;

+ (NSData *_Nonnull)randomDataOfLength:(size_t)length;
- (NSData *_Nonnull)encrypt:(NSData *_Nullable)data;
- (NSData *_Nullable)decrypt:(NSData *_Nonnull)data;
- (NSString* _Nullable)getBase64StringFor:(NSString* _Nonnull) string;
@end
//@interface ZAAESCrypto : NSObject
//
//@property (nonatomic, readonly, nonnull) NSString *password;
//@property (nonatomic, readonly, nonnull) NSData *salt;
//@property (nonatomic, readonly, nonnull) NSData *iv;
//
//+(ZAAESCrypto* _Nonnull) sharedManager;
//
//- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password salt:(NSData *_Nonnull)salt iv:(NSData *_Nonnull)iv;
//// Convenient shorthand. Will randomly generate salt and iv.
//- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password;
//
//+ (NSData *_Nonnull)randomDataOfLength:(size_t)length;
//- (NSData *_Nonnull)encrypt:(NSData *_Nullable)data;
//- (NSData *_Nullable)decrypt:(NSData *_Nonnull)data;
//- (NSString* _Nullable)getBase64StringFor:(NSString* _Nonnull) string;
//@end


@interface RSA : NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static NSString * kJA_MamTrackingInfo = @"kJA_MamTrackingInfo";
static NSString * kJA_MamCrashInfo = @"kJA_MamCrashInfo";
static NSString * kJA_CrashReportPermissionStatus = @"kJA_CrashReportPermissionStatus";
static NSString * kJA_CrashReportStatus = @"kJA_CrashReportStatus";
static NSString * kJA_ShouldCollectCustomProps = @"kJA_ShouldCollectCustomProps";

static NSString * kJA_SecretKey = @"1234567890123456";
static NSString * kJA_DeviceInfo = @"kJA_DeviceInfo";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong) NSOperationQueue *operationQueue;
@property (nonatomic, strong) NSOperationQueue *bgOperationQueue;

@property (strong,nonatomic) NSNumber *prevFlushTime;

typedef void (^bgEngagementRequestSuccessBlock)(void);
typedef void (^bgNonFatalRequestSuccessBlock)(void);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ typedef NS_ENUM(NSInteger, CARType) // Crash Authorization Result Type

NS_ASSUME_NONNULL_BEGIN

@interface ZAPIIManager : NSObject
@interface ZAPIIManager : NSObject

@property (copy) void(^ _Nullable crashAlertCompletion) (CARType type);

Expand Down Expand Up @@ -68,13 +68,17 @@ NS_ASSUME_NONNULL_BEGIN

@property BOOL shouldSendCrashData;

@property (readonly) BOOL shouldCollectCustomProps;

+ (ZAPIIManager* _Nonnull) getInstance;

- (void) collectCustomProps : (BOOL) status;

- (void) initializer;

-(void) saveData;
- (void) saveData;

-(void) removeAllUsers;
- (void) removeAllUsers;

- (void) updateShouldCollectDataForCurrentUser;

Expand Down
Binary file modified Apptics.xcframework/ios-arm64_armv7/Apptics.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ typedef void (^internbgNonFatalRequestSuccessBlock)(void);

- (BOOL) shouldCollectData;

- (BOOL) shouldCollectCustomProps;

- (BOOL) shouldSendPersonalizedData;

- (BOOL) isUserLoggedIn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface ZAAESCrypto : NSObject

@property (nonatomic, readonly, nonnull) NSString *password;
@property (nonatomic, readonly, nonnull) NSData *salt;
@property (nonatomic, readonly, nonnull) NSData *iv;

+(ZAAESCrypto* _Nonnull) sharedManager;

- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password salt:(NSData *_Nonnull)salt iv:(NSData *_Nonnull)iv;
// Convenient shorthand. Will randomly generate salt and iv.
- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password;

+ (NSData *_Nonnull)randomDataOfLength:(size_t)length;
- (NSData *_Nonnull)encrypt:(NSData *_Nullable)data;
- (NSData *_Nullable)decrypt:(NSData *_Nonnull)data;
- (NSString* _Nullable)getBase64StringFor:(NSString* _Nonnull) string;
@end
//@interface ZAAESCrypto : NSObject
//
//@property (nonatomic, readonly, nonnull) NSString *password;
//@property (nonatomic, readonly, nonnull) NSData *salt;
//@property (nonatomic, readonly, nonnull) NSData *iv;
//
//+(ZAAESCrypto* _Nonnull) sharedManager;
//
//- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password salt:(NSData *_Nonnull)salt iv:(NSData *_Nonnull)iv;
//// Convenient shorthand. Will randomly generate salt and iv.
//- (instancetype _Nonnull)initWithPassword:(NSString *_Nonnull)password;
//
//+ (NSData *_Nonnull)randomDataOfLength:(size_t)length;
//- (NSData *_Nonnull)encrypt:(NSData *_Nullable)data;
//- (NSData *_Nullable)decrypt:(NSData *_Nonnull)data;
//- (NSString* _Nullable)getBase64StringFor:(NSString* _Nonnull) string;
//@end


@interface RSA : NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static NSString * kJA_MamTrackingInfo = @"kJA_MamTrackingInfo";
static NSString * kJA_MamCrashInfo = @"kJA_MamCrashInfo";
static NSString * kJA_CrashReportPermissionStatus = @"kJA_CrashReportPermissionStatus";
static NSString * kJA_CrashReportStatus = @"kJA_CrashReportStatus";
static NSString * kJA_ShouldCollectCustomProps = @"kJA_ShouldCollectCustomProps";

static NSString * kJA_SecretKey = @"1234567890123456";
static NSString * kJA_DeviceInfo = @"kJA_DeviceInfo";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, strong) NSOperationQueue *operationQueue;
@property (nonatomic, strong) NSOperationQueue *bgOperationQueue;

@property (strong,nonatomic) NSNumber *prevFlushTime;

typedef void (^bgEngagementRequestSuccessBlock)(void);
typedef void (^bgNonFatalRequestSuccessBlock)(void);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ typedef NS_ENUM(NSInteger, CARType) // Crash Authorization Result Type

NS_ASSUME_NONNULL_BEGIN

@interface ZAPIIManager : NSObject
@interface ZAPIIManager : NSObject

@property (copy) void(^ _Nullable crashAlertCompletion) (CARType type);

Expand Down Expand Up @@ -68,13 +68,17 @@ NS_ASSUME_NONNULL_BEGIN

@property BOOL shouldSendCrashData;

@property (readonly) BOOL shouldCollectCustomProps;

+ (ZAPIIManager* _Nonnull) getInstance;

- (void) collectCustomProps : (BOOL) status;

- (void) initializer;

-(void) saveData;
- (void) saveData;

-(void) removeAllUsers;
- (void) removeAllUsers;

- (void) updateShouldCollectDataForCurrentUser;

Expand Down
Binary file not shown.
Loading

0 comments on commit b65d341

Please sign in to comment.