Skip to content

Commit cb9f5d2

Browse files
author
Martin Barreto
authored
Merge pull request #700 from xmartlabs/swift5
Swift5
2 parents de16031 + 2860ff7 commit cb9f5d2

File tree

9 files changed

+37
-43
lines changed

9 files changed

+37
-43
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
language: objective-c
2-
osx_image: xcode10.1
2+
osx_image: xcode10.2
3+
branches:
4+
only:
5+
- master
36
env:
4-
- DESTINATION="OS=12.1,name=iPhone 8" SCHEME="XLPagerTabStrip" SDK=iphonesimulator
7+
- DESTINATION="OS=12.1,name=iPhone XS" SCHEME="XLPagerTabStrip" SDK=iphonesimulator
58
before_install:
69
- brew update
7-
#- brew outdated carthage || brew upgrade carthage
8-
- if brew outdated | grep -qx xctool; then brew upgrade xctool; fi
9-
#- carthage update --platform iOS
10-
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
11-
10+
- brew outdated carthage || brew upgrade carthage
1211
script:
13-
- xcodebuild clean build -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK"
14-
#- xcodebuild test -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK"
15-
- xcodebuild -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION"
16-
-configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c
12+
- set -o pipefail
13+
- xcodebuild -version
14+
- xcodebuild clean build -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK"
15+
#- xcodebuild test -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK"
16+
- xcodebuild -project XLPagerTabStrip.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Change Log
22
All notable changes to XLPagerTabStrip will be documented in this file.
33

4+
### [9.0.0](https://github.com/xmartlabs/XLPagerTabStrip/releases/tag/9.0.0)
5+
6+
* Xcode 10.2 and Swift 5.0 support.
7+
* Minor updates and fixes.
8+
49
### [8.1.0](https://github.com/xmartlabs/XLPagerTabStrip/releases/tag/8.1.0)
510

611
* Xcode 10 and Swift 4.2 support.
7-
* Minor updates and fixes
12+
* Minor updates and fixes.
813

914
### [8.0.1](https://github.com/xmartlabs/XLPagerTabStrip/releases/tag/8.0.1)
1015

Example.xcodeproj/project.pbxproj

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@
318318
TargetAttributes = {
319319
28F828CB1C4B714D00330CF4 = {
320320
CreatedOnToolsVersion = 7.2;
321-
LastSwiftMigration = 0900;
321+
LastSwiftMigration = 1020;
322322
};
323323
28F828DF1C4B714D00330CF4 = {
324324
CreatedOnToolsVersion = 7.2;
325-
LastSwiftMigration = 0900;
325+
LastSwiftMigration = 1020;
326326
TestTargetID = 28F828CB1C4B714D00330CF4;
327327
};
328328
};
@@ -499,7 +499,7 @@
499499
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
500500
GCC_WARN_UNUSED_FUNCTION = YES;
501501
GCC_WARN_UNUSED_VARIABLE = YES;
502-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
502+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
503503
MTL_ENABLE_DEBUG_INFO = YES;
504504
ONLY_ACTIVE_ARCH = YES;
505505
SDKROOT = iphoneos;
@@ -548,7 +548,7 @@
548548
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
549549
GCC_WARN_UNUSED_FUNCTION = YES;
550550
GCC_WARN_UNUSED_VARIABLE = YES;
551-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
551+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
552552
MTL_ENABLE_DEBUG_INFO = NO;
553553
SDKROOT = iphoneos;
554554
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -569,8 +569,7 @@
569569
PRODUCT_NAME = "$(TARGET_NAME)";
570570
SWIFT_OBJC_BRIDGING_HEADER = "";
571571
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
572-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
573-
SWIFT_VERSION = 4.2;
572+
SWIFT_VERSION = 5.0;
574573
};
575574
name = Debug;
576575
};
@@ -586,8 +585,7 @@
586585
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.Example;
587586
PRODUCT_NAME = "$(TARGET_NAME)";
588587
SWIFT_OBJC_BRIDGING_HEADER = "";
589-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
590-
SWIFT_VERSION = 4.2;
588+
SWIFT_VERSION = 5.0;
591589
};
592590
name = Release;
593591
};
@@ -600,8 +598,7 @@
600598
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.ExampleUITests;
601599
PRODUCT_NAME = "$(TARGET_NAME)";
602600
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
603-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
604-
SWIFT_VERSION = 4.0;
601+
SWIFT_VERSION = 5.0;
605602
TEST_TARGET_NAME = Example;
606603
USES_XCTRUNNER = YES;
607604
};
@@ -615,8 +612,7 @@
615612
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
616613
PRODUCT_BUNDLE_IDENTIFIER = com.xmartlabs.ExampleUITests;
617614
PRODUCT_NAME = "$(TARGET_NAME)";
618-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
619-
SWIFT_VERSION = 4.0;
615+
SWIFT_VERSION = 5.0;
620616
TEST_TARGET_NAME = Example;
621617
USES_XCTRUNNER = YES;
622618
};

