Re: [w3c/manifest] Add a manifest option for the declaration the "version" of the web application (Issue #1036)

The existing [versioning proposal](https://w3c.github.io/miniapp-manifest/#version-member) in the MiniApp manifest responds mainly to the demand for distributing the apps in marketplaces or directories and for the user agents to manage the different versions of the same application (identified by `app_id`) in terms of caching and operation. 

The format is exactly as you, @songql, suggested:

```
{
    "version: {
        "code": [integer],
        "name": [human-readable-version]
    }
}
```

The `version.code` member holds the version number used to determine whether one version is more recent than another.  On the other hand, `version.name` aims to be shown to the users, and it should follow the [Semantic Versioning](https://semver.org/) patterns. 

This proposal is based on some similar approaches to indicate the 

__[Android manifest](https://developer.android.com/guide/topics/manifest/manifest-element)__:

``` xml
<manifest 
          android:versionCode=1
          android:versionName="1.0.0">
</manifest>
```

__[Quick App's manifest](https://quick-app-initiative.ow2.io/developers/guide/manifest.html)__:

``` json
{
  "versionName": "1.0",
  "versionCode": 1,
}
```

__[HarmonyOS `config.json` file](https://developer.harmonyos.com/en/docs/documentation/doc-guides/basic-config-file-overview-0000000000011951)__:

``` json
{
  "app": {
    "version": {
        "code": 1,
        "name": "1.0"
    }
}
```

So, this `version` member is aligned to the w3c/manifest-app-info#1 . We [mentioned this today](https://www.w3.org/2022/04/28-MiniApp-minutes.html) in our monthly meeting. The MiniApp WG is happy to discuss a potential convergence if this could be interesting for the Web App manifest (or App Info extension).


 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/1036#issuecomment-1112254079
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/issues/1036/1112254079@github.com>

Received on Thursday, 28 April 2022 14:10:12 UTC