Skip to content

Commit

Permalink
Fix deploy android circleci job (#558)
Browse files Browse the repository at this point in the history
As part of #552, we added sdkman to install the correct java version.
However, the deploy job in CircleCI runs in the root folder, as opposed
to the test/lint jobs, which run in the `android` folder, so it wasn't
actually installing the correct java version because there was no
`.sdkmanrc` file in the root folder and was causing the deploy job to
fail, as seen in [PR
557](https://app.circleci.com/pipelines/github/RevenueCat/purchases-hybrid-common/2622/workflows/e6029d52-84ae-4114-b293-4fa576a900c3/jobs/10735)
.

This adds a symlink in the root folder to the `android` folder so we
have the same sdkmanrc in both locations.

An alternative would be to switch folders during the deploy job, but I
wanted to keep it in the root folder if possible, seemed cleaner to me.
Lmk if you think otherwise.
  • Loading branch information
tonidero committed Nov 13, 2023
1 parent 12a69d3 commit 741c47e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .sdkmanrc

0 comments on commit 741c47e

Please sign in to comment.