Example/Example/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>UIViewControllerBasedStatusBarAppearance</key>
6-
<true/>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>en</string>
97
<key>CFBundleExecutable</key>
@@ -17,7 +15,7 @@
1715
<key>CFBundlePackageType</key>
1816
<string>APPL</string>
1917
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
18+
<string>9.0.0</string>
2119
<key>CFBundleSignature</key>
2220
<string>????</string>
2321
<key>CFBundleVersion</key>
@@ -38,5 +36,7 @@
3836
<string>UIInterfaceOrientationLandscapeLeft</string>
3937
<string>UIInterfaceOrientationLandscapeRight</string>
4038
</array>
39+
<key>UIViewControllerBasedStatusBarAppearance</key>
40+
<true/>
4141
</dict>
4242
</plist>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="left">
44
<a href="https://travis-ci.org/xmartlabs/XLPagerTabStrip"><img src="https://travis-ci.org/xmartlabs/XLPagerTabStrip.svg?branch=master" alt="Build status" /></a>
55
<img src="https://img.shields.io/badge/platform-iOS-blue.svg?style=flat" alt="Platform iOS" />
6-
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/swift4-compatible-4BC51D.svg?style=flat" alt="Swift 4 compatible" /></a>
6+
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/swift5-compatible-4BC51D.svg?style=flat" alt="Swift 5 compatible" /></a>
77
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible" /></a>
88
<a href="https://cocoapods.org/pods/XLPagerTabStrip"><img src="https://img.shields.io/cocoapods/v/XLPagerTabStrip.svg" alt="CocoaPods compatible" /></a>
99
<a href="https://raw.githubusercontent.com/xmartlabs/XLPagerTabStrip/master/LICENSE"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="License: MIT" />
@@ -305,7 +305,7 @@ Follow these 3 steps to run Example project: Clone XLPagerTabStrip repository, o
305305
To install XLPagerTabStrip, simply add the following line to your Podfile:
306306

307307
```ruby
308-
pod 'XLPagerTabStrip', '~> 8.1'
308+
pod 'XLPagerTabStrip', '~> 9.0'
309309
```
310310

311311
### Carthage
@@ -315,7 +315,7 @@ pod 'XLPagerTabStrip', '~> 8.1'
315315
To install XLPagerTabStrip, simply add the following line to your Cartfile:
316316

317317
```ogdl
318-
github "xmartlabs/XLPagerTabStrip" ~> 8.1
318+
github "xmartlabs/XLPagerTabStrip" ~> 9.0
319319
```
320320

321321
## FAQ

Sources/ButtonBarPagerTabStripViewController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public struct ButtonBarPagerTabStripSettings {
5656
public var buttonBarItemFont = UIFont.systemFont(ofSize: 18)
5757
public var buttonBarItemLeftRightMargin: CGFloat = 8
5858
public var buttonBarItemTitleColor: UIColor?
59-
@available(*, deprecated) public var buttonBarItemsShouldFillAvailiableWidth: Bool {
60-
set {
61-
buttonBarItemsShouldFillAvailableWidth = newValue
62-
}
63-
get {
64-
return buttonBarItemsShouldFillAvailableWidth
65-
}
66-
}
6759
public var buttonBarItemsShouldFillAvailableWidth = true
6860
// only used if button bar is created programaticaly and not using storyboards or nib files
6961
public var buttonBarHeight: CGFloat?

XLPagerTabStrip.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "XLPagerTabStrip"
3-
s.version = "8.1.1"
3+
s.version = "9.0.0"
44
s.summary = "Android PagerTabStrip for iOS and much more."
55
s.homepage = "https://github.com/xmartlabs/XLPagerTabStrip"
66
s.license = { type: 'MIT', file: 'LICENSE' }
@@ -12,5 +12,5 @@ Pod::Spec.new do |s|
1212
s.ios.source_files = 'Sources/**/*.{h,m,swift}'
1313
s.ios.frameworks = 'UIKit', 'Foundation'
1414
s.resource_bundles = { 'XLPagerTabStrip' => ['Sources/ButtonCell.xib'] }
15-
s.swift_version = "4.2"
15+
s.swift_version = "5.0"
1616
end

XLPagerTabStrip.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
28F828821C494B2C00330CF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5151
28F828871C494B2C00330CF4 /* XLPagerTabStripTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XLPagerTabStripTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
5252
28F8288E1C494B2C00330CF4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
53-
28F8289B1C494BF100330CF4 /* Playground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Playground.playground; sourceTree = "<group>"; };
53+
28F8289B1C494BF100330CF4 /* Playground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Playground.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
5454
CB0986C31C51391600DF7087 /* ButtonBarPagerTabStripViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ButtonBarPagerTabStripViewController.swift; sourceTree = "<group>"; };
5555
CB0986C51C51395E00DF7087 /* ButtonBarView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ButtonBarView.swift; sourceTree = "<group>"; };
5656
CB0986C71C5158A000DF7087 /* ButtonBarViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ButtonBarViewCell.swift; sourceTree = "<group>"; };
@@ -388,7 +388,7 @@
388388
ONLY_ACTIVE_ARCH = YES;
389389
SDKROOT = iphoneos;
390390
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
391-
SWIFT_VERSION = 4.0;
391+
SWIFT_VERSION = 5.0;
392392
TARGETED_DEVICE_FAMILY = "1,2";
393393
VERSIONING_SYSTEM = "apple-generic";
394394
VERSION_INFO_PREFIX = "";
@@ -441,6 +441,7 @@
441441
MTL_ENABLE_DEBUG_INFO = NO;
442442
SDKROOT = iphoneos;
443443
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
444+
SWIFT_VERSION = 5.0;
444445
TARGETED_DEVICE_FAMILY = "1,2";
445446
VALIDATE_PRODUCT = YES;
446447
VERSIONING_SYSTEM = "apple-generic";

XLPagerTabStrip/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>8.1.1</string>
18+
<string>9.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)