Skip to content

Commit

Permalink
- hot fix for swift version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
prscms committed Dec 1, 2019
1 parent 1bfaa80 commit 3cc39a0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ target 'Example' do
use_frameworks!

pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'

post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name.include?('iOSPhotoEditor')
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5'
end
end
end
end

end

target 'Example-tvOS' do
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ This library is a React Native bridge around native photo editor libraries. It a
use_frameworks!
pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name.include?('iOSPhotoEditor')
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5'
end
end
end
end
```

- Add below property to your info.list
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-photo-editor",
"version": "1.0.0",
"version": "1.0.1",
"description": "React Native: Native Photo Editor",
"main": "RNPhotoEditor.js",
"homepage": "https://github.com/prscX/react-native-photo-editor.git",
Expand Down

0 comments on commit 3cc39a0

Please sign in to comment.