diff --git a/CHANGELOG.md b/CHANGELOG.md index cad120e..c867e00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# 1.6.0 (2016/03/03) + +## Feature + +- Add Masking API for UIWebView & WKWebView + +## Bug Fixes + +- Fix build warning when integrating the SDK +- Reduce the possibility to upload duplicate session data +- Reduce the possibility of crashing while masking + # 1.5.1 (2016/02/21) ## Improvements diff --git a/Repro.embeddedframework/Repro.framework/Headers/RPRUser.h b/Repro.embeddedframework/Repro.framework/Headers/RPRUser.h deleted file mode 100644 index 43ccac4..0000000 --- a/Repro.embeddedframework/Repro.framework/Headers/RPRUser.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// RPRUser.h -// Repro -// -// Copyright © 2015 Repro Inc. All rights reserved. -// - -#import - -/** - * Repro Public API: RPRUser - */ -@interface RPRUser : NSObject - -@property (nonatomic, readonly) NSString *ID; -@property (nonatomic, readonly) NSDictionary *profile; - -/** - * @method - * - * @abstract - * Setting a profile in Repro User. - * - * @discussion - * key and value must be NSString objects - * - * @param value profile value string - * @param key profile key string - */ -- (void)setProfile:(NSString *)value forKey:(NSString *)key; - -/** - * @method - * - * @abstract - * Convenience method for setting profile information in Repro User. - * - * @discussion - * Keys and values must be NSString objects - * - * @param profile profile dictionary - */ -- (void)setProfile:(NSDictionary *)profile; - -@end diff --git a/Repro.embeddedframework/Repro.framework/Info.plist b/Repro.embeddedframework/Repro.framework/Info.plist index ceacb3d..261bcfe 100644 Binary files a/Repro.embeddedframework/Repro.framework/Info.plist and b/Repro.embeddedframework/Repro.framework/Info.plist differ diff --git a/Repro.embeddedframework/Repro.framework/Repro b/Repro.embeddedframework/Repro.framework/Repro index 771a925..b636b95 100644 Binary files a/Repro.embeddedframework/Repro.framework/Repro and b/Repro.embeddedframework/Repro.framework/Repro differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist index e7fda7c..381c4a1 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 791b3a1..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects.nib deleted file mode 100644 index 9c8c36a..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib deleted file mode 100644 index 3ecaf08..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib deleted file mode 100644 index a89bdab..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects.nib deleted file mode 100644 index 265e795..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib deleted file mode 100644 index 2f0f72c..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 69888ee..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects.nib deleted file mode 100644 index 984d683..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib deleted file mode 100644 index d7bd214..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 453ef93..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects.nib deleted file mode 100644 index 15b40a5..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib deleted file mode 100644 index 81e5b35..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 8e4acfa..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects.nib deleted file mode 100644 index 7090868..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib deleted file mode 100644 index ba53aa5..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 85c6677..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects.nib deleted file mode 100644 index 69d27a9..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib deleted file mode 100644 index 826ece1..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist deleted file mode 100644 index 907d9bc..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewController.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewController.nib deleted file mode 100644 index 0f7b0cf..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewController.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib deleted file mode 100644 index 1fa0858..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib deleted file mode 100644 index 69fa87e..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib deleted file mode 100644 index 840d2c8..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib deleted file mode 100644 index 2c8cf33..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 3f44bd6..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects.nib deleted file mode 100644 index db6a4e4..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib deleted file mode 100644 index 39e4265..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 5c37d54..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects.nib deleted file mode 100644 index 3633540..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib deleted file mode 100644 index 8e7ddb7..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib deleted file mode 100644 index eecef0a..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects.nib deleted file mode 100644 index 4ee39d2..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib deleted file mode 100644 index ac8b856..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 0692430..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects.nib deleted file mode 100644 index 72840be..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib deleted file mode 100644 index 9ec19f2..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 001e959..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects.nib deleted file mode 100644 index 7a1f01b..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib deleted file mode 100644 index 787e381..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 1aaf36a..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects.nib deleted file mode 100644 index 82181ad..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib deleted file mode 100644 index 2cdd946..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib deleted file mode 100644 index 3721a8a..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects.nib deleted file mode 100644 index 90aa0a9..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib deleted file mode 100644 index ed4ead5..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib deleted file mode 100644 index 03d3a30..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects.nib deleted file mode 100644 index 635b668..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib deleted file mode 100644 index 966742c..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/en.lproj/Localizable.strings b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/en.lproj/Localizable.strings deleted file mode 100644 index 7878a61..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/en.lproj/Localizable.strings and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/ja.lproj/Localizable.strings b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/ja.lproj/Localizable.strings deleted file mode 100644 index 84b43a7..0000000 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/ja.lproj/Localizable.strings and /dev/null differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/repro.js b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/repro.js index 5525e12..6357f24 100644 --- a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/repro.js +++ b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/repro.js @@ -1,43 +1,164 @@ -// Generated by CoffeeScript 1.10.0 (function() { - var repro, track; + var getAbsoluteOffsetFromBody, getOS, mask, prevSensitiveElementData, repro, sendMessageToSDK, sensitiveElements, timerForMasking, track, unmask, watch, scalesPageToFit, parseMetaContent; + + sensitiveElements = {}; + + prevSensitiveElementData = {}; + + timerForMasking = null; track = function(name, _props) { - var bridge, key, result, url, value; - if (typeof name !== 'string' || name === '') { + var data; + if (typeof name !== 'string' || name === '' || ((typeof _props !== 'object') && _props !== undefined)) { return; } - name = encodeURIComponent(name); - result = ''; - if (typeof _props === 'object') { - for (key in _props) { - value = _props[key]; - result += (encodeURIComponent(key)) + "=" + (encodeURIComponent(value)) + "&"; + if (_props === null || _props === undefined) { + _props = {}; + } + data = { + name: name, + properties: _props + }; + return sendMessageToSDK('repro://track?data=' + JSON.stringify(data)); + }; + + watch = function() { + var _e, _k, cur, data, offset, prev, fit; + if (Object.keys(sensitiveElements).length === 0) { + return; + } + data = []; + fit = scalesPageToFit(); + for (_k in sensitiveElements) { + _e = sensitiveElements[_k]; + offset = getAbsoluteOffsetFromBody(_e); + cur = { + x: offset.left, + y: offset.top, + w: _e.offsetWidth, + h: _e.offsetHeight, + key: _k, + ww: document.documentElement.clientWidth, + wh: document.documentElement.clientHeight, + fixed: (window.getComputedStyle(_e, null).position === "fixed"), + fit: fit + }; + prev = prevSensitiveElementData[_k]; + if (prev !== void 0 && prev !== null) { + if (cur.x === prev.x && cur.y === prev.y && cur.w === prev.w && cur.h === prev.h) { + continue; + } } - result = result.slice(0, result.length - 1); + data.push(cur); + prevSensitiveElementData[_k] = cur; } - if (result) { - url = 'repro://' + name + '?' + result; - } else { - url = 'repro://' + name; + if (Object.keys(data).length > 0) { + return sendMessageToSDK('repro://mask?data=' + JSON.stringify(data)); } - bridge = document.getElementById('repro-insight-bridge'); - if (bridge) { - return bridge.src = url; + }; + + mask = function(key, el) { + if (timerForMasking === null) { + timerForMasking = setInterval(watch, 50); + } + if (typeof key !== 'string' || key === '' || el === null) { + return; + } + return sensitiveElements[key] = el; + }; + + unmask = function(key) { + var data; + if (typeof key !== 'string' || key === '') { + return; + } + delete sensitiveElements[key]; + delete prevSensitiveElementData[key]; + data = { + key: key + }; + return sendMessageToSDK('repro://unmask?data=' + JSON.stringify(data)); + }; + + getAbsoluteOffsetFromBody = function(el) { + var _x, _y; + _x = 0; + _y = 0; + while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) { + _x += el.offsetLeft + el.clientLeft; + _y += el.offsetTop + el.clientTop; + el = el.offsetParent; + } + return { + top: _y, + left: _x + }; + }; + + getOS = function() { + var userAgent; + userAgent = void 0; + userAgent = navigator.userAgent || navigator.vendor || window.opera; + if (userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)) { + return "iOS"; + } else if (userAgent.match(/Android/i)) { + return "Android"; } else { - bridge = document.createElement('iframe'); - bridge.setAttribute('style', 'display:none;'); - bridge.setAttribute('height', '0px'); - bridge.setAttribute('width', '0px'); - bridge.setAttribute('frameborder', '0'); - bridge.setAttribute('id', 'repro-insight-bridge'); - document.documentElement.appendChild(bridge); - return bridge.src = url; + return "unknown"; } }; + sendMessageToSDK = function(url) { + var bridge; + bridge = document.createElement('iframe'); + bridge.setAttribute('style', 'display:none;'); + bridge.setAttribute('height', '0px'); + bridge.setAttribute('width', '0px'); + bridge.setAttribute('frameborder', '0'); + bridge.setAttribute('id', 'repro-sdk-bridge'); + bridge.setAttribute('src', url); + document.documentElement.appendChild(bridge); + bridge.parentNode.removeChild(bridge); + return bridge = null; + }; + + scalesPageToFit = function() { + var metas, parsed; + metas = document.getElementsByTagName("meta"); + for (var i = 0; i < metas.length; i++) { + if (metas[i].name === "viewport") { + parsed = parseMetaContent(metas[i].content); + } + } + if (parsed['width'] === 'device-width' && + parsed['height'] === 'device-height' && + parsed['initial-scale'] === '1.0' && + parsed['maximum-scale'] === '1.0') { + return false; + } + return true; + } + + parseMetaContent = function(str) { + var contents, parsed; + if (typeof str !== 'string') { + return null; + } + contents = str.split(','); + parsed = {}; + for (var i = 0; i < contents.length; i++) { + var s = contents[i].trim().split("="); + if (s.length === 2) { + parsed[s[0]] = s[1]; + } + } + return parsed; + } + repro = { - track: track + track: track, + mask: mask, + unmask: unmask }; window.repro = repro; diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle b/Repro.embeddedframework/Resources/ReproSDKResources.bundle deleted file mode 120000 index 7881ba2..0000000 --- a/Repro.embeddedframework/Resources/ReproSDKResources.bundle +++ /dev/null @@ -1 +0,0 @@ -../Repro.framework/ReproSDKResources.bundle \ No newline at end of file diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist new file mode 100644 index 0000000..381c4a1 Binary files /dev/null and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist differ diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro.js b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro.js new file mode 100644 index 0000000..6357f24 --- /dev/null +++ b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro.js @@ -0,0 +1,166 @@ +(function() { + var getAbsoluteOffsetFromBody, getOS, mask, prevSensitiveElementData, repro, sendMessageToSDK, sensitiveElements, timerForMasking, track, unmask, watch, scalesPageToFit, parseMetaContent; + + sensitiveElements = {}; + + prevSensitiveElementData = {}; + + timerForMasking = null; + + track = function(name, _props) { + var data; + if (typeof name !== 'string' || name === '' || ((typeof _props !== 'object') && _props !== undefined)) { + return; + } + if (_props === null || _props === undefined) { + _props = {}; + } + data = { + name: name, + properties: _props + }; + return sendMessageToSDK('repro://track?data=' + JSON.stringify(data)); + }; + + watch = function() { + var _e, _k, cur, data, offset, prev, fit; + if (Object.keys(sensitiveElements).length === 0) { + return; + } + data = []; + fit = scalesPageToFit(); + for (_k in sensitiveElements) { + _e = sensitiveElements[_k]; + offset = getAbsoluteOffsetFromBody(_e); + cur = { + x: offset.left, + y: offset.top, + w: _e.offsetWidth, + h: _e.offsetHeight, + key: _k, + ww: document.documentElement.clientWidth, + wh: document.documentElement.clientHeight, + fixed: (window.getComputedStyle(_e, null).position === "fixed"), + fit: fit + }; + prev = prevSensitiveElementData[_k]; + if (prev !== void 0 && prev !== null) { + if (cur.x === prev.x && cur.y === prev.y && cur.w === prev.w && cur.h === prev.h) { + continue; + } + } + data.push(cur); + prevSensitiveElementData[_k] = cur; + } + if (Object.keys(data).length > 0) { + return sendMessageToSDK('repro://mask?data=' + JSON.stringify(data)); + } + }; + + mask = function(key, el) { + if (timerForMasking === null) { + timerForMasking = setInterval(watch, 50); + } + if (typeof key !== 'string' || key === '' || el === null) { + return; + } + return sensitiveElements[key] = el; + }; + + unmask = function(key) { + var data; + if (typeof key !== 'string' || key === '') { + return; + } + delete sensitiveElements[key]; + delete prevSensitiveElementData[key]; + data = { + key: key + }; + return sendMessageToSDK('repro://unmask?data=' + JSON.stringify(data)); + }; + + getAbsoluteOffsetFromBody = function(el) { + var _x, _y; + _x = 0; + _y = 0; + while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) { + _x += el.offsetLeft + el.clientLeft; + _y += el.offsetTop + el.clientTop; + el = el.offsetParent; + } + return { + top: _y, + left: _x + }; + }; + + getOS = function() { + var userAgent; + userAgent = void 0; + userAgent = navigator.userAgent || navigator.vendor || window.opera; + if (userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)) { + return "iOS"; + } else if (userAgent.match(/Android/i)) { + return "Android"; + } else { + return "unknown"; + } + }; + + sendMessageToSDK = function(url) { + var bridge; + bridge = document.createElement('iframe'); + bridge.setAttribute('style', 'display:none;'); + bridge.setAttribute('height', '0px'); + bridge.setAttribute('width', '0px'); + bridge.setAttribute('frameborder', '0'); + bridge.setAttribute('id', 'repro-sdk-bridge'); + bridge.setAttribute('src', url); + document.documentElement.appendChild(bridge); + bridge.parentNode.removeChild(bridge); + return bridge = null; + }; + + scalesPageToFit = function() { + var metas, parsed; + metas = document.getElementsByTagName("meta"); + for (var i = 0; i < metas.length; i++) { + if (metas[i].name === "viewport") { + parsed = parseMetaContent(metas[i].content); + } + } + if (parsed['width'] === 'device-width' && + parsed['height'] === 'device-height' && + parsed['initial-scale'] === '1.0' && + parsed['maximum-scale'] === '1.0') { + return false; + } + return true; + } + + parseMetaContent = function(str) { + var contents, parsed; + if (typeof str !== 'string') { + return null; + } + contents = str.split(','); + parsed = {}; + for (var i = 0; i < contents.length; i++) { + var s = contents[i].trim().split("="); + if (s.length === 2) { + parsed[s[0]] = s[1]; + } + } + return parsed; + } + + repro = { + track: track, + mask: mask, + unmask: unmask + }; + + window.repro = repro; + +}).call(this); diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_close_button.png b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_close_button.png new file mode 100644 index 0000000..3b766f7 Binary files /dev/null and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_close_button.png differ diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_logo_transparent.png b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_logo_transparent.png new file mode 100644 index 0000000..d2b4cba Binary files /dev/null and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_logo_transparent.png differ diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch.png b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch.png new file mode 100644 index 0000000..a7a5507 Binary files /dev/null and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch.png differ diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch_landscape.png b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch_landscape.png new file mode 100644 index 0000000..8d03ea7 Binary files /dev/null and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/repro_touch_landscape.png differ