Skip to content

Commit 822ca59

Browse files
committed
Add Swift sample to gha
1 parent 990c20b commit 822ca59

22 files changed

+196
-55
lines changed

.github/workflows/sample.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Sample
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- '.github/workflows/sample.yml'
8+
- 'Firebase*UI/**'
9+
- '*.podspec'
10+
pull_request:
11+
branches: [ master ]
12+
paths:
13+
- '.github/workflows/storage.yml'
14+
- 'Firebase*UI/**'
15+
- '*.podspec'
16+
17+
workflow_dispatch:
18+
19+
jobs:
20+
build:
21+
name: Swift build
22+
runs-on: macOS-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
- name: Setup
28+
run: |
29+
cd samples/swift
30+
gem install bundler
31+
bundle install
32+
gem install xcpretty
33+
bundle exec pod install --repo-update
34+
- name: Build
35+
run: |
36+
xcodebuild \
37+
-workspace FirebaseUI-demo-swift.xcworkspace \
38+
-scheme FirebaseUI-demo-swift \
39+
-sdk iphonesimulator \
40+
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro' \
41+
clean build test \
42+
ONLY_ACTIVE_ARCH=YES

FirebaseAuthUI.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Pod::Spec.new do |s|
99
s.platform = :ios
1010
s.ios.deployment_target = '10.0'
1111
s.ios.framework = 'UIKit'
12-
s.static_framework = true
1312
s.requires_arc = true
1413
s.cocoapods_version = '>= 1.8.0'
1514
s.pod_target_xcconfig = {
@@ -19,6 +18,8 @@ Pod::Spec.new do |s|
1918
s.public_header_files = 'FirebaseAuthUI/Sources/Public/FirebaseAuthUI/*.h'
2019
s.source_files = 'FirebaseAuthUI/Sources/**/*.{h,m}'
2120
s.dependency 'Firebase/Auth', '>= 7.2.0'
21+
s.dependency 'FirebaseAuth'
22+
s.dependency 'FirebaseCore'
2223
s.dependency 'GoogleUtilities/UserDefaults'
2324
s.resource_bundle = {
2425
'FirebaseAuthUI' => ['FirebaseAuthUI/Sources/{Resources,Strings}/*.{xib,png,lproj}']

FirebaseEmailAuthUI.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Pod::Spec.new do |s|
1515
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
1616
}
1717

18-
s.public_header_files = 'FirebaseEmailAuthUI/Sources/Public/FirebaseEmailAuthUI*.h'
18+
s.public_header_files = 'FirebaseEmailAuthUI/Sources/Public/FirebaseEmailAuthUI/*.h'
1919
s.source_files = 'FirebaseEmailAuthUI/Sources/**/*.{h,m}'
2020
s.dependency 'FirebaseAuthUI'
21+
s.dependency 'FirebaseAuth'
22+
s.dependency 'FirebaseCore'
2123
s.resource_bundle = {
2224
'FirebaseEmailAuthUI' => ['FirebaseEmailAuthUI/Sources/Resources/*.{xib,png}']
2325
}

FirebaseFacebookAuthUI.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ Pod::Spec.new do |s|
1717
}
1818

