Skip to content

Commit

Permalink
🐛 [Darwin] Do not download remote framework zip
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 10, 2023
1 parent c053ad0 commit 7a48fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions ios/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ release_tag_name = 'agent_dart-v1.0.0' # generated; do not edit
# We cannot distribute the XCFramework alongside the library directly,
# so we have to fetch the correct version here.
framework_name = 'AgentDart.xcframework'
remote_zip_name = "#{framework_name}.zip"
url = "https://github.com/AstroxNetwork/agent_dart/releases/download/#{release_tag_name}/#{remote_zip_name}"
local_zip_name = "#{release_tag_name}.zip"
`
cd Frameworks
if [ ! -f #{local_zip_name} ]
then
curl -L #{url} -o #{local_zip_name}
fi
if [ -f #{local_zip_name} ]
then
rm -rf #{framework_name}
Expand All @@ -29,7 +22,7 @@ Pod::Spec.new do |spec|
spec.license = { :file => '../LICENSE' }
spec.homepage = 'https://github.com/AstroxNetwork/agent_dart'
spec.authors = { 'AstroX Dev' => 'dev@astrox.network' }
spec.summary = 'iOS/macOS Flutter bindings for agent_dart'
spec.summary = 'iOS Flutter bindings for agent_dart'

spec.source = { :path => '.' }
spec.source_files = 'Classes/**/*'
Expand Down
9 changes: 1 addition & 8 deletions macos/agent_dart.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ release_tag_name = 'agent_dart-v1.0.0' # generated; do not edit
# We cannot distribute the XCFramework alongside the library directly,
# so we have to fetch the correct version here.
framework_name = 'AgentDart.xcframework'
remote_zip_name = "#{framework_name}.zip"
url = "https://github.com/AstroxNetwork/agent_dart/releases/download/#{release_tag_name}/#{remote_zip_name}"
local_zip_name = "#{release_tag_name}.zip"
`
cd Frameworks
if [ ! -f #{local_zip_name} ]
then
curl -L #{url} -o #{local_zip_name}
fi
if [ -f #{local_zip_name} ]
then
rm -rf #{framework_name}
Expand All @@ -29,7 +22,7 @@ Pod::Spec.new do |spec|
spec.license = { :file => '../LICENSE' }
spec.homepage = 'https://github.com/AstroxNetwork/agent_dart'
spec.authors = { 'AstroX Dev' => 'dev@astrox.network' }
spec.summary = 'iOS/macOS Flutter bindings for agent_dart'
spec.summary = 'macOS Flutter bindings for agent_dart'

spec.source = { :path => '.' }
spec.source_files = 'Classes/**/*'
Expand Down

0 comments on commit 7a48fe7

Please sign in to comment.