-
Notifications
You must be signed in to change notification settings - Fork 624
Use Dagger in firebase-appdistribution #4540
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
Conversation
Generated by 🚫 Danger |
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Startup time comparison between the CI merge commit (90564b1) and the base commit (10c1a92) are not available. No macrobenchmark data found for the base commit (10c1a92). Analysis for the CI merge commit (90564b1) can be found at: |
72ffea6
to
252b219
Compare
} | ||
|
||
@VisibleForTesting | ||
@Inject | ||
public ApkUpdater( |
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.
does this need to be public
?
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.
Definitely not! Good catch.
252b219
to
70c51bc
Compare
implementation 'javax.inject:javax.inject:1' | ||
vendor ('com.google.dagger:dagger:2.43.2') { | ||
exclude group: "javax.inject", module: "javax.inject" | ||
} | ||
annotationProcessor 'com.google.dagger:dagger-compiler:2.43.2' |
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.
please migrate to:
implementation libs.javax.inject
vendor (libs.dagger) {
exclude group: "javax.inject", module: "javax.inject"
}
annotationProcessor libs.dagger.compiler
This will ensure all sdks are aligned on the same version
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.
Fixed in followup: #4593
@Lightweight private final Executor lightweightExecutor; | ||
|
||
@Inject |
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.
For this class, and all other @Inject
classes, please ensure that @Singleton
is not required and it's ok to have different instances injected in different injection sites.
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.
Good call, fixed in followup: #4593
Based on @vkryachko 's prototype: #4380
This leaves out support for multiple
FirebaseApp
s since our SDK does not support that yet.