app-info 3.0.0.beta4 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,335 +1,23 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: Resources.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
  require 'app_info/protobuf/models/Configuration_pb'
6
7
 
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("Resources.proto", :syntax => :proto3) do
9
- add_message "aapt.pb.StringPool" do
10
- optional :data, :bytes, 1
11
- end
12
- add_message "aapt.pb.SourcePosition" do
13
- optional :line_number, :uint32, 1
14
- optional :column_number, :uint32, 2
15
- end
16
- add_message "aapt.pb.Source" do
17
- optional :path_idx, :uint32, 1
18
- optional :position, :message, 2, "aapt.pb.SourcePosition"
19
- end
20
- add_message "aapt.pb.ToolFingerprint" do
21
- optional :tool, :string, 1
22
- optional :version, :string, 2
23
- end
24
- add_message "aapt.pb.ResourceTable" do
25
- optional :source_pool, :message, 1, "aapt.pb.StringPool"
26
- repeated :package, :message, 2, "aapt.pb.Package"
27
- repeated :overlayable, :message, 3, "aapt.pb.Overlayable"
28
- repeated :tool_fingerprint, :message, 4, "aapt.pb.ToolFingerprint"
29
- end
30
- add_message "aapt.pb.PackageId" do
31
- optional :id, :uint32, 1
32
- end
33
- add_message "aapt.pb.Package" do
34
- optional :package_id, :message, 1, "aapt.pb.PackageId"
35
- optional :package_name, :string, 2
36
- repeated :type, :message, 3, "aapt.pb.Type"
37
- end
38
- add_message "aapt.pb.TypeId" do
39
- optional :id, :uint32, 1
40
- end
41
- add_message "aapt.pb.Type" do
42
- optional :type_id, :message, 1, "aapt.pb.TypeId"
43
- optional :name, :string, 2
44
- repeated :entry, :message, 3, "aapt.pb.Entry"
45
- end
46
- add_message "aapt.pb.Visibility" do
47
- optional :level, :enum, 1, "aapt.pb.Visibility.Level"
48
- optional :source, :message, 2, "aapt.pb.Source"
49
- optional :comment, :string, 3
50
- optional :staged_api, :bool, 4
51
- end
52
- add_enum "aapt.pb.Visibility.Level" do
53
- value :UNKNOWN, 0
54
- value :PRIVATE, 1
55
- value :PUBLIC, 2
56
- end
57
- add_message "aapt.pb.AllowNew" do
58
- optional :source, :message, 1, "aapt.pb.Source"
59
- optional :comment, :string, 2
60
- end
61
- add_message "aapt.pb.Overlayable" do
62
- optional :name, :string, 1
63
- optional :source, :message, 2, "aapt.pb.Source"
64
- optional :actor, :string, 3
65
- end
66
- add_message "aapt.pb.OverlayableItem" do
67
- optional :source, :message, 1, "aapt.pb.Source"
68
- optional :comment, :string, 2
69
- repeated :policy, :enum, 3, "aapt.pb.OverlayableItem.Policy"
70
- optional :overlayable_idx, :uint32, 4
71
- end
72
- add_enum "aapt.pb.OverlayableItem.Policy" do
73
- value :NONE, 0
74
- value :PUBLIC, 1
75
- value :SYSTEM, 2
76
- value :VENDOR, 3
77
- value :PRODUCT, 4
78
- value :SIGNATURE, 5
79
- value :ODM, 6
80
- value :OEM, 7
81
- value :ACTOR, 8
82
- value :CONFIG_SIGNATURE, 9
83
- end
84
- add_message "aapt.pb.StagedId" do
85
- optional :source, :message, 1, "aapt.pb.Source"
86
- optional :staged_id, :uint32, 2
87
- end
88
- add_message "aapt.pb.EntryId" do
89
- optional :id, :uint32, 1
90
- end
91
- add_message "aapt.pb.Entry" do
92
- optional :entry_id, :message, 1, "aapt.pb.EntryId"
93
- optional :name, :string, 2
94
- optional :visibility, :message, 3, "aapt.pb.Visibility"
95
- optional :allow_new, :message, 4, "aapt.pb.AllowNew"
96
- optional :overlayable_item, :message, 5, "aapt.pb.OverlayableItem"
97
- repeated :config_value, :message, 6, "aapt.pb.ConfigValue"
98
- optional :staged_id, :message, 7, "aapt.pb.StagedId"
99
- end
100
- add_message "aapt.pb.ConfigValue" do
101
- optional :config, :message, 1, "aapt.pb.Configuration"
102
- optional :value, :message, 2, "aapt.pb.Value"
103
- end
104
- add_message "aapt.pb.Value" do
105
- optional :source, :message, 1, "aapt.pb.Source"
106
- optional :comment, :string, 2
107
- optional :weak, :bool, 3
108
- oneof :value do
109
- optional :item, :message, 4, "aapt.pb.Item"
110
- optional :compound_value, :message, 5, "aapt.pb.CompoundValue"
111
- end
112
- end
113
- add_message "aapt.pb.Item" do
114
- oneof :value do
115
- optional :ref, :message, 1, "aapt.pb.Reference"
116
- optional :str, :message, 2, "aapt.pb.String"
117
- optional :raw_str, :message, 3, "aapt.pb.RawString"
118
- optional :styled_str, :message, 4, "aapt.pb.StyledString"
119
- optional :file, :message, 5, "aapt.pb.FileReference"
120
- optional :id, :message, 6, "aapt.pb.Id"
121
- optional :prim, :message, 7, "aapt.pb.Primitive"
122
- end
123
- end
124
- add_message "aapt.pb.CompoundValue" do
125
- oneof :value do
126
- optional :attr, :message, 1, "aapt.pb.Attribute"
127
- optional :style, :message, 2, "aapt.pb.Style"
128
- optional :styleable, :message, 3, "aapt.pb.Styleable"
129
- optional :array, :message, 4, "aapt.pb.Array"
130
- optional :plural, :message, 5, "aapt.pb.Plural"
131
- optional :macro, :message, 6, "aapt.pb.MacroBody"
132
- end
133
- end
134
- add_message "aapt.pb.Boolean" do
135
- optional :value, :bool, 1
136
- end
137
- add_message "aapt.pb.Reference" do
138
- optional :type, :enum, 1, "aapt.pb.Reference.Type"
139
- optional :id, :uint32, 2
140
- optional :name, :string, 3
141
- optional :private, :bool, 4
142
- optional :is_dynamic, :message, 5, "aapt.pb.Boolean"
143
- optional :type_flags, :uint32, 6
144
- optional :allow_raw, :bool, 7
145
- end
146
- add_enum "aapt.pb.Reference.Type" do
147
- value :REFERENCE, 0
148
- value :ATTRIBUTE, 1
149
- end
150
- add_message "aapt.pb.Id" do
151
- end
152
- add_message "aapt.pb.String" do
153
- optional :value, :string, 1
154
- end
155
- add_message "aapt.pb.RawString" do
156
- optional :value, :string, 1
157
- end
158
- add_message "aapt.pb.StyledString" do
159
- optional :value, :string, 1
160
- repeated :span, :message, 2, "aapt.pb.StyledString.Span"
161
- end
162
- add_message "aapt.pb.StyledString.Span" do
163
- optional :tag, :string, 1
164
- optional :first_char, :uint32, 2
165
- optional :last_char, :uint32, 3
166
- end
167
- add_message "aapt.pb.FileReference" do
168
- optional :path, :string, 1
169
- optional :type, :enum, 2, "aapt.pb.FileReference.Type"
170
- end
171
- add_enum "aapt.pb.FileReference.Type" do
172
- value :UNKNOWN, 0
173
- value :PNG, 1
174
- value :BINARY_XML, 2
175
- value :PROTO_XML, 3
176
- end
177
- add_message "aapt.pb.Primitive" do
178
- oneof :oneof_value do
179
- optional :null_value, :message, 1, "aapt.pb.Primitive.NullType"
180
- optional :empty_value, :message, 2, "aapt.pb.Primitive.EmptyType"
181
- optional :float_value, :float, 3
182
- optional :dimension_value, :uint32, 13
183
- optional :fraction_value, :uint32, 14
184
- optional :int_decimal_value, :int32, 6
185
- optional :int_hexadecimal_value, :uint32, 7
186
- optional :boolean_value, :bool, 8
187
- optional :color_argb8_value, :uint32, 9
188
- optional :color_rgb8_value, :uint32, 10
189
- optional :color_argb4_value, :uint32, 11
190
- optional :color_rgb4_value, :uint32, 12
191
- optional :dimension_value_deprecated, :float, 4
192
- optional :fraction_value_deprecated, :float, 5
193
- end
194
- end
195
- add_message "aapt.pb.Primitive.NullType" do
196
- end
197
- add_message "aapt.pb.Primitive.EmptyType" do
198
- end
199
- add_message "aapt.pb.Attribute" do
200
- optional :format_flags, :uint32, 1
201
- optional :min_int, :int32, 2
202
- optional :max_int, :int32, 3
203
- repeated :symbol, :message, 4, "aapt.pb.Attribute.Symbol"
204
- end
205
- add_message "aapt.pb.Attribute.Symbol" do
206
- optional :source, :message, 1, "aapt.pb.Source"
207
- optional :comment, :string, 2
208
- optional :name, :message, 3, "aapt.pb.Reference"
209
- optional :value, :uint32, 4
210
- optional :type, :uint32, 5
211
- end
212
- add_enum "aapt.pb.Attribute.FormatFlags" do
213
- value :NONE, 0
214
- value :ANY, 65535
215
- value :REFERENCE, 1
216
- value :STRING, 2
217
- value :INTEGER, 4
218
- value :BOOLEAN, 8
219
- value :COLOR, 16
220
- value :FLOAT, 32
221
- value :DIMENSION, 64
222
- value :FRACTION, 128
223
- value :ENUM, 65536
224
- value :FLAGS, 131072
225
- end
226
- add_message "aapt.pb.Style" do
227
- optional :parent, :message, 1, "aapt.pb.Reference"
228
- optional :parent_source, :message, 2, "aapt.pb.Source"
229
- repeated :entry, :message, 3, "aapt.pb.Style.Entry"
230
- end
231
- add_message "aapt.pb.Style.Entry" do
232
- optional :source, :message, 1, "aapt.pb.Source"
233
- optional :comment, :string, 2
234
- optional :key, :message, 3, "aapt.pb.Reference"
235
- optional :item, :message, 4, "aapt.pb.Item"
236
- end
237
- add_message "aapt.pb.Styleable" do
238
- repeated :entry, :message, 1, "aapt.pb.Styleable.Entry"
239
- end
240
- add_message "aapt.pb.Styleable.Entry" do
241
- optional :source, :message, 1, "aapt.pb.Source"
242
- optional :comment, :string, 2
243
- optional :attr, :message, 3, "aapt.pb.Reference"
244
- end
245
- add_message "aapt.pb.Array" do
246
- repeated :element, :message, 1, "aapt.pb.Array.Element"
247
- end
248
- add_message "aapt.pb.Array.Element" do
249
- optional :source, :message, 1, "aapt.pb.Source"
250
- optional :comment, :string, 2
251
- optional :item, :message, 3, "aapt.pb.Item"
252
- end
253
- add_message "aapt.pb.Plural" do
254
- repeated :entry, :message, 1, "aapt.pb.Plural.Entry"
255
- end
256
- add_message "aapt.pb.Plural.Entry" do
257
- optional :source, :message, 1, "aapt.pb.Source"
258
- optional :comment, :string, 2
259
- optional :arity, :enum, 3, "aapt.pb.Plural.Arity"
260
- optional :item, :message, 4, "aapt.pb.Item"
261
- end
262
- add_enum "aapt.pb.Plural.Arity" do
263
- value :ZERO, 0
264
- value :ONE, 1
265
- value :TWO, 2
266
- value :FEW, 3
267
- value :MANY, 4
268
- value :OTHER, 5
269
- end
270
- add_message "aapt.pb.XmlNode" do
271
- optional :source, :message, 3, "aapt.pb.SourcePosition"
272
- oneof :node do
273
- optional :element, :message, 1, "aapt.pb.XmlElement"
274
- optional :text, :string, 2
275
- end
276
- end
277
- add_message "aapt.pb.XmlElement" do
278
- repeated :namespace_declaration, :message, 1, "aapt.pb.XmlNamespace"
279
- optional :namespace_uri, :string, 2
280
- optional :name, :string, 3
281
- repeated :attribute, :message, 4, "aapt.pb.XmlAttribute"
282
- repeated :child, :message, 5, "aapt.pb.XmlNode"
283
- end
284
- add_message "aapt.pb.XmlNamespace" do
285
- optional :prefix, :string, 1
286
- optional :uri, :string, 2
287
- optional :source, :message, 3, "aapt.pb.SourcePosition"
288
- end
289
- add_message "aapt.pb.XmlAttribute" do
290
- optional :namespace_uri, :string, 1
291
- optional :name, :string, 2
292
- optional :value, :string, 3
293
- optional :source, :message, 4, "aapt.pb.SourcePosition"
294
- optional :resource_id, :uint32, 5
295
- optional :compiled_item, :message, 6, "aapt.pb.Item"
296
- end
297
- add_message "aapt.pb.MacroBody" do
298
- optional :raw_string, :string, 1
299
- optional :style_string, :message, 2, "aapt.pb.StyleString"
300
- repeated :untranslatable_sections, :message, 3, "aapt.pb.UntranslatableSection"
301
- repeated :namespace_stack, :message, 4, "aapt.pb.NamespaceAlias"
302
- optional :source, :message, 5, "aapt.pb.SourcePosition"
303
- end
304
- add_message "aapt.pb.NamespaceAlias" do
305
- optional :prefix, :string, 1
306
- optional :package_name, :string, 2
307
- optional :is_private, :bool, 3
308
- end
309
- add_message "aapt.pb.StyleString" do
310
- optional :str, :string, 1
311
- repeated :spans, :message, 2, "aapt.pb.StyleString.Span"
312
- end
313
- add_message "aapt.pb.StyleString.Span" do
314
- optional :name, :string, 1
315
- optional :start_index, :uint32, 2
316
- optional :end_index, :uint32, 3
317
- end
318
- add_message "aapt.pb.UntranslatableSection" do
319
- optional :start_index, :uint64, 1
320
- optional :end_index, :uint64, 2
321
- end
322
- end
323
- end
324
8
 
