Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0984d4da authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

add incrementing versionCode

parent 1644ba5d
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -20,10 +20,21 @@ def buildDate = { ->
android {
    compileSdk 34

    def localPropsFile = rootProject.file("local.properties")
    def localProps = new Properties()

    if (localPropsFile.exists()) {
        localProps.load(new FileInputStream(localPropsFile))
    }

    def appVersionCode = localProps.getProperty('VERSION_CODE', '403090007').toInteger() + 1
    localProps.setProperty('VERSION_CODE', appVersionCode.toString())
    localProps.store(new FileOutputStream(localPropsFile), null)

    defaultConfig {
        applicationId "foundation.e.accountmanager"

        versionCode 403090007
        versionCode appVersionCode
        versionName '4.3.9-7'

        buildConfigField "long", "buildTime", System.currentTimeMillis() + "L"