-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Use correct type for abi version code #149087
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
Use correct type for abi version code #149087
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@reidbaker as a side note, are we not linting java in the framework? or do our lint rules not catch this implicit cast from a boxed Integer to unboxed (non-nullable) int? |
|
This change seems reasonable to me at first glance, but I don't know anything about |
|
We do Lint. It is likely that what we lint on is not the right set. |
|
I was on my phone yesterday evening. This is groovy code and unfortunately we do not lint groovy code. |
|
auto label is removed for flutter/flutter/149087, due to This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
Ahh, ok, that makes sense. |
After upgrading flutter to the latest version (3.22.1), I encountered an error when building with `--split-per-abi`: ``` [ +1 ms] FAILURE: Build failed with an exception. [ ] * Where: [ ] Script '/home/runar/snap/flutter/common/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1182 [ ] * What went wrong: [ ] A problem occurred evaluating root project 'android'. [ ] > A problem occurred configuring project ':app'. [ ] > org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead ``` This PR changes the type used from `ìnt` to `Integer` which is what's used in the `ABI_VERSION` map.
After upgrading flutter to the latest version (3.22.1), I encountered an error when building with
--split-per-abi:This PR changes the type used from
ìnttoIntegerwhich is what's used in theABI_VERSIONmap.Pre-launch Checklist
///).