diff --git a/iphone/manifest b/iphone/manifest index 63500cb..bc48a18 100644 --- a/iphone/manifest +++ b/iphone/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 0.6.0 +version: 0.6.1 apiversion: 2 description: Appcelerator module wrapping the HockeyApp SDK author: Timan Rebel diff --git a/iphone/module.xcconfig b/iphone/module.xcconfig index 84e2425..5894eb3 100644 --- a/iphone/module.xcconfig +++ b/iphone/module.xcconfig @@ -1,11 +1,11 @@ // -// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE +// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE // PICKED UP DURING THE APP BUILD FOR YOUR MODULE // // see the following webpage for instructions on the settings // for this file: // http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html -// +// // // How to add a Framework (example) @@ -25,6 +25,6 @@ // // IMPORTANT NOTE: always use $(inherited) in your overrides // -FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/nl.rebelic.hockeyapp/0.6.0/platform +FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/nl.rebelic.hockeyapp/0.6.1/platform OTHER_LDFLAGS=$(inherited) -framework HockeySDK -framework AssetsLibrary -framework CoreText -framework CoreGraphics -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework QuickLook -framework Security -framework SystemConfiguration -framework UIKit \ No newline at end of file diff --git a/iphone/nl.rebelic.hockeyapp-iphone-0.6.1.zip b/iphone/nl.rebelic.hockeyapp-iphone-0.6.1.zip new file mode 100644 index 0000000..ffec00f Binary files /dev/null and b/iphone/nl.rebelic.hockeyapp-iphone-0.6.1.zip differ diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITAuthenticator.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITAuthenticator.h index e740a2c..df64cf3 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITAuthenticator.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITAuthenticator.h @@ -313,7 +313,7 @@ typedef NS_ENUM(NSUInteger, BITAuthenticatorAppRestrictionEnforcementFrequency) * @see authenticateInstallation * @see validateWithCompletion: * - * @param completion Block being executed once identification completed + * @param completion Block being executed once identification completed. Be sure to properly dispatch code to the main queue if necessary. */ - (void) identifyWithCompletion:(void(^)(BOOL identified, NSError *error)) completion; @@ -342,7 +342,7 @@ typedef NS_ENUM(NSUInteger, BITAuthenticatorAppRestrictionEnforcementFrequency) * @see authenticateInstallation * @see identifyWithCompletion: * - * @param completion Block being executed once validation completed + * @param completion Block being executed once validation completed. Be sure to properly dispatch code to the main queue if necessary. */ - (void) validateWithCompletion:(void(^)(BOOL validated, NSError *error)) completion; diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITCrashManager.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITCrashManager.h index d580643..44345df 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITCrashManager.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITCrashManager.h @@ -225,7 +225,7 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerUserInput) { * EXPERIMENTAL: Enable heuristics to detect the app not terminating cleanly * * This allows it to get a crash report if the app got killed while being in the foreground - * because of now of the following reasons: + * because of one of the following reasons: * - The main thread was blocked for too long * - The app took too long to start up * - The app tried to allocate too much memory. If iOS did send a memory warning before killing the app because of this reason, `didReceiveMemoryWarningInLastSession` returns `YES`. diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManager.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManager.h index 100ef93..1027e12 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManager.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManager.h @@ -93,7 +93,7 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) { [BITHockeyManager sharedHockeyManager].feedbackManager - The user interface provides a list view than can be presented modally using + The user interface provides a list view that can be presented modally using `[BITFeedbackManager showFeedbackListView]` or adding `[BITFeedbackManager feedbackListViewController:]` to push onto a navigation stack. This list integrates all features to load new messages, write new messages, view messages @@ -287,6 +287,8 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) { /** Present the modal feedback list user interface. + + @warning This methods needs to be called on the main thread! */ - (void)showFeedbackListView; @@ -303,6 +305,8 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) { /** Present the modal feedback compose message user interface. + + @warning This methods needs to be called on the main thread! */ - (void)showFeedbackComposeView; @@ -314,6 +318,7 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) { @param items an NSArray with objects that should be attached @see `[BITFeedbackComposeViewController prepareWithItems:]` + @warning This methods needs to be called on the main thread! */ - (void)showFeedbackComposeViewWithPreparedItems:(NSArray *)items; @@ -325,6 +330,7 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) { [[BITHockeyManager sharedHockeyManager].feedbackManager showFeedbackComposeViewWithGeneratedScreenshot]; @see feedbackObservationMode + @warning This methods needs to be called on the main thread! */ - (void)showFeedbackComposeViewWithGeneratedScreenshot; diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManagerDelegate.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManagerDelegate.h index ece327f..6f65a28 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManagerDelegate.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITFeedbackManagerDelegate.h @@ -27,9 +27,9 @@ */ #import +#import "BITFeedbackComposeViewControllerDelegate.h" @class BITFeedbackManager; -@protocol BITFeedbackComposeViewControllerDelegate; /** * Delegate protocol which is notified about changes in the feedbackManager diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITHockeyManager.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITHockeyManager.h index 1d7ebeb..efbe1d5 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITHockeyManager.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITHockeyManager.h @@ -31,7 +31,7 @@ #import #import "HockeySDKFeatureConfig.h" - +#import "HockeySDKEnums.h" @protocol BITHockeyManagerDelegate; @@ -375,14 +375,34 @@ /// @name Environment ///----------------------------------------------------------------------------- + +/** + Enum that indicates what kind of environment the application is installed and running in. + + This property can be used to disable or enable specific funtionality + only when specific conditions are met. + That could mean for example, to only enable debug UI elements + when the app has been installed over HockeyApp but not in the AppStore. + + The underlying enum type at the moment only specifies values for the AppStore, + TestFlight and Other. Other summarizes several different distribution methods + and we might define additional specifc values for other environments in the future. + + @see BITEnvironment + */ +@property (nonatomic, readonly) BITEnvironment appEnvironment; + + /** Flag that determines whether the application is installed and running from an App Store installation. Returns _YES_ if the app is installed and running from the App Store Returns _NO_ if the app is installed via debug, ad-hoc or enterprise distribution + + @deprecated Please use `appEnvironment` instead! */ -@property (nonatomic, readonly, getter=isAppStoreEnvironment) BOOL appStoreEnvironment; +@property (nonatomic, readonly, getter=isAppStoreEnvironment) BOOL appStoreEnvironment DEPRECATED_ATTRIBUTE; /** diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITUpdateManager.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITUpdateManager.h index a8a7b00..36747bd 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITUpdateManager.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/BITUpdateManager.h @@ -220,6 +220,8 @@ typedef NS_ENUM (NSUInteger, BITUpdateSetting) { /** Present the modal update user interface. + + @warning Make sure to call this method from the main thread! */ - (void)showUpdateView; diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDK.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDK.h index 75671d7..399dab5 100644 --- a/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDK.h +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDK.h @@ -36,6 +36,8 @@ #import "HockeySDKFeatureConfig.h" +#import "HockeySDKEnums.h" +#import "HockeySDKNullability.h" #import "BITHockeyManager.h" #import "BITHockeyManagerDelegate.h" @@ -82,137 +84,9 @@ // By default the SDK retries sending pending data only when the app becomes active. #define BITHockeyNetworkDidBecomeReachableNotification @"BITHockeyNetworkDidBecomeReachable" - -/** - * HockeySDK Crash Reporter error domain - */ -typedef NS_ENUM (NSInteger, BITCrashErrorReason) { - /** - * Unknown error - */ - BITCrashErrorUnknown, - /** - * API Server rejected app version - */ - BITCrashAPIAppVersionRejected, - /** - * API Server returned empty response - */ - BITCrashAPIReceivedEmptyResponse, - /** - * Connection error with status code - */ - BITCrashAPIErrorWithStatusCode -}; extern NSString *const __attribute__((unused)) kBITCrashErrorDomain; - -/** - * HockeySDK Update error domain - */ -typedef NS_ENUM (NSInteger, BITUpdateErrorReason) { - /** - * Unknown error - */ - BITUpdateErrorUnknown, - /** - * API Server returned invalid status - */ - BITUpdateAPIServerReturnedInvalidStatus, - /** - * API Server returned invalid data - */ - BITUpdateAPIServerReturnedInvalidData, - /** - * API Server returned empty response - */ - BITUpdateAPIServerReturnedEmptyResponse, - /** - * Authorization secret missing - */ - BITUpdateAPIClientAuthorizationMissingSecret, - /** - * No internet connection - */ - BITUpdateAPIClientCannotCreateConnection -}; extern NSString *const __attribute__((unused)) kBITUpdateErrorDomain; - - -/** - * HockeySDK Feedback error domain - */ -typedef NS_ENUM(NSInteger, BITFeedbackErrorReason) { - /** - * Unknown error - */ - BITFeedbackErrorUnknown, - /** - * API Server returned invalid status - */ - BITFeedbackAPIServerReturnedInvalidStatus, - /** - * API Server returned invalid data - */ - BITFeedbackAPIServerReturnedInvalidData, - /** - * API Server returned empty response - */ - BITFeedbackAPIServerReturnedEmptyResponse, - /** - * Authorization secret missing - */ - BITFeedbackAPIClientAuthorizationMissingSecret, - /** - * No internet connection - */ - BITFeedbackAPIClientCannotCreateConnection -}; extern NSString *const __attribute__((unused)) kBITFeedbackErrorDomain; - -/** - * HockeySDK Authenticator error domain - */ -typedef NS_ENUM(NSInteger, BITAuthenticatorReason) { - /** - * Unknown error - */ - BITAuthenticatorErrorUnknown, - /** - * Network error - */ - BITAuthenticatorNetworkError, - - /** - * API Server returned invalid response - */ - BITAuthenticatorAPIServerReturnedInvalidResponse, - /** - * Not Authorized - */ - BITAuthenticatorNotAuthorized, - /** - * Unknown Application ID (configuration error) - */ - BITAuthenticatorUnknownApplicationID, - /** - * Authorization secret missing - */ - BITAuthenticatorAuthorizationSecretMissing, - /** - * Not yet identified - */ - BITAuthenticatorNotIdentified, -}; extern NSString *const __attribute__((unused)) kBITAuthenticatorErrorDomain; - -/** - * HockeySDK global error domain - */ -typedef NS_ENUM(NSInteger, BITHockeyErrorReason) { - /** - * Unknown error - */ - BITHockeyErrorUnknown -}; extern NSString *const __attribute__((unused)) kBITHockeyErrorDomain; diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKEnums.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKEnums.h new file mode 100644 index 0000000..861e1c0 --- /dev/null +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKEnums.h @@ -0,0 +1,158 @@ +// +// HockeySDKEnums.h +// HockeySDK +// +// Created by Lukas Spieß on 08/10/15. +// +// + +#ifndef HockeySDK_HockeyEnums_h +#define HockeySDK_HockeyEnums_h + +/** + * HockeySDK App environment + */ +typedef NS_ENUM(NSInteger, BITEnvironment) { + /** + * App has been downloaded from the AppStore + */ + BITEnvironmentAppStore = 0, + /** + * App has been downloaded from TestFlight + */ + BITEnvironmentTestFlight = 1, + /** + * App has been installed by some other mechanism. + * This could be Ad-Hoc, Enterprise, etc. + */ + BITEnvironmentOther = 99 +}; + +/** + * HockeySDK Crash Reporter error domain + */ +typedef NS_ENUM (NSInteger, BITCrashErrorReason) { + /** + * Unknown error + */ + BITCrashErrorUnknown, + /** + * API Server rejected app version + */ + BITCrashAPIAppVersionRejected, + /** + * API Server returned empty response + */ + BITCrashAPIReceivedEmptyResponse, + /** + * Connection error with status code + */ + BITCrashAPIErrorWithStatusCode +}; + +/** + * HockeySDK Update error domain + */ +typedef NS_ENUM (NSInteger, BITUpdateErrorReason) { + /** + * Unknown error + */ + BITUpdateErrorUnknown, + /** + * API Server returned invalid status + */ + BITUpdateAPIServerReturnedInvalidStatus, + /** + * API Server returned invalid data + */ + BITUpdateAPIServerReturnedInvalidData, + /** + * API Server returned empty response + */ + BITUpdateAPIServerReturnedEmptyResponse, + /** + * Authorization secret missing + */ + BITUpdateAPIClientAuthorizationMissingSecret, + /** + * No internet connection + */ + BITUpdateAPIClientCannotCreateConnection +}; + +/** + * HockeySDK Feedback error domain + */ +typedef NS_ENUM(NSInteger, BITFeedbackErrorReason) { + /** + * Unknown error + */ + BITFeedbackErrorUnknown, + /** + * API Server returned invalid status + */ + BITFeedbackAPIServerReturnedInvalidStatus, + /** + * API Server returned invalid data + */ + BITFeedbackAPIServerReturnedInvalidData, + /** + * API Server returned empty response + */ + BITFeedbackAPIServerReturnedEmptyResponse, + /** + * Authorization secret missing + */ + BITFeedbackAPIClientAuthorizationMissingSecret, + /** + * No internet connection + */ + BITFeedbackAPIClientCannotCreateConnection +}; + +/** + * HockeySDK Authenticator error domain + */ +typedef NS_ENUM(NSInteger, BITAuthenticatorReason) { + /** + * Unknown error + */ + BITAuthenticatorErrorUnknown, + /** + * Network error + */ + BITAuthenticatorNetworkError, + + /** + * API Server returned invalid response + */ + BITAuthenticatorAPIServerReturnedInvalidResponse, + /** + * Not Authorized + */ + BITAuthenticatorNotAuthorized, + /** + * Unknown Application ID (configuration error) + */ + BITAuthenticatorUnknownApplicationID, + /** + * Authorization secret missing + */ + BITAuthenticatorAuthorizationSecretMissing, + /** + * Not yet identified + */ + BITAuthenticatorNotIdentified, +}; + +/** + * HockeySDK global error domain + */ +typedef NS_ENUM(NSInteger, BITHockeyErrorReason) { + /** + * Unknown error + */ + BITHockeyErrorUnknown +}; + +#endif /* HockeySDK_HockeyEnums_h */ diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKNullability.h b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKNullability.h new file mode 100644 index 0000000..8fdddd4 --- /dev/null +++ b/iphone/platform/HockeySDK.framework/Versions/A/Headers/HockeySDKNullability.h @@ -0,0 +1,33 @@ +// +// HockeyNullability.h +// HockeySDK +// +// Created by Andreas Linde on 12/06/15. +// +// + +#ifndef HockeySDK_HockeyNullability_h +#define HockeySDK_HockeyNullability_h + +// Define nullability fallback for backwards compatibility +#if !__has_feature(nullability) +#define NS_ASSUME_NONNULL_BEGIN +#define NS_ASSUME_NONNULL_END +#define nullable +#define nonnull +#define null_unspecified +#define null_resettable +#define __nullable +#define __nonnull +#define __null_unspecified +#endif + +// Fallback for convenience syntax which might not be available in older SDKs +#ifndef NS_ASSUME_NONNULL_BEGIN +#define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") +#endif +#ifndef NS_ASSUME_NONNULL_END +#define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") +#endif + +#endif /* HockeySDK_HockeyNullability_h */ diff --git a/iphone/platform/HockeySDK.framework/Versions/A/HockeySDK b/iphone/platform/HockeySDK.framework/Versions/A/HockeySDK index a3ee52c..7dbd738 100644 Binary files a/iphone/platform/HockeySDK.framework/Versions/A/HockeySDK and b/iphone/platform/HockeySDK.framework/Versions/A/HockeySDK differ diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDK.xcconfig b/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDK.xcconfig deleted file mode 100644 index 07bd4f0..0000000 --- a/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDK.xcconfig +++ /dev/null @@ -1,3 +0,0 @@ -OTHER_LDFLAGS=$(inherited) -framework CoreText -framework CoreGraphics -framework Foundation -framework QuartzCore -framework SystemConfiguration -framework UIKit -framework Security -framework AssetsLibrary -framework MobileCoreServices -framework QuickLook -lc++ -HOCKEYSDK_DOCSET_NAME=HockeySDK-iOS -HOCKEYSDK_GCC_PREPROCESSOR_DEFINITIONS=$(inherited) $(XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS) diff --git a/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/Info.plist b/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/Info.plist index ff81b2c..518a87f 100644 Binary files a/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/Info.plist and b/iphone/platform/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/Info.plist differ diff --git a/iphone/platform/iphone/HockeySDKResources.bundle/Info.plist b/iphone/platform/iphone/HockeySDKResources.bundle/Info.plist index ff81b2c..518a87f 100644 Binary files a/iphone/platform/iphone/HockeySDKResources.bundle/Info.plist and b/iphone/platform/iphone/HockeySDKResources.bundle/Info.plist differ