diff --git a/package.json b/package.json index 58d080c..25407c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-hockeyapp", - "version": "2.2.4", + "version": "5.0.0", "description": "Cordova plugin for HockeyApp", "cordova": { "id": "cordova-plugin-hockeyapp", diff --git a/plugin.xml b/plugin.xml index 9103df7..a72db6a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + HockeyApp Cordova plugin for HockeyApp Apache 2.0 @@ -40,7 +40,7 @@ - + diff --git a/src/android/HockeySDK-Android/HockeySDK-4.1.4.aar b/src/android/HockeySDK-Android/HockeySDK-4.1.4.aar deleted file mode 100644 index 6023160..0000000 Binary files a/src/android/HockeySDK-Android/HockeySDK-4.1.4.aar and /dev/null differ diff --git a/src/android/HockeySDK-Android/HockeySDK-5.0.2.aar b/src/android/HockeySDK-Android/HockeySDK-5.0.2.aar new file mode 100644 index 0000000..48649e3 Binary files /dev/null and b/src/android/HockeySDK-Android/HockeySDK-5.0.2.aar differ diff --git a/src/android/build.gradle b/src/android/build.gradle index f8b5e9b..3662f20 100644 --- a/src/android/build.gradle +++ b/src/android/build.gradle @@ -5,5 +5,5 @@ repositories { } dependencies { - compile(name:"HockeySDK-4.1.4", ext: "aar") + compile(name:"HockeySDK-5.0.2", ext: "aar") } \ No newline at end of file diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITAuthenticator.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITAuthenticator.h index df64cf3..a1eaac1 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITAuthenticator.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITAuthenticator.h @@ -230,7 +230,7 @@ typedef NS_ENUM(NSUInteger, BITAuthenticatorAppRestrictionEnforcementFrequency) * @see identificationType * @see handleOpenURL:sourceApplication:annotation: */ -@property (nonatomic, strong) NSString *urlScheme; +@property (nonatomic, copy) NSString *urlScheme; /** Should be used by the app-delegate to forward handle application:openURL:sourceApplication:annotation: calls. diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashDetails.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashDetails.h index 9021a31..be2d62f 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashDetails.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashDetails.h @@ -36,27 +36,27 @@ /** * UUID for the crash report */ -@property (nonatomic, readonly, strong) NSString *incidentIdentifier; +@property (nonatomic, readonly, copy) NSString *incidentIdentifier; /** * UUID for the app installation on the device */ -@property (nonatomic, readonly, strong) NSString *reporterKey; +@property (nonatomic, readonly, copy) NSString *reporterKey; /** * Signal that caused the crash */ -@property (nonatomic, readonly, strong) NSString *signal; +@property (nonatomic, readonly, copy) NSString *signal; /** * Exception name that triggered the crash, nil if the crash was not caused by an exception */ -@property (nonatomic, readonly, strong) NSString *exceptionName; +@property (nonatomic, readonly, copy) NSString *exceptionName; /** * Exception reason, nil if the crash was not caused by an exception */ -@property (nonatomic, readonly, strong) NSString *exceptionReason; +@property (nonatomic, readonly, copy) NSString *exceptionReason; /** * Date and time the app started, nil if unknown @@ -71,14 +71,14 @@ /** * Operation System version string the app was running on when it crashed. */ -@property (nonatomic, readonly, strong) NSString *osVersion; +@property (nonatomic, readonly, copy) NSString *osVersion; /** * Operation System build string the app was running on when it crashed * * This may be unavailable. */ -@property (nonatomic, readonly, strong) NSString *osBuild; +@property (nonatomic, readonly, copy) NSString *osBuild; /** * CFBundleShortVersionString value of the app that crashed @@ -86,12 +86,12 @@ * Can be `nil` if the crash was captured with an older version of the SDK * or if the app doesn't set the value. */ -@property (nonatomic, readonly, strong) NSString *appVersion; +@property (nonatomic, readonly, copy) NSString *appVersion; /** * CFBundleVersion value of the app that crashed */ -@property (nonatomic, readonly, strong) NSString *appBuild; +@property (nonatomic, readonly, copy) NSString *appBuild; /** * Identifier of the app process that crashed diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManager.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManager.h index 1ac1c18..69e7500 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManager.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManager.h @@ -37,9 +37,9 @@ /** - * Custom block that handles the alert that prompts the user whether he wants to send crash reports + * Custom block that handles the alert that prompts the user whether they want to send crash reports */ -typedef void(^BITCustomAlertViewHandler)(); +typedef void(^BITCustomAlertViewHandler)(void); /** @@ -340,7 +340,7 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerUserInput) { /** Lets you set a custom block which handles showing a custom UI and asking the user - whether he wants to send the crash report. + whether they want to send the crash report. This replaces the default alert the SDK would show! @@ -350,7 +350,7 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerUserInput) { In addition to this you should always ask your users if they agree to send crash reports, send them always or not and return the result when calling `handleUserInput:withUserProvidedCrashDescription`. - @param alertViewHandler A block that is responsible for loading, presenting and and dismissing your custom user interface which prompts the user if he wants to send crash reports. The block is also responsible for triggering further processing of the crash reports. + @param alertViewHandler A block that is responsible for loading, presenting and and dismissing your custom user interface which prompts the user if they want to send crash reports. The block is also responsible for triggering further processing of the crash reports. @warning This is not available when compiled for Watch OS! diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManagerDelegate.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManagerDelegate.h index 446f561..786ead9 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManagerDelegate.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITCrashManagerDelegate.h @@ -120,7 +120,7 @@ /** Invoked after sending crash reports failed @param crashManager The `BITCrashManager` instance invoking this delegate - @param error The error returned from the NSURLConnection/NSURLSession call or `kBITCrashErrorDomain` + @param error The error returned from the NSURLSession call or `kBITCrashErrorDomain` with reason of type `BITCrashErrorReason`. */ - (void)crashManager:(BITCrashManager *)crashManager didFailWithError:(NSError *)error; diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackActivity.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackActivity.h index f9289c8..44c08a9 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackActivity.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackActivity.h @@ -70,6 +70,6 @@ @see customActivityImage */ -@property (nonatomic, strong) NSString *customActivityTitle; +@property (nonatomic, copy) NSString *customActivityTitle; @end diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackListViewController.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackListViewController.h index 4687d38..62fd91d 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackListViewController.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITFeedbackListViewController.h @@ -55,7 +55,7 @@ This ensures that the presentation on iOS 6 and iOS 7 will use the current design on each OS Version. */ -@interface BITFeedbackListViewController : BITHockeyBaseViewController { +@interface BITFeedbackListViewController : BITHockeyBaseViewController { } @end diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyAttachment.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyAttachment.h index b788ed9..ec6cd02 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyAttachment.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyAttachment.h @@ -40,7 +40,7 @@ /** The filename the attachment should get */ -@property (nonatomic, readonly, strong) NSString *filename; +@property (nonatomic, readonly, copy) NSString *filename; /** The attachment data as NSData object @@ -50,7 +50,7 @@ /** The content type of your data as MIME type */ -@property (nonatomic, readonly, strong) NSString *contentType; +@property (nonatomic, readonly, copy) NSString *contentType; /** Create an BITHockeyAttachment instance with a given filename and NSData object diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyManager.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyManager.h index f7b4aac..485fc72 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyManager.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITHockeyManager.h @@ -191,19 +191,6 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)startManager; -/** - Starts the manager and runs all modules from a Xamarin environment. This is intended to be used by the HockeySDK-Xamarin. - We now need to make a difference as BITCrashManager needs to setup PLCrashReporter differently for Xamarin apps. - - @warning Do not use this API from within a native iOS app. - - Call this after configuring the manager and setting up all modules. - - @see configureWithIdentifier:delegate: - @see configureWithBetaIdentifier:liveIdentifier:delegate: - */ -- (void)startManagerInXamarinEnvironment; - #pragma mark - Public Properties ///----------------------------------------------------------------------------- @@ -239,7 +226,7 @@ NS_ASSUME_NONNULL_BEGIN @warning This property needs to be set before calling `startManager` */ -@property (nonatomic, strong) NSString *serverURL; +@property (nonatomic, copy) NSString *serverURL; #if HOCKEYSDK_FEATURE_CRASH_REPORTER diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITStoreUpdateManager.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITStoreUpdateManager.h index 1b081b7..b7b01d0 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITStoreUpdateManager.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITStoreUpdateManager.h @@ -120,7 +120,7 @@ typedef NS_ENUM(NSInteger, BITStoreUpdateSetting) { @see checkForUpdateOnLaunch @see checkForUpdate */ -@property (nonatomic, strong) NSString *countryCode; +@property (nonatomic, copy) NSString *countryCode; /** diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITUpdateManager.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITUpdateManager.h index 36747bd..6bfc733 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITUpdateManager.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/BITUpdateManager.h @@ -72,7 +72,7 @@ typedef NS_ENUM (NSUInteger, BITUpdateSetting) { */ -@interface BITUpdateManager : BITHockeyBaseManager +@interface BITUpdateManager : BITHockeyBaseManager ///----------------------------------------------------------------------------- /// @name Update Checking diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDK.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDK.h index 3224b29..07abc82 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDK.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDK.h @@ -88,9 +88,9 @@ // By default the SDK retries sending pending data only when the app becomes active. #define BITHockeyNetworkDidBecomeReachableNotification @"BITHockeyNetworkDidBecomeReachable" -extern NSString *const __attribute__((unused)) kBITCrashErrorDomain; -extern NSString *const __attribute__((unused)) kBITUpdateErrorDomain; -extern NSString *const __attribute__((unused)) kBITFeedbackErrorDomain; -extern NSString *const __attribute__((unused)) kBITAuthenticatorErrorDomain; +extern NSString *const kBITCrashErrorDomain; +extern NSString *const kBITUpdateErrorDomain; +extern NSString *const kBITFeedbackErrorDomain; +extern NSString *const kBITAuthenticatorErrorDomain; extern NSString *const __attribute__((unused)) kBITHockeyErrorDomain; diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDKEnums.h b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDKEnums.h index 180ddc8..9caa3db 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDKEnums.h +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Headers/HockeySDKEnums.h @@ -184,18 +184,4 @@ typedef NS_ENUM(NSInteger, BITHockeyErrorReason) { BITHockeyErrorUnknown }; -/** - * SDK Environment - */ -typedef NS_ENUM (NSUInteger, BITSdkEnvironment) { - /** - * A regular native iOS environment - */ - BITSdkEnvironmentNative = 0, - /** - * A xamarin environment - */ - BITSdkEnvironmentXamarin = 1 -}; - #endif /* HockeySDK_HockeyEnums_h */ diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK index 8826ad2..12d973b 100644 Binary files a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK and b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK differ diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Modules/module.modulemap b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Modules/module.modulemap index 2594302..71d4449 100644 --- a/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Modules/module.modulemap +++ b/src/ios/HockeySDK.embeddedframework/HockeySDK.framework/Modules/module.modulemap @@ -4,7 +4,6 @@ framework module HockeySDK { export * module * { export * } - link framework "AssetsLibrary" link framework "CoreTelephony" link framework "CoreText" link framework "CoreGraphics" @@ -18,4 +17,4 @@ framework module HockeySDK { link framework "UIKit" link "c++" link "z" -} \ No newline at end of file +} diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/Info.plist b/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/Info.plist index 87cde63..a5f29eb 100644 Binary files a/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/Info.plist and b/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/Info.plist differ diff --git a/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/it.lproj/HockeySDK.strings b/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/it.lproj/HockeySDK.strings index 162001a..8ff3517 100644 Binary files a/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/it.lproj/HockeySDK.strings and b/src/ios/HockeySDK.embeddedframework/HockeySDKResources.bundle/it.lproj/HockeySDK.strings differ