2020-04-29 20:38:17 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-09-24 18:09:02 +08:00
|
|
|
# Copyright 2020-2024 New Vector Ltd.
|
2020-04-29 20:38:17 +08:00
|
|
|
#
|
2024-09-24 18:09:02 +08:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
# Please see LICENSE in the repository root for full details.
|
2020-04-29 20:38:17 +08:00
|
|
|
|
2020-08-28 17:25:16 +08:00
|
|
|
echo "Configure Element Template..."
|
2020-06-20 22:40:36 +08:00
|
|
|
if [ -z ${ANDROID_STUDIO+x} ]; then ANDROID_STUDIO="/Applications/Android Studio.app/Contents"; fi
|
2020-04-29 20:38:17 +08:00
|
|
|
{
|
2020-11-14 01:25:04 +08:00
|
|
|
mkdir -p "${ANDROID_STUDIO%/}/plugins/android/lib/templates/other"
|
2020-08-28 17:25:16 +08:00
|
|
|
ln -s $(pwd)/ElementFeature "${ANDROID_STUDIO%/}/plugins/android/lib/templates/other"
|
2020-04-29 20:38:17 +08:00
|
|
|
} && {
|
|
|
|
echo "Please restart Android Studio."
|
|
|
|
}
|