Skip to content

Commit 743f076

Browse files
authored
Merge branch 'main' into update-robolectric-config
2 parents bad240f + 8329493 commit 743f076

File tree

15 files changed

+61
-27
lines changed

15 files changed

+61
-27
lines changed

.github/workflows/dataconnect.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ on:
1313
pull_request:
1414
paths:
1515
- .github/workflows/dataconnect.yml
16+
- gradlew
17+
- build.gradle.kts
18+
- gradle.properties
19+
- gradlew.bat
20+
- settings.gradle.kts
21+
- subprojects.cfg
22+
- 'gradle/**'
23+
- 'plugins/**'
24+
- '!plugins/**/*.md'
1625
- 'firebase-dataconnect/**'
1726
- '!firebase-dataconnect/demo/**'
1827
- '!firebase-dataconnect/scripts/**'

.github/workflows/dataconnect_demo_app.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,19 @@ jobs:
106106
set -x
107107
firebase-dataconnect/demo/gradlew \
108108
--project-dir firebase-dataconnect/demo \
109-
--no-daemon \
110109
${{ (inputs.gradleInfoLog && '--info') || '' }} \
111110
--profile \
112111
-PdataConnect.demo.firebaseCommand=${{ env.FDC_FIREBASE_COMMAND }} \
113112
assemble test
114113
114+
- name: gradle dokkaGeneratePublicationHtml
115+
run: |
116+
set -x
117+
firebase-dataconnect/demo/gradlew \
118+
--project-dir firebase-dataconnect/demo \
119+
${{ (inputs.gradleInfoLog && '--info') || '' }} \
120+
dokkaGeneratePublicationHtml
121+
115122
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
116123
with:
117124
name: apks
@@ -126,6 +133,13 @@ jobs:
126133
if-no-files-found: warn
127134
compression-level: 9
128135

136+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
137+
with:
138+
name: ktdoc
139+
path: firebase-dataconnect/demo/build/dokka/html
140+
if-no-files-found: warn
141+
compression-level: 9
142+
129143
spotlessCheck:
130144
continue-on-error: false
131145
runs-on: ubuntu-latest

ci/fireci/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"pandas==1.5.3",
1515
"PyGithub==1.58.2",
1616
"pystache==0.6.0",
17-
"requests==2.32.2",
17+
"requests==2.32.4",
1818
"seaborn==0.12.2",
1919
"PyYAML==6.0.1",
2020
"termcolor==2.4.0",

firebase-ai/api.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,15 @@ package com.google.firebase.ai.type {
245245
}
246246

