Skip to content

Commit 2aa904d

Browse files
skrylcsath
authored andcommitted
Update RNConfigReader.podspec (#10)
* Update RNConfigReader.podspec * move podspec * use new header import format * fix headers * revert podspec * move podspec * fixes
1 parent 17ddff8 commit 2aa904d

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

ios/RNConfigReader.podspec renamed to RNConfigReader.podspec

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

2220
end
2321

24-
22+

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
import { NativeModules, Platform } from 'react-native';
32

43
const { RNConfigReader } = NativeModules;
54

6-
export default Platform.OS === 'ios' ? RNConfigReader.BuildConfigs : RNConfigReader;
5+
export default Platform.OS === 'ios' ? RNConfigReader.BuildConfigs : RNConfigReader;

ios/RNConfigReader.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#if __has_include("RCTBridgeModule.h")
32
#import "RCTBridgeModule.h"
43
#else
@@ -8,4 +7,3 @@
87
@interface RNConfigReader : NSObject <RCTBridgeModule>
98

109
@end
11-

ios/RNConfigReader.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)