aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-11-09 19:39:42 +0000
committerDan Albert <danalbert@google.com>2016-11-09 19:39:42 +0000
commit74b8b55bb28629eb2a2d275f744688b34c2efa5e (patch)
tree4cab84ffd5a7abfa22e3b97025909bc7e9b8d623 /android
parent9bef52380933a3f1444607739d94a98506e0b441 (diff)
downloadbuild_soong-74b8b55bb28629eb2a2d275f744688b34c2efa5e.tar.gz
build_soong-74b8b55bb28629eb2a2d275f744688b34c2efa5e.tar.bz2
build_soong-74b8b55bb28629eb2a2d275f744688b34c2efa5e.zip
Revert "Use the platform SDK version from the config."
This reverts commit 9bef52380933a3f1444607739d94a98506e0b441. Reason for revert: Broke things Change-Id: Ic3deac4fb6992572ac0cc95fa04d003e0c29f113
Diffstat (limited to 'android')
-rw-r--r--android/config.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/android/config.go b/android/config.go
index 725f43de..f6ca2e75 100644
--- a/android/config.go
+++ b/android/config.go
@@ -323,12 +323,8 @@ func (c *config) PlatformVersion() string {
return "M"
}
-func (c *config) PlatformSdkVersionInt() int {
- return *c.ProductVariables.Platform_sdk_version
-}
-
func (c *config) PlatformSdkVersion() string {
- return strconv.Itoa(c.PlatformSdkVersionInt())
+ return strconv.Itoa(*c.ProductVariables.Platform_sdk_version)
}
func (c *config) BuildNumber() string {