Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Fix CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmassel committed May 25, 2023
1 parent d503c9e commit 42fbf15
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions WooCommerceShared.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

CURRENT_SHORTHASH=`git rev-parse --short HEAD`

Pod::Spec.new do |s|
s.name = 'WooCommerceShared'
s.version = '0.0.1'
Expand All @@ -8,17 +10,20 @@ Pod::Spec.new do |s|
s.description = "#{s.summary} It's a React Native library project."

s.homepage = 'https://github.com/woocommerce/WooCommerce-Shared'
s.license = { type: 'MPL', file: 'LICENSE' }
s.license = { type: 'Copyright', text: File.read('LICENSE') }
# s.license = { type: 'MPL', text: File.read('LICENSE') }
s.author = { 'The WooCommerce Mobile Team' => '[email protected]' }

s.platform = :ios, '13.0'
s.swift_version = '5.0'

s.source_files = 'WooCommerceShared.xcframework'

s.source = {
http: 'https://cdn.a8c-ci.services/woocommerce-shared/6cba1e9/WooCommerceShared.xcframework.zip',
sha1: '22a81b12c36d643d059e61f45a44101308a2b74c'
http: "https://cdn.a8c-ci.services/woocommerce-shared/1b84526/WooCommerceShared.xcframework.zip",
sha256: '22a81b12c36d643d059e61f45a44101308a2b74c'
}

s.prepare_command = 'curl https://cdn.a8c-ci.services/woocommerce-shared/1b84526/WooCommerceShared.xcframework.zip -o WooCommerceShared.xcframework.zip && unzip WooCommerceShared.xcframework.zip'

This comment has been minimized.

Copy link
@mokagio

mokagio May 26, 2023

Contributor

🤯

And to think I implemented the whole flow myself in WordPress iOS: https://github.com/wordpress-mobile/WordPress-iOS/commits/a1b7531ab3fb92cff7dadd748700d2c3d4648e89

Yet, there must be something we're doing wrong 😞 I tested Firebase in WooCommerce and it works:

image

Here's a link to their spec: https://github.com/CocoaPods/Specs/blob/master/Specs/e/2/1/FirebaseAnalytics/10.9.0/FirebaseAnalytics.podspec.json


s.vendored_frameworks = 'WooCommerceShared.xcframework'
end

0 comments on commit 42fbf15

Please sign in to comment.