Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
088c021cbc | |
![]() |
475322e609 | |
![]() |
9676d7e374 | |
![]() |
75a209c3ba |
|
@ -1,6 +1,6 @@
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "Cuckoo"
|
s.name = "Cuckoo"
|
||||||
s.version = "1.10.2"
|
s.version = "1.10.3"
|
||||||
s.summary = "Cuckoo - first boilerplate-free Swift mocking framework."
|
s.summary = "Cuckoo - first boilerplate-free Swift mocking framework."
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
Cuckoo is a mocking framework with an easy to use API (inspired by Mockito).
|
Cuckoo is a mocking framework with an easy to use API (inspired by Mockito).
|
||||||
|
|
|
@ -2684,7 +2684,7 @@
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
"@loader_path/../Frameworks",
|
"@loader_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
||||||
PRODUCT_NAME = Cuckoo;
|
PRODUCT_NAME = Cuckoo;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
@ -2718,7 +2718,7 @@
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
"@loader_path/../Frameworks",
|
"@loader_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
||||||
PRODUCT_NAME = Cuckoo;
|
PRODUCT_NAME = Cuckoo;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
@ -2837,7 +2837,7 @@
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
"@loader_path/../Frameworks",
|
"@loader_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
||||||
PRODUCT_NAME = Cuckoo;
|
PRODUCT_NAME = Cuckoo;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
@ -2900,7 +2900,7 @@
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
||||||
TARGETED_DEVICE_FAMILY = 3;
|
TARGETED_DEVICE_FAMILY = 3;
|
||||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
VERSION_INFO_PREFIX = "";
|
VERSION_INFO_PREFIX = "";
|
||||||
};
|
};
|
||||||
|
@ -2918,7 +2918,7 @@
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo_OCMock-iOS-Info.plist";
|
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo_OCMock-iOS-Info.plist";
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -2960,7 +2960,7 @@
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
"@loader_path/../Frameworks",
|
"@loader_path/../Frameworks",
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
PRODUCT_BUNDLE_IDENTIFIER = org.brightify.Cuckoo;
|
||||||
PRODUCT_NAME = Cuckoo;
|
PRODUCT_NAME = Cuckoo;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
@ -2986,7 +2986,7 @@
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo-iOS-Info.plist";
|
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo-iOS-Info.plist";
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -3019,7 +3019,7 @@
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo-iOS-Info.plist";
|
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo-iOS-Info.plist";
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -3087,7 +3087,7 @@
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
||||||
TARGETED_DEVICE_FAMILY = 3;
|
TARGETED_DEVICE_FAMILY = 3;
|
||||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
VERSION_INFO_PREFIX = "";
|
VERSION_INFO_PREFIX = "";
|
||||||
};
|
};
|
||||||
|
@ -3219,7 +3219,7 @@
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo_OCMock-iOS-Info.plist";
|
INFOPLIST_FILE = "Derived/InfoPlists/Cuckoo_OCMock-iOS-Info.plist";
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -3334,7 +3334,7 @@
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
||||||
TARGETED_DEVICE_FAMILY = 3;
|
TARGETED_DEVICE_FAMILY = 3;
|
||||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
VERSION_INFO_PREFIX = "";
|
VERSION_INFO_PREFIX = "";
|
||||||
};
|
};
|
||||||
|
@ -3389,7 +3389,7 @@
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/Library/Frameworks";
|
||||||
TARGETED_DEVICE_FAMILY = 3;
|
TARGETED_DEVICE_FAMILY = 3;
|
||||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
VERSION_INFO_PREFIX = "";
|
VERSION_INFO_PREFIX = "";
|
||||||
};
|
};
|
||||||
|
|
|
@ -187,7 +187,7 @@ public struct Tokenizer {
|
||||||
|
|
||||||
let effects: InstanceVariable.Effects
|
let effects: InstanceVariable.Effects
|
||||||
if let bodyRange = bodyRange {
|
if let bodyRange = bodyRange {
|
||||||
effects = parseEffects(source: source[bodyRange])
|
effects = parseEffects(source: source.utf8[bodyRange])
|
||||||
} else {
|
} else {
|
||||||
effects = .init()
|
effects = .init()
|
||||||
}
|
}
|
||||||
|
|
10
README.md
10
README.md
|
@ -39,9 +39,9 @@ Due to the limitations mentioned above, unoverridable code structures are not su
|
||||||
## Requirements
|
## Requirements
|
||||||
Cuckoo works on the following platforms:
|
Cuckoo works on the following platforms:
|
||||||
|
|
||||||
- **iOS 8+**
|
- **iOS 11+**
|
||||||
- **Mac OSX 10.9+**
|
- **Mac OSX 10.13+**
|
||||||
- **tvOS 9+**
|
- **tvOS 11+**
|
||||||
|
|
||||||
**watchOS** support is not yet possible due to missing XCTest library.
|
**watchOS** support is not yet possible due to missing XCTest library.
|
||||||
|
|
||||||
|
@ -102,7 +102,9 @@ Note: All paths in the Run script must be absolute. Variable `PROJECT_DIR` autom
|
||||||
|
|
||||||
1. In Xcode, navigate in menu: File > Swift Packages > Add Package Dependency
|
1. In Xcode, navigate in menu: File > Swift Packages > Add Package Dependency
|
||||||
2. Add `https://github.com/Brightify/Cuckoo.git`
|
2. Add `https://github.com/Brightify/Cuckoo.git`
|
||||||
3. Select "Up to Next Major" with `1.9.1`
|
3. For the Dependency Rule, Select "Up to Next Major" with `1.9.1`. Click Add Package.
|
||||||
|
4. On the 'Choose Package Products for Cuckoo' dialog, under 'Add to Target', please ensure you select your Test target as it will not compile on the app target.
|
||||||
|
5. Click Add Package.
|
||||||
|
|
||||||
Cuckoo relies on a script that is currently not downloadable using SPM. However, for convenience, you can copy this line into the terminal to download the latest `run` script. If the `run` script changes in the future, you'll need to execute this command again.
|
Cuckoo relies on a script that is currently not downloadable using SPM. However, for convenience, you can copy this line into the terminal to download the latest `run` script. If the `run` script changes in the future, you'll need to execute this command again.
|
||||||
```Bash
|
```Bash
|
||||||
|
|
|
@ -27,6 +27,11 @@ class TestedClass {
|
||||||
return "a"
|
return "a"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var readOnlyPropertyWithJapaneseComment: String {
|
||||||
|
// 日本語コメント
|
||||||
|
return "a"
|
||||||
|
}
|
||||||
|
|
||||||
@available(iOS 42.0, *)
|
@available(iOS 42.0, *)
|
||||||
var unavailableProperty: UnavailableProtocol? {
|
var unavailableProperty: UnavailableProtocol? {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -19,11 +19,11 @@ public enum PlatformType: String {
|
||||||
public var libraryDeploymentTarget: DeploymentTarget {
|
public var libraryDeploymentTarget: DeploymentTarget {
|
||||||
switch self {
|
switch self {
|
||||||
case .iOS:
|
case .iOS:
|
||||||
return .iOS(targetVersion: "8.0", devices: [.iphone, .ipad])
|
return .iOS(targetVersion: "11.0", devices: [.iphone, .ipad])
|
||||||
case .macOS:
|
case .macOS:
|
||||||
return .macOS(targetVersion: "10.9")
|
return .macOS(targetVersion: "10.13")
|
||||||
case .tvOS:
|
case .tvOS:
|
||||||
return .tvOS(targetVersion: "9.0")
|
return .tvOS(targetVersion: "11.0")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue