#!/usr/bin/env bash source "bin/init/env.sh" echo "sdk.dir=$ANDROID_HOME" >>local.properties echo "ndk.dir=$ANDROID_NDK_HOME" >>local.properties ## Remove unused non-free dependencies pushd TMessagesProj sed -i -e /play:core/d build.gradle sed -i -e /firebase/d build.gradle sed -i -e /gms/d build.gradle rm -rf jni/boringssl/fuzz rm jni/libwebp/swig/libwebp.jar rm jni/libwebp/gradle/wrapper/gradle-wrapper.jar rm jni/boringssl/util/ar/testdata/mac/libsample.a rm jni/boringssl/util/ar/testdata/linux/libsample.a popd rm -rf ssr-libev/src/main/jni/pcre/dist/testdata rm -rf ssr-libev/src/main/jni/mbedtls/programs/fuzz/corpuses rm -rf ssr-libev/src/main/jni/mbedtls/tests/data_files