Skip to content

2.4.0

Latest
Compare
Choose a tag to compare
@sidepelican sidepelican released this 21 May 08:25
· 1 commit to master since this release
41e701f

New features

  • When associatedtype has constraints, mock class becomes generic by @sidepelican in #294
/// @mockable
protocol Foo {
    associatedtype T: StringProtocol
}

// before
class FooMock: Foo {
    typealias T = StringProtocol // 🤪 StringProtocol is not conforms to StringProtocol. Protocols don't conform to itself.
    init() { }
}

// after
class FooMock<T: StringProtocol>: Foo {
    init() { }
}

Fix bugs

  • Avoid Special Handling of the "Unknown" Type Name by @sidepelican in #299
  • Remove metadata from NominalModel, resulting correct Rx SubjectType in mock's init. by @sidepelican in #292

Maintenances

Full Changelog: 2.3.1...2.4.0

For Build Tools Plugin (artifactbundle)

.binaryTarget(
    name: "mockolo",
    url: "https://github.com/uber/mockolo/releases/download/2.4.0/mockolo.artifactbundle.zip",
    checksum: "740787a5c532dc1a16e9b6940c7ef844caa1f7c02cb85b740e4f44f49a25dc68"
),