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

Dedup the gradle bits of audio-echo. #1030

Merged
merged 8 commits into from
May 9, 2024
Merged

Conversation

DanAlbert
Copy link
Member

I used audio-echo as the proof of concept. I'll follow up with the other samples after this merges, but this PR includes all the plumbing.

See build-logic/README.md for an explanation. I copied fairly shamelessly from the linked Now In Android sample :)

As with the others currently up, shouldn't merge before the sample indexing service is updated, since this is the PR that'll make the samples actually depend on the parent project.

@DanAlbert DanAlbert force-pushed the build-logic branch 3 times, most recently from 34756ea to 983107c Compare May 9, 2024 19:48
Apparently gradle's new version catalogs only work in certain contexts,
so we still need a convention plugin to be able to centralize decisions
like compileSdk and targetSdk. I'm starting with those for now to prove
it out, then will expand it to cover other interesting things like NDK
version.
Do with with new convention plugin. I'll keep factoring things out this
way until I'm happy with this sample and then move on to the others.
I don't know what that comment is trying to say, and the NDK doesn't
support anything older than 21 now anyway.

I've also dropped the minSdk back to 21. I'm not sure why 23 was chosen.
None of the APIs used require anything newer, and the sample just works
fine on my volantis running L.
minifyEnabled already defaults to false. aiui that's in all the
templates (and it still is in the template for a newly created project)
as a hint for something developers may want to turn on later. It doesn't
add anything to the sample if we're not actually going to enable it, and
I'm not going to go figure out what proguard changes need to happen to
enable it right now. Maybe later.

Since minification isn't used, the proguard config does nothing.
We don't have any JARs, so that's gone.

appcompat is defined by the version catalog, so switch to that. The
catalog does define 1.6.1 right now, so this is also an upgrade.
@DanAlbert DanAlbert enabled auto-merge (rebase) May 9, 2024 20:49
@DanAlbert DanAlbert merged commit 2797a62 into android:main May 9, 2024
2 checks passed
@DanAlbert DanAlbert deleted the build-logic branch May 9, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants