Use PlatformSdkVersion from Make
This doesn't need to be hardcoded, and should be updated anyways. Change-Id: Ie28d0d7655e8db3c02d110ae578a763a69b73f92
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
@@ -278,7 +279,7 @@ func (c *config) PlatformVersion() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) PlatformSdkVersion() string {
|
func (c *config) PlatformSdkVersion() string {
|
||||||
return "22"
|
return strconv.Itoa(*c.ProductVariables.Platform_sdk_version)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) BuildNumber() string {
|
func (c *config) BuildNumber() string {
|
||||||
|
@@ -115,7 +115,7 @@ func stringPtr(v string) *string {
|
|||||||
|
|
||||||
func (v *productVariables) SetDefaultConfig() {
|
func (v *productVariables) SetDefaultConfig() {
|
||||||
*v = productVariables{
|
*v = productVariables{
|
||||||
Platform_sdk_version: intPtr(22),
|
Platform_sdk_version: intPtr(23),
|
||||||
HostArch: stringPtr("x86_64"),
|
HostArch: stringPtr("x86_64"),
|
||||||
HostSecondaryArch: stringPtr("x86"),
|
HostSecondaryArch: stringPtr("x86"),
|
||||||
DeviceName: stringPtr("flounder"),
|
DeviceName: stringPtr("flounder"),
|
||||||
|
Reference in New Issue
Block a user