Skip to content

Commit cc61582

Browse files
committed
Merge branch 'release/1.1.5'
2 parents 7c191df + 49f6831 commit cc61582

11 files changed

+29
-2
lines changed

Harmony.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'Harmony'
11-
s.version = '1.1.4'
11+
s.version = '1.1.5'
1212
s.summary = 'Mobile Jazz Harmony Core'
1313
s.swift_version = '5'
1414

Harmony/Classes/Testing/BoolObjectMother.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
import Foundation
1820

1921
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2022

2123
func randomBool() -> Bool {
2224
return Int.random(in: 0...1) != 0
2325
}
26+
#endif

Harmony/Classes/Testing/DoubleObjectMother.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
import Foundation
1820

1921
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2022

2123
func anyDouble(minValue: Double = -32000, maxValue: Double = 32000) -> Double {
2224
return Double.random(in: minValue...maxValue)
2325
}
26+
#endif

Harmony/Classes/Testing/ErrorObjectMother.swift

+2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
1718
import Foundation
1819

1920
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2021

2122
func anyError() -> Error {
2223
CoreError.Failed()
2324
}
25+
#endif

Harmony/Classes/Testing/IntegerObjectModel.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
import Foundation
1820

1921
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2022

2123
func anyInt(minValue: Int = -32000, maxValue: Int = 32000) -> Int {
2224
return Int.random(in: minValue...maxValue)
2325
}
26+
#endif

Harmony/Classes/Testing/MockInteractorDelete.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
public extension Interactor {
1820

1921
class MockDeleteByQuery: DeleteByQuery {
@@ -181,3 +183,4 @@ public extension Interactor {
181183
}
182184
}
183185
}
186+
#endif

Harmony/Classes/Testing/MockInteractorGet.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
public extension Interactor {
1820

1921
class MockGetByQuery<T>: GetByQuery<T> {
@@ -178,3 +180,4 @@ public extension Interactor {
178180
}
179181
}
180182
}
183+
#endif

Harmony/Classes/Testing/MockInteractorPut.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
public extension Interactor {
1820

1921
class MockPutByQuery<T>: PutByQuery<T> {
@@ -190,3 +192,4 @@ public extension Interactor {
190192
}
191193
}
192194
}
195+
#endif

Harmony/Classes/Testing/StringObjectMother.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
import Foundation
1820

1921
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2022

2123
func anyString() -> String {
2224
"test-string"
2325
}
26+
#endif

Harmony/Classes/Testing/TestUtils.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
19-
19+
#if DEBUG
2020
enum TestUtils<T> {
2121
static func result(expectedResult: Result<T, Error>) -> Future<T> {
2222
switch expectedResult {
@@ -27,3 +27,4 @@ enum TestUtils<T> {
2727
}
2828
}
2929
}
30+
#endif

Harmony/Classes/Testing/UUIDObjectMother.swift

+3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
// limitations under the License.
1515
//
1616

17+
#if DEBUG
18+
1719
import Foundation
1820

1921
/* These functions are internal to only be retrieved using '@testable import Harmony'. */
2022

2123
func anyUUID() -> UUID {
2224
UUID()
2325
}
26+
#endif

0 commit comments

Comments
 (0)