-
Notifications
You must be signed in to change notification settings - Fork 473
Migrate the Glean SDK to the Rust implementation #4620
Conversation
components/service/glean/src/main/java/mozilla/components/service/glean/Glean.kt
Outdated
Show resolved
Hide resolved
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.
+r, modulo working through the ktlint/detekt errors.
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.
Is adding the binary glean-0.0.1-TESTING1.aar
to source control intentional?
Yes, it's meant to be removed after the library is available on Maven (see the TODO in the PR description) |
Sorry, I totally overlooked the TODO. This makes sense, I just thought it was weird to include a binary and wanted to make sure. |
5409fda
to
54a6643
Compare
Codecov Report
@@ Coverage Diff @@
## master #4620 +/- ##
============================================
- Coverage 81.35% 80.47% -0.89%
+ Complexity 4377 3907 -470
============================================
Files 561 511 -50
Lines 19087 17190 -1897
Branches 2782 2514 -268
============================================
- Hits 15529 13833 -1696
+ Misses 2439 2339 -100
+ Partials 1119 1018 -101
Continue to review full report at Codecov.
|
5aacd7a
to
360a47c
Compare
1f4cab0
to
ae0a1f3
Compare
7aaed8a
to
766a6b9
Compare
1e06c40
to
82620f9
Compare
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.
I built locally against this PR and even generated the Fenix APKs we used for testing and QA.
This seems to be all working.
The remaining steps:
- Remove the
mavenLocal()
line - Wait for our Maven release
- Re-base and push this PR again to trigger CI
- Squash the commits into something reasonable
dd1c78d
to
661a33e
Compare
This removes the Kotlin implementation from this repository and introduces type aliases that point to the Rust implementation, which is now a new dependency.
661a33e
to
12163f1
Compare
bors=mdboom,travis79,badboy |
4620: Migrate the Glean SDK to the Rust implementation r=Dexterp37 a=Dexterp37 This completely removes the Kotlin implementation of the Glean SDK from this repository. It introduces aliases that are used instead. Please note that integration tests keep living in this repository as part of the [Glean sample app](https://github.com/mozilla-mobile/android-components/tree/master/samples/glean/src/androidTest/java/org/mozilla/samples/glean). **Note: this is a massive PR with deletion, mostly. I'd recommend reviewing it commit-by-commit** **TODO** - [x] remove the glean binary; - [x] depend on the maven version of the Glean SDK. Co-authored-by: Alessio Placitelli <[email protected]>
Build succeeded
|
4892: Add back the @jvmoverloads to the Glean SDK public API r=Dexterp37 a=Dexterp37 This additionally adds unit testing in Java to make sure we're not regressing this again. Note: this restores the annotations that were removed by #4620 Co-authored-by: Alessio Placitelli <[email protected]>
4892: Add back the @jvmoverloads to the Glean SDK public API r=Dexterp37 a=Dexterp37 This additionally adds unit testing in Java to make sure we're not regressing this again. Note: this restores the annotations that were removed by #4620 Co-authored-by: Alessio Placitelli <[email protected]>
4892: Add back the @jvmoverloads to the Glean SDK public API r=Dexterp37 a=Dexterp37 This additionally adds unit testing in Java to make sure we're not regressing this again. Note: this restores the annotations that were removed by #4620 Co-authored-by: Alessio Placitelli <[email protected]>
This completely removes the Kotlin implementation of the Glean SDK from this repository. It introduces aliases that are used instead.
Please note that integration tests keep living in this repository as part of the Glean sample app.
Note: this is a massive PR with deletion, mostly. I'd recommend reviewing it commit-by-commit
TODO
Pull Request checklist
After merge