Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Hide a false positive warning reported by clang analyzer.
Browse files Browse the repository at this point in the history
Add a script to update the build number.
  • Loading branch information
Sébastien MICHOY committed Jan 29, 2014
1 parent f4a9aab commit c67a2a2
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# MSSlidingPanelController Changelog
## 1.1.1 (Wednesday, January 29th, 2014)
- Hide a false positive warning reported by clang analyzer.
- Add a script to update the build number.
## 1.1.0 (Thursday, January 16th, 2014)
- It's now possible to add a completion block when we change the maximum width of panels.
## 1.0.0 (Wednesday, January 8th, 2014)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<PreActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "plistFile=&quot;$SRCROOT/$INFOPLIST_FILE&quot;&#10;&#10;version=`/usr/libexec/PlistBuddy -c &quot;Print CFBundleShortVersionString&quot; &quot;$plistFile&quot;`&#10;build=`/usr/libexec/PlistBuddy -c &quot;Print CFBundleVersion&quot; &quot;$plistFile&quot;`&#10;&#10;build=&quot;0x$build&quot;&#10;build=$(($build + 1))&#10;build=`printf &quot;%X&quot; $build`&#10;&#10;/usr/libexec/PlistBuddy -c &quot;Set CFBundleVersion $build&quot; &quot;$plistFile&quot;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "01C4F2401879CF9D00CA9A41"
BuildableName = "SlidingPanelController.app"
BlueprintName = "SlidingPanelController"
ReferencedContainer = "container:SlidingPanelController.xcodeproj">
</BuildableReference>
</EnvironmentBuildable>
</ActionContent>
</ExecutionAction>
</PreActions>
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "01C4F2401879CF9D00CA9A41"
BuildableName = "SlidingPanelController.app"
BlueprintName = "SlidingPanelController"
ReferencedContainer = "container:SlidingPanelController.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "01C4F2401879CF9D00CA9A41"
BuildableName = "SlidingPanelController.app"
BlueprintName = "SlidingPanelController"
ReferencedContainer = "container:SlidingPanelController.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "01C4F2401879CF9D00CA9A41"
BuildableName = "SlidingPanelController.app"
BlueprintName = "SlidingPanelController"
ReferencedContainer = "container:SlidingPanelController.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "01C4F2401879CF9D00CA9A41"
BuildableName = "SlidingPanelController.app"
BlueprintName = "SlidingPanelController"
ReferencedContainer = "container:SlidingPanelController.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.0</string>
<string>4</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
4 changes: 2 additions & 2 deletions MSSlidingPanelController.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |spec|
spec.name = "MSSlidingPanelController"
spec.version = "1.1.0"
spec.version = "1.1.1"

spec.platform = :ios
spec.ios.deployment_target = "7.0"
spec.requires_arc = true
spec.ios.framework = "UIKit"

spec.source = { :git => "https://github.com/SebastienMichoy/MSSlidingPanelController.git", :tag => "1.1.0" }
spec.source = { :git => "https://github.com/SebastienMichoy/MSSlidingPanelController.git", :tag => "1.1.1" }
spec.source_files = 'MSSlidingPanelController/*.{h,m}'
spec.public_header_files = 'MSSlidingPanelController/*.h'
spec.summary = "Integrate easily a sliding panel controller mechanism in your project!"
Expand Down
4 changes: 4 additions & 0 deletions MSSlidingPanelController/MSSlidingPanelController.m
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,9 @@ - (void)setCenterViewController:(UIViewController *)centerViewController
NSParameterAssert(centerViewController);

if ([self isViewLoaded])
#ifndef __clang_analyzer__
frame = [[[self centerViewController] view] frame];
#endif

[[[self centerViewController] view] removeFromSuperview];
[[self centerViewController] removeFromParentViewController];
Expand All @@ -733,7 +735,9 @@ - (void)setCenterViewController:(UIViewController *)centerViewController

if ([self isViewLoaded])
{
#ifndef __clang_analyzer__
[[[self centerViewController] view] setFrame:frame];
#endif
[[[self centerViewController] view] setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[[self centerView] addSubview:[[self centerViewController] view]];
}
Expand Down

0 comments on commit c67a2a2

Please sign in to comment.