Use Launcher aconfig flag in Resource file.

Use BaseIconRoot as an example. Also add bpfmt file formatting.

Bug: 393609690
Test: Verified compilation worked well and font actually built
successfully in both gradle and make.
Flag: com.android.launcher3.google_sans_flex_font

Change-Id: I2200d13a8d57e5d046a35226f08a751add937ca7
This commit is contained in:
Stefan Andonian
2025-03-12 18:17:04 +00:00
parent d300486e66
commit ae799cc4e8
3 changed files with 13 additions and 0 deletions

View File

@@ -408,6 +408,9 @@ android_library {
lint: {
baseline_filename: "lint-baseline.xml",
},
flags_packages: [
"com_android_launcher3_flags",
],
}
//

View File

@@ -1,8 +1,10 @@
[Builtin Hooks]
ktfmt = true
bpfmt = true
[Builtin Hooks Options]
ktfmt = --kotlinlang-style
bpfmt = -d
[Tool Paths]
ktfmt = ${REPO_ROOT}/external/ktfmt/ktfmt.sh

View File

@@ -565,6 +565,14 @@ flag {
bug: "395145453"
}
flag {
name: "google_sans_flex_font"
namespace: "launcher"
description: "Adds refresh for font family. Needs to be fixed to be used in resources."
bug: "395145453"
is_fixed_read_only: true
}
flag {
name: "restore_archived_shortcuts"
namespace: "launcher"