diff --git a/configs/codestyles/SquareAndroid.xml b/configs/codestyles/SquareAndroid.xml
index 32ff5cf..a3cb906 100644
--- a/configs/codestyles/SquareAndroid.xml
+++ b/configs/codestyles/SquareAndroid.xml
@@ -295,28 +295,40 @@
- xmlns:android
+
+ xmlns:android
+
+
- xmlns:.*
+
+ xmlns:.*
+
+
BY_NAME
@@ -326,6 +338,7 @@
.*:id
+
http://schemas.android.com/apk/res/android
@@ -346,6 +359,7 @@
.*:layout_width
+
http://schemas.android.com/apk/res/android
@@ -356,6 +370,7 @@
.*:layout_height
+
http://schemas.android.com/apk/res/android
@@ -366,6 +381,7 @@
.*:layout_.*
+
http://schemas.android.com/apk/res/android
@@ -377,6 +393,7 @@
.*
+
http://schemas.android.com/apk/res/android
@@ -386,7 +403,11 @@
- .*(?<!style)$
+
+ app:layout_.*
+
+ http://schemas.android.com/apk/res-auto
+
BY_NAME
@@ -394,7 +415,21 @@
- style
+
+ .*(?<!style)$
+
+
+
+ BY_NAME
+
+
+
diff --git a/install.sh b/install.sh
index a03a9a1..9f826a2 100755
--- a/install.sh
+++ b/install.sh
@@ -8,23 +8,25 @@ CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs"
for i in $HOME/Library/Preferences/IntelliJIdea* \
$HOME/Library/Preferences/IdeaIC* \
$HOME/Library/Preferences/AndroidStudio* \
+ $HOME/Library/Application\ Support/JetBrains/IntelliJIdea* \
$HOME/.IntelliJIdea*/config \
$HOME/.IdeaIC*/config \
- $HOME/.AndroidStudio*/config
+ $HOME/.AndroidStudio*/config \
+ $HOME/Library/Application\ Support/Google/AndroidStudio* \
+ $HOME/Library/Application\ Support/JetBrains/IdeaIC*
do
- if [[ -d $i ]]; then
-
+ if [[ -d "$i" ]]; then
# Install codestyles
- mkdir -p $i/codestyles
- cp -frv "$CONFIGS/codestyles"/* $i/codestyles
+ mkdir -p "$i/codestyles"
+ cp -frv "$CONFIGS/codestyles"/* "$i/codestyles"
# Install inspections
- mkdir -p $i/inspection
- cp -frv "$CONFIGS/inspection"/* $i/inspection
+ mkdir -p "$i/inspection"
+ cp -frv "$CONFIGS/inspection"/* "$i/inspection"
# Install options ("Exclude from Import and Completion")
- mkdir -p $i/options
- cp -frv "$CONFIGS/options"/* $i/options
+ mkdir -p "$i/options"
+ cp -frv "$CONFIGS/options"/* "$i/options"
fi
done