diff --git a/AppCenter.podspec b/AppCenter.podspec index c5bb575369..bde874a6d2 100644 --- a/AppCenter.podspec +++ b/AppCenter.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.cocoapods_version = '>= 1.10' s.name = 'AppCenter' - s.version = '4.4.0' + s.version = '4.4.1' s.summary = 'Visual Studio App Center is your continuous integration, delivery and learning solution for iOS and macOS apps.' s.description = <<-DESC diff --git a/AppCenter/AppCenter/include/MSACCustomProperties.h b/AppCenter/AppCenter/include/MSACCustomProperties.h deleted file mode 120000 index 34f069a5e1..0000000000 --- a/AppCenter/AppCenter/include/MSACCustomProperties.h +++ /dev/null @@ -1 +0,0 @@ -../MSACCustomProperties.h \ No newline at end of file diff --git a/AppCenterCrashes/AppCenterCrashesTests/MSACWrapperExceptionManagerTests.m b/AppCenterCrashes/AppCenterCrashesTests/MSACWrapperExceptionManagerTests.m index 075a36e952..d96adc75fd 100644 --- a/AppCenterCrashes/AppCenterCrashesTests/MSACWrapperExceptionManagerTests.m +++ b/AppCenterCrashes/AppCenterCrashesTests/MSACWrapperExceptionManagerTests.m @@ -3,6 +3,7 @@ #import "MSACCrashes.h" #import "MSACCrashesUtil.h" +#import "MSACLogger.h" #import "MSACTestFrameworks.h" #import "MSACUtility+File.h" #import "MSACUtility.h" @@ -89,16 +90,17 @@ - (void)testSaveWrapperExceptionAndCrashReportWhenCrashReporterIsNull { // If. id mockUtility = OCMClassMock([MSACUtility class]); - OCMStub(ClassMethod([mockUtility createDirectoryAtURL:OCMOCK_ANY])).andReturn(YES); - // Then. + // When. [MSACWrapperExceptionManager setCrashReporter:nil]; MSACWrapperException *wrapperException = [self getWrapperException]; - [MSACWrapperExceptionManager saveWrapperExceptionAndCrashReport:wrapperException]; - // When. + // Then. OCMReject([mockUtility createDirectoryAtURL:OCMOCK_ANY]); + // When. + [MSACWrapperExceptionManager saveWrapperExceptionAndCrashReport:wrapperException]; + // Stop mocking. [mockUtility stopMocking]; } @@ -116,13 +118,45 @@ - (void)testSaveWrapperExceptionAndCrashReportWhenDirectoryWasNotCreated { OCMStub([mockCrashReporter crashReportPath]).andReturn(mockPath); OCMStub([mockCrashReporter generateLiveReport]).andReturn(mockData); + // When. + [MSACWrapperExceptionManager setCrashReporter:mockCrashReporter]; + MSACWrapperException *wrapperException = [self getWrapperException]; + + // Then. + OCMReject([mockUtility createFileAtPath:OCMOCK_ANY contents:OCMOCK_ANY attributes:OCMOCK_ANY]); + + // When. + [MSACWrapperExceptionManager saveWrapperExceptionAndCrashReport:wrapperException]; + + // Stop mocking. + [mockUtility stopMocking]; + [mockCrashReporter stopMocking]; +} + +- (void)testSaveWrapperExceptionAndCrashReportWhenFailedToCreateFile { + + // If. + id mockUtility = OCMClassMock([MSACUtility class]); + OCMStub(ClassMethod([mockUtility createDirectoryAtURL:OCMOCK_ANY])).andReturn(YES); + OCMStub(ClassMethod([mockUtility createFileAtPath:OCMOCK_ANY contents:OCMOCK_ANY attributes:OCMOCK_ANY])).andReturn(NO); + + // Mock crashReporter. + id mockCrashReporter = OCMClassMock([PLCrashReporter class]); + NSString *mockPath = @"file://mock/live_report.plcrash"; + NSData *mockData = [NSData new]; + OCMStub([mockCrashReporter crashReportPath]).andReturn(mockPath); + OCMStub([mockCrashReporter generateLiveReport]).andReturn(mockData); + + // Remove file if it exists + [[NSFileManager defaultManager] removeItemAtPath:mockPath error:nil]; + // When. [MSACWrapperExceptionManager setCrashReporter:mockCrashReporter]; MSACWrapperException *wrapperException = [self getWrapperException]; [MSACWrapperExceptionManager saveWrapperExceptionAndCrashReport:wrapperException]; // Then. - OCMReject([mockUtility createFileAtPathComponent:OCMOCK_ANY withData:OCMOCK_ANY atomically:YES forceOverwrite:YES]); + XCTAssertFalse([[NSFileManager defaultManager] fileExistsAtPath:mockPath]); // Stop mocking. [mockUtility stopMocking]; diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a557df2d6..13ef6ef7be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # App Center SDK for iOS, macOS and tvOS Change Log +## Version 4.4.1 + +### App Center + +* **[Fix]** Fix warning about broken symlink `MSACCustomProperties.h` when integrating via Swift Package Manager. + +___ + ## Version 4.4.0 ### App Center diff --git a/Config/Version.xcconfig b/Config/Version.xcconfig index 3e55b0cb82..1f84d66319 100644 --- a/Config/Version.xcconfig +++ b/Config/Version.xcconfig @@ -1,2 +1,2 @@ BUILD_NUMBER = 1 -VERSION_STRING = 4.4.0 +VERSION_STRING = 4.4.1 diff --git a/Documentation/iOS/AppCenter/.jazzy.yaml b/Documentation/iOS/AppCenter/.jazzy.yaml index e27aa739b1..3923714682 100644 --- a/Documentation/iOS/AppCenter/.jazzy.yaml +++ b/Documentation/iOS/AppCenter/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: iphonesimulator theme: ../../Themes/apple module: AppCenter -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/iOS/AppCenterAnalytics/.jazzy.yaml b/Documentation/iOS/AppCenterAnalytics/.jazzy.yaml index 8da1f87aee..9da3121e50 100644 --- a/Documentation/iOS/AppCenterAnalytics/.jazzy.yaml +++ b/Documentation/iOS/AppCenterAnalytics/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: iphonesimulator theme: ../../Themes/apple module: AppCenterAnalytics -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/iOS/AppCenterCrashes/.jazzy.yaml b/Documentation/iOS/AppCenterCrashes/.jazzy.yaml index 176b3c563d..93d4ce46e2 100644 --- a/Documentation/iOS/AppCenterCrashes/.jazzy.yaml +++ b/Documentation/iOS/AppCenterCrashes/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: iphonesimulator theme: ../../Themes/apple module: AppCenterCrashes -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/iOS/AppCenterDistribute/.jazzy.yaml b/Documentation/iOS/AppCenterDistribute/.jazzy.yaml index f9adbf62c7..12825644a2 100644 --- a/Documentation/iOS/AppCenterDistribute/.jazzy.yaml +++ b/Documentation/iOS/AppCenterDistribute/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: iphonesimulator theme: ../../Themes/apple module: AppCenterDistribute -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/macOS/AppCenter/.jazzy.yaml b/Documentation/macOS/AppCenter/.jazzy.yaml index f5cfe511ef..21f35a8044 100644 --- a/Documentation/macOS/AppCenter/.jazzy.yaml +++ b/Documentation/macOS/AppCenter/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: macosx theme: ../../Themes/apple module: AppCenter -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/macOS/AppCenterAnalytics/.jazzy.yaml b/Documentation/macOS/AppCenterAnalytics/.jazzy.yaml index 32cd14d259..7f29ec6b7d 100644 --- a/Documentation/macOS/AppCenterAnalytics/.jazzy.yaml +++ b/Documentation/macOS/AppCenterAnalytics/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: macosx theme: ../../Themes/apple module: AppCenterAnalytics -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/macOS/AppCenterCrashes/.jazzy.yaml b/Documentation/macOS/AppCenterCrashes/.jazzy.yaml index 3b60260251..5897f1081c 100644 --- a/Documentation/macOS/AppCenterCrashes/.jazzy.yaml +++ b/Documentation/macOS/AppCenterCrashes/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: macosx theme: ../../Themes/apple module: AppCenterCrashes -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/tvOS/AppCenter/.jazzy.yaml b/Documentation/tvOS/AppCenter/.jazzy.yaml index 67a0a1c8a1..781c4c2473 100644 --- a/Documentation/tvOS/AppCenter/.jazzy.yaml +++ b/Documentation/tvOS/AppCenter/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: appletvsimulator theme: ../../Themes/apple module: AppCenter -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/tvOS/AppCenterAnalytics/.jazzy.yaml b/Documentation/tvOS/AppCenterAnalytics/.jazzy.yaml index 61c4b705c0..375cb72d2a 100644 --- a/Documentation/tvOS/AppCenterAnalytics/.jazzy.yaml +++ b/Documentation/tvOS/AppCenterAnalytics/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: appletvsimulator theme: ../../Themes/apple module: AppCenterAnalytics -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Documentation/tvOS/AppCenterCrashes/.jazzy.yaml b/Documentation/tvOS/AppCenterCrashes/.jazzy.yaml index d71b79ca69..3cf8296004 100644 --- a/Documentation/tvOS/AppCenterCrashes/.jazzy.yaml +++ b/Documentation/tvOS/AppCenterCrashes/.jazzy.yaml @@ -5,7 +5,7 @@ sdk: appletvsimulator theme: ../../Themes/apple module: AppCenterCrashes -module_version: 4.4.0 +module_version: 4.4.1 author: Microsoft Corp author_url: http://www.microsoft.com diff --git a/Package.swift b/Package.swift index 3cea9dc7b3..c782a52aed 100644 --- a/Package.swift +++ b/Package.swift @@ -31,7 +31,7 @@ let package = Package( path: "AppCenter/AppCenter", exclude: ["Support"], cSettings: [ - .define("APP_CENTER_C_VERSION", to:"\"4.4.0\""), + .define("APP_CENTER_C_VERSION", to:"\"4.4.1\""), .define("APP_CENTER_C_BUILD", to:"\"1\""), .headerSearchPath("**"), ], diff --git a/Package@swift-5.3.swift b/Package@swift-5.3.swift index 74ad2a6a8e..2df08b8ee2 100644 --- a/Package@swift-5.3.swift +++ b/Package@swift-5.3.swift @@ -36,7 +36,7 @@ let package = Package( path: "AppCenter/AppCenter", exclude: ["Support"], cSettings: [ - .define("APP_CENTER_C_VERSION", to:"\"4.4.0\""), + .define("APP_CENTER_C_VERSION", to:"\"4.4.1\""), .define("APP_CENTER_C_BUILD", to:"\"1\""), .headerSearchPath("**"), ],