@@ -92,12 +92,19 @@ type UsesSDK struct {
92
92
Max androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android maxSdkVersion,attr"`
93
93
}
94
94
95
+ // UsesPermission is user grant the system permission.
96
+ type UsesPermission struct {
97
+ Name androidbinary.String `xml:"http://schemas.android.com/apk/res/android name,attr"`
98
+ Max androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android maxSdkVersion,attr"`
99
+ }
100
+
95
101
// Manifest is a manifest of an APK.
96
102
type Manifest struct {
97
- Package androidbinary.String `xml:"package,attr"`
98
- VersionCode androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android versionCode,attr"`
99
- VersionName androidbinary.String `xml:"http://schemas.android.com/apk/res/android versionName,attr"`
100
- App Application `xml:"application"`
101
- Instrument Instrumentation `xml:"instrumentation"`
102
- SDK UsesSDK `xml:"uses-sdk"`
103
+ Package androidbinary.String `xml:"package,attr"`
104
+ VersionCode androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android versionCode,attr"`
105
+ VersionName androidbinary.String `xml:"http://schemas.android.com/apk/res/android versionName,attr"`
106
+ App Application `xml:"application"`
107
+ Instrument Instrumentation `xml:"instrumentation"`
108
+ SDK UsesSDK `xml:"uses-sdk"`
109
+ UsesPermissions []UsesPermission `xml:"uses-permission"`
103
110
}
0 commit comments