"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlistParser = void 0;
const simple_plist_1 = require("simple-plist");
const yok_1 = require("./yok");
class PlistParser {
    parseFile(plistFilePath) {
        return new Promise((resolve, reject) => {
            (0, simple_plist_1.readFile)(plistFilePath, (err, obj) => {
                if (err) {
                    reject(err);
                }
                else {
                    resolve(obj);
                }
            });
        });
    }
    parseFileSync(plistFilePath) {
        return (0, simple_plist_1.readFileSync)(plistFilePath);
    }
}
exports.PlistParser = PlistParser;
yok_1.injector.register("plistParser", PlistParser);
