Skip to content

Commit

Permalink
fix: sets static builds in core podspec to prevent dependency conflic…
Browse files Browse the repository at this point in the history
…ts (#171)

* fix: sets static builds in core podspec to prevent dependency conflicts

* Add changeset

---------

Co-authored-by: Trevor Coleman <[email protected]>
  • Loading branch information
younes0 and trevor-coleman authored Feb 3, 2025
1 parent 2ca97d9 commit 213f085
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-cups-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@infinitered/react-native-mlkit-core": minor
---

fix: sets static builds in core podspec to prevent dependency conflicts
6 changes: 5 additions & 1 deletion modules/react-native-mlkit-core/ios/RNMLKitCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.platform = :ios, '13.0'
s.swift_version = '5.4'
s.source = { git: 'http://github.com/infinitered/react-native-mlkit' }

s.static_framework = true
s.dependency 'MLKitVision'
s.dependency 'ExpoModulesCore'

Expand All @@ -23,5 +23,9 @@ Pod::Spec.new do |s|
'SWIFT_COMPILATION_MODE' => 'wholemodule'
}

def s.build_type
Pod::BuildType.static_library
end

s.source_files = "**/*.{h,m,swift}"
end

0 comments on commit 213f085

Please sign in to comment.