Skip to content

Commit

Permalink
removed aab file from apk bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticated-raptor authored and andrehgdias committed Oct 10, 2024
1 parent 2adc2a8 commit 07028fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions android.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,22 @@ async function buildCalendarBundle({ buildType }) {
async function buildCalendarApk({ buildType }) {
const { version } = JSON.parse(await $`cat package.json`.quiet())

const bundleName = `calendar-tutao-${buildType}-${version}.apk`
const bundleName = `calendar-tutao-${buildType}-${version}`
const bundlePath = `app-android/calendar/build/outputs/apk/tutao/${buildType}/${bundleName}`
const outPath = `./build-calendar-app/app-android/${bundleName}`

cd("./app-android")

await $`if [ -f .${outPath}.aab ]; then mkdir ../temp; mv .${outPath}.aab ../temp/${bundleName}.aab; fi`

await $`./gradlew :calendar:assembleTutao${buildType}`

cd("..")

await $`mkdir -p build-calendar-app/app-android`
await $`mv ${bundlePath} ${outPath}`
await $`mv ${bundlePath}.apk ${outPath}.apk`

await $`if [ -f ./temp/${bundleName}.aab ]; then mv ./temp/${bundleName}.aab ${outPath}.aab; rm -d ./temp; fi`

log(`Build complete. The APK is located at: ${outPath}`)

Expand Down

0 comments on commit 07028fb

Please sign in to comment.