"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
var PlatformBuildCfg_1 = require("../PlatformBuildCfg");
var ByteDancePlatform_1 = __importDefault(require("./ByteDancePlatform"));
var WebMobilePlatform_1 = __importDefault(require("./WebMobilePlatform"));
var WechatgamePlatform_1 = __importDefault(require("./WechatgamePlatform"));
var PlatformFactory = /** @class */ (function () {
    function PlatformFactory() {
    }
    PlatformFactory.Create = function (platform) {
        switch (platform) {
            case PlatformBuildCfg_1.Platform.wx:
                return new WechatgamePlatform_1["default"]();
            case PlatformBuildCfg_1.Platform.tt:
                return new ByteDancePlatform_1["default"]();
            case PlatformBuildCfg_1.Platform.h5:
                return new WebMobilePlatform_1["default"]();
            default:
                break;
        }
    };
    return PlatformFactory;
}());
exports["default"] = PlatformFactory;
