Automatic versioning for Camera.
Bug: 10461009
This is the scheme copied from GMS Core and modified by Babel, which
allows us to generate version number more easily and also incorporate
build numbers into it.
Change-Id: I6ed4bf03e545a22423cb9936a5fcb67a50133490
diff --git a/Android.mk b/Android.mk
index a77ae82..17160e9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,7 +14,12 @@
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
-LOCAL_AAPT_FLAGS := --auto-add-overlay
+
+include $(LOCAL_PATH)/version.mk
+LOCAL_AAPT_FLAGS := \
+ --auto-add-overlay \
+ --version-name "$(version_name_package)" \
+ --version-code $(version_code_package) \
LOCAL_PACKAGE_NAME := Camera2
@@ -24,4 +29,4 @@
include $(BUILD_PACKAGE)
-include $(call all-makefiles-under, $(LOCAL_PATH))
\ No newline at end of file
+include $(call all-makefiles-under, $(LOCAL_PATH))