Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 77d5e01f authored by Marybeth Fair's avatar Marybeth Fair
Browse files

aconfig: Split FeatureFlagsImpl templates.

The FeatureFlagsImpl.java template was getting pretty long and
difficult for me to read, so split into separate files (one for internal
mode new storage, one for new exported mode new storage, and one for
test mode). Left the original FeatureflagsImpl.java template alone
rather than split it further or remove dead code because we will delete
it soon anyway. We just need to handle force RO mode before deleting
that file.

manual testing:
cargo run --create-cache --package com.android.aconfig.test --container
system --cache tmp --declarations tests/test.aconfig --values
tests/first.values
cargo run -- create-java-lib --cache tmp --out .
then adding a bunch of settings (--mode exported, --mode
force-read-only, --mode test, --allow-instrumentation true,
--new-exported true) with both this change and without this change and
ran a diff on the generated files. only difference was whitespace

Test: atest aconfig.test, manual
Change-Id: I2add6341995130377c967b894be62690cf5704b7
parent 272cb8b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment