Skip to content

Commit

Permalink
Converge all three platforms to what was iOS, building and passing al…
Browse files Browse the repository at this point in the history
…l unit tests

- Removed .cpp source file specifier from podspec
- Unshared schemes
- Remove tvOS and OSX projects
- Renamed iOS project to Project
  • Loading branch information
Robin Macharg authored and robinmacharg committed May 27, 2020
1 parent f819b89 commit 7a4911e
Show file tree
Hide file tree
Showing 37 changed files with 1,477 additions and 3,602 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
- osx_image: xcode10.2 # macos 10.14
name: macOS 10.14 unit tests
stage: macOS unit tests
env: PLATFORM=OSX
env: PLATFORM=macOS

- osx_image: xcode9.4 # macos 10.13
name: macOS 10.13 unit tests
stage: macOS unit tests
env: PLATFORM=OSX
env: PLATFORM=macOS

# ----------------------------------------------------------------------------
# Unit Tests - iOS & tvOS
Expand Down
2 changes: 1 addition & 1 deletion Bugsnag.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"tvos": "9.0"
},
"source_files": [
"Source/{**/,}*.{m,h,mm,c,cpp}"
"Source/{**/,}*.{m,h,mm,c}"
],
"requires_arc": true,
"public_header_files": [
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PLATFORM?=iOS
OS?=latest
TEST_CONFIGURATION?=Debug
BUILD_FLAGS=-project $(PLATFORM)/Bugsnag.xcodeproj -scheme Bugsnag -derivedDataPath build
BUILD_FLAGS=-project Project/Bugsnag.xcodeproj -scheme Bugsnag-$(PLATFORM) -derivedDataPath build/build-$(PLATFORM)

ifeq ($(PLATFORM),OSX)
ifeq ($(PLATFORM),macOS)
SDK?=macosx
RELEASE_DIR=Release
BUILD_ONLY_FLAGS=-sdk $(SDK) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
Expand Down Expand Up @@ -95,8 +95,8 @@ endif
@EXPANDED_CODE_SIGN_IDENTITY="" EXPANDED_CODE_SIGN_IDENTITY_NAME="" EXPANDED_PROVISIONING_PROFILE="" pod trunk push --allow-warnings

clean: ## Clean build artifacts
@$(XCODEBUILD) $(BUILD_FLAGS) clean $(FORMATTER)
@rm -rf build
@set -x && $(XCODEBUILD) $(BUILD_FLAGS) clean $(FORMATTER)
@rm -rf build-$(PLATFORM)

test: ## Run unit tests
@$(XCODEBUILD) $(BUILD_FLAGS) $(BUILD_ONLY_FLAGS) test $(FORMATTER)
Expand Down
1,506 changes: 0 additions & 1,506 deletions OSX/Bugsnag.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions OSX/Info.plist

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F171C6BBD2300846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-iOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -34,7 +34,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F171C6BBD2300846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-iOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -43,7 +43,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F171C6BBD2300846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-iOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
Expand All @@ -53,8 +53,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F211C6BBD2300846019"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
BuildableName = "Bugsnag-iOSTests.xctest"
BlueprintName = "Bugsnag-iOSTests"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -75,7 +75,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F171C6BBD2300846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-iOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -91,7 +91,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8F171C6BBD2300846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-iOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1140"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,42 +14,31 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A8D51231D41343500D33797"
BlueprintIdentifier = "009BBD612478369100731BF5"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-macOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8AB151111D41356800C9B218"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
BlueprintIdentifier = "009BBD692478369200731BF5"
BuildableName = "Bugsnag-MacOSTests.xctest"
BlueprintName = "Bugsnag-MacOSTests"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A8D51231D41343500D33797"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,17 +50,6 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A8D51231D41343500D33797"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -82,9 +60,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A8D51231D41343500D33797"
BlueprintIdentifier = "009BBD612478369100731BF5"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-macOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1140"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,42 +14,31 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8FA01C6BC1F700846019"
BlueprintIdentifier = "009BBD7D2478370000731BF5"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-tvOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8FAA1C6BC1F700846019"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
BlueprintIdentifier = "009BBD852478370100731BF5"
BuildableName = "Bugsnag-tvOSTests.xctest"
BlueprintName = "Bugsnag-tvOSTests"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8FA01C6BC1F700846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,17 +50,6 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8FA01C6BC1F700846019"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -82,9 +60,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8A2C8FA01C6BC1F700846019"
BlueprintIdentifier = "009BBD7D2478370000731BF5"
BuildableName = "Bugsnag.framework"
BlueprintName = "Bugsnag"
BlueprintName = "Bugsnag-tvOS"
ReferencedContainer = "container:Bugsnag.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion Tests/BugsnagBaseUnitTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ @implementation BugsnagBaseUnitTest
* We take the former approach.
*
* @param willNotify Whether the notifier should actually send the event to the server
* @param willPersistUser Whether any user information should be persisted
*/

-(void)setUpBugsnagWillCallNotify:(bool)willNotify
Expand Down
Loading

0 comments on commit 7a4911e

Please sign in to comment.