File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,17 @@ Pod::Spec.new do |s|
66 s . description = <<-DESC
77 RNConfigReader
88 DESC
9- s . homepage = ""
9+ s . homepage = "https://github.com/csath/react-native-config-reader "
1010 s . license = "MIT"
1111 # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12- s . author = { "author" => "author@domain.cn" }
12+ s . author = { "author" => "author@domain.cn" }
1313 s . platform = :ios , "7.0"
1414 s . source = { :git => "https://github.com/author/RNConfigReader.git" , :tag => "master" }
15- s . source_files = "RNConfigReader /**/*.{h,m}"
15+ s . source_files = 'ios /**/*'
1616 s . requires_arc = true
1717
18-
1918 s . dependency "React"
20- #s.dependency "others"
2119
2220end
2321
24-
22+
Original file line number Diff line number Diff line change 1-
21import { NativeModules , Platform } from 'react-native' ;
32
43const { RNConfigReader } = NativeModules ;
54
6- export default Platform . OS === 'ios' ? RNConfigReader . BuildConfigs : RNConfigReader ;
5+ export default Platform . OS === 'ios' ? RNConfigReader . BuildConfigs : RNConfigReader ;
Original file line number Diff line number Diff line change 1-
21#if __has_include("RCTBridgeModule.h")
32#import " RCTBridgeModule.h"
43#else
87@interface RNConfigReader : NSObject <RCTBridgeModule>
98
109@end
11-
Original file line number Diff line number Diff line change @@ -14,5 +14,9 @@ - (NSDictionary *)constantsToExport
1414 return @{ @" BuildConfigs" : [[NSBundle mainBundle ] infoDictionary ] };
1515}
1616
17- @end
18-
17+ + (BOOL )requiresMainQueueSetup
18+ {
19+ return YES ;
20+ }
21+
22+ @end
You can’t perform that action at this time.
0 commit comments