-
Notifications
You must be signed in to change notification settings - Fork 527
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
Fix #5195: Fix RestrictedApi Errors #5348
Conversation
…tchIsOn() as discussed , fix enable download access logic ,improve testAddProfileActivity_configChange_inputShortPin_create_pinLengthError() but still flaky
…ate function that served for MathExpressionParserViewModel.kt
There is no good replacement method for them in lower API level
Hi @XichengSpencer, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @XichengSpencer, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
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.
Thanks @XichengSpencer! Please revert the unneeded changes an re-assign.
testing/src/main/java/org/oppia/android/testing/junit/OppiaParameterizedTestRunner.kt
Outdated
Show resolved
Hide resolved
testing/src/main/java/org/oppia/android/testing/junit/OppiaParameterizedTestRunner.kt
Outdated
Show resolved
Hide resolved
testing/src/main/java/org/oppia/android/testing/junit/OppiaParameterizedTestRunner.kt
Outdated
Show resolved
Hide resolved
Hi @XichengSpencer, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
…is no good replacement method for them in lower API level" This reverts commit 0c1b62a
@XichengSpencer, please reassign if this is ready for a review. |
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.
Thanks @XichengSpencer! This LGTM.
Explanation
Fixes #5195 In the Android/Lint errors, all I can see are just NewApi Errors, which related methods are only available on API 26 and our current min API is 19.
Correct me if I am wrong, as discussed with Ben in a meeting, most errors test-related file can be fixed by adding require api annotation, and for all the changed files I think they are test related so I added annotation. I did some investigation java.util.Time replacement method and it requires to install third-party dependency, which I think adds too much complexity so I proceed with the annotation way. And for the color matcher one, I cannot find the replacement method.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: