Skip to content

Commit 4c2ea1d

Browse files
authoredAug 30, 2020
Merge pull request #29 from JonyFang/develop
fix #11
2 parents 353ce47 + 38f4dd0 commit 4c2ea1d

File tree

12 files changed

+72
-60
lines changed

12 files changed

+72
-60
lines changed
 

‎.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode10.2
2+
osx_image: xcode11.4
33

44
xcode_workspace: FFPopup.xcworkspace
55
podfile: Demo/Podfile
@@ -24,15 +24,15 @@ script:
2424
- pod lib lint --allow-warnings
2525

2626
- echo Build as static library
27-
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Static" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
27+
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Static" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
2828

2929
- echo Build as dynamic framework
30-
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
30+
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup" -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
3131

3232
- echo Build the Demo apps
3333
- pod install --project-directory=Demo
34-
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Objc" -configuration Debug -destination "name=iPhone XS" | xcpretty -c
35-
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Swift" -configuration Debug -destination "name=iPhone XS" | xcpretty -c
34+
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Objc" -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
35+
- xcodebuild build -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "FFPopup_Swift" -destination 'platform=iOS Simulator,name=iPhone 11 Pro' -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c
3636

3737
- echo Clean DerivedData
3838
- rm -rf ~/Library/Developer/Xcode/DerivedData/

