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

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

fix: Use correct versioncode

parent 0a3d1bcc
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -27,7 +27,15 @@ android {
        localProps.load(new FileInputStream(localPropsFile))
    }

    def appVersionCode = localProps.getProperty('VERSION_CODE', '403090007').toInteger() + 1
    def appVersionCode = localProps.getProperty('VERSION_CODE')
    if (appVersionCode == null) {
        // Set initial version code if not present
        appVersionCode = 403090007
    } else {
        // Increment version code for subsequent builds
        appVersionCode = appVersionCode.toInteger() + 1
    }

    localProps.setProperty('VERSION_CODE', appVersionCode.toString())
    localProps.store(new FileOutputStream(localPropsFile), null)