Skip to content

Commit 1198ce0

Browse files
author
David LaMacchia
committed
Update for 2.0.1 objc release
Includes the following: - New changelog to call out significant changes in releases (see CHANGELOG.md) - Refactored use of IFUnicodeURL; removed embedded framework and added source files directly. This will unblock the release of the cocoapod. - Cross-platform support for iOS and macOS (Issue #228) - Rakefile now supports running both iOS and macOS conformance tests.
1 parent 8c34972 commit 1198ce0

6 files changed

Lines changed: 593 additions & 64 deletions

File tree

objc/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
## [Unreleased]
5+
6+
## [2.0.1] - 2018-01-10
7+
### Added
8+
- This CHANGELOG.md file
9+
10+
### Changed
11+
- Refactored use of IFUnicodeURL; removed embedded framework and added
12+
source files directly. This will unblock the release of the cocoapod.
13+
- Cross-platform support for iOS and macOS (Issue #228)
14+
- Rakefile now supports running both iOS and macOS conformance tests.

objc/Rakefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ task :clean => ['test:clean']
88

99
namespace :test do
1010
namespace :conformance do
11-
desc "Objective-C conformance test suite"
12-
task :run => [:convert_tests] do
13-
system("xcodebuild test -scheme TwitterText -target TwitterTextTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 7'")
14-
abort if $?.exitstatus != 0 # Return a non-zero exit code when tests fail. Exit code is 0 when tests succeed.
11+
namespace :ios do
12+
desc "Run iOS conformance test suite"
13+
task :run => [:convert_tests] do
14+
system("xcodebuild test -scheme TwitterText -target TwitterTextTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 7'")
15+
abort if $?.exitstatus != 0 # Return a non-zero exit code when tests fail. Exit code is 0 when tests succeed.
16+
end
17+
end
18+
19+
namespace :macos do
20+
desc "Run macOS conformance test suite"
21+
task :run => [:convert_tests] do
22+
system("xcodebuild test -scheme 'TwitterText Mac' -target TwitterTextTests -sdk macosx -destination 'platform=OS X'")
23+
abort if $?.exitstatus != 0 # Return a non-zero exit code when tests fail. Exit code is 0 when tests succeed.
24+
end
1525
end
1626

1727
desc "Convert testing data from YAML to JSON"

0 commit comments

Comments
 (0)