File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,23 @@ Pod::Spec.new do |s|
6
6
s . name = "RNFileLogger"
7
7
s . version = package [ "version" ]
8
8
s . summary = package [ "description" ]
9
- s . homepage = "https://github.com/BeTomorrow/react-native-file-logger"
10
- s . license = "MIT"
11
- s . authors = { "BeTomorrow" => "streny@betomorrow.com" }
12
- s . platforms = { :ios => "11.0" }
9
+ s . homepage = package [ "homepage" ]
10
+ s . license = package [ "license" ]
11
+ s . authors = package [ "author" ]
12
+
13
+ s . platforms = { :ios => min_ios_version_supported }
13
14
s . source = { :git => "https://github.com/BeTomorrow/react-native-file-logger.git" , :tag => "#{ s . version } " }
14
15
15
16
s . source_files = "ios/**/*.{h,mm}"
16
17
s . framework = "MessageUI"
17
18
18
- s . dependency "React-Core"
19
19
s . dependency "CocoaLumberjack"
20
-
21
- ## Dependencies needed for new architecture.
22
- install_modules_dependencies ( s )
23
20
21
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
23
+ if respond_to? ( :install_modules_dependencies , true )
24
+ install_modules_dependencies ( s )
25
+ else
26
+ s . dependency "React-Core"
27
+ end
24
28
end
25
-
Original file line number Diff line number Diff line change 4
4
"version" : " 0.5.7" ,
5
5
"description" : " A simple file-logger for React Native" ,
6
6
"main" : " dist/index.js" ,
7
+ "types" : " dist/index.d.ts" ,
7
8
"source" : " src/index.ts" ,
8
9
"files" : [
9
10
" README.md" ,
22
23
"url" : " git+https://github.com/BeTomorrow/react-native-file-logger.git" ,
23
24
"baseUrl" : " https://github.com/BeTomorrow/react-native-file-logger"
24
25
},
26
+ "homepage" : " https://github.com/BeTomorrow/react-native-file-logger#readme" ,
25
27
"keywords" : [
26
28
" react-native"
27
29
],
28
- "author" : {
29
- "name" : " BeTomorrow" ,
30
- "email" : " streny@betomorrow.com"
31
- },
30
+ "author" : " BeTomorrow <aguichard@betomorrow.com> (https://github.com/BeTomorrow)" ,
32
31
"license" : " MIT" ,
33
32
"licenseFilename" : " LICENSE" ,
34
33
"readmeFilename" : " README.md" ,
You can’t perform that action at this time.
0 commit comments