diff --git a/HockeySDK-Source.podspec b/HockeySDK-Source.podspec index 790851deb0..e01eb5abcf 100644 --- a/HockeySDK-Source.podspec +++ b/HockeySDK-Source.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'HockeySDK-Source' - s.version = '3.7.0' + s.version = '3.7.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 @@ -12,69 +12,22 @@ Pod::Spec.new do |s| DESC s.homepage = 'http://hockeyapp.net/' - s.documentation_url = 'http://hockeyapp.net/help/sdk/ios/3.7.0/' + s.documentation_url = 'http://hockeyapp.net/help/sdk/ios/3.7.1/' - s.license = { :type => 'MIT', :file => 'LICENSE' } + s.license = 'MIT' s.author = { 'Andreas Linde' => 'mail@andreaslinde.de', 'Thomas Dohmke' => "thomas@dohmke.de" } s.source = { :git => 'https://github.com/bitstadium/HockeySDK-iOS.git', :tag => s.version.to_s } s.platform = :ios, '6.0' + s.source_files = 'Classes' s.requires_arc = true - - s.prepare_command = 'cp -f Classes/HockeySDKFeatureConfig_CP.h Classes/HockeySDKFeatureConfig.h' #Changes default of all features enabled to disabled - s.frameworks = 'Security', 'UIKit' - s.resource_bundle = { 'HockeySDKResources' => ['Resources/*.lproj'] } - s.preserve_path = 'README.md' + + s.frameworks = 'AssetsLibrary', 'CoreText', 'CoreGraphics', 'MobileCoreServices', 'QuartzCore', 'QuickLook', 'Security', 'SystemConfiguration', 'UIKit' + s.libraries = 'c++' + s.ios.vendored_frameworks = 'Vendor/CrashReporter.framework' + s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"42\\"" BITHOCKEY_C_BUILD="\\"42\\""} } + s.resource_bundle = { 'HockeySDKResources' => ['Resources/*.png', 'Resources/*.lproj'] } + s.preserve_paths = 'Resources', 'Support' s.private_header_files = 'Classes/*Private.h' - s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) BITHOCKEY_VERSION="@\\"#{s.version}\\"" BITHOCKEY_C_VERSION="\\"#{s.version}\\"" BITHOCKEY_BUILD="@\\"40\\"" BITHOCKEY_C_BUILD="\\"40\\""} } - - s.default_subspec = 'AllFeatures' - - s.subspec 'SharedRequirements' do |ss| - ss.source_files = 'Classes/HockeySDK*.{h,m}', 'Classes/BITHockeyManager*.{h,m}', 'Classes/BITHockeyAppClient.{h,m}', 'Classes/BITHTTPOperation.{h,m}', 'Classes/BITHockeyHelper.{h,m}', 'Classes/BITKeychain*.{h,m}', 'Classes/BITHockeyBaseManager*.{h,m}' - end - - s.subspec 'CrashReporter' do |ss| - ss.dependency 'HockeySDK-Source/SharedRequirements' - ss.vendored_frameworks = 'Vendor/CrashReporter.framework' - ss.frameworks = 'SystemConfiguration' - ss.libraries = 'c++' - ss.source_files = 'Classes/BITCrash*.{h,m,mm}', 'Classes/BITHockeyAttachment.{h,m}' - ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) HOCKEYSDK_FEATURE_CRASH_REPORTER=1} } - end - - s.subspec 'UserFeedback' do |ss| - ss.dependency 'HockeySDK-Source/SharedRequirements' - ss.frameworks = 'AssetsLibrary', 'MobileCoreServices', 'QuickLook', 'CoreText' - ss.source_files = 'Classes/BITFeedback*.{h,m}', 'Classes/BIT*ImageAnnotation.{h,m}', 'Classes/BITImageAnnotationViewController.{h,m}', 'Classes/BITHockeyAttachment.{h,m}', 'Classes/BITHockeyBaseViewController.{h,m}', 'Classes/BITAttributedLabel.{h,m}', 'Classes/BITActivityIndicatorButton.{h,m}' - ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) HOCKEYSDK_FEATURE_FEEDBACK=1} } - end - - s.subspec 'StoreUpdates' do |ss| - ss.dependency 'HockeySDK-Source/SharedRequirements' - ss.source_files = 'Classes/BITStoreUpdate*.{h,m}' - ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) HOCKEYSDK_FEATURE_STORE_UPDATES=1} } - end - - s.subspec 'Authenticator' do |ss| - ss.dependency 'HockeySDK-Source/SharedRequirements' - ss.source_files = 'Classes/BITAuthentica*.{h,m}', 'Classes/BITHockeyBaseViewController.{h,m}' - ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) HOCKEYSDK_FEATURE_AUTHENTICATOR=1} } - end - - s.subspec 'AdHocUpdates' do |ss| - ss.dependency 'HockeySDK-Source/SharedRequirements' - ss.source_files = 'Classes/BITUpdate*.{h,m}', 'Classes/BITAppVersionMetaInfo.{h,m}', 'Classes/BITHockeyBaseViewController.{h,m}', 'Classes/BITStoreButton.{h,m}', 'Classes/BITAppStoreHeader.{h,m}', 'Classes/BITWebTableViewCell.{h,m}' - ss.frameworks = 'CoreGraphics', 'QuartzCore', 'Security', 'UIKit' - ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => %{$(inherited) HOCKEYSDK_FEATURE_UPDATES=1} } - end - - s.subspec 'AllFeatures' do |ss| - ss.dependency 'HockeySDK-Source/CrashReporter' - ss.dependency 'HockeySDK-Source/UserFeedback' - ss.dependency 'HockeySDK-Source/StoreUpdates' - ss.dependency 'HockeySDK-Source/Authenticator' - ss.dependency 'HockeySDK-Source/AdHocUpdates' - end end \ No newline at end of file diff --git a/HockeySDK.podspec b/HockeySDK.podspec index 729b1fb841..fd1197c512 100644 --- a/HockeySDK.podspec +++ b/HockeySDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'HockeySDK' - s.version = '3.7.0' + s.version = '3.7.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 @@ -12,7 +12,7 @@ Pod::Spec.new do |s| DESC s.homepage = 'http://hockeyapp.net/' - s.documentation_url = 'http://hockeyapp.net/help/sdk/ios/3.7.0/' + s.documentation_url = 'http://hockeyapp.net/help/sdk/ios/3.7.1/' s.license = { :type => 'MIT', :file => 'HockeySDK-iOS/LICENSE' } s.author = { 'Andreas Linde' => 'mail@andreaslinde.de', 'Thomas Dohmke' => "thomas@dohmke.de" } @@ -30,12 +30,12 @@ Pod::Spec.new do |s| s.default_subspec = 'AllFeaturesLib' s.subspec 'CrashOnlyLib' do |ss| - ss.resource_bundle = { 'HockeySDKResources' => ['Resources/*.lproj'] } + ss.resource_bundle = { 'HockeySDKResources' => ['HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/*.lproj'] } ss.vendored_frameworks = 'HockeySDK-iOS/HockeySDKCrashOnly/HockeySDK.framework' end s.subspec 'AllFeaturesLib' do |ss| - ss.resource_bundle = { 'HockeySDKResources' => ['Resources/*.png', 'Resources/*.lproj'] } + ss.resource_bundle = { 'HockeySDKResources' => ['HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/*.png', 'HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/*.lproj'] } ss.frameworks = 'CoreGraphics', 'QuartzCore', 'AssetsLibrary', 'MobileCoreServices', 'QuickLook', 'CoreText' ss.vendored_frameworks = 'HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework' diff --git a/README.md b/README.md index 30c6627b59..e5896c9c33 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![Build Status](https://travis-ci.org/bitstadium/HockeySDK-iOS.svg?branch=master)](https://travis-ci.org/bitstadium/HockeySDK-iOS) -## Version 3.7.0 +## Version 3.7.1 -- [Changelog](http://www.hockeyapp.net/help/sdk/ios/3.7.0/docs/docs/Changelog.html) +- [Changelog](http://www.hockeyapp.net/help/sdk/ios/3.7.1/docs/docs/Changelog.html) ## Introduction @@ -80,7 +80,7 @@ From our experience, 3rd-party libraries usually reside inside a subdirectory (l 2. Add the following line at the top of the file below your own `import` statements: ```objectivec - @import HockeySDK + @import HockeySDK; ``` 3. Search for the method `application:didFinishLaunchingWithOptions:` @@ -179,20 +179,12 @@ You can alternative use a Crash Reporting build only by using the following line #### 3.2.2 Source Integration Options -Alternatively you can integrate the SDK by source if you want to do any modifications or want a different feature set. The following entry will integrate all features: +Alternatively you can integrate the SDK by source if you want to do any modifications or want a different feature set. The following entry will integrate the SDK: ```ruby pod "HockeySDK-Source" ``` -You can use `subspecs` to specify your own feature set using the following options: `CrashReporter`, `UserFeedback`, `StoreUpdates`, `Authenticator`, `AdHocUpdates`. An example could look like: - - ```ruby - pod "HockeySDK-Source", :subspecs => ['CrashReporter', 'UserFeedback'] - ``` - -*Note:* The source will not build without warnings in Xcode 7! - ### 3.3 iOS 8 Extensions @@ -446,7 +438,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/3.7.0/index.html). +Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/3.7.1/index.html). diff --git a/Support/buildnumber.xcconfig b/Support/buildnumber.xcconfig index 501adde1a5..dd9e968ecb 100644 --- a/Support/buildnumber.xcconfig +++ b/Support/buildnumber.xcconfig @@ -1,7 +1,7 @@ #include "HockeySDK.xcconfig" -BUILD_NUMBER = 40 -VERSION_STRING = 3.7.0 +BUILD_NUMBER = 42 +VERSION_STRING = 3.7.1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) 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 diff --git a/docs/Changelog-template.md b/docs/Changelog-template.md index 2e77eddcfa..d8dd497bcf 100644 --- a/docs/Changelog-template.md +++ b/docs/Changelog-template.md @@ -1,14 +1,20 @@ +## Version 3.7.1 + +- [BUGFIX] `CocoaPods`: Fixes the default podspec with binary distribution +- [BUGFIX] `CocoaPods`: Changes `HockeySDK-Source` to use non configurable approach, since we couldn't make it work reliably in all scenarios + ## Version 3.7.0 - [NEW] Simplified installation process. If support for modules is enabled in the target project (default for most projects), it’s no longer necessary to add the frameworks manually - [NEW] `CocoaPods`: Default pod uses binary distribution and offers crash only build as a subspec -- [NEW] `CocoaPods`: New `HockeySDK-Source` pod integrates via source code and offers feature set customization via subspecs (We do not support building with Xcode 7 yet!) +- [NEW] `CocoaPods`: New `HockeySDK-Source` pod integrates via source code and offers feature set customization via subspecs. Note: We do not support building with Xcode 7 yet! - [NEW] `BITCrashManager`: Added support for unhandled C++ exceptions (requires to link `libc++`) +- [NEW] `BITCrashManager`: Sending crash reports via `NSURLSession` whenever possible - [NEW] `BITCrashManager`: Added process ID to `BITCrashDetails` - [NEW] `BITCrashManager`: Added `CFBundleShortVersionString` value to crash reports - [NEW] `BITFeedbackManager`: "Add Image" button in feedback compose view can now be hidden using `feedbackComposeHideImageAttachmentButton` property -- [NEW] `BITFeedbackManagerDelegate`: Added `allowAutomaticFetchingForNewFeedbackForManager:` to define if the SDK should fetch for new messages on app startup and when the app is coming into foreground. -- [NEW] Added `disableInstallTracking` property disable installation tracking (AppStore only). +- [NEW] `BITFeedbackManagerDelegate`: Added `allowAutomaticFetchingForNewFeedbackForManager:` to define if the SDK should fetch new messages on app startup and when the app is coming into foreground. +- [NEW] Added disableInstallTracking property to disable installation tracking (AppStore only). - [UPDATE] Restructured installation documentation - [BUGFIX] `BITCrashManager`: Fixed offline issue showing crash alert over and over again with unsent crash reports - [BUGFIX] `BITFeedbackManager`: Improved screenshot handling on slow devices diff --git a/docs/Guide-Installation-Setup-template.md b/docs/Guide-Installation-Setup-template.md index d830e9bb53..d902db5d95 100644 --- a/docs/Guide-Installation-Setup-template.md +++ b/docs/Guide-Installation-Setup-template.md @@ -1,6 +1,6 @@ -## Version 3.7.0 +## Version 3.7.1 -- [Changelog](http://www.hockeyapp.net/help/sdk/ios/3.7.0/docs/docs/Changelog.html) +- [Changelog](http://www.hockeyapp.net/help/sdk/ios/3.7.1/docs/docs/Changelog.html) ## Introduction @@ -16,7 +16,8 @@ This document contains the following sections: 5. [Crash Reporting](#crashreporting) 6. [Feedback](#feedback) 7. [Store Updates](#storeupdates) - 3. [In-App-Updates (Beta & Enterprise only)](#betaupdates) + 8. [In-App-Updates (Beta & Enterprise only)](#betaupdates) + 9. [Debug information](#debug) 4. [Documentation](#documentation) 5. [Contributing](#contributing) 6. [Contact](#contact) @@ -63,7 +64,7 @@ From our experience, 3rd-party libraries usually reside inside a subdirectory (l 2. Add the following line at the top of the file below your own `import` statements: ```objectivec - @import HockeySDK + @import HockeySDK; ``` 3. Search for the method `application:didFinishLaunchingWithOptions:` @@ -88,7 +89,7 @@ From our experience, 3rd-party libraries usually reside inside a subdirectory (l 3. Search for the method ```swift - application(application: UIApplication, didFinishLaunchingWithOptions launchOptions:[NSObject: AnyObject]?) -> Bool` + application(application: UIApplication, didFinishLaunchingWithOptions launchOptions:[NSObject: AnyObject]?) -> Bool ``` 4. Add the following lines to setup and start the Application Insights SDK: @@ -162,20 +163,12 @@ You can alternative use a Crash Reporting build only by using the following line #### 3.2.2 Source Integration Options -Alternatively you can integrate the SDK by source if you want to do any modifications or want a different feature set. The following entry will integrate all features: +Alternatively you can integrate the SDK by source if you want to do any modifications or want a different feature set. The following entry will integrate the SDK: ```ruby pod "HockeySDK-Source" ``` -You can use `subspecs` to specify your own feature set using the following options: `CrashReporter`, `UserFeedback`, `StoreUpdates`, `Authenticator`, `AdHocUpdates`. An example could look like: - - ```ruby - pod "HockeySDK-Source", :subspecs => ['CrashReporter', 'UserFeedback'] - ``` - -*Note:* The source will not build without warnings in Xcode 7! - ### 3.3 iOS 8 Extensions @@ -335,6 +328,8 @@ The `BITHockeyManagerDelegate` protocol provides methods to add additional data The `BITCrashManagerDelegate` protocol (which is automatically included in `BITHockeyManagerDelegate`) provides methods to add more crash specific data to a crash report: 1. Text attachments: `-(NSString *)applicationLogForCrashManager:(BITCrashManager *)crashManager` + + Check the following tutorial for an example on how to add CocoaLumberjack log data: [How to Add Application Specific Log Data on iOS or OS X](http://support.hockeyapp.net/kb/client-integration-ios-mac-os-x/how-to-add-application-specific-log-data-on-ios-or-os-x) 2. Binary attachments: `-(BITHockeyAttachment *)attachmentForCrashManager:(BITCrashManager *)crashManager` Make sure to implement the protocol @@ -411,10 +406,23 @@ This feature can be disabled manually as follows: If you want to see beta analytics, use the beta distribution feature with in-app updates, restrict versions to specific users, or want to know who is actually testing your app, you need to follow the instructions on our guide [Authenticating Users on iOS](http://support.hockeyapp.net/kb/client-integration-ios-mac-os-x/authenticating-users-on-ios) + +### 3.9 Debug information + +To check if data is send properly to HockeyApp and also see some additional SDK debug log data in the console, add the following line before `startManager`: + + ```objectivec + [[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"APP_IDENTIFIER"]; + + [[BITHockeyManager sharedHockeyManager] setDebugLogEnabled:YES]; + + [[BITHockeyManager sharedHockeyManager] startManager]; + ``` + ## 4. Documentation -Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/3.7.0/index.html). +Our documentation can be found on [HockeyApp](http://hockeyapp.net/help/sdk/ios/3.7.1/index.html).