diff --git a/apk/apkxml.go b/apk/apkxml.go index 47598c8..abc6a1d 100644 --- a/apk/apkxml.go +++ b/apk/apkxml.go @@ -100,11 +100,13 @@ type UsesPermission struct { // Manifest is a manifest of an APK. type Manifest struct { - Package androidbinary.String `xml:"package,attr"` - VersionCode androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android versionCode,attr"` - VersionName androidbinary.String `xml:"http://schemas.android.com/apk/res/android versionName,attr"` - App Application `xml:"application"` - Instrument Instrumentation `xml:"instrumentation"` - SDK UsesSDK `xml:"uses-sdk"` - UsesPermissions []UsesPermission `xml:"uses-permission"` + Package androidbinary.String `xml:"package,attr"` + CompileSDKVersion androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android compileSdkVersion,attr"` + CompileSDKVersionCodename androidbinary.String `xml:"http://schemas.android.com/apk/res/android compileSdkVersionCodename,attr"` + VersionCode androidbinary.Int32 `xml:"http://schemas.android.com/apk/res/android versionCode,attr"` + VersionName androidbinary.String `xml:"http://schemas.android.com/apk/res/android versionName,attr"` + App Application `xml:"application"` + Instrument Instrumentation `xml:"instrumentation"` + SDK UsesSDK `xml:"uses-sdk"` + UsesPermissions []UsesPermission `xml:"uses-permission"` } diff --git a/example_test.go b/example_test.go index 5134ad1..84b4c8f 100644 --- a/example_test.go +++ b/example_test.go @@ -25,7 +25,7 @@ func ExampleNewXMLFile() { enc.Encode(v) // Output: - // + // // // //