Add a new aconfig command called create-storage which takes a number of aconfig cache files that belong to a specific container and produces storage files. Add a new module called storage (src/storage/mod.rs) as the entry point of storage files generation. FlagPackage struct is defined as an intermediate data structure that will be used to drive all storage files creation. Add a unit test to lock down FlagPackage creation behaviors. Bug: b/312243587 Test: atest aconfig.test Change-Id: Ia7e9f68237ea903f295ac7891c923f6a39f3422d
25 lines
496 B
Plaintext
25 lines
496 B
Plaintext
package: "com.android.aconfig.storage.test_1"
|
|
container: "system"
|
|
|
|
flag {
|
|
name: "enabled_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is ENABLED + READ_ONLY"
|
|
bug: "abc"
|
|
}
|
|
|
|
flag {
|
|
name: "disabled_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is DISABLED + READ_ONLY"
|
|
bug: "123"
|
|
}
|
|
|
|
flag {
|
|
name: "enabled_fixed_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is fixed READ_ONLY + ENABLED"
|
|
bug: ""
|
|
is_fixed_read_only: true
|
|
}
|