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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +6 -20
- data/.github/workflows/create_release.yml +1 -1
- data/CHANGELOG.md +37 -1
- data/Gemfile +1 -1
- data/README.md +19 -5
- data/Rakefile +6 -3
- data/app_info.gemspec +6 -4
- data/lib/app_info/apple.rb +3 -2
- data/lib/app_info/const.rb +6 -3
- data/lib/app_info/info_plist.rb +42 -0
- data/lib/app_info/ipa.rb +6 -5
- data/lib/app_info/macos.rb +1 -1
- data/lib/app_info/mobile_provision.rb +3 -2
- data/lib/app_info/pe.rb +1 -1
- data/lib/app_info/protobuf/manifest.rb +3 -3
- data/lib/app_info/protobuf/models/Configuration.proto +8 -44
- data/lib/app_info/protobuf/models/Configuration_pb.rb +7 -115
- data/lib/app_info/protobuf/models/README.md +2 -2
- data/lib/app_info/protobuf/models/Resources.proto +6 -123
- data/lib/app_info/protobuf/models/Resources_pb.rb +7 -319
- data/lib/app_info/protobuf/resources.rb +1 -1
- data/lib/app_info/version.rb +1 -1
- metadata +42 -14
@@ -1,124 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: Configuration.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("Configuration.proto", :syntax => :proto3) do
|
8
|
-
add_message "aapt.pb.Configuration" do
|
9
|
-
optional :mcc, :uint32, 1
|
10
|
-
optional :mnc, :uint32, 2
|
11
|
-
optional :locale, :string, 3
|
12
|
-
optional :layout_direction, :enum, 4, "aapt.pb.Configuration.LayoutDirection"
|
13
|
-
optional :screen_width, :uint32, 5
|
14
|
-
optional :screen_height, :uint32, 6
|
15
|
-
optional :screen_width_dp, :uint32, 7
|
16
|
-
optional :screen_height_dp, :uint32, 8
|
17
|
-
optional :smallest_screen_width_dp, :uint32, 9
|
18
|
-
optional :screen_layout_size, :enum, 10, "aapt.pb.Configuration.ScreenLayoutSize"
|
19
|
-
optional :screen_layout_long, :enum, 11, "aapt.pb.Configuration.ScreenLayoutLong"
|
20
|
-
optional :screen_round, :enum, 12, "aapt.pb.Configuration.ScreenRound"
|
21
|
-
optional :wide_color_gamut, :enum, 13, "aapt.pb.Configuration.WideColorGamut"
|
22
|
-
optional :hdr, :enum, 14, "aapt.pb.Configuration.Hdr"
|
23
|
-
optional :orientation, :enum, 15, "aapt.pb.Configuration.Orientation"
|
24
|
-
optional :ui_mode_type, :enum, 16, "aapt.pb.Configuration.UiModeType"
|
25
|
-
optional :ui_mode_night, :enum, 17, "aapt.pb.Configuration.UiModeNight"
|
26
|
-
optional :density, :uint32, 18
|
27
|
-
optional :touchscreen, :enum, 19, "aapt.pb.Configuration.Touchscreen"
|
28
|
-
optional :keys_hidden, :enum, 20, "aapt.pb.Configuration.KeysHidden"
|
29
|
-
optional :keyboard, :enum, 21, "aapt.pb.Configuration.Keyboard"
|
30
|
-
optional :nav_hidden, :enum, 22, "aapt.pb.Configuration.NavHidden"
|
31
|
-
optional :navigation, :enum, 23, "aapt.pb.Configuration.Navigation"
|
32
|
-
optional :sdk_version, :uint32, 24
|
33
|
-
optional :product, :string, 25
|
34
|
-
end
|
35
|
-
add_enum "aapt.pb.Configuration.LayoutDirection" do
|
36
|
-
value :LAYOUT_DIRECTION_UNSET, 0
|
37
|
-
value :LAYOUT_DIRECTION_LTR, 1
|
38
|
-
value :LAYOUT_DIRECTION_RTL, 2
|
39
|
-
end
|
40
|
-
add_enum "aapt.pb.Configuration.ScreenLayoutSize" do
|
41
|
-
value :SCREEN_LAYOUT_SIZE_UNSET, 0
|
42
|
-
value :SCREEN_LAYOUT_SIZE_SMALL, 1
|
43
|
-
value :SCREEN_LAYOUT_SIZE_NORMAL, 2
|
44
|
-
value :SCREEN_LAYOUT_SIZE_LARGE, 3
|
45
|
-
value :SCREEN_LAYOUT_SIZE_XLARGE, 4
|
46
|
-
end
|
47
|
-
add_enum "aapt.pb.Configuration.ScreenLayoutLong" do
|
48
|
-
value :SCREEN_LAYOUT_LONG_UNSET, 0
|
49
|
-
value :SCREEN_LAYOUT_LONG_LONG, 1
|
50
|
-
value :SCREEN_LAYOUT_LONG_NOTLONG, 2
|
51
|
-
end
|
52
|
-
add_enum "aapt.pb.Configuration.ScreenRound" do
|
53
|
-
value :SCREEN_ROUND_UNSET, 0
|
54
|
-
value :SCREEN_ROUND_ROUND, 1
|
55
|
-
value :SCREEN_ROUND_NOTROUND, 2
|
56
|
-
end
|
57
|
-
add_enum "aapt.pb.Configuration.WideColorGamut" do
|
58
|
-
value :WIDE_COLOR_GAMUT_UNSET, 0
|
59
|
-
value :WIDE_COLOR_GAMUT_WIDECG, 1
|
60
|
-
value :WIDE_COLOR_GAMUT_NOWIDECG, 2
|
61
|
-
end
|
62
|
-
add_enum "aapt.pb.Configuration.Hdr" do
|
63
|
-
value :HDR_UNSET, 0
|
64
|
-
value :HDR_HIGHDR, 1
|
65
|
-
value :HDR_LOWDR, 2
|
66
|
-
end
|
67
|
-
add_enum "aapt.pb.Configuration.Orientation" do
|
68
|
-
value :ORIENTATION_UNSET, 0
|
69
|
-
value :ORIENTATION_PORT, 1
|
70
|
-
value :ORIENTATION_LAND, 2
|
71
|
-
value :ORIENTATION_SQUARE, 3
|
72
|
-
end
|
73
|
-
add_enum "aapt.pb.Configuration.UiModeType" do
|
74
|
-
value :UI_MODE_TYPE_UNSET, 0
|
75
|
-
value :UI_MODE_TYPE_NORMAL, 1
|
76
|
-
value :UI_MODE_TYPE_DESK, 2
|
77
|
-
value :UI_MODE_TYPE_CAR, 3
|
78
|
-
value :UI_MODE_TYPE_TELEVISION, 4
|
79
|
-
value :UI_MODE_TYPE_APPLIANCE, 5
|
80
|
-
value :UI_MODE_TYPE_WATCH, 6
|
81
|
-
value :UI_MODE_TYPE_VRHEADSET, 7
|
82
|
-
end
|
83
|
-
add_enum "aapt.pb.Configuration.UiModeNight" do
|
84
|
-
value :UI_MODE_NIGHT_UNSET, 0
|
85
|
-
value :UI_MODE_NIGHT_NIGHT, 1
|
86
|
-
value :UI_MODE_NIGHT_NOTNIGHT, 2
|
87
|
-
end
|
88
|
-
add_enum "aapt.pb.Configuration.Touchscreen" do
|
89
|
-
value :TOUCHSCREEN_UNSET, 0
|
90
|
-
value :TOUCHSCREEN_NOTOUCH, 1
|
91
|
-
value :TOUCHSCREEN_STYLUS, 2
|
92
|
-
value :TOUCHSCREEN_FINGER, 3
|
93
|
-
end
|
94
|
-
add_enum "aapt.pb.Configuration.KeysHidden" do
|
95
|
-
value :KEYS_HIDDEN_UNSET, 0
|
96
|
-
value :KEYS_HIDDEN_KEYSEXPOSED, 1
|
97
|
-
value :KEYS_HIDDEN_KEYSHIDDEN, 2
|
98
|
-
value :KEYS_HIDDEN_KEYSSOFT, 3
|
99
|
-
end
|
100
|
-
add_enum "aapt.pb.Configuration.Keyboard" do
|
101
|
-
value :KEYBOARD_UNSET, 0
|
102
|
-
value :KEYBOARD_NOKEYS, 1
|
103
|
-
value :KEYBOARD_QWERTY, 2
|
104
|
-
value :KEYBOARD_TWELVEKEY, 3
|
105
|
-
end
|
106
|
-
add_enum "aapt.pb.Configuration.NavHidden" do
|
107
|
-
value :NAV_HIDDEN_UNSET, 0
|
108
|
-
value :NAV_HIDDEN_NAVEXPOSED, 1
|
109
|
-
value :NAV_HIDDEN_NAVHIDDEN, 2
|
110
|
-
end
|
111
|
-
add_enum "aapt.pb.Configuration.Navigation" do
|
112
|
-
value :NAVIGATION_UNSET, 0
|
113
|
-
value :NAVIGATION_NONAV, 1
|
114
|
-
value :NAVIGATION_DPAD, 2
|
115
|
-
value :NAVIGATION_TRACKBALL, 3
|
116
|
-
value :NAVIGATION_WHEEL, 4
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
7
|
|
121
|
-
|
8
|
+
descriptor_data = "\n\x13\x43onfiguration.proto\x12\x07\x61\x61pt.pb\"\x97\x16\n\rConfiguration\x12\x0b\n\x03mcc\x18\x01 \x01(\r\x12\x0b\n\x03mnc\x18\x02 \x01(\r\x12\x0e\n\x06locale\x18\x03 \x01(\t\x12@\n\x10layout_direction\x18\x04 \x01(\x0e\x32&.aapt.pb.Configuration.LayoutDirection\x12\x14\n\x0cscreen_width\x18\x05 \x01(\r\x12\x15\n\rscreen_height\x18\x06 \x01(\r\x12\x17\n\x0fscreen_width_dp\x18\x07 \x01(\r\x12\x18\n\x10screen_height_dp\x18\x08 \x01(\r\x12 \n\x18smallest_screen_width_dp\x18\t \x01(\r\x12\x43\n\x12screen_layout_size\x18\n \x01(\x0e\x32\'.aapt.pb.Configuration.ScreenLayoutSize\x12\x43\n\x12screen_layout_long\x18\x0b \x01(\x0e\x32\'.aapt.pb.Configuration.ScreenLayoutLong\x12\x38\n\x0cscreen_round\x18\x0c \x01(\x0e\x32\".aapt.pb.Configuration.ScreenRound\x12?\n\x10wide_color_gamut\x18\r \x01(\x0e\x32%.aapt.pb.Configuration.WideColorGamut\x12\'\n\x03hdr\x18\x0e \x01(\x0e\x32\x1a.aapt.pb.Configuration.Hdr\x12\x37\n\x0borientation\x18\x0f \x01(\x0e\x32\".aapt.pb.Configuration.Orientation\x12\x37\n\x0cui_mode_type\x18\x10 \x01(\x0e\x32!.aapt.pb.Configuration.UiModeType\x12\x39\n\rui_mode_night\x18\x11 \x01(\x0e\x32\".aapt.pb.Configuration.UiModeNight\x12\x0f\n\x07\x64\x65nsity\x18\x12 \x01(\r\x12\x37\n\x0btouchscreen\x18\x13 \x01(\x0e\x32\".aapt.pb.Configuration.Touchscreen\x12\x36\n\x0bkeys_hidden\x18\x14 \x01(\x0e\x32!.aapt.pb.Configuration.KeysHidden\x12\x31\n\x08keyboard\x18\x15 \x01(\x0e\x32\x1f.aapt.pb.Configuration.Keyboard\x12\x34\n\nnav_hidden\x18\x16 \x01(\x0e\x32 .aapt.pb.Configuration.NavHidden\x12\x35\n\nnavigation\x18\x17 \x01(\x0e\x32!.aapt.pb.Configuration.Navigation\x12\x13\n\x0bsdk_version\x18\x18 \x01(\r\x12\x44\n\x12grammatical_gender\x18\x1a \x01(\x0e\x32(.aapt.pb.Configuration.GrammaticalGender\x12\x0f\n\x07product\x18\x19 \x01(\t\"a\n\x0fLayoutDirection\x12\x1a\n\x16LAYOUT_DIRECTION_UNSET\x10\x00\x12\x18\n\x14LAYOUT_DIRECTION_LTR\x10\x01\x12\x18\n\x14LAYOUT_DIRECTION_RTL\x10\x02\"\xaa\x01\n\x10ScreenLayoutSize\x12\x1c\n\x18SCREEN_LAYOUT_SIZE_UNSET\x10\x00\x12\x1c\n\x18SCREEN_LAYOUT_SIZE_SMALL\x10\x01\x12\x1d\n\x19SCREEN_LAYOUT_SIZE_NORMAL\x10\x02\x12\x1c\n\x18SCREEN_LAYOUT_SIZE_LARGE\x10\x03\x12\x1d\n\x19SCREEN_LAYOUT_SIZE_XLARGE\x10\x04\"m\n\x10ScreenLayoutLong\x12\x1c\n\x18SCREEN_LAYOUT_LONG_UNSET\x10\x00\x12\x1b\n\x17SCREEN_LAYOUT_LONG_LONG\x10\x01\x12\x1e\n\x1aSCREEN_LAYOUT_LONG_NOTLONG\x10\x02\"X\n\x0bScreenRound\x12\x16\n\x12SCREEN_ROUND_UNSET\x10\x00\x12\x16\n\x12SCREEN_ROUND_ROUND\x10\x01\x12\x19\n\x15SCREEN_ROUND_NOTROUND\x10\x02\"h\n\x0eWideColorGamut\x12\x1a\n\x16WIDE_COLOR_GAMUT_UNSET\x10\x00\x12\x1b\n\x17WIDE_COLOR_GAMUT_WIDECG\x10\x01\x12\x1d\n\x19WIDE_COLOR_GAMUT_NOWIDECG\x10\x02\"3\n\x03Hdr\x12\r\n\tHDR_UNSET\x10\x00\x12\x0e\n\nHDR_HIGHDR\x10\x01\x12\r\n\tHDR_LOWDR\x10\x02\"h\n\x0bOrientation\x12\x15\n\x11ORIENTATION_UNSET\x10\x00\x12\x14\n\x10ORIENTATION_PORT\x10\x01\x12\x14\n\x10ORIENTATION_LAND\x10\x02\x12\x16\n\x12ORIENTATION_SQUARE\x10\x03\"\xd7\x01\n\nUiModeType\x12\x16\n\x12UI_MODE_TYPE_UNSET\x10\x00\x12\x17\n\x13UI_MODE_TYPE_NORMAL\x10\x01\x12\x15\n\x11UI_MODE_TYPE_DESK\x10\x02\x12\x14\n\x10UI_MODE_TYPE_CAR\x10\x03\x12\x1b\n\x17UI_MODE_TYPE_TELEVISION\x10\x04\x12\x1a\n\x16UI_MODE_TYPE_APPLIANCE\x10\x05\x12\x16\n\x12UI_MODE_TYPE_WATCH\x10\x06\x12\x1a\n\x16UI_MODE_TYPE_VRHEADSET\x10\x07\"[\n\x0bUiModeNight\x12\x17\n\x13UI_MODE_NIGHT_UNSET\x10\x00\x12\x17\n\x13UI_MODE_NIGHT_NIGHT\x10\x01\x12\x1a\n\x16UI_MODE_NIGHT_NOTNIGHT\x10\x02\"m\n\x0bTouchscreen\x12\x15\n\x11TOUCHSCREEN_UNSET\x10\x00\x12\x17\n\x13TOUCHSCREEN_NOTOUCH\x10\x01\x12\x16\n\x12TOUCHSCREEN_STYLUS\x10\x02\x12\x16\n\x12TOUCHSCREEN_FINGER\x10\x03\"v\n\nKeysHidden\x12\x15\n\x11KEYS_HIDDEN_UNSET\x10\x00\x12\x1b\n\x17KEYS_HIDDEN_KEYSEXPOSED\x10\x01\x12\x1a\n\x16KEYS_HIDDEN_KEYSHIDDEN\x10\x02\x12\x18\n\x14KEYS_HIDDEN_KEYSSOFT\x10\x03\"`\n\x08Keyboard\x12\x12\n\x0eKEYBOARD_UNSET\x10\x00\x12\x13\n\x0fKEYBOARD_NOKEYS\x10\x01\x12\x13\n\x0fKEYBOARD_QWERTY\x10\x02\x12\x16\n\x12KEYBOARD_TWELVEKEY\x10\x03\"V\n\tNavHidden\x12\x14\n\x10NAV_HIDDEN_UNSET\x10\x00\x12\x19\n\x15NAV_HIDDEN_NAVEXPOSED\x10\x01\x12\x18\n\x14NAV_HIDDEN_NAVHIDDEN\x10\x02\"}\n\nNavigation\x12\x14\n\x10NAVIGATION_UNSET\x10\x00\x12\x14\n\x10NAVIGATION_NONAV\x10\x01\x12\x13\n\x0fNAVIGATION_DPAD\x10\x02\x12\x18\n\x14NAVIGATION_TRACKBALL\x10\x03\x12\x14\n\x10NAVIGATION_WHEEL\x10\x04\"v\n\x11GrammaticalGender\x12\x14\n\x10GRAM_GENDER_USET\x10\x00\x12\x16\n\x12GRAM_GENDER_NEUTER\x10\x01\x12\x18\n\x14GRAM_GENDER_FEMININE\x10\x02\x12\x19\n\x15GRAM_GENDER_MASCULINE\x10\x03\x42\x12\n\x10\x63om.android.aaptb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
12
|
+
|
122
13
|
module Aapt
|
123
14
|
module Pb
|
124
15
|
Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Configuration").msgclass
|
@@ -136,5 +27,6 @@ module Aapt
|
|
136
27
|
Configuration::Keyboard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Configuration.Keyboard").enummodule
|
137
28
|
Configuration::NavHidden = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Configuration.NavHidden").enummodule
|
138
29
|
Configuration::Navigation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Configuration.Navigation").enummodule
|
30
|
+
Configuration::GrammaticalGender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aapt.pb.Configuration.GrammaticalGender").enummodule
|
139
31
|
end
|
140
32
|
end
|
@@ -20,7 +20,7 @@ protoc --decode=aapt.pb.ResourceTable Resources.proto < aab/base/native.pb > nat
|
|
20
20
|
|
21
21
|
`Configuration.proto` and `Resources.proto` can be found in aapt2's github:
|
22
22
|
|
23
|
-
- https://
|
24
|
-
- https://
|
23
|
+
- https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/main/tools/aapt2/Configuration.proto
|
24
|
+
- https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/main/tools/aapt2/Resources.proto
|
25
25
|
|
26
26
|
Source: https://gist.github.com/Farious/e841ef85a8f4280e4f248ba8037ea2c0#file-rollback_aab-sh-L51
|