Skip to content
Snippets Groups Projects
Commit bce8790f authored by wieseoli's avatar wieseoli
Browse files

Merge branch 'HockeyApp_Integration' into 'master'

Hockey app integration

See merge request enzevalos/enzevalos_iphone_workspace!2
parents a7edd537 6230e2d8
Branches
Tags
No related merge requests found
Showing
with 433 additions and 0 deletions
/*
* Author: Andreas Linde <mail@andreaslinde.de>
*
* Copyright (c) 2012-2014 HockeyApp, Bit Stadium GmbH.
* Copyright (c) 2011 Andreas Linde.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#import <Foundation/Foundation.h>
#if !defined (TARGET_OS_IOS) // Defined starting in iOS 9
#define TARGET_OS_IOS 1
#endif
#import "HockeySDKFeatureConfig.h"
#import "HockeySDKEnums.h"
#import "HockeySDKNullability.h"
#import "BITHockeyManager.h"
#import "BITHockeyManagerDelegate.h"
#if HOCKEYSDK_FEATURE_CRASH_REPORTER || HOCKEYSDK_FEATURE_FEEDBACK
#import "BITHockeyAttachment.h"
#endif
#if HOCKEYSDK_FEATURE_CRASH_REPORTER
#import "BITCrashManager.h"
#import "BITCrashAttachment.h"
#import "BITCrashManagerDelegate.h"
#import "BITCrashDetails.h"
#import "BITCrashMetaData.h"
#endif /* HOCKEYSDK_FEATURE_CRASH_REPORTER */
#if HOCKEYSDK_FEATURE_UPDATES
#import "BITUpdateManager.h"
#import "BITUpdateManagerDelegate.h"
#import "BITUpdateViewController.h"
#endif /* HOCKEYSDK_FEATURE_UPDATES */
#if HOCKEYSDK_FEATURE_STORE_UPDATES
#import "BITStoreUpdateManager.h"
#import "BITStoreUpdateManagerDelegate.h"
#endif /* HOCKEYSDK_FEATURE_STORE_UPDATES */
#if HOCKEYSDK_FEATURE_FEEDBACK
#import "BITFeedbackManager.h"
#import "BITFeedbackManagerDelegate.h"
#import "BITFeedbackActivity.h"
#import "BITFeedbackComposeViewController.h"
#import "BITFeedbackComposeViewControllerDelegate.h"
#import "BITFeedbackListViewController.h"
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
#if HOCKEYSDK_FEATURE_AUTHENTICATOR
#import "BITAuthenticator.h"
#endif /* HOCKEYSDK_FEATURE_AUTHENTICATOR */
#if HOCKEYSDK_FEATURE_METRICS
#import "BITMetricsManager.h"
#endif /* HOCKEYSDK_FEATURE_METRICS */
// Notification message which HockeyManager is listening to, to retry requesting updated from the server.
// This can be used by app developers to trigger additional points where the HockeySDK can try sending
// pending crash reports or feedback messages.
// By default the SDK retries sending pending data only when the app becomes active.
#define BITHockeyNetworkDidBecomeReachableNotification @"BITHockeyNetworkDidBecomeReachable"
extern NSString *const kBITCrashErrorDomain;
extern NSString *const kBITUpdateErrorDomain;
extern NSString *const kBITFeedbackErrorDomain;
extern NSString *const kBITAuthenticatorErrorDomain;
extern NSString *const __attribute__((unused)) kBITHockeyErrorDomain;
//
// HockeySDKEnums.h
// HockeySDK
//
// Created by Lukas Spieß on 08/10/15.
//
//
#ifndef HockeySDK_HockeyEnums_h
#define HockeySDK_HockeyEnums_h
/**
* HockeySDK Log Levels
*/
typedef NS_ENUM(NSUInteger, BITLogLevel) {
/**
* Logging is disabled
*/
BITLogLevelNone = 0,
/**
* Only errors will be logged
*/
BITLogLevelError = 1,
/**
* Errors and warnings will be logged
*/
BITLogLevelWarning = 2,
/**
* Debug information will be logged
*/
BITLogLevelDebug = 3,
/**
* Logging will be very chatty
*/
BITLogLevelVerbose = 4
};
typedef NSString *(^BITLogMessageProvider)(void);
typedef void (^BITLogHandler)(BITLogMessageProvider messageProvider, BITLogLevel logLevel, const char *file, const char *function, uint line);
/**
* 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 */
/*
* Author: Andreas Linde <mail@andreaslinde.de>
*
* Copyright (c) 2013-2014 HockeyApp, Bit Stadium GmbH.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* This is the template feature config that is used for debug builds and during development.
* For the Distribution target, we are using separate configs that will be copied over in our build script.
*/
#ifndef HockeySDK_HockeySDKFeatureConfig_h
#define HockeySDK_HockeySDKFeatureConfig_h
/**
* If true, include support for handling crash reports
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_CRASH_REPORTER
# define HOCKEYSDK_FEATURE_CRASH_REPORTER 1
#endif /* HOCKEYSDK_FEATURE_CRASH_REPORTER */
/**
* If true, include support for managing user feedback
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_FEEDBACK
# define HOCKEYSDK_FEATURE_FEEDBACK 0
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */
/**
* If true, include support for informing the user about new updates pending in the App Store
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_STORE_UPDATES
# define HOCKEYSDK_FEATURE_STORE_UPDATES 1
#endif /* HOCKEYSDK_FEATURE_STORE_UPDATES */
/**
* If true, include support for authentication installations for Ad-Hoc and Enterprise builds
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_AUTHENTICATOR
# define HOCKEYSDK_FEATURE_AUTHENTICATOR 1
#endif /* HOCKEYSDK_FEATURE_AUTHENTICATOR */
/**
* If true, include support for handling in-app updates for Ad-Hoc and Enterprise builds
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_UPDATES
# define HOCKEYSDK_FEATURE_UPDATES 1
#endif /* HOCKEYSDK_FEATURE_UPDATES */
/**
* If true, include support for auto collecting metrics data such as sessions and user
*
* _Default_: Enabled
*/
#ifndef HOCKEYSDK_FEATURE_METRICS
# define HOCKEYSDK_FEATURE_METRICS 1
#endif /* HOCKEYSDK_FEATURE_METRICS */
#endif /* HockeySDK_HockeySDKFeatureConfig_h */
//
// 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 __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 */
File added
framework module HockeySDK {
umbrella header "HockeySDK.h"
export *
module * { export * }
link framework "CoreTelephony"
link framework "CoreGraphics"
link framework "Foundation"
link framework "MobileCoreServices"
link framework "QuartzCore"
link framework "QuickLook"
link framework "Security"
link framework "SystemConfiguration"
link framework "UIKit"
link "c++"
link "z"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment