Skip to content

Commit 5ea23da

Browse files
author
Stewart Miles
committed
Integrate Latest @ 139483111
- Fixed SDK links and removed reference to Firebase App in sample readmes. - Moved control panel into a scroll view for devices with low resolutions. CL: 139483111
1 parent f3fd5bb commit 5ea23da

File tree

11 files changed

+71
-70
lines changed

11 files changed

+71
-70
lines changed

analytics/testapp/Assets/TestApp/UIHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
public class UIHandler : MonoBehaviour {
2727

2828
public GUISkin fb_GUISkin;
29+
private Vector2 controlsScrollViewVector = Vector2.zero;
2930
private Vector2 scrollViewVector = Vector2.zero;
3031
bool UIEnabled = true;
3132
private string logText = "";
@@ -149,6 +150,8 @@ void GUIDisplayLog() {
149150
// Render the buttons and other controls.
150151
void GUIDisplayControls(){
151152
if (UIEnabled) {
153+
controlsScrollViewVector =
154+
GUILayout.BeginScrollView(controlsScrollViewVector);
152155
GUILayout.BeginVertical();
153156

154157
if (GUILayout.Button("Log Login")) {
@@ -167,6 +170,7 @@ void GUIDisplayControls(){
167170
AnalyticsLevelUp();
168171
}
169172
GUILayout.EndVertical();
173+
GUILayout.EndScrollView();
170174
}
171175
}
172176

analytics/testapp/readme.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The Firebase Analytics Unity Sample demonstrates logging a range of different
44
events using [Firebase Analytics](https://firebase.google.com/docs/analytics/)
55
with the
6-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz).
6+
[Firebase Unity SDK](https://firebase.google.com/docs/unity/setup).
77

88

99
## Requirements
@@ -35,7 +35,8 @@ with the
3535
- For further details please refer to the
3636
[general instructions](https://firebase.google.com/docs/ios/setup)
3737
which describes how to configure a Firebase application for iOS.
38-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
38+
- Download the
39+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
3940
and unzip it somewhere convenient.
4041
- Open the sample project in the Unity editor.
4142
- Select the `File > Open Project` menu item.
@@ -45,15 +46,11 @@ with the
4546
- Open the scene `MainScene`.
4647
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
4748
- Double click on `MainScene` file to open.
48-
- Import the `Firebase App` plugin.
49-
- Select the `Assets > Import Package > Custom Package` menu item.
50-
- Import `FirebaseApp.unitypackage` from the
51-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
52-
- Click the `Import` when the `Import Unity Package` window appears.
5349
- Import the `Firebase Analytics` plugin.
5450
- Select the `Assets > Import Package > Custom Package` menu item.
5551
- Import `FirebaseAnalytics.unitypackage` from the
56-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
52+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
53+
downloaded previously.
5754
- Click the `Import` when the `Import Unity Package` window appears.
5855
- Add the `GoogleService-Info.plist` file to the project.
5956
- Navigate to the `Assets\TestApp` folder in the `Project` window.
@@ -110,7 +107,8 @@ with the
110107
- For further details please refer to the
111108
[general instructions](https://firebase.google.com/docs/android/setup)
112109
which describes how to configure a Firebase application for Android.
113-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
110+
- Download the
111+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
114112
and unzip it somewhere convenient.
115113
- Open the sample project in the Unity editor.
116114
- Select the `File > Open Project` menu item.
@@ -120,15 +118,11 @@ with the
120118
- Open the scene `MainScene`.
121119
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
122120
- Double click on `MainScene` file to open.
123-
- Import the `Firebase App` plugin.
124-
- Select the `Assets > Import Package > Custom Package` menu item.
125-
- Import `FirebaseApp.unitypackage` from the
126-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
127-
- Click the `Import` when the `Import Unity Package` window appears.
128121
- Import the `Firebase Analytics` plugin.
129122
- Select the `Assets > Import Package > Custom Package` menu item.
130123
- Import `FirebaseAnalytics.unitypackage` from the
131-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
124+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
125+
downloaded previously.
132126
- Click the `Import` when the `Import Unity Package` window appears.
133127
- Add the `google-services.json` file to the project.
134128
- Navigate to the `Assets\TestApp` folder in the `Project` window.

auth/testapp/Assets/TestApp/UIHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class UIHandler : MonoBehaviour {
3535
// NOTE: In some versions of Unity the password input box does not work in
3636
// iOS simulators.
3737
public bool usePasswordInput = false;
38+
private Vector2 controlsScrollViewVector = Vector2.zero;
3839
private Vector2 scrollViewVector = Vector2.zero;
3940
bool UIEnabled = true;
4041

@@ -212,14 +213,16 @@ void HandleDeleteResult(Task authTask) {
212213

213214
// Render the log output in a scroll view.
214215
void GUIDisplayLog() {
215-
scrollViewVector = GUILayout.BeginScrollView (scrollViewVector);
216+
scrollViewVector = GUILayout.BeginScrollView(scrollViewVector);
216217
GUILayout.Label(logText);
217218
GUILayout.EndScrollView();
218219
}
219220

220221
// Render the buttons and other controls.
221222
void GUIDisplayControls(){
222223
if (UIEnabled) {
224+
controlsScrollViewVector =
225+
GUILayout.BeginScrollView(controlsScrollViewVector);
223226
GUILayout.BeginVertical();
224227
GUILayout.BeginHorizontal();
225228
GUILayout.Label("Email:", GUILayout.Width(Screen.width * 0.20f));
@@ -252,6 +255,7 @@ void GUIDisplayControls(){
252255
DeleteUser();
253256
}
254257
GUILayout.EndVertical();
258+
GUILayout.EndScrollView();
255259
}
256260
}
257261

auth/testapp/readme.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Firebase Auth Unity Sample demonstrates user authentication and
44
user profile operations using
55
[Firebase Authentication](https://firebase.google.com/docs/auth/)
66
with the
7-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz).
7+
[Firebase Unity SDK](https://firebase.google.com/docs/unity/setup).
88

99

1010
## Requirements
@@ -41,7 +41,8 @@ with the
4141
- For further details please refer to the
4242
[general instructions](https://firebase.google.com/docs/ios/setup)
4343
which describes how to configure a Firebase application for iOS.
44-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
44+
- Download the
45+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
4546
and unzip it somewhere convenient.
4647
- Open the sample project in the Unity editor.
4748
- Select the `File > Open Project` menu item.
@@ -51,15 +52,11 @@ with the
5152
- Open the scene `MainScene`.
5253
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
5354
- Double click on `MainScene` file to open.
54-
- Import the `Firebase App` plugin.
55-
- Select the `Assets > Import Package > Custom Package` menu item.
56-
- Import `FirebaseApp.unitypackage` from the
57-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
58-
- Click the `Import` when the `Import Unity Package` window appears.
5955
- Import the `Firebase Auth` plugin.
6056
- Select the `Assets > Import Package > Custom Package` menu item.
6157
- Import `FirebaseAuth.unitypackage` from the
62-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
58+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
59+
downloaded previously.
6360
- Click the `Import` when the `Import Unity Package` window appears.
6461
- Add the `GoogleService-Info.plist` file to the project.
6562
- Navigate to the `Assets\TestApp` folder in the `Project` window.
@@ -121,7 +118,8 @@ with the
121118
- For further details please refer to the
122119
[general instructions](https://firebase.google.com/docs/android/setup)
123120
which describes how to configure a Firebase application for Android.
124-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
121+
- Download the
122+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
125123
and unzip it somewhere convenient.
126124
- Open the sample project in the Unity editor.
127125
- Select the `File > Open Project` menu item.
@@ -131,15 +129,11 @@ with the
131129
- Open the scene `MainScene`.
132130
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
133131
- Double click on `MainScene` file to open.
134-
- Import the `Firebase App` plugin.
135-
- Select the `Assets > Import Package > Custom Package` menu item.
136-
- Import `FirebaseApp.unitypackage` from the
137-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
138-
- Click the `Import` when the `Import Unity Package` window appears.
139132
- Import the `Firebase Auth` plugin.
140133
- Select the `Assets > Import Package > Custom Package` menu item.
141134
- Import `FirebaseAuth.unitypackage` from the
142-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
135+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
136+
downloaded previously.
143137
- Click the `Import` when the `Import Unity Package` window appears.
144138
- Add the `google-services.json` file to the project.
145139
- Navigate to the `Assets\TestApp` folder in the `Project` window.

database/testapp/Assets/TestApp/UIHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class UIHandler : MonoBehaviour {
2929

3030
ArrayList leaderBoard;
3131
Vector2 scrollPosition = Vector2.zero;
32+
private Vector2 controlsScrollViewVector = Vector2.zero;
3233

3334
public GUISkin fb_GUISkin;
3435

@@ -184,6 +185,8 @@ void GUIDisplayLog() {
184185
// Render the buttons and other controls.
185186
void GUIDisplayControls() {
186187
if (UIEnabled) {
188+
controlsScrollViewVector =
189+
GUILayout.BeginScrollView(controlsScrollViewVector);
187190
GUILayout.BeginVertical();
188191
GUILayout.BeginHorizontal();
189192
GUILayout.Label("Email:", GUILayout.Width(Screen.width * 0.20f));
@@ -203,6 +206,7 @@ void GUIDisplayControls() {
203206
AddScore();
204207
}
205208
GUILayout.EndVertical();
209+
GUILayout.EndScrollView();
206210
}
207211
}
208212

database/testapp/readme.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The Firebase Database Unity Sample demonstrates
44
[Firebase Realtime Database](https://firebase.google.com/docs/database/)
55
with the
6-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
6+
[Firebase Unity SDK](https://firebase.google.com/docs/unity/setup)
77
inside the Unity Editor.
88

99
## Requirements
@@ -12,7 +12,8 @@ inside the Unity Editor.
1212

1313
## Running the Sample inside the Editor
1414

15-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
15+
- Download the
16+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
1617
and unzip it somewhere convenient.
1718
- Open the sample project in the Unity editor.
1819
- Select the `File > Open Project` menu item.
@@ -25,12 +26,14 @@ inside the Unity Editor.
2526
- Import the `Firebase Auth` plugin.
2627
- Select the `Assets > Import Package > Custom Package` menu item.
2728
- Import `FirebaseAuth.unitypackage` from the
28-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
29+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
30+
downloaded previously.
2931
- Click the `Import` when the `Import Unity Package` window appears.
3032
- Import the `Firebase Database` plugin.
3133
- Select the `Assets > Import Package > Custom Package` menu item.
3234
- Import `FirebaseDatabase.unitypackage` from the
33-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
35+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
36+
downloaded previously.
3437
- Click the `Import` when the `Import Unity Package` window appears.
3538
- Turn off secure access. [Configure your rules for public access.](https://firebase.google.com/docs/database/security/quickstart#sample-rules)
3639
- Change the line `SetEditorDatabaseUrl("https://YOUR-FIREBASE-APP.firebaseio.com/");`

invites/testapp/Assets/TestApp/UIHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
public class UIHandler : MonoBehaviour {
2525

2626
public GUISkin fb_GUISkin;
27+
private Vector2 controlsScrollViewVector = Vector2.zero;
2728
private Vector2 scrollViewVector = Vector2.zero;
2829
bool UIEnabled = true;
2930
private string logText = "";
@@ -160,13 +161,16 @@ void GUIDisplayLog() {
160161
// Render the buttons and other controls.
161162
void GUIDisplayControls() {
162163
if (UIEnabled) {
164+
controlsScrollViewVector =
165+
GUILayout.BeginScrollView(controlsScrollViewVector);
163166
GUILayout.BeginVertical();
164167

165168
if (GUILayout.Button("Send Invite")) {
166169
SendInvite();
167170
}
168171

169172
GUILayout.EndVertical();
173+
GUILayout.EndScrollView();
170174
}
171175
}
172176

invites/testapp/readme.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Firebase Dynamic Links and Invites Unity Sample demonstrates sending and
44
receiving [Firebase Invites](https://firebase.google.com/docs/invites/) and
55
[Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links/)
66
using the
7-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz).
7+
[Firebase Unity SDK](https://firebase.google.com/docs/unity/setup).
88

99

1010
## Requirements
@@ -36,7 +36,8 @@ using the
3636
- For further details please refer to the
3737
[general instructions](https://firebase.google.com/docs/ios/setup)
3838
which describes how to configure a Firebase application for iOS.
39-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
39+
- Download the
40+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
4041
and unzip it somewhere convenient.
4142
- Open the sample project in the Unity editor.
4243
- Select the `File > Open Project` menu item.
@@ -46,15 +47,11 @@ using the
4647
- Open the scene `MainScene`.
4748
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
4849
- Double click on `MainScene` file to open.
49-
- Import the `Firebase App` plugin.
50-
- Select the `Assets > Import Package > Custom Package` menu item.
51-
- Import `FirebaseApp.unitypackage` from the
52-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
53-
- Click the `Import` when the `Import Unity Package` window appears.
5450
- Import the `Firebase Invites and Dynamic Links` plugin.
5551
- Select the `Assets > Import Package > Custom Package` menu item.
5652
- Import `FirebaseInvites.unitypackage` from the
57-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
53+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
54+
downloaded previously.
5855
- Click the `Import` when the `Import Unity Package` window appears.
5956
- Add the `GoogleService-Info.plist` file to the project.
6057
- Navigate to the `Assets\TestApp` folder in the `Project` window.
@@ -111,7 +108,8 @@ using the
111108
- For further details please refer to the
112109
[general instructions](https://firebase.google.com/docs/android/setup)
113110
which describes how to configure a Firebase application for Android.
114-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
111+
- Download the
112+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
115113
and unzip it somewhere convenient.
116114
- Open the sample project in the Unity editor.
117115
- Select the `File > Open Project` menu item.
@@ -121,15 +119,11 @@ using the
121119
- Open the scene `MainScene`.
122120
- Navigate to `Assets/TestApp/MainScene` in the `Project` window.
123121
- Double click on `MainScene` file to open.
124-
- Import the `Firebase App` plugin.
125-
- Select the `Assets > Import Package > Custom Package` menu item.
126-
- Import `FirebaseApp.unitypackage` from the
127-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
128-
- Click the `Import` when the `Import Unity Package` window appears.
129122
- Import the `Firebase Invites and Dynamic Links` plugin.
130123
- Select the `Assets > Import Package > Custom Package` menu item.
131124
- Import `FirebaseInvites.unitypackage` from the
132-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
125+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
126+
downloaded previously.
133127
- Click the `Import` when the `Import Unity Package` window appears.
134128
- Add the `google-services.json` file to the project.
135129
- Navigate to the `Assets\TestApp` folder in the `Project` window.

messaging/testapp/readme.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Firebase Messaging Unity Sample demonstrates receiving messages from
44
from
55
[Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/)
66
using the
7-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz).
7+
[Firebase Unity SDK](https://firebase.google.com/docs/unity/setup).
88

99

1010
## Requirements
@@ -46,7 +46,7 @@ using the
4646
- For further details please refer to the
4747
[general instructions](https://firebase.google.com/docs/ios/setup)
4848
which describes how to configure a Firebase application for iOS.
49-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
49+
- Download the [Firebase Unity SDK](https://firebase.google.com/download/unity)
5050
and unzip it somewhere convenient.
5151
- Open the sample project in the Unity editor.
5252
- Select the `File > Open Project` menu item.
@@ -59,7 +59,8 @@ using the
5959
- Import the `Firebase Messaging` plugin.
6060
- Select the `Assets > Import Package > Custom Package` menu item.
6161
- Import `FirebaseMessaging.unitypackage` from the
62-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
62+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
63+
downloaded previously.
6364
- Click the `Import` when the `Import Unity Package` window appears.
6465
- Add the `GoogleService-Info.plist` file to the project.
6566
- Navigate to the `Assets\TestApp` folder in the `Project` window.
@@ -126,7 +127,8 @@ using the
126127
- For further details please refer to the
127128
[general instructions](https://firebase.google.com/docs/android/setup)
128129
which describes how to configure a Firebase application for Android.
129-
- Download the [Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz)
130+
- Download the
131+
[Firebase Unity SDK](https://firebase.google.com/download/unity)
130132
and unzip it somewhere convenient.
131133
- Open the sample project in the Unity editor.
132134
- Select the `File > Open Project` menu item.
@@ -139,7 +141,8 @@ using the
139141
- Import the `Firebase Messaging` plugin.
140142
- Select the `Assets > Import Package > Custom Package` menu item.
141143
- Import `FirebaseMessaging.unitypackage` from the
142-
[Firebase Unity SDK](https://dev-partners.googlesource.com/unity-firebase/+archive/zip.tar.gz), downloaded previously.
144+
[Firebase Unity SDK](https://firebase.google.com/download/unity),
145+
downloaded previously.
143146
- Click the `Import` when the `Import Unity Package` window appears.
144147
- Add the `google-services.json` file to the project.
145148
- Navigate to the `Assets\TestApp` folder in the `Project` window.

0 commit comments

Comments
 (0)