Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 7340b22

Browse files
author
Ian Gordon
committed
Merge branch 'release-candidate'
2 parents 318d510 + edadbcb commit 7340b22

File tree

8 files changed

+127
-88
lines changed

8 files changed

+127
-88
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
language: objective-c
2-
osx_image: xcode7.3
2+
osx_image: xcode8.2
33
sudo: false
44
# Only fire off builds for specific branches.
55
branches:
66
only:
7-
- master
7+
- develop
8+
- stable
89
env:
910
global:
1011
- LC_CTYPE=en_US.UTF-8
1112
- LANG=en_US.UTF-8
1213
matrix:
13-
- DESTINATION="OS=9.3,name=iPhone 6s" SDK=iphonesimulator9.3
14-
- DESTINATION="OS=8.1,name=iPhone 4S" SDK=iphonesimulator9.3
14+
- DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.1" SDK="iphonesimulator10.2"
1515
before_install:
1616
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
1717
script:

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.0
2+
3+
### Enhancements
4+
5+
* Add tvOS as a target plaform.
6+
17
## 1.1.4
28

39
### Enhancements
@@ -50,7 +56,7 @@ Initial release.
5056

5157
## x.x.x
5258

53-
This is a template. When cutting a new release, rename "master" to the release number and create a
59+
This is a template. When cutting a new release, rename "stable" to the release number and create a
5460
new, empty "Master" section.
5561

5662
### Breaking

MDFTextAccessibility.podspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
Pod::Spec.new do |spec|
22
spec.name = "MDFTextAccessibility"
3-
spec.version = "1.1.4"
3+
spec.version = "1.2.0"
44
spec.summary = "MDFTextAccessibility assists in selecting text colors that meet the W3C standards for accessibility."
55
spec.homepage = "https://github.com/google/material-text-accessibility-ios"
66
spec.license = "Apache License, Version 2.0"
77
spec.authors = "Google Inc."
88
spec.source = { :git => "https://github.com/google/material-text-accessibility-ios.git", :tag => "v#{spec.version}" }
9-
spec.platform = :ios
9+
spec.platform = :ios,:tvos
1010
spec.source_files = "src/*.{h,m}", "src/private/*.{h,m}"
1111
spec.public_header_files = "src/MDFTextAccessibility.h"
1212
spec.private_header_files = "src/private/*.h"
1313
spec.header_dir = "MDFTextAccessibility"
14+
spec.ios.deployment_target = '8.0'
15+
spec.tvos.deployment_target = '9.0'
1416
end

MDFTextAccessibility.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@
217217
TargetAttributes = {
218218
0B2890DE1CE2730C009E605A = {
219219
CreatedOnToolsVersion = 7.3;
220+
LastSwiftMigration = 0800;
220221
};
221222
0BDAE3DF1CECD3A6003323B9 = {
222223
CreatedOnToolsVersion = 7.2;
224+
LastSwiftMigration = 0800;
223225
};
224226
};
225227
};
@@ -361,6 +363,7 @@
361363
SKIP_INSTALL = YES;
362364
SWIFT_OBJC_BRIDGING_HEADER = "tests/unit/MDFTextAccessibility-Bridging-Header.h";
363365
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
366+
SWIFT_VERSION = 3.0;
364367
};
365368
name = Debug;
366369
};
@@ -409,6 +412,7 @@
409412
SDKROOT = iphoneos;
410413
SKIP_INSTALL = YES;
411414
SWIFT_OBJC_BRIDGING_HEADER = "tests/unit/MDFTextAccessibility-Bridging-Header.h";
415+
SWIFT_VERSION = 3.0;
412416
VALIDATE_PRODUCT = YES;
413417
};
414418
name = Release;
@@ -465,6 +469,7 @@
465469
SWIFT_INCLUDE_PATHS = src;
466470
SWIFT_OBJC_BRIDGING_HEADER = "src/MDFTextAccessibility-Bridging-Header.h";
467471
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
472+
SWIFT_VERSION = 3.0;
468473
};
469474
name = Debug;
470475
};
@@ -512,6 +517,7 @@
512517
SDKROOT = iphoneos;
513518
SWIFT_INCLUDE_PATHS = src;
514519
SWIFT_OBJC_BRIDGING_HEADER = "src/MDFTextAccessibility-Bridging-Header.h";
520+
SWIFT_VERSION = 3.0;
515521
VALIDATE_PRODUCT = YES;
516522
};
517523
name = Release;

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
MDFTextAccessibility assists in selecting text colors that will meet the
22
[W3C standards for accessibility](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html).
33

4-
[![Build Status](https://travis-ci.org/material-foundation/material-text-accessibility-ios.svg?branch=master)](https://travis-ci.org/material-foundation/material-text-accessibility-ios)
5-
[![Code Coverage](http://codecov.io/github/material-foundation/material-text-accessibility-ios/coverage.svg?branch=master)](http://codecov.io/github/material-foundation/material-text-accessibility-ios?branch=master)
4+
[![Build Status](https://travis-ci.org/material-foundation/material-text-accessibility-ios.svg?branch=develop)](https://travis-ci.org/material-foundation/material-text-accessibility-ios)
5+
[![Code Coverage](http://codecov.io/github/material-foundation/material-text-accessibility-ios/coverage.svg?branch=develop)](http://codecov.io/github/material-foundation/material-text-accessibility-ios?branch=develop)
66

77
*May 24, 2016: We're still staging MDFTextAccessibility, feel free to poke
88
around, but non-code things like CocoaPods support and continuous integration
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- MDFTextAccessibility (1.1.4)
2+
- MDFTextAccessibility (1.2.0)
33

44
DEPENDENCIES:
55
- MDFTextAccessibility (from `../../..`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../../.."
1010

1111
SPEC CHECKSUMS:
12-
MDFTextAccessibility: aa897b2675bc614c01a331053af680deea692148
12+
MDFTextAccessibility: 94098925e0853551c5a311ce7c1ecefbe297cdb6
1313

1414
PODFILE CHECKSUM: ba1d198039c6b887cc904c2b80f4ae8bc213c6fd
1515

16-
COCOAPODS: 1.1.1
16+
COCOAPODS: 1.2.0

src/MDFTextAccessibility.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ typedef NS_OPTIONS(NSUInteger, MDFTextAccessibilityOptions) {
189189
190190
Large fonts are defined as greater than 18pt normal or 14pt bold. If the passed font is nil, then
191191
this method returns NO.
192+
For more see: https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html
192193
193194
@param font The font to examine, or nil.
194195
@return YES if the font is non-nil and is considered "large".

0 commit comments

Comments
 (0)