‎Demo/FFPopup_Demo.xcodeproj/project.pbxproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 51;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -355,7 +355,7 @@
355355
isa = PBXProject;
356356
attributes = {
357357
LastSwiftUpdateCheck = 1020;
358-
LastUpgradeCheck = 1010;
358+
LastUpgradeCheck = 1160;
359359
ORGANIZATIONNAME = JonyFang;
360360
TargetAttributes = {
361361
D3160D0A2275AEA3000180F0 = {
@@ -691,6 +691,7 @@
691691
MTL_ENABLE_DEBUG_INFO = NO;
692692
MTL_FAST_MATH = YES;
693693
SDKROOT = iphoneos;
694+
SWIFT_COMPILATION_MODE = wholemodule;
694695
VALIDATE_PRODUCT = YES;
695696
};
696697
name = Release;

‎Demo/FFPopup_Demo.xcodeproj/xcshareddata/xcschemes/FFPopup_Objc.xcscheme

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1160"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:FFPopup_Demo.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:FFPopup_Demo.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

‎Demo/FFPopup_Demo.xcodeproj/xcshareddata/xcschemes/FFPopup_Swift.xcscheme

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1160"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:FFPopup_Demo.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:FFPopup_Demo.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

‎FFPopup.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "FFPopup"
11-
s.version = "1.1.3"
11+
s.version = "1.1.4"
1212
s.summary = "Presenting custom views as a popup in iOS."
1313

1414
s.description = <<-DESC

‎FFPopup.xcodeproj/xcshareddata/xcschemes/FFPopup.xcscheme

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1160"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:FFPopup.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

‎FFPopup.xcodeproj/xcshareddata/xcschemes/FFPopup_Static.xcscheme

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1160"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:FFPopup.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

‎FFPopup.xcodeproj/xcuserdata/jonyfang.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Bucket
3+
uuid = "C8002E65-2166-44F3-824D-C51CBE07153F"
34
type = "1"
45
version = "2.0">
56
<Breakpoints>
67
<BreakpointProxy
78
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
89
<BreakpointContent
10+
uuid = "E10A1F32-1FFA-4150-9607-F7F2899FDB42"
911
shouldBeEnabled = "No"
1012
ignoreCount = "0"
1113
continueAfterRunningActions = "No"
@@ -22,6 +24,7 @@
2224
<BreakpointProxy
2325
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
2426
<BreakpointContent
27+
uuid = "1B0E021B-56E9-4DC9-9E8A-58B41DFC597A"
2528
shouldBeEnabled = "No"
2629
ignoreCount = "0"
2730
continueAfterRunningActions = "No"
@@ -38,6 +41,7 @@
3841
<BreakpointProxy
3942
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
4043
<BreakpointContent
44+
uuid = "F44F5AAF-E351-4CC4-BBCD-F0CEC142E18C"
4145
shouldBeEnabled = "No"
4246
ignoreCount = "0"
4347
continueAfterRunningActions = "No"
@@ -54,6 +58,7 @@
5458
<BreakpointProxy
5559
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
5660
<BreakpointContent
61+
uuid = "71099A3B-194C-421D-BBD9-8B3CEF09CE8B"
5762
shouldBeEnabled = "No"
5863
ignoreCount = "0"
5964
continueAfterRunningActions = "No"
@@ -70,6 +75,7 @@
7075
<BreakpointProxy
7176
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
7277
<BreakpointContent
78+
uuid = "05EA5E7B-2BF1-41C4-B0DB-A28DA5091D71"
7379
shouldBeEnabled = "No"
7480
ignoreCount = "0"
7581
continueAfterRunningActions = "No"
@@ -86,6 +92,7 @@
8692
<BreakpointProxy
8793
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8894
<BreakpointContent
95+
uuid = "41D43C3B-F418-48BE-9A45-C0EA0E4C58DB"
8996
shouldBeEnabled = "No"
9097
ignoreCount = "0"
9198
continueAfterRunningActions = "No"
@@ -102,6 +109,7 @@
102109
<BreakpointProxy
103110
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
104111
<BreakpointContent
112+
uuid = "2D6A5D85-C758-489E-8E4A-E5312307F592"
105113
shouldBeEnabled = "No"
106114
ignoreCount = "0"
107115
continueAfterRunningActions = "No"
@@ -118,6 +126,7 @@
118126
<BreakpointProxy
119127
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
120128
<BreakpointContent
129+
uuid = "16B2D79A-D7CE-44EF-BBE0-08BD95F79CA2"
121130
shouldBeEnabled = "No"
122131
ignoreCount = "0"
123132
continueAfterRunningActions = "No"
@@ -127,13 +136,14 @@
127136
endingColumnNumber = "9223372036854775807"
128137
startingLineNumber = "211"
129138
endingLineNumber = "211"
130-
landmarkName = "@interface FFPopup"
131-
landmarkType = "2">
139+
landmarkName = "+popupWithContentView:showType:dismissType:maskType:dismissOnBackgroundTouch:dismissOnContentTouch:"
140+
landmarkType = "6">
132141
</BreakpointContent>
133142
</BreakpointProxy>
134143
<BreakpointProxy
135144
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
136145
<BreakpointContent
146+
uuid = "2B87C562-D237-4575-A65A-F4BF89468446"
137147
shouldBeEnabled = "No"
138148
ignoreCount = "0"
139149
continueAfterRunningActions = "No"
@@ -143,8 +153,8 @@
143153
endingColumnNumber = "9223372036854775807"
144154
startingLineNumber = "232"
145155
endingLineNumber = "232"
146-
landmarkName = "@interface FFPopup"
147-
landmarkType = "2">
156+
landmarkName = "+dismissSuperPopupIn:animated:"
157+
landmarkType = "6">
148158
</BreakpointContent>
149159
</BreakpointProxy>
150160
</Breakpoints>

‎FFPopup/Classes/FFPopup.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ - (void)showWithParameters:(NSDictionary *)parameters {
210210
if (!strongSelf.superview) {
211211
NSEnumerator *reverseWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator];
212212
for (UIWindow *window in reverseWindows) {
213-
if (window.windowLevel == UIWindowLevelNormal) {
213+
if (window.windowLevel == UIWindowLevelNormal && !window.hidden) {
214214
[window addSubview:self];
215215
break;
216216
}

‎Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source "https://gems.ruby-china.com"
44

55
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
66

7-
gem "cocoapods", "1.7.1"
7+
gem "cocoapods", "1.9.3"

0 commit comments

Comments
 (0)
Please sign in to comment.