This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
1 changed file
with
9 additions
and
4 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
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' | ||
|
@@ -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.
Sorry, something went wrong. |
||
|
||
s.vendored_frameworks = 'WooCommerceShared.xcframework' | ||
end |
🤯
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:
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