You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2021/07/06 16:12:08 UTC

[cordova-android] branch master updated: test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


The following commit(s) were added to refs/heads/master by this push:
     new 2037b62  test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)
2037b62 is described below

commit 2037b62f995a49c2cae65d39ad6ca963b0b21aab
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Tue Jul 6 18:12:00 2021 +0200

    test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)
    
    Should have been part of #1212
---
 spec/unit/check_reqs.spec.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/spec/unit/check_reqs.spec.js b/spec/unit/check_reqs.spec.js
index dba0017..b2bf8ac 100644
--- a/spec/unit/check_reqs.spec.js
+++ b/spec/unit/check_reqs.spec.js
@@ -25,8 +25,9 @@ var events = require('cordova-common').events;
 var which = require('which');
 const { CordovaError } = require('cordova-common');
 
-// This should match /bin/templates/project/build.gradle
-const DEFAULT_TARGET_API = 30;
+const {
+    SDK_VERSION: DEFAULT_TARGET_API
+} = require('../../bin/templates/cordova/lib/gradle-config-defaults');
 
 describe('check_reqs', function () {
     let check_reqs;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org