Skip to content

Commit

Permalink
WIP move android SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse committed Jul 6, 2021
1 parent fe4d47f commit 520e785
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 40 deletions.
26 changes: 0 additions & 26 deletions bin/android_sdk_version.bat

This file was deleted.

13 changes: 0 additions & 13 deletions bin/lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,6 @@ function copyScripts (projectPath) {

const nodeModulesDir = path.join(ROOT, 'node_modules');
if (fs.existsSync(nodeModulesDir)) fs.copySync(nodeModulesDir, path.join(destScriptsDir, 'node_modules'));

fs.copySync(path.join(bin, 'android_sdk_version'), path.join(destScriptsDir, 'android_sdk_version'));
fs.copySync(path.join(bin, 'android_sdk_version.bat'), path.join(destScriptsDir, 'android_sdk_version.bat'));

var android_sdk_version = path.join(destScriptsDir, 'android_sdk_version');

// TODO: the file being edited on-the-fly here is shared between
// platform and project-level commands. the below is updating the
// `require` path for the two libraries. if there's a better way to share
// modules across both the repo and generated projects, we should make sure
// to remove/update this.
const templatesCordovaRegex = /templates\/cordova\//;
utils.replaceFileContents(android_sdk_version, templatesCordovaRegex, '');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
under the License.
*/

var android_sdk = require('./templates/cordova/lib/android_sdk');
var android_sdk = require('./lib/android_sdk');

android_sdk.print_newest_available_sdk_target().catch(err => {
console.error(err);
Expand Down

0 comments on commit 520e785

Please sign in to comment.