-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 1212 ideal step refactor (#181)
* Ideal Step project structure. * Migrate from ExportEnvironmentWithEnvman to stepenv.Set migrate to logger, typo fixes. * Create xcodebuild package. * Create simulator package. * Create testaddon and testartifact packages. * Move Version func to xcodebuild package. * Create output package. * Create xcpretty package. * Create cache package. * Break AbsPath dependency. * Cleanup and unit test for Step.run. * Fix lint issues. * Cleanup. * Test xcodebuild package. * Update go-utils and go-xcode packages. * Go dependencies update and cleanup. * Move testsummaries package to testartifact. * Cache interface renamed to SwiftPackageCache. * Migrate to fileutils.FileRemover and introduce createStep. * simulator.InfoModel renamed to simulator.Info. * simulator.New renamed to simulator.NewSimulator. * Make simulator value receiver. * simulator renamed to defaultSimulator. * Merge consts in step.go. * Update test function name. * Make testartifact.Exporter value receiver. * Move test repetition and output tool related consts to xcodebuild. * Reorder xcodebuild's consts and vars. * Separate prepareSimulator func. * Merge Result and ExportOpts structs. * Break Step.Run into smaller functions. * Break ProcessConfig into smaller functions. * Fix lint and test issues. * Restore previous error handling for output export. * Rename simulator.Simulator to simulator.Manager. * Rename simulator.Info struct to simulator.Simulator and regenerate simulator package mocks. * Introduce createConfig and reorganise step.go. * Introduce createBuildParams and createTestParams. * Break ioutil.TempDir dependency. * Merge createTestParams and createTestRunParams. * Make sure clean is called once. * Rename simulator manager receiver.
- Loading branch information
Showing
176 changed files
with
12,864 additions
and
2,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cache | ||
|
||
import ( | ||
xcodecache "github.com/bitrise-io/go-xcode/xcodecache" | ||
) | ||
|
||
// SwiftPackageCache ... | ||
type SwiftPackageCache interface { | ||
SwiftPackagesPath(projectPth string) (string, error) | ||
CollectSwiftPackages(projectPath string) error | ||
} | ||
|
||
type cache struct { | ||
} | ||
|
||
// NewSwiftPackageCache ... | ||
func NewSwiftPackageCache() SwiftPackageCache { | ||
return &cache{} | ||
} | ||
|
||
func (c cache) SwiftPackagesPath(projectPth string) (string, error) { | ||
return xcodecache.SwiftPackagesPath(projectPth) | ||
} | ||
|
||
func (c cache) CollectSwiftPackages(projectPath string) error { | ||
return xcodecache.CollectSwiftPackages(projectPath) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.