How to use the node-titanium-sdk/lib/builder.apply function in node-titanium-sdk

To help you get started, we’ve selected a few node-titanium-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appcelerator / titanium_mobile_windows / cli / commands / _build.js View on Github external
function WindowsBuilder() {
	Builder.apply(this, arguments);

	this.deployTypes = {
		// windows phone targets
		'wp-emulator': 'development',
		'wp-device': 'test',
		'dist-phonestore': 'production',

		// windows store targets
		// 'ws-simulator': 'development',
		'ws-local': 'development',
		// 'ws-remote': 'test',
		'dist-winstore': 'production'
	};

	this.targets = Object.keys(this.deployTypes);
github appcelerator / titanium_mobile / android / cli / commands / _buildModule.js View on Github external
function AndroidModuleBuilder() {
	Builder.apply(this, arguments);

	this.requiredArchitectures = this.packageJson.architectures;
	this.compileSdkVersion = this.packageJson.compileSDKVersion; // this should always be >= maxSupportedApiLevel
	this.minSupportedApiLevel = parseInt(this.packageJson.minSDKVersion);
	this.minTargetApiLevel = parseInt(version.parseMin(this.packageJson.vendorDependencies['android sdk']));
	this.maxSupportedApiLevel = parseInt(version.parseMax(this.packageJson.vendorDependencies['android sdk']));
}
github appcelerator / titanium_mobile / iphone / cli / commands / _buildModule.js View on Github external
function iOSModuleBuilder() {
	Builder.apply(this, arguments);
}
github appcelerator / titanium_mobile / android / cli / lib / base-builder.js View on Github external
function AndroidBaseBuilder() {
	Builder.apply(this, arguments);

	this.androidLibraries = [];
	this.dependencyMap = JSON.parse(fs.readFileSync(path.join(this.platformPath, 'dependency.json')));
}
github appcelerator / titanium_mobile / mobileweb / cli / commands / _build.js View on Github external
function MobileWebBuilder() {
	Builder.apply(this, arguments);

	this.templatesDir = path.join(this.platformPath, 'templates', 'build');

	this.imageMimeTypes = {
		'.png': 'image/png',
		'.gif': 'image/gif',
		'.jpg': 'image/jpg',
		'.jpeg': 'image/jpg'
	};

	this.prefetch = [];

	this.targets = ['web'];
}