From 741c47e0e58d851b9a3bc902123c8f556541ba8f Mon Sep 17 00:00:00 2001 From: Toni Rico Date: Mon, 13 Nov 2023 15:38:09 +0100 Subject: [PATCH] Fix deploy android circleci job (#558) 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. --- .sdkmanrc | 1 + 1 file changed, 1 insertion(+) create mode 120000 .sdkmanrc diff --git a/.sdkmanrc b/.sdkmanrc new file mode 120000 index 00000000..004b1b82 --- /dev/null +++ b/.sdkmanrc @@ -0,0 +1 @@ +android/.sdkmanrc \ No newline at end of file