Verified Commit c7e6d9ed authored by Georg Koppen's avatar Georg Koppen Committed by Pier Angelo Vendrame
Browse files

Bug 40013: [android] Add option do overwrite timestamp in extension version

parent 6211b88b
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -163,7 +163,15 @@ gradle.projectsLoaded { ->
                rename { 'manifest.json' }
                into extDir

                def values = ['version': getManifestVersionString(rootProject.ext.config.componentsVersion)]
                def systemEnvBuildDate = System.getenv('MOZ_BUILD_DATE')
                
                // MOZ_BUILD_DATE is in the YYYYMMDDHHMMSS format. Thus, we only use a
                // substring of it if it is available.
                def values = ['version': rootProject.ext.config.componentsVersion + "." +
                        (systemEnvBuildDate != null ?
                                systemEnvBuildDate.substring(4) :
                                new Date().format('MMddHHmmss'))]

                inputs.properties(values)
                expand(values)
            }