325
- # @!visibility private
326
- module Aapt
9
+ descriptor_data = "\n\x0fResources.proto\x12\x07\x61\x61pt.pb\x1a\x13\x43onfiguration.proto\"\x1a\n\nStringPool\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"<\n\x0eSourcePosition\x12\x13\n\x0bline_number\x18\x01 \x01(\r\x12\x15\n\rcolumn_number\x18\x02 \x01(\r\"E\n\x06Source\x12\x10\n\x08path_idx\x18\x01 \x01(\r\x12)\n\x08position\x18\x02 \x01(\x0b\x32\x17.aapt.pb.SourcePosition\"0\n\x0fToolFingerprint\x12\x0c\n\x04tool\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"O\n\x0f\x44ynamicRefTable\x12&\n\npackage_id\x18\x01 \x01(\x0b\x32\x12.aapt.pb.PackageId\x12\x14\n\x0cpackage_name\x18\x02 \x01(\t\"\xf0\x01\n\rResourceTable\x12(\n\x0bsource_pool\x18\x01 \x01(\x0b\x32\x13.aapt.pb.StringPool\x12!\n\x07package\x18\x02 \x03(\x0b\x32\x10.aapt.pb.Package\x12)\n\x0boverlayable\x18\x03 \x03(\x0b\x32\x14.aapt.pb.Overlayable\x12\x32\n\x10tool_fingerprint\x18\x04 \x03(\x0b\x32\x18.aapt.pb.ToolFingerprint\x12\x33\n\x11\x64ynamic_ref_table\x18\x05 \x03(\x0b\x32\x18.aapt.pb.DynamicRefTable\"\x17\n\tPackageId\x12\n\n\x02id\x18\x01 \x01(\r\"d\n\x07Package\x12&\n\npackage_id\x18\x01 \x01(\x0b\x32\x12.aapt.pb.PackageId\x12\x14\n\x0cpackage_name\x18\x02 \x01(\t\x12\x1b\n\x04type\x18\x03 \x03(\x0b\x32\r.aapt.pb.Type\"\x14\n\x06TypeId\x12\n\n\x02id\x18\x01 \x01(\r\"U\n\x04Type\x12 \n\x07type_id\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.TypeId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1d\n\x05\x65ntry\x18\x03 \x03(\x0b\x32\x0e.aapt.pb.Entry\"\xab\x01\n\nVisibility\x12(\n\x05level\x18\x01 \x01(\x0e\x32\x19.aapt.pb.Visibility.Level\x12\x1f\n\x06source\x18\x02 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x03 \x01(\t\x12\x12\n\nstaged_api\x18\x04 \x01(\x08\"-\n\x05Level\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\n\n\x06PUBLIC\x10\x02\"<\n\x08\x41llowNew\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\"K\n\x0bOverlayable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1f\n\x06source\x18\x02 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\r\n\x05\x61\x63tor\x18\x03 \x01(\t\"\x95\x02\n\x0fOverlayableItem\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12/\n\x06policy\x18\x03 \x03(\x0e\x32\x1f.aapt.pb.OverlayableItem.Policy\x12\x17\n\x0foverlayable_idx\x18\x04 \x01(\r\"\x85\x01\n\x06Policy\x12\x08\n\x04NONE\x10\x00\x12\n\n\x06PUBLIC\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\n\n\x06VENDOR\x10\x03\x12\x0b\n\x07PRODUCT\x10\x04\x12\r\n\tSIGNATURE\x10\x05\x12\x07\n\x03ODM\x10\x06\x12\x07\n\x03OEM\x10\x07\x12\t\n\x05\x41\x43TOR\x10\x08\x12\x14\n\x10\x43ONFIG_SIGNATURE\x10\t\">\n\x08StagedId\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x11\n\tstaged_id\x18\x02 \x01(\r\"\x15\n\x07\x45ntryId\x12\n\n\x02id\x18\x01 \x01(\r\"\x8e\x02\n\x05\x45ntry\x12\"\n\x08\x65ntry_id\x18\x01 \x01(\x0b\x32\x10.aapt.pb.EntryId\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\'\n\nvisibility\x18\x03 \x01(\x0b\x32\x13.aapt.pb.Visibility\x12$\n\tallow_new\x18\x04 \x01(\x0b\x32\x11.aapt.pb.AllowNew\x12\x32\n\x10overlayable_item\x18\x05 \x01(\x0b\x32\x18.aapt.pb.OverlayableItem\x12*\n\x0c\x63onfig_value\x18\x06 \x03(\x0b\x32\x14.aapt.pb.ConfigValue\x12$\n\tstaged_id\x18\x07 \x01(\x0b\x32\x11.aapt.pb.StagedId\"T\n\x0b\x43onfigValue\x12&\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x16.aapt.pb.Configuration\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.aapt.pb.Value\"\xa1\x01\n\x05Value\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12\x0c\n\x04weak\x18\x03 \x01(\x08\x12\x1d\n\x04item\x18\x04 \x01(\x0b\x32\r.aapt.pb.ItemH\x00\x12\x30\n\x0e\x63ompound_value\x18\x05 \x01(\x0b\x32\x16.aapt.pb.CompoundValueH\x00\x42\x07\n\x05value\"\x8d\x02\n\x04Item\x12!\n\x03ref\x18\x01 \x01(\x0b\x32\x12.aapt.pb.ReferenceH\x00\x12\x1e\n\x03str\x18\x02 \x01(\x0b\x32\x0f.aapt.pb.StringH\x00\x12%\n\x07raw_str\x18\x03 \x01(\x0b\x32\x12.aapt.pb.RawStringH\x00\x12+\n\nstyled_str\x18\x04 \x01(\x0b\x32\x15.aapt.pb.StyledStringH\x00\x12&\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x16.aapt.pb.FileReferenceH\x00\x12\x19\n\x02id\x18\x06 \x01(\x0b\x32\x0b.aapt.pb.IdH\x00\x12\"\n\x04prim\x18\x07 \x01(\x0b\x32\x12.aapt.pb.PrimitiveH\x00\x42\x07\n\x05value\"\xef\x01\n\rCompoundValue\x12\"\n\x04\x61ttr\x18\x01 \x01(\x0b\x32\x12.aapt.pb.AttributeH\x00\x12\x1f\n\x05style\x18\x02 \x01(\x0b\x32\x0e.aapt.pb.StyleH\x00\x12\'\n\tstyleable\x18\x03 \x01(\x0b\x32\x12.aapt.pb.StyleableH\x00\x12\x1f\n\x05\x61rray\x18\x04 \x01(\x0b\x32\x0e.aapt.pb.ArrayH\x00\x12!\n\x06plural\x18\x05 \x01(\x0b\x32\x0f.aapt.pb.PluralH\x00\x12#\n\x05macro\x18\x06 \x01(\x0b\x32\x12.aapt.pb.MacroBodyH\x00\x42\x07\n\x05value\"\x18\n\x07\x42oolean\x12\r\n\x05value\x18\x01 \x01(\x08\"\xd0\x01\n\tReference\x12%\n\x04type\x18\x01 \x01(\x0e\x32\x17.aapt.pb.Reference.Type\x12\n\n\x02id\x18\x02 \x01(\r\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0f\n\x07private\x18\x04 \x01(\x08\x12$\n\nis_dynamic\x18\x05 \x01(\x0b\x32\x10.aapt.pb.Boolean\x12\x12\n\ntype_flags\x18\x06 \x01(\r\x12\x11\n\tallow_raw\x18\x07 \x01(\x08\"$\n\x04Type\x12\r\n\tREFERENCE\x10\x00\x12\r\n\tATTRIBUTE\x10\x01\"\x04\n\x02Id\"\x17\n\x06String\x12\r\n\x05value\x18\x01 \x01(\t\"\x1a\n\tRawString\x12\r\n\x05value\x18\x01 \x01(\t\"\x83\x01\n\x0cStyledString\x12\r\n\x05value\x18\x01 \x01(\t\x12(\n\x04span\x18\x02 \x03(\x0b\x32\x1a.aapt.pb.StyledString.Span\x1a:\n\x04Span\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x12\n\nfirst_char\x18\x02 \x01(\r\x12\x11\n\tlast_char\x18\x03 \x01(\r\"\x85\x01\n\rFileReference\x12\x0c\n\x04path\x18\x01 \x01(\t\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x1b.aapt.pb.FileReference.Type\";\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03PNG\x10\x01\x12\x0e\n\nBINARY_XML\x10\x02\x12\r\n\tPROTO_XML\x10\x03\"\x83\x04\n\tPrimitive\x12\x31\n\nnull_value\x18\x01 \x01(\x0b\x32\x1b.aapt.pb.Primitive.NullTypeH\x00\x12\x33\n\x0b\x65mpty_value\x18\x02 \x01(\x0b\x32\x1c.aapt.pb.Primitive.EmptyTypeH\x00\x12\x15\n\x0b\x66loat_value\x18\x03 \x01(\x02H\x00\x12\x19\n\x0f\x64imension_value\x18\r \x01(\rH\x00\x12\x18\n\x0e\x66raction_value\x18\x0e \x01(\rH\x00\x12\x1b\n\x11int_decimal_value\x18\x06 \x01(\x05H\x00\x12\x1f\n\x15int_hexadecimal_value\x18\x07 \x01(\rH\x00\x12\x17\n\rboolean_value\x18\x08 \x01(\x08H\x00\x12\x1b\n\x11\x63olor_argb8_value\x18\t \x01(\rH\x00\x12\x1a\n\x10\x63olor_rgb8_value\x18\n \x01(\rH\x00\x12\x1b\n\x11\x63olor_argb4_value\x18\x0b \x01(\rH\x00\x12\x1a\n\x10\x63olor_rgb4_value\x18\x0c \x01(\rH\x00\x12(\n\x1a\x64imension_value_deprecated\x18\x04 \x01(\x02\x42\x02\x18\x01H\x00\x12\'\n\x19\x66raction_value_deprecated\x18\x05 \x01(\x02\x42\x02\x18\x01H\x00\x1a\n\n\x08NullType\x1a\x0b\n\tEmptyTypeB\r\n\x0boneof_value\"\x90\x03\n\tAttribute\x12\x14\n\x0c\x66ormat_flags\x18\x01 \x01(\r\x12\x0f\n\x07min_int\x18\x02 \x01(\x05\x12\x0f\n\x07max_int\x18\x03 \x01(\x05\x12)\n\x06symbol\x18\x04 \x03(\x0b\x32\x19.aapt.pb.Attribute.Symbol\x1ay\n\x06Symbol\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12 \n\x04name\x18\x03 \x01(\x0b\x32\x12.aapt.pb.Reference\x12\r\n\x05value\x18\x04 \x01(\r\x12\x0c\n\x04type\x18\x05 \x01(\r\"\xa4\x01\n\x0b\x46ormatFlags\x12\x08\n\x04NONE\x10\x00\x12\t\n\x03\x41NY\x10\xff\xff\x03\x12\r\n\tREFERENCE\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07INTEGER\x10\x04\x12\x0b\n\x07\x42OOLEAN\x10\x08\x12\t\n\x05\x43OLOR\x10\x10\x12\t\n\x05\x46LOAT\x10 \x12\r\n\tDIMENSION\x10@\x12\r\n\x08\x46RACTION\x10\x80\x01\x12\n\n\x04\x45NUM\x10\x80\x80\x04\x12\x0b\n\x05\x46LAGS\x10\x80\x80\x08\"\xf1\x01\n\x05Style\x12\"\n\x06parent\x18\x01 \x01(\x0b\x32\x12.aapt.pb.Reference\x12&\n\rparent_source\x18\x02 \x01(\x0b\x32\x0f.aapt.pb.Source\x12#\n\x05\x65ntry\x18\x03 \x03(\x0b\x32\x14.aapt.pb.Style.Entry\x1aw\n\x05\x45ntry\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12\x1f\n\x03key\x18\x03 \x01(\x0b\x32\x12.aapt.pb.Reference\x12\x1b\n\x04item\x18\x04 \x01(\x0b\x32\r.aapt.pb.Item\"\x91\x01\n\tStyleable\x12\'\n\x05\x65ntry\x18\x01 \x03(\x0b\x32\x18.aapt.pb.Styleable.Entry\x1a[\n\x05\x45ntry\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12 \n\x04\x61ttr\x18\x03 \x01(\x0b\x32\x12.aapt.pb.Reference\"\x8a\x01\n\x05\x41rray\x12\'\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x16.aapt.pb.Array.Element\x1aX\n\x07\x45lement\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12\x1b\n\x04item\x18\x03 \x01(\x0b\x32\r.aapt.pb.Item\"\xef\x01\n\x06Plural\x12$\n\x05\x65ntry\x18\x01 \x03(\x0b\x32\x15.aapt.pb.Plural.Entry\x1a|\n\x05\x45ntry\x12\x1f\n\x06source\x18\x01 \x01(\x0b\x32\x0f.aapt.pb.Source\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12$\n\x05\x61rity\x18\x03 \x01(\x0e\x32\x15.aapt.pb.Plural.Arity\x12\x1b\n\x04item\x18\x04 \x01(\x0b\x32\r.aapt.pb.Item\"A\n\x05\x41rity\x12\x08\n\x04ZERO\x10\x00\x12\x07\n\x03ONE\x10\x01\x12\x07\n\x03TWO\x10\x02\x12\x07\n\x03\x46\x45W\x10\x03\x12\x08\n\x04MANY\x10\x04\x12\t\n\x05OTHER\x10\x05\"r\n\x07XmlNode\x12&\n\x07\x65lement\x18\x01 \x01(\x0b\x32\x13.aapt.pb.XmlElementH\x00\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\'\n\x06source\x18\x03 \x01(\x0b\x32\x17.aapt.pb.SourcePositionB\x06\n\x04node\"\xb2\x01\n\nXmlElement\x12\x34\n\x15namespace_declaration\x18\x01 \x03(\x0b\x32\x15.aapt.pb.XmlNamespace\x12\x15\n\rnamespace_uri\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12(\n\tattribute\x18\x04 \x03(\x0b\x32\x15.aapt.pb.XmlAttribute\x12\x1f\n\x05\x63hild\x18\x05 \x03(\x0b\x32\x10.aapt.pb.XmlNode\"T\n\x0cXmlNamespace\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\'\n\x06source\x18\x03 \x01(\x0b\x32\x17.aapt.pb.SourcePosition\"\xa6\x01\n\x0cXmlAttribute\x12\x15\n\rnamespace_uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\'\n\x06source\x18\x04 \x01(\x0b\x32\x17.aapt.pb.SourcePosition\x12\x13\n\x0bresource_id\x18\x05 \x01(\r\x12$\n\rcompiled_item\x18\x06 \x01(\x0b\x32\r.aapt.pb.Item\"\xe7\x01\n\tMacroBody\x12\x12\n\nraw_string\x18\x01 \x01(\t\x12*\n\x0cstyle_string\x18\x02 \x01(\x0b\x32\x14.aapt.pb.StyleString\x12?\n\x17untranslatable_sections\x18\x03 \x03(\x0b\x32\x1e.aapt.pb.UntranslatableSection\x12\x30\n\x0fnamespace_stack\x18\x04 \x03(\x0b\x32\x17.aapt.pb.NamespaceAlias\x12\'\n\x06source\x18\x05 \x01(\x0b\x32\x17.aapt.pb.SourcePosition\"J\n\x0eNamespaceAlias\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x14\n\x0cpackage_name\x18\x02 \x01(\t\x12\x12\n\nis_private\x18\x03 \x01(\x08\"\x82\x01\n\x0bStyleString\x12\x0b\n\x03str\x18\x01 \x01(\t\x12(\n\x05spans\x18\x02 \x03(\x0b\x32\x19.aapt.pb.StyleString.Span\x1a<\n\x04Span\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bstart_index\x18\x02 \x01(\r\x12\x11\n\tend_index\x18\x03 \x01(\r\"?\n\x15UntranslatableSection\x12\x13\n\x0bstart_index\x18\x01 \x01(\x04\x12\x11\n\tend_index\x18\x02 \x01(\x04\x42\x12\n\x10\x63om.android.aaptb\x06proto3"
327
10
 
11
+ pool = Google::Protobuf::DescriptorPool.generated_pool
12
+ pool.add_serialized_file(descriptor_data)
13
+
14
+ module Aapt
328
15
  module Pb
329
16
  StringPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.StringPool").msgclass
330
17
  SourcePosition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.SourcePosition").msgclass
331
18
  Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Source").msgclass
332
19
  ToolFingerprint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.ToolFingerprint").msgclass
20
+ DynamicRefTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.DynamicRefTable").msgclass
333
21
  ResourceTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.ResourceTable").msgclass
334
22
  PackageId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.PackageId").msgclass
335
23
  Package = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Package").msgclass
@@ -22,7 +22,7 @@ module AppInfo
22
22
 
23
23
  def find(reference, locale: '')
24
24
  type, name = reference_segments(reference)
25
- packages.each do |_, package|
25
+ packages.each_value do |package|
26
26
  next unless value = package.find(name, type: type, locale: locale)
27
27
 
28
28
  return value
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '3.0.0.beta4'
4
+ VERSION = '3.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta4
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList
@@ -30,6 +30,34 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.3.4
33
+ - !ruby/object:Gem::Dependency
34
+ name: nkf
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.2.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.2.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: base64
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 0.2.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 0.2.0
33
61
  - !ruby/object:Gem::Dependency
34
62
  name: image_size
35
63
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +67,7 @@ dependencies:
39
67
  version: '1.5'
40
68
  - - "<"
41
69
  - !ruby/object:Gem::Version
42
- version: '3.3'
70
+ version: '3.5'
43
71
  type: :runtime
44
72
  prerelease: false
45
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +77,7 @@ dependencies:
49
77
  version: '1.5'
50
78
  - - "<"
51
79
  - !ruby/object:Gem::Version
52
- version: '3.3'
80
+ version: '3.5'
53
81
  - !ruby/object:Gem::Dependency
54
82
  name: ruby-macho
55
83
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +87,7 @@ dependencies:
59
87
  version: '1.4'
60
88
  - - "<"
61
89
  - !ruby/object:Gem::Version
62
- version: '4'
90
+ version: '5'
63
91
  type: :runtime
64
92
  prerelease: false
65
93
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +97,7 @@ dependencies:
69
97
  version: '1.4'
70
98
  - - "<"
71
99
  - !ruby/object:Gem::Version
72
- version: '4'
100
+ version: '5'
73
101
  - !ruby/object:Gem::Dependency
74
102
  name: android_parser
75
103
  requirement: !ruby/object:Gem::Requirement
@@ -158,20 +186,20 @@ dependencies:
158
186
  requirements:
159
187
  - - ">="
160
188
  - !ruby/object:Gem::Version
161
- version: 3.19.4
189
+ version: 4.27.1
162
190
  - - "<"
163
191
  - !ruby/object:Gem::Version
164
- version: 3.23.0
192
+ version: 5.0.0
165
193
  type: :runtime
166
194
  prerelease: false
167
195
  version_requirements: !ruby/object:Gem::Requirement
168
196
  requirements:
169
197
  - - ">="
170
198
  - !ruby/object:Gem::Version
171
- version: 3.19.4
199
+ version: 4.27.1
172
200
  - - "<"
173
201
  - !ruby/object:Gem::Version
174
- version: 3.23.0
202
+ version: 5.0.0
175
203
  - !ruby/object:Gem::Dependency
176
204
  name: bundler
177
205
  requirement: !ruby/object:Gem::Requirement
@@ -289,14 +317,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
317
  requirements:
290
318
  - - ">="
291
319
  - !ruby/object:Gem::Version
292
- version: '2.5'
320
+ version: '3.1'
293
321
  required_rubygems_version: !ruby/object:Gem::Requirement
294
322
  requirements:
295
- - - ">"
323
+ - - ">="
296
324
  - !ruby/object:Gem::Version
297
- version: 1.3.1
325
+ version: '0'
298
326
  requirements: []
299
- rubygems_version: 3.4.1
327
+ rubygems_version: 3.5.9
300
328
  signing_key:
301
329
  specification_version: 4
302
330
  summary: Teardown tool for mobile app(ipa/apk) and dSYM file, analysis metedata like