#!/bin/bash
set -e
cd "$(dirname $0)"

# build just KMP projects. This will also enable native targets.
export ANDROIDX_PROJECTS=KMP

# disable cache, NS does not allow it yet: b/235227707
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false

# run build in a sandbox
../development/sandbox/run-without-network.sh impl/build.sh buildOnServer --no-configuration-cache --no-daemon --offline

#!/bin/bash
set -e
cd "$(dirname $0)"

# build just KMP projects. This will also enable native targets.
export ANDROIDX_PROJECTS=KMP

# disable cache, NS does not allow it yet: b/235227707
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false

# run build in a sandbox
../development/sandbox/run-without-network.sh impl/build.sh buildOnServer --no-configuration-cache --no-daemon

Remove --offline from the sandbox build
Remove --offline from the sandbox build

With Kotlin 1.7.0, Kotlin Gradle Plugin inherits the --offline
flag for its `airplaneMode`.

Unfortunately, with that flag, it doesn't consider any of its
repository parameters for pulling dependencies, hence it fails.

This CL works around that issue by removing the `--offline` flag
from the sandbox build. Note that the sandbox build runs in nsjail
hence it cannot be making any network requests so this is a rather
safe change.

Ideally, we need to work with a proper long term solution but
this is a quick band-aid to get the build working again.

Bug: https://youtrack.jetbrains.com/issue/KT-49247
Bug: 236115214
Test: CI (abdt run L41300000955135022)

Change-Id: Ie7bd8461c0eb4df6a74e5badae4b8f8d75c8bca2
