diff --git a/config/version.mk b/config/version.mk index a4d05b19b655574745997768fbf81f9b0a4a9189..80dbb7445a671b159eabb467c50fe3bd60fe608c 100644 --- a/config/version.mk +++ b/config/version.mk @@ -1,6 +1,8 @@ ANDROID_LETTER := s PRODUCT_VERSION_MAJOR = 1 PRODUCT_VERSION_MINOR = 5 +PRODUCT_VERSION_MAINTENANCE := 0 +PRODUCT_PRERELEASE_STRING = "" ifdef PRODUCT_PRERELEASE ifdef PRODUCT_PRERELEASE_VERSION @@ -41,7 +43,11 @@ endif LINEAGE_VERSION_SUFFIX := $(LINEAGE_BUILD_DATE)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) # Internal version -LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +ifeq ($(PRODUCT_VERSION_MAINTENANCE),0) + LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +else + LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +endif # Display version LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION)