This file contains hidden or 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
find . -type d -name '__Snapshots__' -exec rm -rf {} + |
This file contains hidden or 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 printMyFonts() { | |
print("--------- Available Font names ----------") | |
for name in UIFont.familyNames() { | |
print(name) | |
if let nameString = name as? String { | |
print(UIFont.fontNamesForFamilyName(nameString)) | |
} | |
} | |
} |
This file contains hidden or 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/bash | |
# Author: Konstantinos Nikoloutsos | |
# Delete all .build files from SPMs | |
spms_path="./SwiftPackages" | |
for dir in "$spms_path"/*/; do | |
echo "Deleting: $dir/.build" | |
rm -rf "$dir/.build" | |
done |
This file contains hidden or 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/bash | |
| |
# Author: Konstantinos Nikoloutsos | |
# Specify the directory where your packages are organized inside | |
search_directory="." | |
| |
echo "This script will iteratively update all dependencies in SPM Packages" | |
echo "❗️XCode will be forced quit & DerivedData will be cleaned if you continue.." | |
echo "(By doing that we guarantee that will not be any caches/conflicts with XCode)" | |
|
This file contains hidden or 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
# READ MORE ABOUT configuration here https://merowing.info/Sourcery/usage.html | |
configurations: | |
# -- Blueground configuration -- | |
- sources: | |
include: | |
- FooApp | |
templates: | |
- Sourcery | |
output: | |
path: BluegroundTests/Sourcery |
This file contains hidden or 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
# READ MORE ABOUT configuration here https://merowing.info/Sourcery/usage.html | |
configurations: | |
# -- Blueground configuration -- | |
- sources: | |
include: | |
- FooApp | |
templates: | |
- Sourcery | |
output: | |
path: BluegroundTests/Sourcery |
This file contains hidden or 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
# READ MORE ABOUT configuration here https://merowing.info/Sourcery/usage.html | |
configurations: | |
# -- Blueground configuration -- | |
- sources: | |
- Blueground | |
- SwiftPackages | |
- Pods | |
- SwiftPackages/Sourcery/Sources/Sourcery/helpers/AutoFixturableConfiguration | |
templates: | |
- SwiftPackages/Sourcery/Sources/Sourcery/Templates |
This file contains hidden or 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
// Generated using Sourcery 1.8.1 — https://github.com/krzysztofzablocki/Sourcery | |
// DO NOT EDIT | |
// 💙💙 Autogenerated for saving Beegees time ⏰ | |
// swiftlint:disable all | |
@testable import | |
import Foundation | |
extension Human { | |
static func fixtures( |
This file contains hidden or 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
// sourcery: AutoFixturable | |
struct Human { | |
// sourcery: example = ""The fixture will have this string as default value"" | |
let firstName: String | |
let lastName: String | |
let fatherName: String | |
let motherName: String | |
// sourcery: example = ".init()" | |
let address: Location | |
let age: Int |
This file contains hidden or 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 test_HumanAgeEligible { | |
// Given | |
let human = Human.fixtures(age: 14) | |
// When | |
let result = service.hasEligibleAge() | |
XCTAssertFalse(result) | |
} |
NewerOlder