Skip to content

Commit

Permalink
fix xcode 7 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcavar committed Oct 31, 2015
1 parent 3fad386 commit 34afd0f
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 24 deletions.
9 changes: 8 additions & 1 deletion PullToRefresh.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0600;
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = "Josip Cavar";
TargetAttributes = {
C7AC6CCB19A7FE6D007107DF = {
Expand Down Expand Up @@ -443,6 +443,7 @@
INFOPLIST_FILE = Refresher/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -463,6 +464,7 @@
INFOPLIST_FILE = Refresher/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -483,6 +485,7 @@
);
INFOPLIST_FILE = RefresherTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefresh.app/PullToRefresh";
};
Expand All @@ -497,6 +500,7 @@
);
INFOPLIST_FILE = RefresherTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefresh.app/PullToRefresh";
};
Expand All @@ -522,6 +526,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -589,6 +594,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = "$(SRCROOT)/PullToRefreshDemo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
Expand All @@ -601,6 +607,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = "$(SRCROOT)/PullToRefreshDemo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "JCA.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
LastUpgradeVersion = "0710"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -48,17 +48,21 @@
ReferencedContainer = "container:PullToRefresh.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C7D1CF8E199BB3C8009FD485"
Expand All @@ -71,12 +75,13 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C7D1CF8E199BB3C8009FD485"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
LastUpgradeVersion = "0710"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -37,10 +37,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -62,15 +62,18 @@
ReferencedContainer = "container:PullToRefresh.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
Expand All @@ -85,10 +88,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
Expand Down
2 changes: 1 addition & 1 deletion PullToRefreshDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>JCA.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion Refresher/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>JCA.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
4 changes: 2 additions & 2 deletions RefresherTests/BouncesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BouncesTests: XCTestCase {

func testScrollViewBouncesWhenFalse() {

var scrollView = UIScrollView()
let scrollView = UIScrollView()
scrollView.bounces = false;
scrollView.addPullToRefreshWithAction({ () -> () in
})
Expand All @@ -50,7 +50,7 @@ class BouncesTests: XCTestCase {

func testScrollViewBouncesWhenTrue() {

var scrollView = UIScrollView()
let scrollView = UIScrollView()
scrollView.bounces = true;
scrollView.addPullToRefreshWithAction({ () -> () in
})
Expand Down
8 changes: 4 additions & 4 deletions RefresherTests/FrameTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FrameTests: XCTestCase {

func testPullToRefreshViewFrame() {

var scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
let scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
scrollView.addPullToRefreshWithAction({ () -> () in
})
if (scrollView.pullToRefreshView != nil) {
Expand All @@ -51,7 +51,7 @@ class FrameTests: XCTestCase {

func testPullToRefreshViewFrameWithInsets() {

var scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
let scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
scrollView.contentInset = UIEdgeInsets(top: 40, left: 0, bottom: 0, right: 0)
scrollView.addPullToRefreshWithAction({ () -> () in
})
Expand All @@ -65,7 +65,7 @@ class FrameTests: XCTestCase {

func testPullToRefreshViewFrameWhenStarted() {

var scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
let scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
scrollView.addPullToRefreshWithAction({ () -> () in
})
scrollView.startPullToRefresh()
Expand All @@ -78,7 +78,7 @@ class FrameTests: XCTestCase {

func testPullToRefreshViewOffsetWhenStarted() {

var scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
let scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
scrollView.addPullToRefreshWithAction({ () -> () in
})
scrollView.startPullToRefresh()
Expand Down
2 changes: 1 addition & 1 deletion RefresherTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>JCA.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
4 changes: 2 additions & 2 deletions RefresherTests/LoadingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LoadingTests: XCTestCase {

func testPullToRefreshViewLoading() {

var scrollView = UIScrollView()
let scrollView = UIScrollView()
scrollView.addPullToRefreshWithAction({ () -> () in
})
scrollView.startPullToRefresh()
Expand All @@ -53,7 +53,7 @@ class LoadingTests: XCTestCase {

func testPullToRefreshViewLoadingWithInsets() {

var scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
let scrollView = UIScrollView(frame: CGRect(x: 0, y: 0, width: 100, height: 500))
scrollView.contentInset = UIEdgeInsets(top: 40, left: 0, bottom: 0, right: 0)

scrollView.addPullToRefreshWithAction({ () -> () in
Expand Down

0 comments on commit 34afd0f

Please sign in to comment.