-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
156 additions
and
45 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# RFKit Changelog | ||
|
||
## 2.3.0 | ||
|
||
* Fix Xcode 10 warnings. | ||
* Update EXTKeyPathCoding. | ||
|
||
## 2.2.1 | ||
|
||
* API Enhancements: | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// RuntimeTests.m | ||
// RFKit | ||
// | ||
// Created by BB9z on 2018/9/17. | ||
// Copyright © 2018 RFUI. All rights reserved. | ||
// | ||
|
||
#import <XCTest/XCTest.h> | ||
#import <RFKit/RFRuntime.h> | ||
|
||
@interface RuntimeTests : XCTestCase | ||
@property (nonatomic) RuntimeTests *selfRefrence; | ||
@end | ||
|
||
@implementation RuntimeTests | ||
@dynamic selfRefrence; | ||
|
||
- (void)testKeypathClassInstance { | ||
NSString *__nonnull kp0 = @keypath(RuntimeTests.new, selfRefrence); | ||
XCTAssertEqualObjects(kp0, @"selfRefrence"); | ||
|
||
NSString *__nonnull kp = @keypathClassInstance(RuntimeTests, selfRefrence); | ||
XCTAssertEqualObjects(kp, @"selfRefrence"); | ||
NSString *__nonnull kp2 = @keypathClassInstance(RuntimeTests, selfRefrence, selfRefrence.selfRefrence); | ||
XCTAssertEqualObjects(kp2, @"selfRefrence.selfRefrence"); | ||
} | ||
|
||
- (void)testDefineConstString { | ||
RFDefineConstString(aaa); | ||
RFDefineConstString(bbb, "something"); | ||
|
||
XCTAssertEqualObjects(aaa, @"aaa"); | ||
XCTAssertEqualObjects(bbb, @"something"); | ||
} | ||
|
||
@end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// RuntimeMacOSTests.m | ||
// Test-macOS | ||
// | ||
// Created by BB9z on 2018/9/17. | ||
// Copyright © 2018 RFUI. All rights reserved. | ||
// | ||
|
||
#import <XCTest/XCTest.h> | ||
#import <RFKit/RFRuntime.h> | ||
|
||
@interface RuntimeMacOSTests : XCTestCase | ||
|
||
@end | ||
|
||
@implementation RuntimeMacOSTests | ||
|
||
- (void)testUITypesBridge { | ||
UIEdgeInsets inset = UIEdgeInsetsMake(1, 2, 3, 4); | ||
NSEdgeInsets inset2 = NSEdgeInsetsMake(1, 2, 3, 4); | ||
XCTAssert(UIEdgeInsetsEqualToEdgeInsets(inset, inset2)); | ||
|
||
// Strange, use NSEdgeInsetsZero case build fails. Xcode 10 | ||
// NSEdgeInsets inset4 = NSEdgeInsetsZero; | ||
// UIEdgeInsets inset3 = UIEdgeInsetsZero; | ||
// XCTAssertFalse(UIEdgeInsetsEqualToEdgeInsets(inset3, inset2)); | ||
XCTAssert(UIView.class == NSView.class); | ||
XCTAssert(UIButton.class == NSButton.class); | ||
XCTAssert(UIImage.class == NSImage.class); | ||
} | ||
|
||
@end |
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
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
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
Oops, something went wrong.