Introduce target version and min platform version as app attributes

Description

This is probably as simple as a couple of keys in a MANIFEST.MF file.

We should document what it means, make sure API implementations can always access the target version of the calling CorDapp (i.e. by examining the flow, doing a stack walk or using Reflection.getCallerClass()) and do a simple test of an API that acts differently depending on the target version of the app.

We should also implement checking at CorDapp load time that min platform version <= current platform version.

Assignee

Florian.Friemel@r3.com

Reporter

Mike Hearn

Feature Team

Corda Core

Story Points / Dev Days

20

Fix versions

None

Ported to...

None

Engineering Teams

None

Priority

Medium

Sprint

None
Configure