Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #84 from bitstadium/release/5.0.0
Browse files Browse the repository at this point in the history
Release/5.0.0
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Sep 28, 2017
2 parents 04dc00a + 3d231ee commit f91d5fb
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 59 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="cordova-plugin-hockeyapp" version="2.2.4" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-hockeyapp" version="5.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>HockeyApp</name>
<description>Cordova plugin for HockeyApp</description>
<license>Apache 2.0</license>
Expand Down Expand Up @@ -40,7 +40,7 @@

<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/HockeyApp.java" target-dir="src/com/zengularity/cordova/hockeyapp" />
<resource-file src="src/android/HockeySDK-Android/HockeySDK-4.1.4.aar" target="libs/HockeySDK-4.1.4.aar" />
<resource-file src="src/android/HockeySDK-Android/HockeySDK-5.0.1.aar" target="libs/HockeySDK-5.0.1.aar" />
</platform>

<platform name="ios">
Expand Down
Binary file removed src/android/HockeySDK-Android/HockeySDK-4.1.4.aar
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ repositories {
}

dependencies {
compile(name:"HockeySDK-4.1.4", ext: "aar")
compile(name:"HockeySDK-5.0.2", ext: "aar")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -71,27 +71,27 @@
/**
* 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
*
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);


/**
Expand Down Expand Up @@ -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!
Expand All @@ -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!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
@see customActivityImage
*/
@property (nonatomic, strong) NSString *customActivityTitle;
@property (nonatomic, copy) NSString *customActivityTitle;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -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 <UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, UIAlertViewDelegate, QLPreviewControllerDataSource> {
@interface BITFeedbackListViewController : BITHockeyBaseViewController <UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, QLPreviewControllerDataSource> {
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

///-----------------------------------------------------------------------------
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ typedef NS_ENUM(NSInteger, BITStoreUpdateSetting) {
@see checkForUpdateOnLaunch
@see checkForUpdate
*/
@property (nonatomic, strong) NSString *countryCode;
@property (nonatomic, copy) NSString *countryCode;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ typedef NS_ENUM (NSUInteger, BITUpdateSetting) {
*/

@interface BITUpdateManager : BITHockeyBaseManager <UIAlertViewDelegate>
@interface BITUpdateManager : BITHockeyBaseManager

///-----------------------------------------------------------------------------
/// @name Update Checking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ framework module HockeySDK {
export *
module * { export * }

link framework "AssetsLibrary"
link framework "CoreTelephony"
link framework "CoreText"
link framework "CoreGraphics"
Expand All @@ -18,4 +17,4 @@ framework module HockeySDK {
link framework "UIKit"
link "c++"
link "z"
}
}
Binary file not shown.
Binary file not shown.

0 comments on commit f91d5fb

Please sign in to comment.