You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/09/05 04:11:50 UTC
[GitHub] erisu commented on a change in pull request #490: Fixes build & run
related bugs from builder refactor
erisu commented on a change in pull request #490: Fixes build & run related bugs from builder refactor
URL: https://github.com/apache/cordova-android/pull/490#discussion_r215131334
##########
File path: bin/templates/cordova/lib/builders/builders.js
##########
@@ -17,29 +17,18 @@
under the License.
*/
-var CordovaError = require('cordova-common').CordovaError;
-
-var knownBuilders = {
- gradle: 'ProjectBuilder',
- studio: 'ProjectBuilder'
-};
+const CordovaError = require('cordova-common').CordovaError;
/**
- * Helper method that instantiates and returns a builder for specified build
- * type.
+ * Helper method that instantiates and returns a builder for specified build type.
*
- * @param {String} builderType Builder name to construct and return. Must
- * be one of gradle' or 'studio'
- *
- * @return {Builder} A builder instance for specified build type.
+ * @return {Builder} A builder instance for specified build type.
*/
-module.exports.getBuilder = function (builderType, projectRoot) {
- if (!knownBuilders[builderType]) { throw new CordovaError('Builder ' + builderType + ' is not supported.'); }
-
+module.exports.getBuilder = function () {
Review comment:
I scanned across repos and it seems only Android uses it. I will say its safe to remove, but I believe a cleanup PR will be better for this so we do not delay the fix.
I tried changing them and it ended up breaking around 70 tests. I would like to focus on that after.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org