Skip to content

Commit

Permalink
Rework XcodeGen specification
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamin committed Feb 23, 2024
1 parent 4bf4d2b commit 95324e0
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 16 deletions.
73 changes: 59 additions & 14 deletions Example/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ fileGroups:
- SBTUITestTunnel_Example.entitlements

targets:

SBTUITestTunnel_Example:
type: application
platform: iOS
Expand All @@ -25,12 +24,6 @@ targets:
- sdk: UIKit.framework
- sdk: Foundation.framework
- sdk: CoreGraphics.framework
scheme:
gatherCoverageData: true
testTargets:
- SBTUITestTunnel_Tests
coverageTargets:
- SBTUITestTunnel_Example

SBTUITestTunnel_Tests:
type: bundle.ui-testing
Expand All @@ -43,22 +36,74 @@ targets:
- SBTUITestTunnel_Tests
dependencies:
- target: SBTUITestTunnel_Example
scheme:
testTargets:
- SBTUITestTunnel_Tests

SBTUITestTunnel_TestsNoSwizzling:
type: bundle.ui-testing
platform: iOS
deploymentTarget: "12.2"
settings:
base:
GCC_PREPROCESSOR_DEFINITIONS: ["DISABLE_UITUNNEL_SWIZZLING=1", "$(inherited)"]
GCC_PREPROCESSOR_DEFINITIONS:
["DISABLE_UITUNNEL_SWIZZLING=1", "$(inherited)"]
INFOPLIST_FILE: "SBTUITestTunnel_TestsNoSwizzling/Info.plist"
sources:
- SBTUITestTunnel_TestsNoSwizzling
dependencies:
- target: SBTUITestTunnel_Example
scheme:
testTargets:
- SBTUITestTunnel_TestsNoSwizzling

schemes:
SBTUITestTunnel:
build:
targets:
SBTUITestTunnel_Example: [run, test, profile, analyze, archive]
config: Debug
profile:
config: Debug
test:
targets:
- SBTUITestTunnel_Tests
config: Debug
gatherCoverageData: true
disableMainThreadChecker: true
language: en
region: EN

SBTUITestTunnel_Tests:
run:
debugEnabled: false
build:
targets:
SBTUITestTunnel_Example: [run, test, profile, analyze, archive]
config: Debug
profile:
config: Debug
test:
targets:
- SBTUITestTunnel_Tests
config: Debug
gatherCoverageData: true
disableMainThreadChecker: true
language: en
region: EN
management:
isShown: false

SBTUITestTunnel_NoSwizzlingTests:
run:
debugEnabled: false
build:
targets:
SBTUITestTunnel_Example: [run, test, profile, analyze, archive]
config: Debug
profile:
config: Debug
test:
targets:
- SBTUITestTunnel_TestsNoSwizzling
config: Debug
gatherCoverageData: true
disableMainThreadChecker: true
language: en
region: EN
management:
isShown: false
4 changes: 2 additions & 2 deletions Scripts/build_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
require "fileutils"

module Build
EXAMPLE_APP_SCHEME = "SBTUITestTunnel_Example"
EXAMPLE_APP_SCHEME = "SBTUITestTunnel"
UITESTS_SCHEME = "SBTUITestTunnel_Tests"
UITESTS_NOSWIZZ_SCHEME = "SBTUITestTunnel_TestsNoSwizzling"
UITESTS_NOSWIZZ_SCHEME = "SBTUITestTunnel_NoSwizzlingTests"

def self.run_build(project_path)
puts "⏳ Building app..."
Expand Down

0 comments on commit 95324e0

Please sign in to comment.