-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60dd090
commit 0df8095
Showing
2 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'YttriumWrapper' | ||
s.version = '0.1.0' | ||
s.version = '0.0.0' | ||
s.summary = '4337 implementation' | ||
s.description = <<-DESC | ||
YttriumWrapper is a Swift library that provides an implementation of ERC-4337 for Account Abstraction. | ||
It leverages a precompiled Rust library to deliver enhanced performance and security for managing Ethereum accounts. | ||
DESC | ||
s.description = '4337 implementation ' | ||
s.homepage = 'https://reown.com' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.authors = { 'Reown, Inc.' => '[email protected]' } | ||
s.authors = 'Reown, Inc.' | ||
|
||
# Use your Git repository as the source for the podspec | ||
s.source = { :git => 'https://github.com/reown-com/yttrium.git', :tag => s.version.to_s } | ||
|
||
s.platform = :ios, '13.0' | ||
|
@@ -20,16 +16,12 @@ Pod::Spec.new do |s| | |
# Include the Swift source files | ||
s.source_files = 'crates/ffi/YttriumCore/Sources/YttriumCore/**/*.{swift,h}' | ||
|
||
# Remove the exclude_files directive (since the .xcframework isn't in your repo) | ||
# s.exclude_files = 'crates/ffi/YttriumCore/RustXcframework.xcframework' | ||
# Include the vendored framework | ||
s.prepare_command = <<-SCRIPT | ||
curl -L -o RustXcframework.xcframework.zip 'https://github.com/reown-com/yttrium/releases/download/0.0.0/RustXcframework.xcframework.zip' | ||
unzip -o RustXcframework.xcframework.zip -d crates/ffi/YttriumCore/ | ||
rm RustXcframework.xcframework.zip | ||
SCRIPT | ||
|
||
# Since the framework isn't included in the repo, we need to download it | ||
s.prepare_command = <<-SCRIPT | ||
curl -L -o RustXcframework.xcframework.zip 'https://github.com/reown-com/yttrium/releases/download/0.1.0/RustXcframework.xcframework.zip' | ||
unzip -o RustXcframework.xcframework.zip -d crates/ffi/YttriumCore/ | ||
rm RustXcframework.xcframework.zip | ||
SCRIPT | ||
|
||
# Now specify the path to the downloaded .xcframework | ||
s.vendored_frameworks = 'crates/ffi/YttriumCore/RustXcframework.xcframework' | ||
end |