@@ -2,6 +2,7 @@ syntax = "proto3";
22
33package android.bundle ;
44
5+ import "buf/validate/validate.proto" ;
56import "google/protobuf/wrappers.proto" ;
67
78option java_package = "com.android.bundle" ;
@@ -10,10 +11,10 @@ message DeviceSpec {
1011 // Supported ABI architectures in the order of preference.
1112 // The values should be the string as reported by the platform, e.g.
1213 // "armeabi-v7a" or "x86_64".
13- repeated string supported_abis = 1 ;
14+ repeated string supported_abis = 1 [ (buf.validate .field ) .repeated .min_items = 1 ] ;
1415
1516 // All installed locales represented as BCP-47 strings.
16- repeated string supported_locales = 2 ;
17+ repeated string supported_locales = 2 [ (buf.validate .field ) .repeated .min_items = 1 ] ;
1718
1819 // List of device features returned by the package manager utility.
1920 repeated string device_features = 3 ;
@@ -22,10 +23,10 @@ message DeviceSpec {
2223 repeated string gl_extensions = 4 ;
2324
2425 // Screen dpi.
25- uint32 screen_density = 5 ;
26+ uint32 screen_density = 5 [ (buf.validate .field ) .uint32 .gt = 0 ] ;
2627
2728 // getprop ro.build.version.sdk
28- uint32 sdk_version = 6 ;
29+ uint32 sdk_version = 6 [ (buf.validate .field ) .uint32 .gt = 0 ] ;
2930
3031 // getprop ro.build.version.codename
3132 string codename = 7 ;
0 commit comments