-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Infra] Add sample app to test building SPM distro across supported p…
…latforms (#11150) * Add client sample app * Build script changes and workflow changes * Style * Add note about special analytics libraries * Undo unintentional change * Update spm.yml * Update spm.yml * Fix CI for now * Workflow works locally- not on GHA? * Disable xcpretty in build.sh * Fix CI * Get PR in passing state * Fix CI for good
- Loading branch information
Showing
16 changed files
with
1,048 additions
and
0 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
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
609 changes: 609 additions & 0 deletions
609
SwiftPMTests/ClientApp/ClientApp.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
SwiftPMTests/ClientApp/ClientApp/Assets.xcassets/AccentColor.colorset/Contents.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
SwiftPMTests/ClientApp/ClientApp/Assets.xcassets/AppIcon.appiconset/Contents.json
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "512x512" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "512x512" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
SwiftPMTests/ClientApp/ClientApp/Assets.xcassets/Contents.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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 |
---|---|---|
@@ -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> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// 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() | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
import SwiftUI | ||
|
||
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() | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
SwiftPMTests/ClientApp/ClientApp/Preview Content/Preview Assets.xcassets/Contents.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
SwiftPMTests/ClientApp/ClientApp/objc-header-import-test.m
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// This file imports all Firebase products that vend an umbrella header. | ||
// Products implemented in Swift are therefore omitted. | ||
|
||
// ‼️ NOTE: Changes should also be reflected in `objcxx-header-import-test.m`. | ||
|
||
#import <Firebase.h> | ||
#import <FirebaseABTesting/FirebaseABTesting.h> | ||
#import <FirebaseAnalytics/FirebaseAnalytics.h> | ||
#import <FirebaseAppCheck/FirebaseAppCheck.h> | ||
#import "Firebase.h" | ||
#import "FirebaseABTesting/FirebaseABTesting.h" | ||
#import "FirebaseAnalytics/FirebaseAnalytics.h" | ||
#import "FirebaseAppCheck/FirebaseAppCheck.h" | ||
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
#import <FirebaseAppDistribution/FirebaseAppDistribution.h> | ||
#import "FirebaseAppDistribution/FirebaseAppDistribution.h" | ||
#endif | ||
#import <FirebaseAuth/FirebaseAuth.h> | ||
#import <FirebaseCore/FirebaseCore.h> | ||
#import <FirebaseCrashlytics/FirebaseCrashlytics.h> | ||
#import <FirebaseDatabase/FirebaseDatabase.h> | ||
#import "FirebaseAuth/FirebaseAuth.h" | ||
#import "FirebaseCore/FirebaseCore.h" | ||
#import "FirebaseCrashlytics/FirebaseCrashlytics.h" | ||
#import "FirebaseDatabase/FirebaseDatabase.h" | ||
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
#import <FirebaseDynamicLinks/FirebaseDynamicLinks.h> | ||
#import "FirebaseDynamicLinks/FirebaseDynamicLinks.h" | ||
#endif | ||
#import <FirebaseFirestore/FirebaseFirestore.h> | ||
#import "FirebaseFirestore/FirebaseFirestore.h" | ||
#if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST | ||
#import <FirebaseInAppMessaging/FirebaseInAppMessaging.h> | ||
#import "FirebaseInAppMessaging/FirebaseInAppMessaging.h" | ||
#endif | ||
#import <FirebaseInstallations/FirebaseInstallations.h> | ||
#import <FirebaseMessaging/FirebaseMessaging.h> | ||
#import "FirebaseInstallations/FirebaseInstallations.h" | ||
#import "FirebaseMessaging/FirebaseMessaging.h" | ||
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV | ||
#import <FirebasePerformance/FirebasePerformance.h> | ||
#import "FirebasePerformance/FirebasePerformance.h" | ||
#endif | ||
#import <FirebaseRemoteConfig/FirebaseRemoteConfig.h> | ||
#import "FirebaseRemoteConfig/FirebaseRemoteConfig.h" |
42 changes: 42 additions & 0 deletions
42
SwiftPMTests/ClientApp/ClientApp/objc-module-import-test.m
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// ‼️ NOTE: Changes should also be reflected in `objcxx-module-import-test.m`. | ||
|
||
@import Firebase; | ||
@import FirebaseABTesting; | ||
@import FirebaseAnalytics; | ||
@import FirebaseAppCheck; | ||
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
@import FirebaseAppDistribution; | ||
#endif | ||
@import FirebaseAuth; | ||
@import FirebaseCore; | ||
@import FirebaseCrashlytics; | ||
@import FirebaseDatabase; | ||
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
@import FirebaseDynamicLinks; | ||
#endif | ||
@import FirebaseFirestore; | ||
@import FirebaseFunctions; | ||
#if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST | ||
@import FirebaseInAppMessaging; | ||
#endif | ||
@import FirebaseInstallations; | ||
@import FirebaseMessaging; | ||
#if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV | ||
@import FirebasePerformance; | ||
#endif | ||
@import FirebaseRemoteConfig; | ||
@import FirebaseStorage; |
60 changes: 60 additions & 0 deletions
60
SwiftPMTests/ClientApp/ClientApp/objcxx-header-import-test.mm
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// This file imports all Firebase products that vend an umbrella header. | ||
// Products implemented in Swift are therefore omitted. | ||
|
||
// ‼️ Changes should also be reflected in `objc-header-import-test.m`. | ||
|
||
// TODO(Xcode 14.3): Re-enable contest when GHA supports Xcode 14.3. | ||
// #import <Firebase.h> | ||
// #import <FirebaseABTesting/FirebaseABTesting.h> | ||
// #import <FirebaseAnalytics/FirebaseAnalytics.h> | ||
// #import <FirebaseAppCheck/FirebaseAppCheck.h> | ||
// #import "Firebase.h" | ||
// #import "FirebaseABTesting/FirebaseABTesting.h" | ||
// #import "FirebaseAnalytics/FirebaseAnalytics.h" | ||
// #import "FirebaseAppCheck/FirebaseAppCheck.h" | ||
// #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
// #import <FirebaseAppDistribution/FirebaseAppDistribution.h> | ||
// #import "FirebaseAppDistribution/FirebaseAppDistribution.h" | ||
// #endif | ||
// #import <FirebaseAuth/FirebaseAuth.h> | ||
// #import <FirebaseCore/FirebaseCore.h> | ||
// #import <FirebaseCrashlytics/FirebaseCrashlytics.h> | ||
// #import <FirebaseDatabase/FirebaseDatabase.h> | ||
// #import "FirebaseAuth/FirebaseAuth.h" | ||
// #import "FirebaseCore/FirebaseCore.h" | ||
// #import "FirebaseCrashlytics/FirebaseCrashlytics.h" | ||
// #import "FirebaseDatabase/FirebaseDatabase.h" | ||
// #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
// #import <FirebaseDynamicLinks/FirebaseDynamicLinks.h> | ||
// #import "FirebaseDynamicLinks/FirebaseDynamicLinks.h" | ||
// #endif | ||
// #import <FirebaseFirestore/FirebaseFirestore.h> | ||
// #import "FirebaseFirestore/FirebaseFirestore.h" | ||
// #if (TARGET_OS_IOS || TARGET_OS_TV) && !TARGET_OS_MACCATALYST | ||
// #import <FirebaseInAppMessaging/FirebaseInAppMessaging.h> | ||
// #import "FirebaseInAppMessaging/FirebaseInAppMessaging.h" | ||
// #endif | ||
// #import <FirebaseInstallations/FirebaseInstallations.h> | ||
// #import <FirebaseMessaging/FirebaseMessaging.h> | ||
// #import "FirebaseInstallations/FirebaseInstallations.h" | ||
// #import "FirebaseMessaging/FirebaseMessaging.h" | ||
// #if (TARGET_OS_IOS && !TARGET_OS_MACCATALYST) || TARGET_OS_TV | ||
// #import <FirebasePerformance/FirebasePerformance.h> | ||
// #import "FirebasePerformance/FirebasePerformance.h" | ||
// #endif | ||
// #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h> | ||
// #import "FirebaseRemoteConfig/FirebaseRemoteConfig.h" |
Oops, something went wrong.