blob: 43e74276208b3a497bddced752422e4516076452 [file] [log] [blame]
#!/bin/bash
set -e
cd "$(dirname "$0")"
# Builds all projects that support KMP except for Compose-specific projects
# Must be run on Mac
export ANDROIDX_PROJECTS=INFRAROGUE # TODO: Switch from `INFRAROGUE` to `KMP`
# This target is for testing that clean builds work correctly
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false
sharedArgs="--no-configuration-cache -Pandroidx.constraints=true $*"
# Setup simulators
impl/androidx-native-mac-simulator-setup.sh
impl/build.sh buildOnServer listTaskOutputs createAllArchives "$sharedArgs"
# run a separate createAllArchives task to prepare a repository
# folder in DIST.
# This cannot be merged with the buildOnServer run because
# snapshot version is not a proper release version.
DIST_DIR=$DIST_DIR/snapshots SNAPSHOT=true impl/build.sh createAllArchives "$sharedArgs"