Skip to content

Commit c361b8c

Browse files
authored
tvOS Reference Doc Changes (#583)
Update the reference docs to refer to tvOS when discussing particular methods and classes.
1 parent ffc921e commit c361b8c

File tree

14 files changed

+50
-41
lines changed

14 files changed

+50
-41
lines changed

app/src/AppOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void Dispose() { }
7272
/// file or PROJECT_ID in the GoogleService-Info.plist.
7373
public string ProjectId { get; set; }
7474

75-
/// Gets or sets the Android or iOS client project name.
75+
/// Gets or sets the Android, iOS or tvOS client project name.
7676
///
7777
/// This is the project_name in the Android google-services.json config
7878
/// file or BUNDLE_ID in the GoogleService-Info.plist.

app/src/ErrorMessages.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ internal class ErrorMessages {
4343
"* Rebuild your APK and deploy.\n";
4444

4545
private static string DEPENDENCY_NOT_FOUND_ERROR_IOS =
46-
"On iOS+ Firebase requires native (C/C++) and Cocoapod components\n" +
47-
"that are distributed with the Firebase SDK and via Cocoapods.\n" +
46+
"On iOS and tvOS Firebase requires native (C/C++) and Cocoapod\n" +
47+
"components that are distributed with the Firebase SDK and via\n" +
48+
"Cocoapods.\n" +
4849
"\n" +
4950
"It's likely that you did not include the require Cocoapod\n" +
5051
"dependencies for Firebase in your Unity project.\n" +
@@ -56,8 +57,8 @@ internal class ErrorMessages {
5657
" iOS Resolver -> Settings'\n" +
5758
"* In the iOS Resolver settings check 'Podfile Generation' and\n" +
5859
" 'Add Cocoapods to Generated Xcode Project'.\n" +
59-
"* Build your iOS project and check the Unity console for any\n" +
60-
" errors associated with Cocoapod tool execution.\n" +
60+
"* Build your iOS or tvOS project and check the Unity console for\n" +
61+
" any errors associated with Cocoapod tool execution.\n" +
6162
" You will need to correctly install Cocoapods tools to generate\n" +
6263
" a working build.\n";
6364

@@ -84,7 +85,7 @@ internal class ErrorMessages {
8485

8586
private static string DLL_NOT_FOUND_ERROR_IOS =
8687
"A Firebase static library (e.g libApp.a) was not linked with your\n" +
87-
"iOS application.\n";
88+
"iOS or tvOS application.\n";
8889

8990
private static string DLL_NOT_FOUND_ERROR_GENERIC =
9091
"A Firebase shared library (.dll / .so) could not be loaded.\n";

app/src/swig/app.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static firebase::AppOptions* AppOptionsLoadFromJsonConfig(const char* config) {
479479
/// @endcode
480480
/// @endif
481481
///
482-
/// or on iOS to your Info.plist:
482+
/// or on iOS or tvOS to your Info.plist:
483483
///
484484
/// @if NOT_DOXYGEN
485485
/// <key>FirebaseDataCollectionDefaultEnabled</key>

app/src/swig/future.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ namespace firebase {
250250
%define %SWIG_FUTURE_FOOTER(CSNAME, CSTYPE, CTYPE)
251251
public delegate void Action();
252252

253-
// On iOS, in order to marshal a delegate from C#, it needs both a
253+
// On iOS and tvOS, in order to marshal a delegate from C#, it needs both a
254254
// MonoPInvokeCallback attribute, and be static.
255255
// Because of this need to be static, the instanced callbacks need to be
256256
// saved in a way that can be obtained later, hence the use of a static

auth/src/PhoneAuthProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ namespace Firebase.Auth {
2323
/// Allows developers to use the phone number and SMS verification codes
2424
/// to authenticate a user.
2525
///
26+
/// This class is not supported on tvOS and Desktop platforms.
27+
///
2628
/// The verification flow results in a Credential that can be used to,
2729
/// * Sign in to an existing phone number account/sign up with a new
2830
/// phone number

auth/src/swig/auth.i

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,9 @@ static CppInstanceManager<Auth> g_auth_instances;
473473

474474
/// Sign-in a user authenticated via a federated auth provider.
475475
///
476-
/// @note: This operation is supported only on iOS and Android platforms. On
477-
/// non-mobile platforms this method will return a Future with a preset error
478-
/// code: kAuthErrorUnimplemented.
476+
/// @note: This operation is supported only on iOS, tvOS and Android
477+
/// platforms. On other platforms this method will return a Future with a
478+
/// preset error code: kAuthErrorUnimplemented.
479479
public System.Threading.Tasks.Task<SignInResult> SignInWithProviderAsync(
480480
FederatedAuthProvider provider) {
481481
ThrowIfNull();
@@ -1087,9 +1087,9 @@ static CppInstanceManager<Auth> g_auth_instances;
10871087

10881088
/// Reauthenticate a user via a federated auth provider.
10891089
///
1090-
/// @note: This operation is supported only on iOS and Android platforms. On
1091-
/// non-mobile platforms this method will return a Future with a preset error
1092-
/// code: kAuthErrorUnimplemented.
1090+
/// @note: This operation is supported only on iOS, tvOS and Android
1091+
/// platforms. On other platforms this method will return a Future with a
1092+
/// preset error code: kAuthErrorUnimplemented.
10931093
public System.Threading.Tasks.Task<SignInResult>
10941094
ReauthenticateWithProviderAsync(FederatedAuthProvider provider) {
10951095
ThrowIfNull();
@@ -1110,9 +1110,9 @@ static CppInstanceManager<Auth> g_auth_instances;
11101110

11111111
/// Link a user via a federated auth provider.
11121112
///
1113-
/// @note: This operation is supported only on iOS and Android platforms. On
1114-
/// non-mobile platforms this method will return a Future with a preset error
1115-
/// code: kAuthErrorUnimplemented.
1113+
/// @note: This operation is supported only on iOS, tvOS and Android
1114+
/// platforms. On other platforms this method will return a Future with a
1115+
/// preset error code: kAuthErrorUnimplemented.
11161116
public System.Threading.Tasks.Task<SignInResult> LinkWithProviderAsync(
11171117
FederatedAuthProvider provider) {
11181118
ThrowIfNull();

crashlytics/src/IOSImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal struct Frame
3434
}
3535

3636

37-
// Stub implementation that is not used on iOS.
37+
// Stub implementation that is not used on iOS or tvOS.
3838
internal class AndroidImpl : Impl {}
3939

4040
//TODO(b/112043008): These extern symbols aren't available for Android builds.

crashlytics/src/Metadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Firebase.Crashlytics {
2222
/// Represents the Unity-specific metadata object that is transformed into JSON.
2323
///
2424
/// Metadata keys are acronyms to save space as there are limits to the maximum size of Keys in
25-
/// the Android and iOS SDK.
25+
/// the Android, iOS and tvOS SDKs.
2626
/// </summary>
2727
internal class Metadata {
2828
// unityVersion: Version of Unity Engine

crashlytics/testapp/Assets/Firebase/Sample/Crashlytics/UIHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ void InitializeFirebase() {
6363
// End our session when the program exits.
6464
void OnDestroy() { }
6565

66-
// Causes an error that will crash the app at the platform level (Android or iOS)
66+
// Causes an error that will crash the app at the platform level (Android,
67+
// iOS or tvOS)
6768
public void ThrowUncaughtException() {
6869
DebugLog("Causing a platform crash.");
6970
throw new InvalidOperationException("Uncaught exception created from UI.");

database/src/Query.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public Query EqualTo(bool value) {
351351
/// Create a query constrained to only return the child node with the given key and value.
352352
/// Note that there is at most one such child as names are unique. <br />
353353
/// <br />
354-
/// <b>Known issue</b> This currently does not work properly on iOS. Please use
354+
/// <b>Known issue</b> This currently does not work properly on iOS and tvOS. Please use
355355
/// EqualTo(string value) instead.
356356
/// </remarks>
357357
/// <param name="value">The value to query for</param>
@@ -368,7 +368,7 @@ public Query EqualTo(string value, string key) {
368368
/// Create a query constrained to only return the child node with the given key and value.
369369
/// Note that there is at most one such child as keys are unique. <br />
370370
/// <br />
371-
/// <b>Known issue</b> This currently does not work properly on iOS. Please use
371+
/// <b>Known issue</b> This currently does not work properly on iOS and tvOS. Please use
372372
/// EqualTo(double value) instead.
373373
/// </remarks>
374374
/// <param name="value">The value to query for</param>
@@ -385,7 +385,7 @@ public Query EqualTo(double value, string key) {
385385
/// Create a query constrained to only return the child node with the given key and value.
386386
/// Note that there is at most one such child as keys are unique. <br />
387387
/// <br />
388-
/// <b>Known issue</b> This currently does not work properly on iOS. Please use
388+
/// <b>Known issue</b> This currently does not work properly on iOS and tvOS. Please use
389389
/// EqualTo(bool value) instead.
390390
/// </remarks>
391391
/// <param name="value">The value to query for</param>

0 commit comments

Comments
 (0)