packageId: string;
callerAppId: string;
permissions: string[];
+ pkgApiVersion: string;
smackMap: any;
constructor(id: string, isGlobal: boolean) {
this.callerAppId = ids[1] ?? '';
this.packageId = this.serviceId.split('.')[0];
this.permissions = [];
+ this.pkgApiVersion = '';
this.smackMap = {};
this.initWebapis();
this.permissions = wrt.getPrivileges(this.id);
this.refineResolveFilename();
if (isGlobal) {
+ this.pkgApiVersion = wrt.getPkgApiVersion(this.id);
this.refineApplicationApis();
this.refinePackageApis();
this.refineFilesystemApis()
throw 'Permission denied';
}
}
+ global.xwalk.utils.getPkgApiVersion = () => {
+ return this.pkgApiVersion;
+ }
}
}