Skip to content
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

Auto transform #5221

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

Auto transform #5221

wants to merge 34 commits into from

Conversation

VinayGuthal
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Release note changes

No release note changes were detected. If you made changes that should be
present in the next release, ensure you've added an entry in the appropriate
CHANGELOG.md file(s).

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

buildSrc Test Results

33 tests   33 ✔️  1m 39s ⏱️
  7 suites    0 💤
  7 files      0

Results for commit f2ce0ce.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

1 similar comment
@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Unit Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit ae586d6. ± Comparison against base commit dff55b6.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 2, 2023

Size Report 1

Affected Products

  • firebase-common

    TypeBase (177c51f)Merge (f2bab13)Diff
    aar75.7 kB87.9 kB+12.1 kB (+16.0%)
    apk (aggressive)112 kB123 kB+11.8 kB (+10.5%)
    apk (release)1.26 MB1.64 MB+377 kB (+29.9%)
  • firebase-common-ktx

    TypeBase (177c51f)Merge (f2bab13)Diff
    aar13.3 kB4.72 kB-8.62 kB (-64.6%)
    apk (aggressive)123 kB124 kB+444 B (+0.4%)
    apk (release)1.64 MB1.64 MB+1.74 kB (+0.1%)
  • firebase-components

    TypeBase (177c51f)Merge (f2bab13)Diff
    aar45.1 kB45.8 kB+657 B (+1.5%)
    apk (release)596 kB596 kB+148 B (+0.0%)
  • firebase-crashlytics

    TypeBase (177c51f)Merge (f2bab13)Diff
    aar357 kB357 kB+15 B (+0.0%)
    apk (aggressive)432 kB432 kB+20 B (+0.0%)
    apk (release)2.17 MB2.17 MB+20 B (+0.0%)
  • firebase-crashlytics-ktx

    TypeBase (177c51f)Merge (f2bab13)Diff
    apk (aggressive)433 kB433 kB+20 B (+0.0%)
    apk (release)2.17 MB2.17 MB+20 B (+0.0%)
  • firebase-crashlytics-ndk

    TypeBase (177c51f)Merge (f2bab13)Diff
    apk (aggressive / arm64-v8a)1.60 MB1.60 MB+24 B (+0.0%)
    apk (aggressive / armeabi-v7a)1.08 MB1.08 MB+24 B (+0.0%)
    apk (aggressive / x86)1.58 MB1.58 MB+24 B (+0.0%)
    apk (aggressive / x86_64)1.64 MB1.64 MB+24 B (+0.0%)
    apk (release / arm64-v8a)3.33 MB3.33 MB+24 B (+0.0%)
    apk (release / armeabi-v7a)2.81 MB2.81 MB+24 B (+0.0%)
    apk (release / x86)3.32 MB3.32 MB+24 B (+0.0%)
    apk (release / x86_64)3.38 MB3.38 MB+24 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/6I5nNh1UKo.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 2, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 2, 2023

Startup Time Report 1

The report is too large (122,599 chars) to be displayed on GitHub. Please check this report on GCS.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/aqIvPkNEQ3/index.html

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@@ -0,0 +1,321 @@
package com.google.firebase.gradle.plugins
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyright


fun getSymbol(line: String): String {
val parts = line.split(" ")
if (parts.get(0) == "val" || parts.get(0) == "class") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use when to make it clearer

var output: String = ""
var ignore = false
for (c in line) {
if (c == ':') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also when

}

fun copyDir(src: Path, dest: Path) {
Files.walk(src).forEach {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forEach is usually when you have an already existing chain of operations. Otherwise, an ol'good for loop is better.

}

fun deprecateKTX(src: String, pkgName: String) {
File(src).walk().forEach {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

output.add(lines[i])
if (lines[i].contains("*/")) {
var symbol = ""
var ctr = i + 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what ctr stands for

Copy link
Contributor Author

@VinayGuthal VinayGuthal Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it basically indicates the number of { - number of }.. This is basically to handle the exclude part in the dependencies

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we can come up with a better naming... not sure what though :-)

}
}

fun readDependencies(path: String): List<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can read the whole file in a string, then find dependencies { and then start processing it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore since it's not going to be merged to master.

@@ -0,0 +1,29 @@
// Copyright 2023 Google LLC
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about legacyRegistrar?

@rlazo
Copy link
Collaborator

rlazo commented Aug 9, 2023

Just to keep record: we still want to keep most of the tests in the KTX artifact to make sure usage of the api works for people not migrating.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@rlazo
Copy link
Collaborator

rlazo commented Aug 10, 2023

Just to keep record: we still want to keep most of the tests in the KTX artifact to make sure usage of the api works for people not migrating.

This is WAI, please ignore.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

@VinayGuthal VinayGuthal changed the base branch from Android_Packaging to master August 24, 2023 17:37
@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-common_ktx:
error: Removed class com.google.firebase.ktx.Firebase [RemovedClass]
error: Removed class com.google.firebase.ktx.FirebaseKt [RemovedClass]
error: Added class com.google.firebase.ktx.LoggingKt [AddedClass]

The public api surface has changed for the subproject firebase-common:
error: Added class com.google.firebase.Firebase [AddedClass]
error: Added class com.google.firebase.FirebaseKt [AddedClass]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants