-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust Functions getters to be Kotlin source compatible #6530
Conversation
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/functions/HttpsCallableResult.html 2024-11-25 21:12:58.307279339 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/functions/HttpsCallableResult.html 2024-11-25 21:10:28.590811067 +0000
@@ -21,6 +21,28 @@
</colgroup>
<thead>
<tr>
+ <th colspan="100%"><h3>Public fields</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code>final <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a></code></td>
+ <td>
+ <div><code><a href="/docs/reference/android/com/google/firebase/functions/HttpsCallableResult.html#data()">data</a></code></div>
+ <p>The data that was returned from the Callable HTTPS trigger.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
<th colspan="100%"><h3>Public methods</h3></th>
</tr>
</thead>
@@ -36,12 +58,21 @@
</table>
</div>
<div class="list">
+ <h2>Public fields</h2>
+ <div class="api-item"><a name="getData()"></a><a name="setData()"></a><a name="getData--"></a><a name="setData--"></a>
+ <h3 class="api-name" id="data()">data</h3>
+ <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a> <a href="/docs/reference/android/com/google/firebase/functions/HttpsCallableResult.html#data()">data</a></pre>
+ <p>The data that was returned from the Callable HTTPS trigger.</p>
+ <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a <code>List<Object></code>. If your trigger returned a JavaScript object with keys and values, this object would be a <code>Map<String, Object></code>.</p>
+ </div>
+ </div>
+ <div class="list">
<h2>Public methods</h2>
<div class="api-item"><a name="getData--"></a><a name="getdata"></a>
<h3 class="api-name" id="getData()">getData</h3>
<pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a> <a href="/docs/reference/android/com/google/firebase/functions/HttpsCallableResult.html#getData()">getData</a>()</pre>
<p>Returns the data that was returned from the Callable HTTPS trigger.</p>
- <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a List<Object>. If your trigger returned a JavaScript object with keys and values, this object would be a Map.</p>
+ <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a <code>List<Object></code>. If your trigger returned a JavaScript object with keys and values, this object would be a <code>Map<String, Object></code>.</p>
</div>
</div>
</body> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/functions/HttpsCallableResult.html 2024-11-25 21:12:58.295279301 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/functions/HttpsCallableResult.html 2024-11-25 21:10:28.578811030 +0000
@@ -35,13 +35,44 @@
</tbody>
</table>
</div>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%"><h3>Public properties</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</code></td>
+ <td>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/functions/HttpsCallableResult.html#data()">data</a></code></div>
+ <p>The data that was returned from the Callable HTTPS trigger.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
<div class="list">
<h2>Public functions</h2>
<div class="api-item"><a name="getData--"></a><a name="getdata"></a>
<h3 class="api-name" id="getData()">getData</h3>
<pre class="api-signature no-pretty-print">fun <a href="/docs/reference/kotlin/com/google/firebase/functions/HttpsCallableResult.html#getData()">getData</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</pre>
<p>Returns the data that was returned from the Callable HTTPS trigger.</p>
- <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a List<Object>. If your trigger returned a JavaScript object with keys and values, this object would be a Map.</p>
+ <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a <code>List<Object></code>. If your trigger returned a JavaScript object with keys and values, this object would be a <code>Map<String, Object></code>.</p>
+ </div>
+ </div>
+ <div class="list">
+ <h2>Public properties</h2>
+ <div class="api-item"><a name="getData()"></a><a name="setData()"></a><a name="getData--"></a><a name="setData--"></a>
+ <h3 class="api-name" id="data()">data</h3>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/functions/HttpsCallableResult.html#data()">data</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</pre>
+ <p>The data that was returned from the Callable HTTPS trigger.</p>
+ <p>The data is in the form of native Java objects. For example, if your trigger returned an array, this object would be a <code>List<Object></code>. If your trigger returned a JavaScript object with keys and values, this object would be a <code>Map<String, Object></code>.</p>
</div>
</div>
</body> |
Vertex AI Mock Responses Check
|
Coverage Report 1Affected ProductsNo changes between base commit (1b24b82) and merge commit (2e7b8bc).Test Logs |
Test Results20 files - 1 016 20 suites - 1 016 36s ⏱️ - 36m 8s Results for commit a1b1cfb. ± Comparison against base commit 1b24b82. This pull request removes 5850 tests.
♻️ This comment has been updated with latest results. |
Size Report 1Affected ProductsTest Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to fix the instrumentation tests
Also, please reference #6522 |
To avoid a breaking change, we'd have to use /** The result of calling a HttpsCallableReference function. */
public class HttpsCallableResult
internal constructor(
/** Backing field for [getData]. */
@JvmSynthetic @JvmField public val data: Any?
) {
/**
* Returns the data that was returned from the Callable HTTPS trigger.
*
* The data is in the form of native Java objects. For example, if your trigger returned an array,
* this object would be a List<Object>. If your trigger returned a JavaScript object with keys and
* values, this object would be a Map<String, Object>.
*/
public fun getData(): Any? {
return data
}
}
This will allow kotlin consumers to call But Java consumers can also call We can block java consumers from using it by using Seeing as how removing |
SGTM |
The public api surface has changed for the subproject firebase-functions: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
No description provided.