Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit de0920ec06e003973392482a434e4dfd9a1c235e
Author: liyao.ryan <[email protected]>
Date:   Fri Aug 20 19:40:29 2021 +0800

    [Fixed] debug-ios didn't work when using ark
  • Loading branch information
liyao.ryan committed Aug 24, 2021
1 parent 35db1c6 commit 9cde8c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Native/MBoxWorkspace/CLI/Exec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ extension MBCommander {

dynamic
open func reposToRun() -> [MBConfig.Repo] {
let repos = self.config.currentFeature.repos
return self.filterRepos(repos: self.config.currentFeature.repos)
}

open func filterRepos(repos: [MBConfig.Repo]) -> [MBConfig.Repo] {
if self.inRepos == nil && self.noRepos == nil { return repos }
return repos.filter { repo -> Bool in
return (self.inRepos?.any(matching: { repo.isName($0) }) ?? true) &&
Expand Down
7 changes: 6 additions & 1 deletion Native/MBoxWorkspace/CLI/Feature/import.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ extension MBCommander.Feature {
dynamic
open override func validate() throws {
try super.validate()
self.feature = try MBConfig.Feature.load(fromString: self.json, coder: .json)
self.feature = try self.buildFeature(fromString: self.json)
try self.validateBranch()
}

dynamic
open func buildFeature(fromString string: String) throws -> MBConfig.Feature {
return try MBConfig.Feature.load(fromString: string, coder: .json)
}

open func setupName() throws {
if let name = self.name {
self.feature.name = name
Expand Down
1 change: 1 addition & 0 deletions Native/MBoxWorkspaceCore/Model/MBConfig.Feature+Repo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ extension MBConfig.Feature {
}

@discardableResult
dynamic
open func merge(feature: MBConfig.Feature) -> [MBConfig.Repo] {
var addedRepos = [MBConfig.Repo]()
feature.repos.forEach { repo in
Expand Down

0 comments on commit 9cde8c3

Please sign in to comment.