android/lib/AndroidManifest.js
function AndroidManifest(output, path) {

    this._output = output;
    this._path = path;

    var doc = this.read();
    this._package = doc.documentElement.getAttribute("package");
    this._versionCode = doc.documentElement.getAttribute("android:versionCode");
    this._versionName = doc.documentElement.getAttribute("android:versionName");

    this._applicationIcon = null;
    var appNode = this.findApplicationNode(doc);
    if (appNode) {
        this._applicationIcon = appNode.getAttribute("android:icon");
    }

    this._applicationLabel = null;
    appNode = this.findApplicationNode(doc);
    if (appNode) {
        this._applicationLabel = appNode.getAttribute("android:label");
    }

    var activityNode = this.findChildNode(appNode, "activity");
    if (activityNode) {
        this._screenOrientation = activityNode.getAttribute("android:screenOrientation");
    }

    // TODO read other values from manifest and initialize members
}
function AndroidManifest(output, path) {

    this._output = output;
    this._path = path;

    var doc = this.read();
    this._package = doc.documentElement.getAttribute("package");
    this._versionCode = doc.documentElement.getAttribute("android:versionCode");
    this._versionName = doc.documentElement.getAttribute("android:versionName");

    this._applicationIcon = null;
    var appNode = this.findApplicationNode(doc);
    if (appNode) {
        this._applicationIcon = appNode.getAttribute("android:icon");
    }

    this._applicationLabel = null;
    appNode = this.findApplicationNode(doc);
    if (appNode) {
        this._applicationLabel = appNode.getAttribute("android:label");
    }

    var activityNode = this.findChildNode(appNode, "activity");
    if (activityNode) {
        this._screenOrientation = activityNode.getAttribute("android:screenOrientation");
    }

    // TODO read other values from manifest and initialize members
}
function AndroidManifest ( output , path ) { this . _output = output ; this . _path = path ; var doc = this . read ( ) ; this . _package = doc . documentElement . getAttribute ( "package" ) ; this . _versionCode = doc . documentElement . getAttribute ( "android:versionCode" ) ; this . _versionName = doc . documentElement . getAttribute ( "android:versionName" ) ; this . _applicationIcon = null ; var appNode = this . findApplicationNode ( doc ) ; if ( appNode ) { this . _applicationIcon = appNode . getAttribute ( "android:icon" ) ; } this . _applicationLabel = null ; appNode = this . findApplicationNode ( doc ) ; if ( appNode ) { this . _applicationLabel = appNode . getAttribute ( "android:label" ) ; } var activityNode = this . findChildNode ( appNode , "activity" ) ; if ( activityNode ) { this . _screenOrientation = activityNode . getAttribute ( "android:screenOrientation" ) ; } // TODO read other values from manifest and initialize members }
AndroidManifest wrapper.
@param {OutputIface} output Output implementation
@param {String} path Path to manifest.json
@constructor
AndroidManifest wrapper .