Skip to content

Commit 2cb0aa2

Browse files
author
David LaMacchia
committed
Update for 2.0.2 objc release
Includes the following: - Fix deprecation warning - Final prep for cocoapod release of 2.0
1 parent 2543172 commit 2cb0aa2

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

objc/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
## [2.0.2] - 2018-01-11
7+
### Changed
8+
- Fixed deprecation warnings
9+
- Final prep for cocoapod release of 2.0
10+
611
## [2.0.1] - 2018-01-10
712
### Added
813
- This CHANGELOG.md file

objc/lib/TwitterText.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ + (NSCharacterSet *)validHashtagBoundaryCharacterSet
668668

669669
+ (NSInteger)tweetLength:(NSString *)text
670670
{
671-
return [self tweetLength:text httpURLLength:kTransformedURLLength httpsURLLength:kTransformedURLLength];
671+
return [self tweetLength:text transformedURLLength:kTransformedURLLength];
672672
}
673673

674674
+ (NSInteger)tweetLength:(NSString *)text httpURLLength:(NSInteger)httpURLLength httpsURLLength:(NSInteger)httpsURLLength

objc/resources/TwitterText.modulemap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework module TwitterText {
55
}
66

77
module TwitterTextEntity {
8-
header "TwitterTextEntity.h"
9-
export *
8+
header "TwitterTextEntity.h"
9+
export *
1010
}
1111
}

objc/tests/TwitterTextTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ @implementation TwitterTextTests
1818

1919
- (void)testRemainingCharacterCountForLongTweet
2020
{
21-
XCTAssertEqual([TwitterText remainingCharacterCount:@"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" httpURLLength:23 httpsURLLength:23], -10);
21+
XCTAssertEqual([TwitterText remainingCharacterCount:@"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" transformedURLLength:23], -10);
2222
}
2323

2424
- (void)testHashtagBoundary

0 commit comments

Comments
 (0)