1919
s.platform = :ios, '10.0'
20-
s.public_header_files = 'FirebaseFacebookAuthUI/Sources/Public/FirebaseFacebookAuthUI*.h'
20+
s.public_header_files = 'FirebaseFacebookAuthUI/Sources/Public/FirebaseFacebookAuthUI/*.h'
2121
s.source_files = 'FirebaseFacebookAuthUI/Sources/**/*.{h,m}'
2222
s.dependency 'FirebaseAuthUI'
23+
s.dependency 'FirebaseAuth'
24+
s.dependency 'FirebaseCore'
2325
s.dependency 'FBSDKLoginKit', '~> 9.0'
2426
s.resource_bundle = {
2527
'FirebaseFacebookAuthUI' => ['FirebaseFacebookAuthUI/Sources/{Resources,Strings}/*.{png,lproj}']

FirebaseGoogleAuthUI.podspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Pod::Spec.new do |s|
1111
s.ios.framework = 'UIKit'
1212
s.requires_arc = true
1313
s.cocoapods_version = '>= 1.8.0'
14+
s.static_framework = true # Required since GoogleSignIn is a static binary.
1415
s.pod_target_xcconfig = {
1516
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
1617
}
@@ -19,6 +20,8 @@ Pod::Spec.new do |s|
1920
s.source_files = 'FirebaseGoogleAuthUI/Sources/**/*.{h,m}'
2021
s.dependency 'FirebaseAuthUI'
2122
s.dependency 'GoogleSignIn', '~> 5.0'
23+
s.dependency 'FirebaseAuth'
24+
s.dependency 'FirebaseCore'
2225
s.resource_bundle = {
2326
'FirebaseGoogleAuthUI' => ['FirebaseGoogleAuthUI/Sources/{Resources,Strings}/*.{png,lproj}']
2427
}

FirebaseOAuthUI.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Pod::Spec.new do |s|
1818
s.public_header_files = 'FirebaseOAuthUI/Sources/Public/FirebaseOAuthUI/*.h'
1919
s.source_files = 'FirebaseOAuthUI/Sources/**/*.{h,m}'
2020
s.dependency 'FirebaseAuthUI'
21+
s.dependency 'FirebaseAuth'
22+
s.dependency 'FirebaseCore'
2123
s.resource_bundle = {
2224
'FirebaseOAuthUI' => ['FirebaseOAuthUI/Sources/{Resources,Strings}/*.{png,lproj}']
2325
}

FirebasePhoneAuthUI.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Pod::Spec.new do |s|
1818
s.public_header_files = 'FirebasePhoneAuthUI/Sources/Public/FirebasePhoneAuthUI/*.h'
1919
s.source_files = 'FirebasePhoneAuthUI/Sources/**/*.{h,m}'
2020
s.dependency 'FirebaseAuthUI'
21+
s.dependency 'FirebaseAuth'
22+
s.dependency 'FirebaseCore'
2123
s.resource_bundle = {
2224
'FirebasePhoneAuthUI' => ['FirebasePhoneAuthUI/Sources/{Resources,Strings}/*.{xib,json,lproj,png}']
2325
}

FirebaseStorageUI.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ Pod::Spec.new do |s|
99
s.platform = :ios
1010
s.ios.deployment_target = '10.0'
1111
s.ios.framework = 'UIKit'
12+
s.tvos.framework = 'UIKit'
1213
s.requires_arc = true
1314
s.cocoapods_version = '>= 1.8.0'
1415
s.pod_target_xcconfig = {
1516
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
1617
}
1718

18-
# s.tvos.deployment_target = '11.0' Disabled; one of the dependencies doesn't support tvOS.
19+
s.tvos.deployment_target = '11.0'
1920
s.public_header_files = 'FirebaseStorageUI/Sources/Public/FirebaseStorageUI/*.h'
2021
s.source_files = 'FirebaseStorageUI/Sources/**/*.{h,m}'
2122
s.dependency 'Firebase/Storage'
23+
s.dependency 'FirebaseStorage'
2224
s.dependency 'GTMSessionFetcher/Core', '~> 1.5.0'
2325
s.dependency 'SDWebImage', '~> 5.6'
2426

FirebaseStorageUI/Sources/FUIStorageImageLoader.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#import "FirebaseStorageUI/Sources/Public/FirebaseStorageUI/FIRStorageDownloadTask+SDWebImage.h"
1919

2020
#import <FirebaseCore/FirebaseCore.h>
21+
#import <FirebaseStorage/FirebaseStorage.h>
2122

2223
#if SWIFT_PACKAGE
2324
@import GTMSessionFetcherCore;

samples/swift/FirebaseUI-demo-swift/FUIAppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import UIKit
1818
import Firebase
19-
import FirebaseUI
19+
import FirebaseAuthUI
2020
import GTMSessionFetcher
2121

2222
@UIApplicationMain

0 commit comments

Comments
 (0)