Skip to content

Commit 7ffa784

Browse files
committed
chore: update package metadata and modernize PodSpec
1 parent bd3f9ca commit 7ffa784

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

RNFileLogger.podspec

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@ Pod::Spec.new do |s|
66
s.name = "RNFileLogger"
77
s.version = package["version"]
88
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 }
1314
s.source = { :git => "https://github.com/BeTomorrow/react-native-file-logger.git", :tag => "#{s.version}" }
1415

1516
s.source_files = "ios/**/*.{h,mm}"
1617
s.framework = "MessageUI"
1718

18-
s.dependency "React-Core"
1919
s.dependency "CocoaLumberjack"
20-
21-
## Dependencies needed for new architecture.
22-
install_modules_dependencies(s)
2320

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
2428
end
25-

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "0.5.7",
55
"description": "A simple file-logger for React Native",
66
"main": "dist/index.js",
7+
"types": "dist/index.d.ts",
78
"source": "src/index.ts",
89
"files": [
910
"README.md",
@@ -22,13 +23,11 @@
2223
"url": "git+https://github.com/BeTomorrow/react-native-file-logger.git",
2324
"baseUrl": "https://github.com/BeTomorrow/react-native-file-logger"
2425
},
26+
"homepage": "https://github.com/BeTomorrow/react-native-file-logger#readme",
2527
"keywords": [
2628
"react-native"
2729
],
28-
"author": {
29-
"name": "BeTomorrow",
30-
"email": "streny@betomorrow.com"
31-
},
30+
"author": "BeTomorrow <aguichard@betomorrow.com> (https://github.com/BeTomorrow)",
3231
"license": "MIT",
3332
"licenseFilename": "LICENSE",
3433
"readmeFilename": "README.md",

0 commit comments

Comments
 (0)