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
set -e | |
set +u | |
# Avoid recursively calling this script. | |
if [[ $SF_MASTER_SCRIPT_RUNNING ]] | |
then | |
exit 0 | |
fi | |
set -u | |
export SF_MASTER_SCRIPT_RUNNING=1 |
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
#!/bin/sh | |
BASEDIR=`echo "${PWD}"` | |
DIRECTORY="${BASEDIR}/SystemSymbolsFat" | |
SystemSymbols="${BASEDIR}/SystemSymbols" | |
SystemSymbols_arm64e="${BASEDIR}/SystemSymbols-arm64e" | |
#----Creating a clean directory---- | |
if [ -d "${DIRECTORY}" ]; then | |
rm -rf "${DIRECTORY}" | |
fi |
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
#!/bin/sh | |
#----Defining directories---- | |
BASEDIR=`echo "${PWD}"` | |
LIBS="${BASEDIR}/darwin/" | |
DIRECTORY="${BASEDIR}/SystemSymbols" | |
DIRECTORY_TO_ZIP="SystemSymbols" | |
DIRECTORY_ZIP="SystemSymbols.zip" | |
#----Creating a clean directory---- |
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
override func setUp() { | |
continueAfterFailure = false | |
dynamicStubs.setUp() | |
app.launchEnvironment = ["BASEURL" : "http://localhost:8080", "isUITest":"true"] | |
continueAfterFailure = false | |
super.setUp() | |
} | |
override func tearDown() { | |
super.tearDown() |
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
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.moviesListPresnter = self.moviesPresenter() | |
self.moviesListPresnter?.delegate = self | |
self.moviesListPresnter?.fetchMovies() | |
// Do any additional setup after loading the view. | |
} | |
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
public func moviesCount() -> Int { | |
return self.movies.count | |
} | |
func movieName(index:Int) -> String { | |
let movie = self.movies[index] | |
if let movieName = movie.name { | |
return movieName | |
} | |
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
public func fetchMovies () { | |
self.moviesListModel.fetchMovies() | |
} |
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
init(moviesListModel:MoviesListModel) { | |
self.moviesListModel = moviesListModel | |
super.init() | |
self.moviesListModel.delegate = self | |
} |
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
func testLoadingMovies() { | |
let movie1 = Movie() | |
movie1.name = "name1" | |
movie1.rating = "99" | |
let movie2 = Movie() | |
movie2.name = "name2" | |
movie1.rating = "100" | |
let moviesListModelMock = MoviesListModelMock(mockedMovies: [movie1, movie2]) |
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
class MoviesListModelMock: MoviesListModel { | |
private var mockedMovies: [Movie] = [] | |
convenience init(mockedMovies:[Movie]) { | |
self.init(networkLayer: Network()) | |
self.mockedMovies = mockedMovies | |
} | |
override func fetchMovies() { |
NewerOlder