Skip to content

Commit 032f0bf

Browse files
Adding unit tests for InstanceID tvOS support (#2483)
1 parent 8c770f5 commit 032f0bf

File tree

37 files changed

+1062
-29
lines changed

37 files changed

+1062
-29
lines changed

Example/Firebase.xcodeproj/project.pbxproj

Lines changed: 364 additions & 2 deletions
Large diffs are not rendered by default.

Example/Firebase.xcodeproj/xcshareddata/xcschemes/AllUnitTests_tvOS.xcscheme

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@
9292
ReferencedContainer = "container:Firebase.xcodeproj">
9393
</BuildableReference>
9494
</TestableReference>
95+
<TestableReference
96+
skipped = "NO">
97+
<BuildableReference
98+
BuildableIdentifier = "primary"
99+
BlueprintIdentifier = "518854EB223066BE00CA4141"
100+
BuildableName = "InstanceID_Tests_tvOS.xctest"
101+
BlueprintName = "InstanceID_Tests_tvOS"
102+
ReferencedContainer = "container:Firebase.xcodeproj">
103+
</BuildableReference>
104+
</TestableReference>
95105
</Testables>
96106
<MacroExpansion>
97107
<BuildableReference
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1000"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "518854D42230652900CA4141"
18+
BuildableName = "InstanceID_Example_tvOS.app"
19+
BlueprintName = "InstanceID_Example_tvOS"
20+
ReferencedContainer = "container:Firebase.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "518854D42230652900CA4141"
36+
BuildableName = "InstanceID_Example_tvOS.app"
37+
BlueprintName = "InstanceID_Example_tvOS"
38+
ReferencedContainer = "container:Firebase.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "518854D42230652900CA4141"
59+
BuildableName = "InstanceID_Example_tvOS.app"
60+
BlueprintName = "InstanceID_Example_tvOS"
61+
ReferencedContainer = "container:Firebase.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<AdditionalOptions>
65+
</AdditionalOptions>
66+
</LaunchAction>
67+
<ProfileAction
68+
buildConfiguration = "Release"
69+
shouldUseLaunchSchemeArgsEnv = "YES"
70+
savedToolIdentifier = ""
71+
useCustomWorkingDirectory = "NO"
72+
debugDocumentVersioning = "YES">
73+
<BuildableProductRunnable
74+
runnableDebuggingMode = "0">
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "518854D42230652900CA4141"
78+
BuildableName = "InstanceID_Example_tvOS.app"
79+
BlueprintName = "InstanceID_Example_tvOS"
80+
ReferencedContainer = "container:Firebase.xcodeproj">
81+
</BuildableReference>
82+
</BuildableProductRunnable>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1000"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
</BuildAction>
9+
<TestAction
10+
buildConfiguration = "Debug"
11+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
12+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13+
shouldUseLaunchSchemeArgsEnv = "YES">
14+
<Testables>
15+
<TestableReference
16+
skipped = "NO">
17+
<BuildableReference
18+
BuildableIdentifier = "primary"
19+
BlueprintIdentifier = "518854EB223066BE00CA4141"
20+
BuildableName = "InstanceID_Tests_tvOS.xctest"
21+
BlueprintName = "InstanceID_Tests_tvOS"
22+
ReferencedContainer = "container:Firebase.xcodeproj">
23+
</BuildableReference>
24+
</TestableReference>
25+
</Testables>
26+
<MacroExpansion>
27+
<BuildableReference
28+
BuildableIdentifier = "primary"
29+
BlueprintIdentifier = "518854D42230652900CA4141"
30+
BuildableName = "InstanceID_Example_tvOS.app"
31+
BlueprintName = "InstanceID_Example_tvOS"
32+
ReferencedContainer = "container:Firebase.xcodeproj">
33+
</BuildableReference>
34+
</MacroExpansion>
35+
<AdditionalOptions>
36+
</AdditionalOptions>
37+
</TestAction>
38+
<LaunchAction
39+
buildConfiguration = "Debug"
40+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42+
launchStyle = "0"
43+
useCustomWorkingDirectory = "NO"
44+
ignoresPersistentStateOnLaunch = "NO"
45+
debugDocumentVersioning = "YES"
46+
debugServiceExtension = "internal"
47+
allowLocationSimulation = "YES">
48+
<AdditionalOptions>
49+
</AdditionalOptions>
50+
</LaunchAction>
51+
<ProfileAction
52+
buildConfiguration = "Release"
53+
shouldUseLaunchSchemeArgsEnv = "YES"
54+
savedToolIdentifier = ""
55+
useCustomWorkingDirectory = "NO"
56+
debugDocumentVersioning = "YES">
57+
</ProfileAction>
58+
<AnalyzeAction
59+
buildConfiguration = "Debug">
60+
</AnalyzeAction>
61+
<ArchiveAction
62+
buildConfiguration = "Release"
63+
revealArchiveInOrganizer = "YES">
64+
</ArchiveAction>
65+
</Scheme>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright 2019 Google
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#import <UIKit/UIKit.h>
16+
17+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
18+
19+
@property(strong, nonatomic) UIWindow *window;
20+
21+
@end
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Copyright 2019 Google
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#import "AppDelegate.h"
16+
17+
@interface AppDelegate ()
18+
19+
@end
20+
21+
@implementation AppDelegate
22+
23+
- (BOOL)application:(UIApplication *)application
24+
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
25+
// Override point for customization after application launch.
26+
return YES;
27+
}
28+
29+
- (void)applicationWillResignActive:(UIApplication *)application {
30+
// Sent when the application is about to move from active to inactive state. This can occur for
31+
// certain types of temporary interruptions (such as an incoming phone call or SMS message) or
32+
// when the user quits the application and it begins the transition to the background state. Use
33+
// this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.
34+
// Games should use this method to pause the game.
35+
}
36+
37+
- (void)applicationDidEnterBackground:(UIApplication *)application {
38+
// Use this method to release shared resources, save user data, invalidate timers, and store
39+
// enough application state information to restore your application to its current state in case
40+
// it is terminated later. If your application supports background execution, this method is
41+
// called instead of applicationWillTerminate: when the user quits.
42+
}
43+
44+
- (void)applicationWillEnterForeground:(UIApplication *)application {
45+
// Called as part of the transition from the background to the active state; here you can undo
46+
// many of the changes made on entering the background.
47+
}
48+
49+
- (void)applicationDidBecomeActive:(UIApplication *)application {
50+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If
51+
// the application was previously in the background, optionally refresh the user interface.
52+
}
53+
54+
- (void)applicationWillTerminate:(UIApplication *)application {
55+
// Called when the application is about to terminate. Save data if appropriate. See also
56+
// applicationDidEnterBackground:.
57+
}
58+
59+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv"
5+
}
6+
],
7+
"info" : {
8+
"version" : 1,
9+
"author" : "xcode"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "tv",
9+
"scale" : "2x"
10+
}
11+
],
12+
"info" : {
13+
"version" : 1,
14+
"author" : "xcode"
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}

0 commit comments

Comments
 (0)