Skip to content

Commit

Permalink
[Infra] Break up ClientApp based on min. supported version (#11931)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Oct 12, 2023
1 parent d81afaa commit 1e0f294
Show file tree
Hide file tree
Showing 12 changed files with 458 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
10 changes: 10 additions & 0 deletions ClientApp/ClientApp-iOS13/ClientApp_iOS13.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
438 changes: 400 additions & 38 deletions ClientApp/ClientApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions ClientApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ source 'https://github.com/firebase/SpecsDev.git'
source 'https://github.com/firebase/SpecsStaging.git'
source 'https://cdn.cocoapods.org/'

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'ClientApp-CocoaPods' do
# Comment the next line if you don't want to use dynamic frameworks
platform :ios, '11.0'

use_frameworks!

# Pods for ClientApp-CocoaPods
pod 'FirebaseCore', :path => '../'
pod 'FirebaseInstallations', :path => '../'
pod 'FirebaseAnalytics' # Binary pods don't work with `:path`.
pod 'FirebaseAnalyticsOnDeviceConversion', :path => '../'
pod 'FirebaseAnalyticsSwift', :path => '../'
pod 'FirebaseABTesting', :path => '../'
pod 'FirebaseAppCheck', :path => '../'
pod 'FirebaseRemoteConfig', :path => '../'
Expand All @@ -29,11 +25,21 @@ target 'ClientApp-CocoaPods' do
pod 'FirebaseFirestoreSwift', :path => '../'
pod 'FirebaseFunctions', :path => '../'
pod 'FirebaseInAppMessaging', :path => '../'
pod 'FirebaseInAppMessagingSwift', :path => '../'
pod 'FirebaseMessaging', :path => '../'
pod 'FirebasePerformance', :path => '../'
pod 'FirebaseStorage', :path => '../'
pod 'FirebaseMLModelDownloader', :path => '../'
pod 'Firebase', :path => '../'
end

target 'ClientApp-CocoaPods-iOS13' do
platform :ios, '13.0'

use_frameworks!

pod 'FirebaseAnalytics' # Binary pods don't work with `:path`.
pod 'FirebaseAnalyticsSwift', :path => '../' # Requires iOS 13.0+
pod 'FirebaseInAppMessaging', :path => '../'
pod 'FirebaseInAppMessagingSwift', :path => '../' # Requires iOS 13.0+

end
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
// NOTE(ncooke3): `FirebaseABTesting` is not listed as a library.
import FirebaseABTesting
import FirebaseAnalytics
import FirebaseAnalyticsSwift
import FirebaseAppCheck
#if os(iOS) && !targetEnvironment(macCatalyst)
import FirebaseAppDistribution
Expand Down Expand Up @@ -52,7 +51,6 @@ import FirebaseMLModelDownloader
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
import FirebasePerformance
import FirebaseInAppMessaging
import FirebaseInAppMessagingSwift
#endif
import FirebaseRemoteConfig
import FirebaseRemoteConfigSwift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI

@main
struct ClientApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
import FirebaseAnalytics
import FirebaseAnalyticsSwift
#if (os(iOS) && !targetEnvironment(macCatalyst)) || os(tvOS)
import FirebaseInAppMessaging
import FirebaseInAppMessagingSwift
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import SwiftUI
import UIKit

struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}

struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication
.LaunchOptionsKey: Any]?) -> Bool {
return true
}
}

0 comments on commit 1e0f294

Please sign in to comment.