From 94606f6b4aaa81f8f3653d925b09505f4326a397 Mon Sep 17 00:00:00 2001 From: "Benjamin Scholtysik (Reimold)" Date: Thu, 3 Aug 2017 12:41:54 -0700 Subject: [PATCH 1/5] Bump version to 5.0.0-beta.1 and add changelog --- Documentation/Guides/Changelog.md | 8 ++++++++ Documentation/Guides/Installation & Setup.md | 18 ++++++++---------- Documentation/HockeySDK/.jazzy.yaml | 2 +- HockeySDK-Source.podspec | 4 ++-- HockeySDK.podspec | 2 +- README.md | 16 ++++++++-------- Support/HockeySDKBase.xcconfig | 4 ++-- 7 files changed, 30 insertions(+), 24 deletions(-) diff --git a/Documentation/Guides/Changelog.md b/Documentation/Guides/Changelog.md index af56c5fa..a10c5e92 100644 --- a/Documentation/Guides/Changelog.md +++ b/Documentation/Guides/Changelog.md @@ -1,3 +1,11 @@ +## 5.0.0-beta.1 + +This version drops support for iOS 7. There is not other breaking change at this point. + +- [IMPROVEMENT] The code has been cleaned up as we have decided to drop support for iOS 7. +- [IMPROVEMENT] `properties` of type `NSString` now use the `copy` attribute. +- [BUGFIX] The logic that makes sure that the for HockeySDK-iOS is excluded from backups was changed to make sure it doesn't block app launch [#443](https://github.com/bitstadium/HockeySDK-iOS/pull/443). + ## 4.1.6 - [BUGFIX] Fixed a string in the Italian translation [#430](https://github.com/bitstadium/HockeySDK-iOS/pull/430). diff --git a/Documentation/Guides/Installation & Setup.md b/Documentation/Guides/Installation & Setup.md index ae8f1828..69cec24f 100644 --- a/Documentation/Guides/Installation & Setup.md +++ b/Documentation/Guides/Installation & Setup.md @@ -3,9 +3,9 @@ [![Version](http://cocoapod-badges.herokuapp.com/v/HockeySDK/badge.png)](http://cocoadocs.org/docsets/HockeySDK) [![Slack Status](https://slack.hockeyapp.net/badge.svg)](https://slack.hockeyapp.net) -## Version 4.1.6 +## Version 5.0.0-beta.1 -- [Changelog](http://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Changelog.html) +- [Changelog](http://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Changelog.html) **NOTE** If your are using the binary integration of our SDK, make sure that the `HockeySDKResources.bundle` inside the `HockeySDK.embeddedframework`-folder has been added to your application. @@ -192,7 +192,6 @@ If you are working with an older project which doesn't support clang modules yet 4. Expand `Link Binary With Libraries`. 5. Add the following system frameworks, if they are missing: 1. Default SDK: - + `AssetsLibrary` + `CoreText` + `CoreGraphics` + `Foundation` @@ -205,7 +204,6 @@ If you are working with an older project which doesn't support clang modules yet + `libc++` + `libz` 2. SDK with all features: - + `AssetsLibrary` + `CoreText` + `CoreGraphics` + `Foundation` @@ -230,7 +228,7 @@ If you are working with an older project which doesn't support clang modules yet + `SystemConfiguration` + `libc++` -Note that this also means that you can't use the `@import` syntax mentioned in the [Modify Code](#modify) section but have to stick to the old `#import `. +Note that not using clang modules also means that you can't use the `@import` syntax mentioned in the [Modify Code](#modify) section but have to stick to the old `#import ` imports. ### 3.2 CocoaPods @@ -655,7 +653,7 @@ To check if data is send properly to HockeyApp and also see some additional SDK ## 4. Documentation -Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/4.1.6/index.html). +Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/5.0.0-beta.1/index.html). ## 5.Troubleshooting @@ -669,7 +667,7 @@ Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/ Make sure none of the following files are copied into your app bundle, check under app target, `Build Phases`, `Copy Bundle Resources` or in the `.app` bundle after building: - `HockeySDK.framework` (except if you build a dynamic framework version of the SDK yourself!) - - `de.bitstadium.HockeySDK-iOS-4.1.6.docset` + - `de.bitstadium.HockeySDK-iOS-5.0.0-beta.1.docset` ### Features are not working as expected @@ -697,9 +695,9 @@ We're looking forward to your contributions via pull requests on our [GitHub rep * A Mac running the latest version of OS X * Get the latest Xcode from the Mac App Store -* [AppleDoc](https://github.com/tomaz/appledoc) -* [CocoaPods](https://cocoapods.org/) -* [Carthage](https://github.com/Carthage/Carthage) +* [Jazzy](https://github.com/realm/jazzy) to generate documentation +* [Cocoapods](https://cocoapods.org/) to test integration with Cocoapods. +* [Carthage](https://github.com/Carthage/Carthage) to test integration with Carthage. ### 6.2 Code of Conduct diff --git a/Documentation/HockeySDK/.jazzy.yaml b/Documentation/HockeySDK/.jazzy.yaml index 22bc79bb..3a2bb47f 100644 --- a/Documentation/HockeySDK/.jazzy.yaml +++ b/Documentation/HockeySDK/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: iphonesimulator theme: ../Themes/apple module: HockeySDK -module_version: 4.1.6 +module_version: 5.0.0-beta.1 author: Microsoft Corp author_url: https://www.microsoft.com diff --git a/HockeySDK-Source.podspec b/HockeySDK-Source.podspec index fbb3f202..ce56e8e4 100644 --- a/HockeySDK-Source.podspec +++ b/HockeySDK-Source.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'HockeySDK-Source' - s.version = '4.1.6' + s.version = '5.0.0-beta.1' s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and analyze your test coverage with HockeyApp.' s.description = <<-DESC @@ -25,7 +25,7 @@ Pod::Spec.new do |s| s.frameworks = 'AssetsLibrary', 'CoreGraphics', 'CoreTelephony', 'CoreText', 'MobileCoreServices', 'Photos', 'QuartzCore', 'QuickLook', 'Security', 'SystemConfiguration', 'UIKit' s.libraries = 'c++', 'z' s.vendored_frameworks = 'Vendor/CrashReporter.framework' - s.pod_target_xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"101\\"" BITHOCKEY_C_BUILD="\\"101\\""} } + s.pod_target_xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"102\\"" BITHOCKEY_C_BUILD="\\"102\\""} } s.resource_bundle = { 'HockeySDKResources' => ['Resources/*.png', 'Resources/*.lproj'] } s.preserve_paths = 'Resources', 'Support' s.private_header_files = 'Classes/*Private.h' diff --git a/HockeySDK.podspec b/HockeySDK.podspec index 128a2575..cb594099 100644 --- a/HockeySDK.podspec +++ b/HockeySDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'HockeySDK' - s.version = '4.1.6' + s.version = '5.0.0-beta.1' s.summary = 'Collect live crash reports, get feedback from your users, distribute your betas, and analyze your test coverage with HockeyApp.' s.description = <<-DESC diff --git a/README.md b/README.md index b29b4964..e578095c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Version](http://cocoapod-badges.herokuapp.com/v/HockeySDK/badge.png)](http://cocoadocs.org/docsets/HockeySDK) [![Slack Status](https://slack.hockeyapp.net/badge.svg)](https://slack.hockeyapp.net) -## Version 4.1.6 +## Version 5.0.0-beta.1 HockeySDK-iOS implements support for using HockeyApp in your iOS applications. @@ -23,13 +23,13 @@ The following features are currently supported: ## 1. Setup -It is super easy to use HockeyApp in your iOS app. Have a look at our [documentation](https://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Guide-Installation-Setup.html) and onboard your app within minutes. +It is super easy to use HockeyApp in your iOS app. Have a look at our [documentation](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Guide-Installation-Setup.html) and onboard your app within minutes. ## 2. Documentation -Please visit [our landing page](https://www.hockeyapp.net/help/sdk/ios/4.1.6/index.html) as a starting point for all of our documentation. +Please visit [our landing page](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/index.html) as a starting point for all of our documentation. -Please check out our [getting started documentation](https://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Guide-Installation-Setup.html), [changelog](http://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Changelog.html), [header docs](https://www.hockeyapp.net/help/sdk/ios/4.1.6/index.html) as well as our [troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Guide-Installation-Setup.html#troubleshooting). +Please check out our [getting started documentation](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Guide-Installation-Setup.html), [changelog](http://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Changelog.html), [docs](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/index.html) as well as our [troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Guide-Installation-Setup.html#troubleshooting). ## 3. Contributing @@ -39,9 +39,9 @@ We're looking forward to your contributions via pull requests. * A Mac running the latest version of OS X. * Get the latest Xcode from the Mac App Store. -* [AppleDoc](https://github.com/tomaz/appledoc) -* [CocoaPods](https://cocoapods.org/) -* [Carthage](https://github.com/Carthage/Carthage) +* [Jazzy](https://github.com/realm/jazzy) to generate documentation. +* [Cocoapods](https://cocoapods.org/) to test integration with Cocoapods. +* [Carthage](https://github.com/Carthage/Carthage) to test integration with Carthage. ### 3.2 Code of Conduct @@ -53,4 +53,4 @@ You must sign a [Contributor License Agreement](https://cla.microsoft.com/) befo ## 4. Contact -If you have further questions or are running into trouble that cannot be resolved by any of the steps [in our troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/4.1.6/docs/docs/Guide-Installation-Setup.html#troubleshooting), feel free to open an issue here, contact us at [support@hockeyapp.net](mailto:support@hockeyapp.net) or join our [Slack](https://slack.hockeyapp.net). +If you have further questions or are running into trouble that cannot be resolved by any of the steps [in our troubleshooting section](https://www.hockeyapp.net/help/sdk/ios/5.0.0-beta.1/docs/docs/Guide-Installation-Setup.html#troubleshooting), feel free to open an issue here, contact us at [support@hockeyapp.net](mailto:support@hockeyapp.net) or join our [Slack](https://slack.hockeyapp.net). diff --git a/Support/HockeySDKBase.xcconfig b/Support/HockeySDKBase.xcconfig index 7f8aac65..4f3360ff 100644 --- a/Support/HockeySDKBase.xcconfig +++ b/Support/HockeySDKBase.xcconfig @@ -1,5 +1,5 @@ -BUILD_NUMBER = 101 -VERSION_STRING = 4.1.6 +BUILD_NUMBER = 102 +VERSION_STRING = 5.0.0-beta.1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(HOCKEYSDK_GCC_PREPROCESSOR_DEFINITIONS) HOCKEYSDK_CONFIGURATION_$(CONFIGURATION) BITHOCKEY_VERSION="@\""$(VERSION_STRING)"\"" BITHOCKEY_BUILD="@\""$(BUILD_NUMBER)"\"" BITHOCKEY_C_VERSION="\""$(VERSION_STRING)"\"" BITHOCKEY_C_BUILD="\""$(BUILD_NUMBER)"\"" BIT_ARM_ARCHS = armv7 armv7s arm64 BIT_SIM_ARCHS = x86_64 i386 From 083b0cb0c2f6631cded31acf0c761df00f400b71 Mon Sep 17 00:00:00 2001 From: "Benjamin Scholtysik (Reimold)" Date: Thu, 3 Aug 2017 12:56:56 -0700 Subject: [PATCH 2/5] Remove AssetsLibrary dependency as the SDK now supports iOS 8 and up --- Classes/BITFeedbackManager.m | 33 +-------------------- Support/HockeySDK.xcodeproj/project.pbxproj | 24 +-------------- Support/HockeySDKBase.xcconfig | 2 +- Support/module_allfeatures.modulemap | 3 +- 4 files changed, 4 insertions(+), 58 deletions(-) diff --git a/Classes/BITFeedbackManager.m b/Classes/BITFeedbackManager.m index 68347dc0..db4cc557 100644 --- a/Classes/BITFeedbackManager.m +++ b/Classes/BITFeedbackManager.m @@ -31,7 +31,6 @@ #if HOCKEYSDK_FEATURE_FEEDBACK -#import #import #import "HockeySDKPrivate.h" @@ -1262,37 +1261,7 @@ - (void)requestLatestImageWithCompletionHandler:(BITLatestImageFetchCompletionBl // Safeguard in case the dev hasn't set the NSPhotoLibraryUsageDescription in their Info.plist if (![self isiOS10PhotoPolicySet]) {return;} - // Only available from iOS 8 up - id phImageManagerClass = NSClassFromString(@"PHImageManager"); - if (phImageManagerClass) { - [self fetchLatestImageUsingPhotoLibraryWithCompletionHandler:completionHandler]; - } else { - [self fetchLatestImageUsingAssetsLibraryWithCompletionHandler:completionHandler]; - } -} - -- (void)fetchLatestImageUsingAssetsLibraryWithCompletionHandler:(BITLatestImageFetchCompletionBlock)completionHandler { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; - [library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *group, BOOL *stop) { - - [group setAssetsFilter:[ALAssetsFilter allPhotos]]; - - [group enumerateAssetsWithOptions:NSEnumerationReverse usingBlock:^(ALAsset *alAsset, NSUInteger __unused index, BOOL *innerStop) { - - if (alAsset) { - ALAssetRepresentation *representation = [alAsset defaultRepresentation]; - UIImage *latestPhoto = [UIImage imageWithCGImage:[representation fullScreenImage]]; - - completionHandler(latestPhoto); - - *stop = YES; - *innerStop = YES; - } - }]; - } failureBlock:nil]; -#pragma clang diagnostic pop + [self fetchLatestImageUsingPhotoLibraryWithCompletionHandler:completionHandler]; } - (void)fetchLatestImageUsingPhotoLibraryWithCompletionHandler:(BITLatestImageFetchCompletionBlock)completionHandler NS_AVAILABLE_IOS(8_0) { diff --git a/Support/HockeySDK.xcodeproj/project.pbxproj b/Support/HockeySDK.xcodeproj/project.pbxproj index 1d170fa6..3e8189da 100644 --- a/Support/HockeySDK.xcodeproj/project.pbxproj +++ b/Support/HockeySDK.xcodeproj/project.pbxproj @@ -630,7 +630,7 @@ 1EFF03E417F2485500A5F13C /* BITCrashManagerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITCrashManagerTests.m; sourceTree = ""; }; 628B7B9B7E7741C3D85B1159 /* BITHockeyLoggerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITHockeyLoggerTests.m; sourceTree = ""; }; 6EA5DEA41CC05E7600D44206 /* live_report_xamarin.plcrash */ = {isa = PBXFileReference; lastKnownFileType = file; path = live_report_xamarin.plcrash; sourceTree = ""; }; - 6EA5DEAD1CC0670000D44206 /* log_report_xamarin */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = log_report_xamarin; sourceTree = ""; }; + 6EA5DEAD1CC0670000D44206 /* log_report_xamarin */ = {isa = PBXFileReference; fileEncoding = 1; lastKnownFileType = text; path = log_report_xamarin; sourceTree = ""; }; 8007E2A41F29FCAB001649AE /* HockeySDKTest.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = HockeySDKTest.xcconfig; sourceTree = ""; }; 8034E61E1BA31AD500D83A30 /* BITTelemetryContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BITTelemetryContext.h; sourceTree = ""; }; 8034E61F1BA31AD500D83A30 /* BITTelemetryContext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITTelemetryContext.m; sourceTree = ""; }; @@ -732,7 +732,6 @@ 973EC8BA18BDE29800DBFFBB /* BITArrowImageAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITArrowImageAnnotation.m; sourceTree = ""; }; 973EC8BD18BE2B5B00DBFFBB /* BITBlurImageAnnotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BITBlurImageAnnotation.h; sourceTree = ""; }; 973EC8BE18BE2B5B00DBFFBB /* BITBlurImageAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITBlurImageAnnotation.m; sourceTree = ""; }; - 9760F6C318BB4D2D00959B93 /* AssetsLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AssetsLibrary.framework; path = System/Library/Frameworks/AssetsLibrary.framework; sourceTree = SDKROOT; }; 9760F6CD18BB685600959B93 /* BITImageAnnotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BITImageAnnotation.h; sourceTree = ""; }; 9760F6CE18BB685600959B93 /* BITImageAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BITImageAnnotation.m; sourceTree = ""; }; 9774BCFD192CB20A00085EB5 /* BITActivityIndicatorButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BITActivityIndicatorButton.h; sourceTree = ""; }; @@ -1268,7 +1267,6 @@ E400561C148D79B500EB22B9 /* Frameworks */ = { isa = PBXGroup; children = ( - 9760F6C318BB4D2D00959B93 /* AssetsLibrary.framework */, 1EB617BD1B0A32D00035A986 /* CoreGraphics.framework */, 1EB617BB1B0A32C90035A986 /* CoreText.framework */, E41EB48B148D7C4E0015DEDC /* CrashReporter.framework */, @@ -2176,8 +2174,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -2306,8 +2302,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -2484,8 +2478,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -2543,8 +2535,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -2704,8 +2694,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -2941,8 +2929,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -3007,8 +2993,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -3074,8 +3058,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -3206,8 +3188,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, @@ -3335,8 +3315,6 @@ "-framework", Security, "-framework", - AssetsLibrary, - "-framework", MobileCoreServices, "-framework", QuickLook, diff --git a/Support/HockeySDKBase.xcconfig b/Support/HockeySDKBase.xcconfig index 4f3360ff..56ddc7bc 100644 --- a/Support/HockeySDKBase.xcconfig +++ b/Support/HockeySDKBase.xcconfig @@ -12,7 +12,7 @@ OTHER_CFLAGS[sdk=iphoneos9.*] = $(HOCKEYSDK_WARNING_FLAGS) -fembed-bitcode OTHER_CFLAGS[sdk=iphonesimulator9.*] = $(HOCKEYSDK_WARNING_FLAGS) -fembed-bitcode-marker OTHER_CFLAGS[sdk=iphoneos10.*] = $(HOCKEYSDK_WARNING_FLAGS) -fembed-bitcode OTHER_CFLAGS[sdk=iphonesimulator10.*] = $(HOCKEYSDK_WARNING_FLAGS) -fembed-bitcode-marker -OTHER_LDFLAGS=$(inherited) -framework CrashReporter -framework AssetsLibrary -framework CoreTelephony -framework CoreText -framework CoreGraphics -framework Foundation -framework MobileCoreServices -framework Photos -framework QuartzCore -framework QuickLook -framework Security -framework SystemConfiguration -framework UIKit -lc++ -lz +OTHER_LDFLAGS=$(inherited) -framework CrashReporter -framework CoreTelephony -framework CoreText -framework CoreGraphics -framework Foundation -framework MobileCoreServices -framework Photos -framework QuartzCore -framework QuickLook -framework Security -framework SystemConfiguration -framework UIKit -lc++ -lz HOCKEYSDK_DOCSET_NAME=HockeySDK-iOS HOCKEYSDK_GCC_PREPROCESSOR_DEFINITIONS=$(inherited) $(XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS) HOCKEYSDK_WARNING_FLAGS = -Wshorten-64-to-32 -Wall diff --git a/Support/module_allfeatures.modulemap b/Support/module_allfeatures.modulemap index 25943023..71d4449e 100644 --- a/Support/module_allfeatures.modulemap +++ b/Support/module_allfeatures.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 +} From 11579913980cb27f1a5a15389c832eb000e6e61e Mon Sep 17 00:00:00 2001 From: "Benjamin Scholtysik (Reimold)" Date: Thu, 3 Aug 2017 13:40:31 -0700 Subject: [PATCH 3/5] Fix typo in the word CocoaPods. --- Documentation/Guides/Installation & Setup.md | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Guides/Installation & Setup.md b/Documentation/Guides/Installation & Setup.md index 69cec24f..4ab31b70 100644 --- a/Documentation/Guides/Installation & Setup.md +++ b/Documentation/Guides/Installation & Setup.md @@ -568,7 +568,7 @@ As of HockeySDK 4.1.1, Feedback is no longer part of the default SDK. To use fee #### 3.8.1 Integrate the full-featured SDK. -If you're integrating the binary yourself, use the `HockeySDK.embeddedframework` in the subfolder `HockeySDKAllFeatures`. If you're using Cocoapods, use +If you're integrating the binary yourself, use the `HockeySDK.embeddedframework` in the subfolder `HockeySDKAllFeatures`. If you're using CocoaPods, use ```ruby pod "HockeySDK", :subspecs => ['AllFeaturesLib'] @@ -696,7 +696,7 @@ We're looking forward to your contributions via pull requests on our [GitHub rep * A Mac running the latest version of OS X * Get the latest Xcode from the Mac App Store * [Jazzy](https://github.com/realm/jazzy) to generate documentation -* [Cocoapods](https://cocoapods.org/) to test integration with Cocoapods. +* [CocoaPods](https://cocoapods.org/) to test integration with CocoaPods. * [Carthage](https://github.com/Carthage/Carthage) to test integration with Carthage. diff --git a/README.md b/README.md index e578095c..4e38a30d 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ We're looking forward to your contributions via pull requests. * A Mac running the latest version of OS X. * Get the latest Xcode from the Mac App Store. * [Jazzy](https://github.com/realm/jazzy) to generate documentation. -* [Cocoapods](https://cocoapods.org/) to test integration with Cocoapods. +* [CocoaPods](https://cocoapods.org/) to test integration with CocoaPods. * [Carthage](https://github.com/Carthage/Carthage) to test integration with Carthage. ### 3.2 Code of Conduct From 98f5fc795b75d6cef192652a35497bd332735fed Mon Sep 17 00:00:00 2001 From: "Benjamin Scholtysik (Reimold)" Date: Thu, 3 Aug 2017 14:06:29 -0700 Subject: [PATCH 4/5] A few typos and fixes for the installation guide --- Documentation/Guides/Installation & Setup.md | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Documentation/Guides/Installation & Setup.md b/Documentation/Guides/Installation & Setup.md index 4ab31b70..43cef6c2 100644 --- a/Documentation/Guides/Installation & Setup.md +++ b/Documentation/Guides/Installation & Setup.md @@ -84,7 +84,7 @@ Please see the "[How to create a new app](http://support.hockeyapp.net/kb/about- From our experience, 3rd-party libraries usually reside inside a subdirectory (let's call our subdirectory `Vendor`), so if you don't have your project organized with a subdirectory for libraries, now would be a great start for it. To continue our example, create a folder called `Vendor` inside your project directory and move the unzipped `HockeySDK-iOS`-folder into it. -The SDK comes in four flavours: +The SDK comes in four flavors: * Default SDK without Feedback: `HockeySDK.embeddedframework` * Full featured SDK with Feedback: `HockeySDK.embeddedframework` in the subfolder `HockeySDKAllFeatures`. @@ -97,7 +97,7 @@ Our examples will use the **default** SDK (`HockeySDK.embeddedframework`). ### 2.4 Add the SDK to the project in Xcode -> We recommend to use Xcode's group-feature to create a group for 3rd-party-libraries similar to the structure of our files on disk. For example, similar to the file structure in 2.3 above, our projects have a group called `Vendor`. +> We recommend using Xcode's group-feature to create a group for 3rd-party-libraries similar to the structure of our files on disk. For example, similar to the file structure in 2.3 above, our projects have a group called `Vendor`. 1. Make sure the `Project Navigator` is visible (⌘+1). 2. Drag & drop `HockeySDK.embeddedframework` from your `Finder` to the `Vendor` group in `Xcode` using the `Project Navigator` on the left side. @@ -173,7 +173,7 @@ Our examples will use the **default** SDK (`HockeySDK.embeddedframework`). ``` -*Note:* The SDK is optimized to defer everything possible to a later time while making sure e.g. crashes on startup can also be caught and each module executes other code with a delay some seconds. This ensures that `applicationDidFinishLaunching` will process as fast as possible and the SDK will not block the startup sequence resulting in a possible kill by the watchdog process. +*Note:* The SDK is optimized to defer everything possible to a later time while making sure e.g. crashes on start-up can also be caught and each module executes other code with a delay some seconds. This ensures that `applicationDidFinishLaunching` will process as fast as possible and the SDK will not block the start-up sequence resulting in a possible kill by the watchdog process. **Congratulation, now you're all set to use HockeySDK!** @@ -274,7 +274,7 @@ pod "HockeySDK", :subspecs => ['CrashOnlyExtensionsLib'] #### 3.2.2 Source Integration Options -Alternatively you can integrate the SDK by source if you want to do modifications or want a different feature set. The following entry will integrate the SDK: +Alternatively, you can integrate the SDK by source if you want to do modifications or want a different feature set. The following entry will integrate the SDK: ```ruby pod "HockeySDK-Source" @@ -402,7 +402,7 @@ The following points need to be considered to use HockeySDK with WatchKit 1 Exte ### 3.6 Crash Reporting -The following options only show some of possibilities to interact and fine-tune the crash reporting feature. For more please check the full documentation of the `BITCrashManager` class in our [documentation](#documentation). +The following options only show some of the possibilities to interact and fine-tune the crash reporting feature. For more please check the full documentation of the `BITCrashManager` class in our [documentation](#documentation). #### 3.6.1 Disable Crash Reporting The HockeySDK enables crash reporting **per default**. Crashes will be immediately sent to the server the next time the app is launched. @@ -433,15 +433,15 @@ Crashes are send the next time the app starts. If `crashManagerStatus` is set to The SDK is not sending the reports right when the crash happens deliberately, because if is not safe to implement such a mechanism while being async-safe (any Objective-C code is _NOT_ async-safe!) and not causing more danger like a deadlock of the device, than helping. We found that users do start the app again because most don't know what happened, and you will get by far most of the reports. -Sending the reports on startup is done asynchronously (non-blocking). This is the only safe way to ensure that the app won't be possibly killed by the iOS watchdog process, because startup could take too long and the app could not react to any user input when network conditions are bad or connectivity might be very slow. +Sending the reports on start-up is done asynchronously (non-blocking). This is the only safe way to ensure that the app won't be possibly killed by the iOS watchdog process, because start-up could take too long and the app could not react to any user input when network conditions are bad or connectivity might be very slow. #### 3.6.3 Mach Exception Handling By default the SDK is using the safe and proven in-process BSD Signals for catching crashes. This option provides an option to enable catching fatal signals via a Mach exception server instead. -We strongly advice _NOT_ to enable Mach exception handler in release versions of your apps! +We strongly advise _NOT_ to enable Mach exception handler in release versions of your apps! -*Warning:* The Mach exception handler executes in-process, and will interfere with debuggers when they attempt to suspend all active threads (which will include the Mach exception handler). Mach-based handling should _NOT_ be used when a debugger is attached. The SDK will not enabled catching exceptions if the app is started with the debugger running. If you attach the debugger during runtime, this may cause issues the Mach exception handler is enabled! +*Warning:* The Mach exception handler executes in-process, and will interfere with debuggers when they attempt to suspend all active threads (which will include the Mach exception handler). Mach-based handling should _NOT_ be used when a debugger is attached. The SDK will not enable catching exceptions if the app is started with the debugger running. If you attach the debugger during runtime, this may cause issues the Mach exception handler is enabled! ```objc [[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"APP_IDENTIFIER"]; @@ -531,7 +531,7 @@ metricsManager.trackEventWithName(eventName) #### 3.7.2 Attaching custom properties and measurements to a custom event -It's possible to attach properties and/or measurements to a custom event. There is one limitation to attaching properties and measurements. They currently don't show up in the HockeyApp dashboard but you have to link your app to Application Insights to be able to query them. Please have a look at [our blogpost](https://www.hockeyapp.net/blog/2016/08/30/custom-events-public-preview.html) to find out how to do that. +It's possible to attach properties and/or measurements to a custom event. There is one limitation to attaching properties and measurements. They currently don't show up in the HockeyApp dashboard but you have to link your app to Application Insights to be able to query them. Please have a look at [our blog post](https://www.hockeyapp.net/blog/2016/08/30/custom-events-public-preview.html) to find out how to do that. - Properties have to be a string. - Measurements have to be of a numeric type. @@ -576,7 +576,7 @@ pod "HockeySDK", :subspecs => ['AllFeaturesLib'] in your podfile. -`BITFeedbackManager` lets your users communicate directly with you via the app and an integrated user interface. It provides a single threaded discussion with a user running your app. This feature is only enabled, if you integrate the actual view controllers into your app. +`BITFeedbackManager` lets your users communicate directly with you via the app and an integrated user interface. It provides a single threaded discussion with a user running your app. This feature is only enabled if you integrate the actual view controllers into your app. You should never create your own instance of `BITFeedbackManager` but use the one provided by the `[BITHockeyManager sharedHockeyManager]`: @@ -598,7 +598,7 @@ If the value is missing from your `Info.plist`, the SDK will disable attaching p This is the HockeySDK module for handling app updates when having your app released in the App Store. -When an update is detected, this module will show an alert asking the user if he/she wants to update or ignore this version. If update was chosen, it will open the apps page in the app store app. +When an update is detected, this module will show an alert asking the user if he/she wants to update or ignore this version. If the update was chosen, it will open the apps page in the app store app. By default this module is **NOT** enabled! To enable it use the following code: @@ -617,9 +617,9 @@ Please check the [documentation](#documentation) of the `BITStoreUpdateManager` ### 3.10 In-App-Updates (Beta & Enterprise only) -The following options only show some of possibilities to interact and fine-tune the update feature when using Ad-Hoc or Enterprise provisioning profiles. For more please check the full documentation of the `BITUpdateManager` class in our [documentation](#documentation). +The following options only show some of the possibilities to interact and fine-tune the update feature when using Ad-Hoc or Enterprise provisioning profiles. For more please check the full documentation of the `BITUpdateManager` class in our [documentation](#documentation). -The feature handles version updates, presents update and version information in a App Store like user interface, collects usage information and provides additional authorization options when using Ad-Hoc provisioning profiles. +The feature handles version updates, presents the update and version information in a App Store like user interface, collects usage information and provides additional authorization options when using Ad-Hoc provisioning profiles. This module automatically disables itself when running in an App Store build by default! From e7119655735abd755dd8d51de2079819c3c9dfee Mon Sep 17 00:00:00 2001 From: "Benjamin Scholtysik (Reimold)" Date: Thu, 3 Aug 2017 16:36:02 -0700 Subject: [PATCH 5/5] Ignore warning related to unused const variables in BITAttributedLabel. --- Classes/BITAttributedLabel.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/BITAttributedLabel.m b/Classes/BITAttributedLabel.m index 22712cd2..e771880f 100644 --- a/Classes/BITAttributedLabel.m +++ b/Classes/BITAttributedLabel.m @@ -53,8 +53,12 @@ static const NSTextAlignment BITTextAlignmentNatural = NSTextAlignmentNatural; static const NSLineBreakMode BITLineBreakByWordWrapping = NSLineBreakByWordWrapping; + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-const-variable" static const NSLineBreakMode BITLineBreakByCharWrapping = NSLineBreakByCharWrapping; static const NSLineBreakMode BITLineBreakByClipping = NSLineBreakByClipping; +#pragma clang diagnostic pop static const NSLineBreakMode BITLineBreakByTruncatingHead = NSLineBreakByTruncatingHead; static const NSLineBreakMode BITLineBreakByTruncatingMiddle = NSLineBreakByTruncatingMiddle; static const NSLineBreakMode BITLineBreakByTruncatingTail = NSLineBreakByTruncatingTail;