Skip to content

Commit

Permalink
chore: fix example and tip Podfile configure
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 21, 2024
1 parent 3aab944 commit 9062127
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ npm install bark.rn
target "YourApp" do
# ...

# Add these lines
spm_pkg "bark",
:url => "https://github.com/PABannier/bark.cpp.git",
:branch => "1.0.0",
:products => ["bark"]

# spm_pkg should be before use_native_modules!
config = use_native_modules!

# ...
end
```
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ if linkage != nil
end

target 'BarkRnExample' do
spm_pkg "bark",
:url => "https://github.com/PABannier/bark.cpp.git",
:branch => "1.0.0",
:products => ["bark"]

config = use_native_modules!

use_react_native!(
Expand All @@ -23,11 +28,6 @@ target 'BarkRnExample' do
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

spm_pkg "bark",
:url => "https://github.com/PABannier/bark.cpp.git",
:branch => "1.0.0",
:products => ["bark"]

target 'BarkRnExampleTests' do
inherit! :complete
# Pods for testing
Expand Down

0 comments on commit 9062127

Please sign in to comment.