Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for an Assembly.as in the bundle support #8

Open
rolandzwaga opened this issue Apr 7, 2013 · 2 comments
Open

Add support for an Assembly.as in the bundle support #8

rolandzwaga opened this issue Apr 7, 2013 · 2 comments
Assignees

Comments

@rolandzwaga
Copy link
Member

The SDK should feature an interface called IAssembly, which, if implemented and added to a bundle project is able to define a number of metadata for that particular bundle.

The Assembly class will only be parsed, it will be ignored by the cross compiler.

The Assembly class will be able to determine the output name and version number of the bundle.

Only one IAssembly implementation should be allowed to exist in a bundle project, if multiple implementations are found, an error should be thrown.

Proposed interface signature:

public interface IAssembly {
function get name():String;
function set name(value:String):void;
function get version():Number;
function set version(value:Number):void;
}

@ghost ghost assigned teotigraphix Apr 7, 2013
@rolandzwaga
Copy link
Member Author

Since it'll be difficult to parse the actual values from a an interface. Perhaps we should drop the interface and simply use metadata annotations.
So, more like this:
[Assembly]
public class Assembly {
[Name]
public var name:String = "MyBundleName";
[Version]
public var version:Number = 1.2;
}

@teotigraphix
Copy link
Contributor

@labriola @rolandzwaga I need a real list or API definition for this. Please post the API draft here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants