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

Gradle lintage #17338

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Gradle lintage #17338

merged 3 commits into from
Nov 1, 2024

Conversation

mikehardy
Copy link
Member

@mikehardy mikehardy commented Oct 31, 2024

Purpose / Description

When there's too much noise I can't see the signal, so took a pass at quieting our build down

Also, we're ready for gradle 9 now

Fixes

Nothing logged - but the final result is that there are zero gradle warnings except about tools:replace not replacing anything

Approach

Ran all the main build targets with --warning-mode=all and fixed them, also looked at the manifest merger warnings

How Has This Been Tested?

By re-running the tasks, and checking file perms on pre-commit hook

Learning (optional, can help others)

It is not possible to quiet the build warning from a tools:replace manifest merger when there was nothing to replace

It seems that the merger happens in priority order, and since it comes from a library, my attempt to define a dummy entry in our app manifest (that would be replaced, quietly) did not work as the replace warning already happened when the library attempted to do it first, without getting to the app manifest yet

the only thing I think could be done is make a tiny dummy library that defines the replaced items but that's a lot of work for little gain

Checklist

Please, go through these checks before submitting the PR.

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@mikehardy mikehardy added Priority-Low Needs Review Dev Development, testing & CI labels Oct 31, 2024
@mikehardy mikehardy added this to the 2.20 Release milestone Oct 31, 2024
fileMode 0755
filePermissions {
user {
read = write = execute = true
Copy link
Member Author

Choose a reason for hiding this comment

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

group and other need no change, it's user that's important so that the commit hook works
verified it works still after this

Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

Merge at will!

@@ -1,9 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">

<!-- This camera permission will be removed in the merged manifest due to node removal -->
Copy link
Member

Choose a reason for hiding this comment

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

It might be time to remove amazon for good. I've stopped listing it on release annoucnements.

Copy link
Member Author

Choose a reason for hiding this comment

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

contemplated this before, re-contemplated it just now, here's what I saw in research:

So, I still have dreams here.

  • We may be able to remove the flavor and just use Play flavor as a separate issue since it doesn't seem to do anything different now (camera restriction was the only item? at least previously)
  • Triple-T is interested in ingestion if possible: Amazon Appstore support Triple-T/gradle-play-publisher#583

I think the path forward is a fork to amazon app publisher in order to get it working again exactly as it was, then doing a PR to Triple-T to make it a publish mode there

@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Nov 1, 2024
@mikehardy mikehardy added this pull request to the merge queue Nov 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 1, 2024
@mikehardy
Copy link
Member Author

Mmm - thought I had this one based off main so it shouldn't be flaking here after turning new reviewer off 🤔


com.ichi2.anki.ReviewerFragmentTest > testCustomSchedulerWithCustomData[emulator-5554 - 11] FAILED 
	java.lang.AssertionError:
	Expected: <3000>
ERROR   | Error while writing audio frame: [Success]

@mikehardy mikehardy added this pull request to the merge queue Nov 1, 2024
Merged via the queue into ankidroid:main with commit dea6d6d Nov 1, 2024
12 checks passed
@github-actions github-actions bot modified the milestones: 2.20 Release, 2.19 release Nov 1, 2024
@github-actions github-actions bot removed the Needs Second Approval Has one approval, one more approval to merge label Nov 1, 2024
@mikehardy mikehardy deleted the gradle-lintage branch November 1, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Development, testing & CI Priority-Low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants