Skip to content

Commit

Permalink
fix: set compile sdk when null
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed May 16, 2022
1 parent bae5134 commit 5d1c9fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function updateUserProjectGradleConfig (project) {
projectGradleConfig.SDK_VERSION
);

projectGradleConfig.COMPILE_SDK_VERSION = projectGradleConfig.COMPILE_SDK_VERSION || projectGradleConfig.SDK_VERSION

// Write out changes
const projectGradleConfigPath = path.join(project.root, 'cdv-gradle-config.json');
fs.writeJSONSync(projectGradleConfigPath, projectGradleConfig, { spaces: 2 });
Expand Down

0 comments on commit 5d1c9fd

Please sign in to comment.