Skip to content

Commit df56408

Browse files
authored
Merge 615c0f2 into 1d6ab9d
2 parents 1d6ab9d + 615c0f2 commit df56408

File tree

13 files changed

+513
-0
lines changed

13 files changed

+513
-0
lines changed

firebase-sessions/test-app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/google-services.json
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<application
5+
android:allowBackup="true"
6+
android:icon="@drawable/sensor_window"
7+
android:label="@string/app_name"
8+
android:supportsRtl="true"
9+
android:theme="@style/Theme.TestApp">
10+
<activity
11+
android:exported="true"
12+
android:name=".MainActivity"
13+
android:theme="@style/Theme.TestApp.NoActionBar">
14+
<intent-filter>
15+
<action android:name="android.intent.action.MAIN" />
16+
17+
<category android:name="android.intent.category.LAUNCHER" />
18+
</intent-filter>
19+
</activity>
20+
</application>
21+
22+
</manifest>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright 2023 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.firebase.testing.sessions
18+
19+
import android.os.Bundle
20+
import android.widget.TextView
21+
import androidx.appcompat.app.AppCompatActivity
22+
23+
class MainActivity : AppCompatActivity() {
24+
override fun onCreate(savedInstanceState: Bundle?) {
25+
super.onCreate(savedInstanceState)
26+
setContentView(R.layout.activity_main)
27+
28+
findViewById<TextView>(R.id.greeting_text).text = getString(R.string.firebase_greetings)
29+
}
30+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!--
2+
~ Copyright 2023 Google LLC
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
18+
xmlns:aapt="http://schemas.android.com/aapt"
19+
android:height="108dp"
20+
android:viewportHeight="108"
21+
android:viewportWidth="108"
22+
android:width="108dp">
23+
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
24+
<aapt:attr name="android:fillColor">
25+
<gradient
26+
android:endX="85.84757"
27+
android:endY="92.4963"
28+
android:startX="42.9492"
29+
android:startY="49.59793"
30+
android:type="linear">
31+
<item
32+
android:color="#44000000"
33+
android:offset="0.0" />
34+
<item
35+
android:color="#00000000"
36+
android:offset="1.0" />
37+
</gradient>
38+
</aapt:attr>
39+
</path>
40+
<path
41+
android:fillColor="#FFFFFF"
42+
android:fillType="nonZero"
43+
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
44+
android:strokeColor="#00000000"
45+
android:strokeWidth="1" />
46+
</vector>
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright 2023 Google LLC
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
19+
android:height="108dp"
20+
android:viewportHeight="108"
21+
android:viewportWidth="108"
22+
android:width="108dp">
23+
<path
24+
android:fillColor="#3DDC84"
25+
android:pathData="M0,0h108v108h-108z" />
26+
<path
27+
android:fillColor="#00000000"
28+
android:pathData="M9,0L9,108"
29+
android:strokeColor="#33FFFFFF"
30+
android:strokeWidth="0.8" />
31+
<path
32+
android:fillColor="#00000000"
33+
android:pathData="M19,0L19,108"
34+
android:strokeColor="#33FFFFFF"
35+
android:strokeWidth="0.8" />
36+
<path
37+
android:fillColor="#00000000"
38+
android:pathData="M29,0L29,108"
39+
android:strokeColor="#33FFFFFF"
40+
android:strokeWidth="0.8" />
41+
<path
42+
android:fillColor="#00000000"
43+
android:pathData="M39,0L39,108"
44+
android:strokeColor="#33FFFFFF"
45+
android:strokeWidth="0.8" />
46+
<path
47+
android:fillColor="#00000000"
48+
android:pathData="M49,0L49,108"
49+
android:strokeColor="#33FFFFFF"
50+
android:strokeWidth="0.8" />
51+
<path
52+
android:fillColor="#00000000"
53+
android:pathData="M59,0L59,108"
54+
android:strokeColor="#33FFFFFF"
55+
android:strokeWidth="0.8" />
56+
<path
57+
android:fillColor="#00000000"
58+
android:pathData="M69,0L69,108"
59+
android:strokeColor="#33FFFFFF"
60+
android:strokeWidth="0.8" />
61+
<path
62+
android:fillColor="#00000000"
63+
android:pathData="M79,0L79,108"
64+
android:strokeColor="#33FFFFFF"
65+
android:strokeWidth="0.8" />
66+
<path
67+
android:fillColor="#00000000"
68+
android:pathData="M89,0L89,108"
69+
android:strokeColor="#33FFFFFF"
70+
android:strokeWidth="0.8" />
71+
<path
72+
android:fillColor="#00000000"
73+
android:pathData="M99,0L99,108"
74+
android:strokeColor="#33FFFFFF"
75+
android:strokeWidth="0.8" />
76+
<path
77+
android:fillColor="#00000000"
78+
android:pathData="M0,9L108,9"
79+
android:strokeColor="#33FFFFFF"
80+
android:strokeWidth="0.8" />
81+
<path
82+
android:fillColor="#00000000"
83+
android:pathData="M0,19L108,19"
84+
android:strokeColor="#33FFFFFF"
85+
android:strokeWidth="0.8" />
86+
<path
87+
android:fillColor="#00000000"
88+
android:pathData="M0,29L108,29"
89+
android:strokeColor="#33FFFFFF"
90+
android:strokeWidth="0.8" />
91+
<path
92+
android:fillColor="#00000000"
93+
android:pathData="M0,39L108,39"
94+
android:strokeColor="#33FFFFFF"
95+
android:strokeWidth="0.8" />
96+
<path
97+
android:fillColor="#00000000"
98+
android:pathData="M0,49L108,49"
99+
android:strokeColor="#33FFFFFF"
100+
android:strokeWidth="0.8" />
101+
<path
102+
android:fillColor="#00000000"
103+
android:pathData="M0,59L108,59"
104+
android:strokeColor="#33FFFFFF"
105+
android:strokeWidth="0.8" />
106+
<path
107+
android:fillColor="#00000000"
108+
android:pathData="M0,69L108,69"
109+
android:strokeColor="#33FFFFFF"
110+
android:strokeWidth="0.8" />
111+
<path
112+
android:fillColor="#00000000"
113+
android:pathData="M0,79L108,79"
114+
android:strokeColor="#33FFFFFF"
115+
android:strokeWidth="0.8" />
116+
<path
117+
android:fillColor="#00000000"
118+
android:pathData="M0,89L108,89"
119+
android:strokeColor="#33FFFFFF"
120+
android:strokeWidth="0.8" />
121+
<path
122+
android:fillColor="#00000000"
123+
android:pathData="M0,99L108,99"
124+
android:strokeColor="#33FFFFFF"
125+
android:strokeWidth="0.8" />
126+
<path
127+
android:fillColor="#00000000"
128+
android:pathData="M19,29L89,29"
129+
android:strokeColor="#33FFFFFF"
130+
android:strokeWidth="0.8" />
131+
<path
132+
android:fillColor="#00000000"
133+
android:pathData="M19,39L89,39"
134+
android:strokeColor="#33FFFFFF"
135+
android:strokeWidth="0.8" />
136+
<path
137+
android:fillColor="#00000000"
138+
android:pathData="M19,49L89,49"
139+
android:strokeColor="#33FFFFFF"
140+
android:strokeWidth="0.8" />
141+
<path
142+
android:fillColor="#00000000"
143+
android:pathData="M19,59L89,59"
144+
android:strokeColor="#33FFFFFF"
145+
android:strokeWidth="0.8" />
146+
<path
147+
android:fillColor="#00000000"
148+
android:pathData="M19,69L89,69"
149+
android:strokeColor="#33FFFFFF"
150+
android:strokeWidth="0.8" />
151+
<path
152+
android:fillColor="#00000000"
153+
android:pathData="M19,79L89,79"
154+
android:strokeColor="#33FFFFFF"
155+
android:strokeWidth="0.8" />
156+
<path
157+
android:fillColor="#00000000"
158+
android:pathData="M29,19L29,89"
159+
android:strokeColor="#33FFFFFF"
160+
android:strokeWidth="0.8" />
161+
<path
162+
android:fillColor="#00000000"
163+
android:pathData="M39,19L39,89"
164+
android:strokeColor="#33FFFFFF"
165+
android:strokeWidth="0.8" />
166+
<path
167+
android:fillColor="#00000000"
168+
android:pathData="M49,19L49,89"
169+
android:strokeColor="#33FFFFFF"
170+
android:strokeWidth="0.8" />
171+
<path
172+
android:fillColor="#00000000"
173+
android:pathData="M59,19L59,89"
174+
android:strokeColor="#33FFFFFF"
175+
android:strokeWidth="0.8" />
176+
<path
177+
android:fillColor="#00000000"
178+
android:pathData="M69,19L69,89"
179+
android:strokeColor="#33FFFFFF"
180+
android:strokeWidth="0.8" />
181+
<path
182+
android:fillColor="#00000000"
183+
android:pathData="M79,19L79,89"
184+
android:strokeColor="#33FFFFFF"
185+
android:strokeWidth="0.8" />
186+
</vector>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
~ Copyright 2023 Google LLC
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:height="24dp"
19+
android:tint="#BB86FC"
20+
android:viewportHeight="24"
21+
android:viewportWidth="24"
22+
android:width="24dp">
23+
<path
24+
android:fillColor="#FFFFFF"
25+
android:pathData="M18,4v16H6V4H18M18,2H6C4.9,2 4,2.9 4,4v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4C20,2.9 19.1,2 18,2L18,2zM7,19h10v-6H7V19zM10,10h4v1h3V5H7v6h3V10z" />
26+
</vector>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright 2023 Google LLC
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
18+
xmlns:app="http://schemas.android.com/apk/res-auto"
19+
xmlns:tools="http://schemas.android.com/tools"
20+
android:layout_width="match_parent"
21+
android:layout_height="match_parent"
22+
tools:context=".MainActivity">
23+
24+
<TextView
25+
android:id="@+id/greeting_text"
26+
android:layout_width="wrap_content"
27+
android:layout_height="wrap_content"
28+
android:text="@string/app_name"
29+
app:layout_constraintBottom_toBottomOf="parent"
30+
app:layout_constraintEnd_toEndOf="parent"
31+
app:layout_constraintStart_toStartOf="parent"
32+
app:layout_constraintTop_toTopOf="parent" />
33+
</androidx.constraintlayout.widget.ConstraintLayout>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
~ Copyright 2023 Google LLC
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<resources xmlns:tools="http://schemas.android.com/tools">
18+
<!-- Base application theme. -->
19+
<style name="Theme.TestApp" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
20+
<!-- Primary brand color. -->
21+
<item name="colorPrimary">@color/purple_200</item>
22+
<item name="colorPrimaryVariant">@color/purple_700</item>
23+
<item name="colorOnPrimary">@color/black</item>
24+
<!-- Secondary brand color. -->
25+
<item name="colorSecondary">@color/teal_200</item>
26+
<item name="colorSecondaryVariant">@color/teal_200</item>
27+
<item name="colorOnSecondary">@color/black</item>
28+
<!-- Status bar color. -->
29+
<item name="android:statusBarColor" tools:targetApi="21">?attr/colorPrimaryVariant</item>
30+
<!-- Customize your theme here. -->
31+
</style>
32+
</resources>

0 commit comments

Comments
 (0)