File tree Expand file tree Collapse file tree
source/react-native/shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -292,6 +292,36 @@ jobs:
292292 name : shared-maven-local
293293 path : ~/.m2/repository/com/stytch/sdk/
294294
295+ - name : Download xcframework zips
296+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
297+ with :
298+ name : xcframework-zips
299+ path : /tmp/xcframework-zips
300+
301+ - name : Download StytchDFP xcframework
302+ env :
303+ GH_TOKEN : ${{ github.token }}
304+ run : |
305+ DFP_VERSION=$(gh release view --repo stytchauth/stytch-ios-dfp --json tagName -q '.tagName')
306+ gh release download "$DFP_VERSION" \
307+ --repo stytchauth/stytch-ios-dfp \
308+ --pattern "*.zip" \
309+ --dir /tmp/xcframework-zips
310+
311+ - name : Download RecaptchaEnterprise xcframework
312+ run : |
313+ curl -fsSL \
314+ "https://dl.google.com/recaptchaenterprise/v18.8.1/RecaptchaEnterprise_iOS_xcframework/recaptcha-xcframework.xcframework.zip" \
315+ -o /tmp/xcframework-zips/RecaptchaEnterprise.xcframework.zip
316+
317+ - name : Unzip xcframeworks into shared ios/Frameworks
318+ run : |
319+ FRAMEWORKS_DIR=$GITHUB_WORKSPACE/source/react-native/shared/ios/Frameworks
320+ mkdir -p "$FRAMEWORKS_DIR"
321+ for zip in /tmp/xcframework-zips/*.zip; do
322+ unzip -q "$zip" -d "$FRAMEWORKS_DIR"
323+ done
324+
295325 - name : Build consumer JS output
296326 working-directory : source/sdks
297327 run : |
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ Pod::Spec.new do |s|
1818 s . private_header_files = "ios/**/*.h"
1919 s . public_header_files = "ios/**/*.h"
2020
21+ s . vendored_frameworks = [
22+ 'ios/Frameworks/StytchConsumerSDK.xcframework' ,
23+ 'ios/Frameworks/StytchSharedSDK.xcframework' ,
24+ 'ios/Frameworks/StytchSwiftUtils.xcframework' ,
25+ 'ios/Frameworks/StytchDFP.xcframework' ,
26+ 'ios/Frameworks/RecaptchaEnterprise.xcframework'
27+ ]
28+
2129 s . pod_target_xcconfig = {
2230 'DEFINES_MODULE' => 'YES' ,
2331 'SWIFT_COMPILATION_MODE' => 'wholemodule'
You can’t perform that action at this time.
0 commit comments