Skip to content

Commit 343ccdc

Browse files
committed
Use Ajay's PR futurepress#112
1 parent d0c4cb0 commit 343ccdc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ios/FPStaticServer.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ - (dispatch_queue_t)methodQueue
140140
}
141141

142142
if (self.keep_alive == YES) {
143+
#if TARGET_OS_IOS
143144
[options setObject:@(NO) forKey:GCDWebServerOption_AutomaticallySuspendInBackground];
145+
#endif
144146
[options setObject:@2.0 forKey:GCDWebServerOption_ConnectedStateCoalescingInterval];
145147
}
146148

react-native-static-server.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
1313
s.source = { :git => 'https://github.com/futurepress/react-native-static-server.git' }
1414

1515
s.requires_arc = true
16-
s.platform = :ios, '7.0'
16+
s.platforms = {:ios => '8.0', :osx => "10.11"}
1717

1818
s.preserve_paths = 'README.md', 'package.json', 'index.js'
1919
s.source_files = 'ios/*.{h,m}'

0 commit comments

Comments
 (0)