Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ignore android build errors #10387

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 24 additions & 4 deletions packages/ui-mobile-base/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/bin/sh
#!/bin/bash

echo "Set exit on simple errors"
set -e
function throwErrors()
{
echo "Set exit on simple errors"
set -e
}

function ignoreErrors()
{
echo "ignore errors"
set +e
}

throwErrors

echo "Use dumb gradle terminal"
export TERM=dumb
Expand All @@ -11,8 +21,18 @@ echo "Clean dist"
rm -rf dist

export SKIP_PACK=true

# we ignore android widgets lib build errors for scenarios like:
# macOS dev without android dev env
ignoreErrors
./build.android.sh
./build.ios.sh
throwErrors

# only build ios widgets framework on macOS
if [[ "$OSTYPE" =~ "darwin" ]];
then
./build.ios.sh
fi

echo "Copy NPM artifacts"
cp .npmignore README.md package.json dist/package
Expand Down