247247
public final class CountTokensResponse {
248-
ctor public CountTokensResponse(int totalTokens, Integer? totalBillableCharacters = null, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> promptTokensDetails = emptyList());
248+
ctor public CountTokensResponse(int totalTokens, @Deprecated Integer? totalBillableCharacters = null, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> promptTokensDetails = emptyList());
249249
method public operator int component1();
250250
method public operator Integer? component2();
251251
method public operator java.util.List<com.google.firebase.ai.type.ModalityTokenCount>? component3();
252252
method public java.util.List<com.google.firebase.ai.type.ModalityTokenCount> getPromptTokensDetails();
253-
method public Integer? getTotalBillableCharacters();
253+
method @Deprecated public Integer? getTotalBillableCharacters();
254254
method public int getTotalTokens();
255255
property public final java.util.List<com.google.firebase.ai.type.ModalityTokenCount> promptTokensDetails;
256-
property public final Integer? totalBillableCharacters;
256+
property @Deprecated public final Integer? totalBillableCharacters;
257257
property public final int totalTokens;
258258
}
259259

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,13 @@ internal constructor(
309309
*
310310
* Example: A field that can hold either a simple userID or a more detailed user object.
311311
*
312-
* Schema.anyOf( listOf( Schema.integer(description = "User ID"), Schema.obj(mapOf(
313-
*
314312
* ```
313+
* Schema.anyOf( listOf( Schema.integer(description = "User ID"), Schema.obj( mapOf(
315314
* "userID" to Schema.integer(description = "User ID"),
316315
* "username" to Schema.string(description = "Username")
316+
* )))
317317
* ```
318318
*
319-
* )) )
320-
*
321319
* @param schemas The list of valid schemas which could be here
322320
*/
323321
@JvmStatic

firebase-common/src/test/java/com/google/firebase/DataCollectionPreNDefaultEnabledTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.robolectric.annotation.Config;
2828

2929
@RunWith(AndroidJUnit4.class)
30-
@Config(sdk = 21)
30+
@Config(sdk = Config.OLDEST_SDK)
3131
public class DataCollectionPreNDefaultEnabledTest {
3232

3333
@Test

firebase-common/src/test/java/com/google/firebase/platforminfo/FirebasePlatformLoggingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void test_auto_atHighEnoughApiLevel() {
8787
}
8888

8989
@Test
90-
@Config(sdk = Build.VERSION_CODES.LOLLIPOP_MR1)
90+
@Config(sdk = Config.OLDEST_SDK)
9191
public void test_auto_atNotHighEnoughApiLevel() {
9292
ShadowPackageManager shadowPackageManager =
9393
shadowOf(ApplicationProvider.getApplicationContext().getPackageManager());
@@ -98,7 +98,7 @@ public void test_auto_atNotHighEnoughApiLevel() {
9898
app -> {
9999
UserAgentPublisher ua = app.get(UserAgentPublisher.class);
100100

101-
assertThat(ua.getUserAgent()).containsMatch(Pattern.compile("android-platform/($|\\s)"));
101+
assertThat(ua.getUserAgent()).containsMatch(Pattern.compile("android-installer/($|\\s)"));
102102
});
103103
}
104104

firebase-dataconnect/demo/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ plugins {
3131
// The following code in this "plugins" block can be omitted from customer
3232
// facing documentation as it is an implementation detail of this application.
3333
id("com.diffplug.spotless") version "7.0.0.BETA4"
34+
35+
id("org.jetbrains.dokka") version "2.0.0"
3436
}
3537

3638
dependencies {
@@ -55,6 +57,13 @@ dependencies {
5557
implementation("io.kotest.extensions:kotest-property-arbs:2.1.2")
5658
}
5759

60+
dokka {
61+
moduleName.set("Data Connect Demo")
62+
dokkaSourceSets.main {
63+
sourceRoots.from(layout.buildDirectory.dir("dataConnect/generatedSources/").get())
64+
}
65+
}
66+
5867
// The remaining code in this file can be omitted from customer facing
5968
// documentation. It's here just to make things compile and/or configure
6069
// optional components of the build (e.g. spotless code formatting).

firebase-dataconnect/demo/gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ android.useAndroidX=true
66

77
org.gradle.jvmargs=-Xmx2g
88

9+
// Use Dokka Gradle Plugin v2, which is technically "experimental"
10+
// but is fine for our purposes.
11+
// https://kotlinlang.org/docs/dokka-migration.html
12+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
13+
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
14+
915
// The path of the "firebase" command to use.
1016
// If not specified, then "firebase" is used, resolved using the PATH environment variable.
1117
// See build.gradle.kts for details.

firebase-storage/src/test/java/com/google/firebase/storage/AdaptiveStreamBufferTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import static org.junit.Assert.assertArrayEquals;
1818

19-
import android.os.Build;
2019
import com.google.firebase.storage.internal.AdaptiveStreamBuffer;
2120
import java.io.ByteArrayInputStream;
2221
import java.io.IOException;
@@ -30,7 +29,7 @@
3029

3130
/** Tests for {@link AdaptiveStreamBuffer}. */
3231
@RunWith(RobolectricTestRunner.class)
33-
@Config(sdk = Build.VERSION_CODES.LOLLIPOP_MR1)
32+
@Config(sdk = Config.OLDEST_SDK)
3433
public class AdaptiveStreamBufferTest {
3534

3635
@Rule public RetryRule retryRule = new RetryRule(3);

0 commit comments

Comments
 (0)