Skip to content

Commit b9a664c

Browse files
committed
Add RNPermissions in static libs instructions
1 parent 6c2bad8 commit b9a664c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ If you use `use_frameworks!`, add this at the top of your `Podfile`:
110110
```ruby
111111
use_frameworks!
112112

113-
# Convert all permissions handlers into static libraries
113+
# Convert all permission pods into static libraries
114114
pre_install do |installer|
115115
installer.pod_targets.each do |pod|
116-
if pod.name.start_with?('Permission-')
116+
if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
117117
def pod.build_type;
118118
# Uncomment one line depending on your CocoaPods version
119119
# Pod::BuildType.static_library # >= 1.9

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
66

77
# pre_install do |installer|
88
# installer.pod_targets.each do |pod|
9-
# if pod.name.start_with?('Permission-')
9+
# if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
1010
# def pod.build_type;
1111
# # Uncomment one line depending on your CocoaPods version
1212
# # Pod::BuildType.static_library # >= 1.9

0 commit comments

Comments
 (0)