-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/cocoapods #41
Merged
Merged
Feat/cocoapods #41
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3a127ba
add podspec remove dotenv
llbartekll fad0f41
savepoint
llbartekll 60dd090
pass linting
llbartekll 0df8095
add steps in release swift
llbartekll d660f4a
refactor release swift
llbartekll 99e3495
Update YttriumWrapper.podspec
llbartekll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'YttriumWrapper' | ||
s.version = '0.0.0' | ||
s.summary = '4337 implementation' | ||
s.description = '4337 implementation ' | ||
s.homepage = 'https://reown.com' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.authors = 'Reown, Inc.' | ||
llbartekll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
s.source = { :git => 'https://github.com/reown-com/yttrium.git', :tag => s.version.to_s } | ||
|
||
s.platform = :ios, '13.0' | ||
|
||
s.swift_version = '5.9' | ||
|
||
# Include the Swift source files | ||
s.source_files = 'crates/ffi/YttriumCore/Sources/YttriumCore/**/*.{swift,h}' | ||
|
||
# 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 | ||
|
||
s.vendored_frameworks = 'crates/ffi/YttriumCore/RustXcframework.xcframework' | ||
end |
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
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 |
---|---|---|
|
@@ -78,35 +78,13 @@ extension Endpoints { | |
} | ||
} | ||
|
||
import SwiftDotenv | ||
|
||
extension Config { | ||
|
||
public static func local() -> Self { | ||
Config(endpoints: .local()) | ||
} | ||
|
||
static func pimlico() throws -> Self { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are this config logic getting moved elsewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it wasn't used at all, we are injecting bundlerUrl from swift on init |
||
try Dotenv.configure() | ||
|
||
guard let rpcURL = Dotenv["PIMLICO_RPC_URL"]?.stringValue else { | ||
fatalError("Missing PIMLICO_RPC_URL environment variable") | ||
} | ||
guard let bundlerURL = Dotenv["PIMLICO_BUNDLER_URL"]?.stringValue else { | ||
fatalError("Missing PIMLICO_BUNDLER_URL environment variable") | ||
} | ||
let paymasterURL = bundlerURL | ||
|
||
return Self( | ||
endpoints: .init( | ||
rpc: .init(baseURL: rpcURL), | ||
bundler: .init(baseURL: bundlerURL), | ||
paymaster: .init(baseURL: paymasterURL) | ||
) | ||
) | ||
} | ||
|
||
|
||
public var ffi: FFIConfig { | ||
FFIConfig(endpoints: endpoints.ffi) | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.