diff options
Diffstat (limited to 'app/src/main/res')
52 files changed, 0 insertions, 1497 deletions
diff --git a/app/src/main/res/drawable/fab_label_background.xml b/app/src/main/res/drawable/fab_label_background.xml deleted file mode 100644 index 92c42569..00000000 --- a/app/src/main/res/drawable/fab_label_background.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - <corners android:radius="4dp" /> - <padding - android:bottom="4dp" - android:left="8dp" - android:right="8dp" - android:top="4dp" /> - <solid android:color="@color/fab_label_background_color" /> -</shape> diff --git a/app/src/main/res/drawable/ic_action_add_white.xml b/app/src/main/res/drawable/ic_action_add_white.xml deleted file mode 100644 index 0706462e..00000000 --- a/app/src/main/res/drawable/ic_action_add_white.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24.0" - android:viewportWidth="24.0"> - <path - android:fillColor="#ffffff" - android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_delete.xml b/app/src/main/res/drawable/ic_action_delete.xml deleted file mode 100644 index 34f27019..00000000 --- a/app/src/main/res/drawable/ic_action_delete.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_edit.xml b/app/src/main/res/drawable/ic_action_edit.xml deleted file mode 100644 index 0a4d120e..00000000 --- a/app/src/main/res/drawable/ic_action_edit.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_edit_white.xml b/app/src/main/res/drawable/ic_action_edit_white.xml deleted file mode 100644 index c1ce5043..00000000 --- a/app/src/main/res/drawable/ic_action_edit_white.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="#ffffff" - android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_open.xml b/app/src/main/res/drawable/ic_action_open.xml deleted file mode 100644 index ea56ba01..00000000 --- a/app/src/main/res/drawable/ic_action_open.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6L6,2zM13,9L13,3.5L18.5,9L13,9z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_open_white.xml b/app/src/main/res/drawable/ic_action_open_white.xml deleted file mode 100644 index 74648d14..00000000 --- a/app/src/main/res/drawable/ic_action_open_white.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="#ffffff" - android:pathData="M6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6L6,2zM13,9L13,3.5L18.5,9L13,9z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_save.xml b/app/src/main/res/drawable/ic_action_save.xml deleted file mode 100644 index 690d119d..00000000 --- a/app/src/main/res/drawable/ic_action_save.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M17,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,7l-4,-4zM12,19c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM15,9L5,9L5,5h10v4z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_action_scan_qr_code_white.xml b/app/src/main/res/drawable/ic_action_scan_qr_code_white.xml deleted file mode 100644 index cdd83361..00000000 --- a/app/src/main/res/drawable/ic_action_scan_qr_code_white.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="#ffffff" - android:pathData="M4,4H10V10H4V4M20,4V10H14V4H20M14,15H16V13H14V11H16V13H18V11H20V13H18V15H20V18H18V20H16V18H13V20H11V16H14V15M16,15V18H18V15H16M4,20V14H10V20H4M6,6V8H8V6H6M16,6V8H18V6H16M6,16V18H8V16H6M4,11H6V13H4V11M9,11H13V15H11V13H9V11M11,6H13V10H11V6M2,2V6H0V2A2,2 0 0,1 2,0H6V2H2M22,0A2,2 0 0,1 24,2V6H22V2H18V0H22M2,18V22H6V24H2A2,2 0 0,1 0,22V18H2M22,22V18H24V22A2,2 0 0,1 22,24H18V22H22Z" /> -</vector>
\ No newline at end of file diff --git a/app/src/main/res/drawable/ic_action_select_all.xml b/app/src/main/res/drawable/ic_action_select_all.xml deleted file mode 100644 index 9c560297..00000000 --- a/app/src/main/res/drawable/ic_action_select_all.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M3 5L5 5 5 3C3.9 3 3 3.9 3 5Zm0 8l2 0 0 -2 -2 0 0 2zm4 8l2 0 0 -2 -2 0 0 2zM3 9L5 9 5 7 3 7 3 9Zm10 -6l-2 0 0 2 2 0 0 -2zm6 0l0 2 2 0C21 3.9 20.1 3 19 3ZM5 21L5 19 3 19c0 1.1 0.9 2 2 2zm-2 -4l2 0 0 -2 -2 0 0 2zM9 3L7 3 7 5 9 5 9 3Zm2 18l2 0 0 -2 -2 0 0 2zm8 -8l2 0 0 -2 -2 0 0 2zm0 8c1.1 0 2 -0.9 2 -2l-2 0 0 2zm0 -12l2 0 0 -2 -2 0 0 2zm0 8l2 0 0 -2 -2 0 0 2zm-4 4l2 0 0 -2 -2 0 0 2zm0 -16l2 0 0 -2 -2 0 0 2zM7 17L17 17 17 7 7 7 7 17Zm2 -8l6 0 0 6 -6 0 0 -6z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml deleted file mode 100644 index f9713f37..00000000 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="108dp" - android:height="108dp" - android:viewportHeight="2160" - android:viewportWidth="2160"> - <group - android:scaleX="1" - android:scaleY="-1" - android:translateX="630" - android:translateY="1750"> - <group> - <clip-path android:pathData="M0 1347.452l773.449 0L773.449 0 0 0Z" /> - <group - android:translateX="349.0264" - android:translateY="572.616"> - <path - android:fillColor="#ffffff" - android:pathData="M0 0c-12.169 -6.44 -21.541 -11.184 -30.71 -16.292 -37.523 -20.902 -69.603 -48.262 -95.162 -82.767 -8.264 -11.156 -13.945 -12.055 -26.528 -4.36 -163.692 100.101 -174.212 351.318 4.549 460.681 139.045 85.064 316.68 33.074 383.242 -94.85 12.614 -24.244 14.218 -61.567 6.228 -87 -27.582 -87.807 -92.71 -137.049 -182.1 -157.968 26.353 22.561 47.329 48.145 54.006 83.494 6.725 35.606 -0.388 67.807 -21.041 97.072 -31.371 44.451 -92.029 62.74 -142.721 43.492 -55.035 -20.896 -85.181 -71.123 -79.747 -132.863C-124.935 51.288 -81.419 14.12 0 0" /> - </group> - <group android:translateY="285.9856"> - <path - android:fillColor="#ffffff" - android:pathData="M0 0C13.148 88.712 117.033 170.407 204.881 161.087 177.673 124.291 165.104 82.664 162.071 41.145 132.88 35.769 105.368 32.152 78.66 25.373 52.364 18.698 26.882 8.816 0 0" /> - </group> - <group - android:translateX="580.2814" - android:translateY="1243.915"> - <path - android:fillColor="#ffffff" - android:pathData="M0 0C4.917 3.762 9.98 6.922 16.085 1.891 19.557 -0.97 22.93 -3.933 27.136 -7.523 21.915 -10.28 17.676 -12.599 13.355 -14.779 7.307 -17.83 2.785 -15.792 -0.877 -10.972 -3.847 -7.062 -4.384 -3.354 0 0m71.552 -730.934c-7.403 6.401 -12.094 6.399 -20.775 0.845 -29.454 -18.844 -59.602 -36.696 -90.239 -53.556 -17.562 -9.664 -36.584 -16.675 -58.61 -26.516 7.564 -1.952 11.203 -2.865 14.829 -3.83 82.337 -21.913 126.326 -94.196 106.841 -175.157 -17.329 -71.999 -90.422 -118.033 -161.255 -105.889 -59.053 10.125 -110.601 59.161 -119.21 117.917 -9.382 64.032 22.508 125.618 79.246 151.417 31.472 14.31 63.79 26.766 95.186 41.229 35.697 16.445 74.29 29.435 105.458 52.322 77.355 56.801 125.124 135.006 143.747 229.401 11.155 56.543 10.401 112.837 -15.467 166.524 -19.851 41.202 -52.429 71.133 -87.429 98.447 -36.018 28.108 -74.148 53.518 -110.002 81.821 -9.702 7.659 -16.252 20.865 -20.742 32.84 -1.903 5.075 4.287 18.838 8.426 19.581 21.985 3.946 44.45 5.978 66.818 6.823 25.82 0.974 51.713 0.148 77.571 -0.192 5.606 -0.073 13.217 0.653 16.439 -2.514 13.394 -13.167 23.897 -4.697 33.194 3.965 7.823 7.29 13.399 16.992 19.62 25.168 -3.775 0.555 -11.519 2.505 -19.304 2.689 -26.003 0.616 -52.035 0.221 -78.021 1.176 -4.63 0.17 -9.09 4.935 -13.629 7.579 4.776 1.898 9.537 5.399 14.33 5.444 44.849 0.421 89.703 0.25 134.594 0.25 0.052 23.336 -31.136 55.291 -58.846 63.95 -0.207 -3.158 -0.4 -6.097 -0.606 -9.233C106.184 0.913 79.16 1.426 54.61 14.481 48.141 17.921 43.912 25.57 38.647 31.279 32.019 38.467 26.58 47.709 18.5 52.399 1.934 62.014 -16.148 68.982 -33.431 77.4c-61.418 29.914 -126.278 28.862 -195.946 22.484 41.644 -9.693 79.255 -18.447 116.865 -27.202 -0.428 -2.286 -0.856 -4.573 -1.284 -6.86 -50.308 -6.74 -97.898 11.71 -147.101 18.545 17.831 -10.443 35.897 -20.152 54.561 -28.527 18.965 -8.51 38.52 -15.705 58.076 -23.58 -24.845 -21.229 -49.776 -25.887 -81.008 -18.751 -17.072 3.901 -35.132 5.972 -52.564 5.121 -18.006 -0.88 -36.141 -5.311 -52.491 -16.238 17.507 -8.875 33.643 -16.24 48.864 -25.165 6.277 -3.681 13.473 -9.93 15.223 -16.377 4.191 -15.44 5.402 -31.689 7.817 -47.623 -28.667 -3.247 -79.074 -32.4 -89.261 -51.373 44.059 -8.478 92.031 1.777 134.06 -26.617 -13.844 -10.477 -46.085 -23.507 -57.911 -32.457 14.621 -3.831 48.498 -1.955 61.751 -1.057 11.157 0.756 16.306 1.029 20.881 -2.735l129.701 -101.541c13.638 -10.994 68.719 -63.131 83.098 -95.903 12.241 -27.902 13.739 -51.638 13.736 -57.431 -0.01 -15.541 -1.917 -39.876 -12.605 -67.022 -4.488 -11.399 -17.658 -36.65 -44.826 -66.083 -42.107 -45.617 -96.27 -70.274 -155.501 -82.487 -137.722 -28.395 -252.153 -175.469 -219.85 -337.61 37.714 -189.296 246.646 -291.784 417.386 -201.739 110.359 58.201 168.871 171.751 153.193 295.356 -9.471 74.672 -43.252 135.578 -99.881 184.538" /> - </group> - </group> - </group> -</vector>
\ No newline at end of file diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml deleted file mode 100644 index aabfce2a..00000000 --- a/app/src/main/res/drawable/ic_settings.xml +++ /dev/null @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportHeight="24" - android:viewportWidth="24"> - <path - android:fillColor="?android:attr/colorForeground" - android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z" /> -</vector> diff --git a/app/src/main/res/drawable/ic_tile.xml b/app/src/main/res/drawable/ic_tile.xml deleted file mode 100644 index eaf784c1..00000000 --- a/app/src/main/res/drawable/ic_tile.xml +++ /dev/null @@ -1,24 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="400dp" - android:height="400dp" - android:viewportHeight="400.0" - android:viewportWidth="400.0"> - <path - android:fillAlpha="1" - android:fillColor="#ffffff" - android:pathData="m197.7,0c-6.2,0.1 -12.5,0.5 -19,1.1 12.4,2.9 23.5,5.5 34.7,8.1 -0.1,0.7 -0.3,1.4 -0.4,2 -14.9,2 -29.1,-3.5 -43.7,-5.5 5.3,3.1 10.7,6 16.2,8.5 5.6,2.5 11.4,4.7 17.2,7 -7.4,6.3 -14.8,7.7 -24,5.6 -5.1,-1.2 -10.4,-1.8 -15.6,-1.5 -5.3,0.3 -10.7,1.6 -15.6,4.8 5.2,2.6 10,4.8 14.5,7.5 1.9,1.1 4,2.9 4.5,4.9 1.2,4.6 1.6,9.4 2.3,14.1 -8.5,1 -23.5,9.6 -26.5,15.3 13.1,2.5 27.3,-0.5 39.8,7.9 -4.1,3.1 -13.7,7 -17.2,9.6 4.3,1.1 14.4,0.6 18.3,0.3 3.3,-0.2 4.8,-0.3 6.2,0.8l38.5,30.1c4,3.3 20.4,18.7 24.7,28.5 3.6,8.3 4.1,15.3 4.1,17.1 -0,4.6 -0.6,11.8 -3.7,19.9 -1.3,3.4 -5.2,10.9 -13.3,19.6 -12.5,13.5 -28.6,20.9 -46.2,24.5 -40.9,8.4 -74.9,52.1 -65.3,100.2 11.2,56.2 73.2,86.6 123.9,59.9 32.8,-17.3 50.1,-51 45.5,-87.7 -2.8,-22.2 -12.8,-40.2 -29.7,-54.8 -2.2,-1.9 -3.6,-1.9 -6.2,-0.3 -8.7,5.6 -17.7,10.9 -26.8,15.9 -5.2,2.9 -10.9,5 -17.4,7.9 2.2,0.6 3.3,0.9 4.4,1.1 24.4,6.5 37.5,28 31.7,52 -5.1,21.4 -26.8,35 -47.9,31.4 -17.5,-3 -32.8,-17.6 -35.4,-35 -2.8,-19 6.7,-37.3 23.5,-44.9 9.3,-4.2 18.9,-7.9 28.3,-12.2 10.6,-4.9 22.1,-8.7 31.3,-15.5 23,-16.9 37.1,-40.1 42.7,-68.1 3.3,-16.8 3.1,-33.5 -4.6,-49.4 -5.9,-12.2 -15.6,-21.1 -26,-29.2 -10.7,-8.3 -22,-15.9 -32.7,-24.3 -2.9,-2.3 -4.8,-6.2 -6.2,-9.7 -0.6,-1.5 1.3,-5.6 2.5,-5.8 6.5,-1.2 13.2,-1.8 19.8,-2 7.7,-0.3 15.4,-0 23,0.1 1.7,0 3.9,-0.2 4.9,0.7 4,3.9 7.1,1.4 9.9,-1.2 2.3,-2.2 4,-5 5.8,-7.5 -1.1,-0.2 -3.4,-0.7 -5.7,-0.8 -7.7,-0.2 -15.4,-0.1 -23.2,-0.3 -1.4,-0.1 -2.7,-1.5 -4,-2.2 1.4,-0.6 2.8,-1.6 4.3,-1.6 13.3,-0.1 26.6,-0.1 40,-0.1 0,-6.9 -9.2,-16.4 -17.5,-19 -0.1,0.9 -0.1,1.8 -0.2,2.7 -8.2,0.2 -16.2,0 -23.5,-3.8 -1.9,-1 -3.2,-3.3 -4.7,-5 -2,-2.1 -3.6,-4.9 -6,-6.3 -4.9,-2.9 -10.3,-4.9 -15.4,-7.4C224.3,1.7 211.3,-0.1 197.7,0ZM249.6,29.4c0.6,-0 1.2,0.2 1.9,0.8 1,0.8 2,1.7 3.3,2.8 -1.5,0.8 -2.8,1.5 -4.1,2.2 -1.8,0.9 -3.1,0.3 -4.2,-1.1 -0.9,-1.2 -1,-2.3 0.3,-3.3 0.9,-0.7 1.8,-1.3 2.9,-1.3z" - android:strokeColor="#00000000" - android:strokeWidth="1.33333325" /> - <path - android:fillAlpha="1" - android:fillColor="#ffffff" - android:pathData="m97.9,307.6c-7.8,2 -15.4,4.9 -23.4,7.5 3.9,-26.3 34.7,-50.6 60.8,-47.8 -8.1,10.9 -11.8,23.3 -12.7,35.6 -8.7,1.6 -16.8,2.7 -24.8,4.7" - android:strokeColor="#00000000" - android:strokeWidth="1.33333325" /> - <path - android:fillAlpha="1" - android:fillColor="#ffffff" - android:pathData="m134.3,124c41.3,-25.3 94,-9.8 113.8,28.2 3.7,7.2 4.2,18.3 1.8,25.8 -8.2,26.1 -27.5,40.7 -54.1,46.9 7.8,-6.7 14.1,-14.3 16,-24.8 2,-10.6 -0.1,-20.1 -6.2,-28.8 -9.3,-13.2 -27.3,-18.6 -42.4,-12.9 -16.3,6.2 -25.3,21.1 -23.7,39.4 1.5,17 14.4,28.1 38.6,32.2 -3.6,1.9 -6.4,3.3 -9.1,4.8 -11.1,6.2 -20.7,14.3 -28.2,24.6 -2.5,3.3 -4.1,3.6 -7.9,1.3 -48.6,-29.7 -51.7,-104.3 1.4,-136.8" - android:strokeColor="#00000000" - android:strokeWidth="1.33333325" /> -</vector> diff --git a/app/src/main/res/drawable/list_item_background.xml b/app/src/main/res/drawable/list_item_background.xml deleted file mode 100644 index f86d4df1..00000000 --- a/app/src/main/res/drawable/list_item_background.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layer-list xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - <item> - <selector> - <item - android:state_activated="true" - app:state_multiselected="true"> - <color android:color="?attr/colorControlActivated" /> - </item> - <item - android:state_activated="true" - app:state_multiselected="false"> - <color android:color="?attr/colorControlHighlight" /> - </item> - </selector> - </item> - <item android:drawable="?attr/selectableItemBackground" /> -</layer-list> diff --git a/app/src/main/res/layout-sw600dp/main_activity.xml b/app/src/main/res/layout-sw600dp/main_activity.xml deleted file mode 100644 index 36f9eaff..00000000 --- a/app/src/main/res/layout-sw600dp/main_activity.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/master_detail_wrapper" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:baselineAligned="false" - android:divider="?attr/dividerHorizontal" - android:orientation="horizontal" - android:showDividers="middle" - tools:context=".activity.MainActivity"> - - <fragment - android:name="com.wireguard.android.fragment.TunnelListFragment" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="2" - android:tag="LIST" /> - - <FrameLayout - android:id="@+id/detail_container" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="3" /> -</LinearLayout> diff --git a/app/src/main/res/layout/app_list_dialog_fragment.xml b/app/src/main/res/layout/app_list_dialog_fragment.xml deleted file mode 100644 index 50e795d5..00000000 --- a/app/src/main/res/layout/app_list_dialog_fragment.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="android.view.View" /> - - <import type="com.wireguard.android.model.ApplicationData" /> - - <variable - name="fragment" - type="com.wireguard.android.fragment.AppListDialogFragment" /> - - <variable - name="appData" - type="com.wireguard.android.util.ObservableKeyedList<String, ApplicationData>" /> - </data> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:minHeight="200dp"> - - <ProgressBar - android:id="@+id/progress_bar" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:indeterminate="true" - android:visibility="@{appData.isEmpty() ? View.VISIBLE : View.GONE}" /> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/app_list" - android:layout_width="match_parent" - android:layout_height="match_parent" - app:items="@{appData}" - app:layout="@{@layout/app_list_item}" /> - - </FrameLayout> - - -</layout> diff --git a/app/src/main/res/layout/app_list_item.xml b/app/src/main/res/layout/app_list_item.xml deleted file mode 100644 index 825b828b..00000000 --- a/app/src/main/res/layout/app_list_item.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android"> - - <data> - - <import type="com.wireguard.android.model.ApplicationData" /> - - <variable - name="collection" - type="com.wireguard.android.util.ObservableKeyedList<String, com.wireguard.android.model.ApplicationData>" /> - - <variable - name="key" - type="String" /> - - <variable - name="item" - type="com.wireguard.android.model.ApplicationData" /> - </data> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="@drawable/list_item_background" - android:gravity="center_vertical" - android:onClick="@{(view) -> item.setExcludedFromTunnel(!item.excludedFromTunnel)}" - android:orientation="horizontal" - android:padding="16dp"> - - <ImageView - android:id="@+id/app_icon" - android:layout_width="32dp" - android:layout_height="32dp" - android:src="@{item.icon}" /> - - <TextView - android:id="@+id/app_name" - style="?android:attr/textAppearanceMedium" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:ellipsize="end" - android:maxLines="1" - android:paddingEnd="8dp" - android:paddingStart="8dp" - android:text="@{key}" /> - - <CheckBox - android:id="@+id/excluded_checkbox" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:checked="@={item.excludedFromTunnel}" /> - - </LinearLayout> -</layout> diff --git a/app/src/main/res/layout/config_naming_dialog_fragment.xml b/app/src/main/res/layout/config_naming_dialog_fragment.xml deleted file mode 100644 index a7017804..00000000 --- a/app/src/main/res/layout/config_naming_dialog_fragment.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="com.wireguard.android.widget.NameInputFilter" /> - </data> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:padding="16dp"> - - <com.google.android.material.textfield.TextInputLayout - android:id="@+id/tunnel_name_text_layout" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <EditText - android:id="@+id/tunnel_name_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="@string/tunnel_name" - android:inputType="textNoSuggestions|textVisiblePassword" - app:filter="@{NameInputFilter.newInstance()}" /> - - </com.google.android.material.textfield.TextInputLayout> - - </FrameLayout> - - -</layout> diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml deleted file mode 100644 index a4fd7fd1..00000000 --- a/app/src/main/res/layout/main_activity.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/master_detail_wrapper" - android:layout_width="match_parent" - android:layout_height="match_parent" - tools:context=".activity.MainActivity"> - - <fragment - android:name="com.wireguard.android.fragment.TunnelListFragment" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:tag="LIST" /> - - <FrameLayout - android:id="@+id/detail_container" - android:layout_width="match_parent" - android:layout_height="match_parent" /> -</FrameLayout> diff --git a/app/src/main/res/layout/tunnel_detail_fragment.xml b/app/src/main/res/layout/tunnel_detail_fragment.xml deleted file mode 100644 index 34332c2f..00000000 --- a/app/src/main/res/layout/tunnel_detail_fragment.xml +++ /dev/null @@ -1,138 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools"> - - <data> - - <import type="com.wireguard.android.model.Tunnel.State" /> - - <import type="com.wireguard.android.util.ClipboardUtils" /> - - <variable - name="fragment" - type="com.wireguard.android.fragment.TunnelDetailFragment" /> - - <variable - name="tunnel" - type="com.wireguard.android.model.Tunnel" /> - - <variable - name="config" - type="com.wireguard.config.Config" /> - </data> - - <ScrollView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <androidx.cardview.widget.CardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginEnd="8dp" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - android:background="?android:attr/colorBackground" - app:cardCornerRadius="4dp" - app:cardElevation="2dp" - app:contentPadding="8dp"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/interface_title" - style="?android:attr/textAppearanceMedium" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:text="@string/interface_title" /> - - <com.wireguard.android.widget.ToggleSwitch - android:id="@+id/tunnel_switch" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/interface_title" - android:layout_alignParentEnd="true" - app:checked="@{tunnel.state == State.UP}" - app:onBeforeCheckedChanged="@{fragment::setTunnelState}" /> - - <TextView - android:id="@+id/interface_name_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_title" - android:layout_marginTop="8dp" - android:labelFor="@+id/interface_name_text" - android:text="@string/name" /> - - <TextView - android:id="@+id/interface_name_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_name_label" - android:text="@{tunnel.name}" /> - - <TextView - android:id="@+id/public_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/interface_name_text" - android:layout_marginTop="8dp" - android:labelFor="@+id/public_key_text" - android:text="@string/public_key" /> - - <TextView - android:id="@+id/public_key_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_label" - android:contentDescription="@string/public_key_description" - android:ellipsize="end" - android:maxLines="1" - android:onClick="@{ClipboardUtils::copyTextView}" - android:text="@{config.interface.keyPair.publicKey.toBase64}" /> - - <TextView - android:id="@+id/addresses_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/public_key_text" - android:layout_marginTop="8dp" - android:labelFor="@+id/addresses_text" - android:text="@string/addresses" /> - - <TextView - android:id="@+id/addresses_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/addresses_label" - android:contentDescription="@string/addresses" - android:text="@{config.interface.addresses}" /> - </RelativeLayout> - </androidx.cardview.widget.CardView> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:divider="@null" - android:orientation="vertical" - app:items="@{config.peers}" - app:layout="@{@layout/tunnel_detail_peer}" - tools:ignore="UselessLeaf" /> - </LinearLayout> - </ScrollView> -</layout> diff --git a/app/src/main/res/layout/tunnel_detail_peer.xml b/app/src/main/res/layout/tunnel_detail_peer.xml deleted file mode 100644 index f528a8df..00000000 --- a/app/src/main/res/layout/tunnel_detail_peer.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="com.wireguard.android.util.ClipboardUtils" /> - - <variable - name="item" - type="com.wireguard.config.Peer" /> - </data> - - <androidx.cardview.widget.CardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginEnd="8dp" - android:layout_marginStart="8dp" - android:layout_marginTop="4dp" - android:background="?android:attr/colorBackground" - app:cardCornerRadius="4dp" - app:cardElevation="2dp" - app:contentPadding="8dp"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/peer_title" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:text="@string/peer" /> - - <TextView - android:id="@+id/public_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/peer_title" - android:layout_marginTop="8dp" - android:labelFor="@+id/public_key_text" - android:text="@string/public_key" /> - - <TextView - android:id="@+id/public_key_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_label" - android:contentDescription="@string/public_key_description" - android:ellipsize="end" - android:maxLines="1" - android:onClick="@{ClipboardUtils::copyTextView}" - android:text="@{item.publicKey.toBase64}" /> - - <TextView - android:id="@+id/allowed_ips_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_text" - android:layout_marginTop="8dp" - android:labelFor="@+id/allowed_ips_text" - android:text="@string/allowed_ips" /> - - <TextView - android:id="@+id/allowed_ips_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/allowed_ips_label" - android:text="@{item.allowedIps}" /> - - <TextView - android:id="@+id/endpoint_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/allowed_ips_text" - android:layout_marginTop="8dp" - android:labelFor="@+id/endpoint_text" - android:text="@string/endpoint" /> - - <TextView - android:id="@+id/endpoint_text" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/endpoint_label" - android:text="@{item.endpoint}" /> - </RelativeLayout> - </androidx.cardview.widget.CardView> -</layout> diff --git a/app/src/main/res/layout/tunnel_editor_fragment.xml b/app/src/main/res/layout/tunnel_editor_fragment.xml deleted file mode 100644 index db91df2b..00000000 --- a/app/src/main/res/layout/tunnel_editor_fragment.xml +++ /dev/null @@ -1,254 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools"> - - <data> - - <import type="com.wireguard.android.util.ClipboardUtils" /> - - <import type="com.wireguard.android.widget.KeyInputFilter" /> - - <import type="com.wireguard.android.widget.NameInputFilter" /> - - <variable - name="fragment" - type="com.wireguard.android.fragment.TunnelEditorFragment" /> - - <variable - name="config" - type="com.wireguard.android.viewmodel.ConfigProxy" /> - - <variable - name="name" - type="String" /> - </data> - - <androidx.coordinatorlayout.widget.CoordinatorLayout - android:id="@+id/main_container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground"> - - <ScrollView - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <androidx.cardview.widget.CardView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginEnd="8dp" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - android:background="?android:attr/colorBackground" - app:cardCornerRadius="4dp" - app:cardElevation="2dp" - app:contentPadding="8dp"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/interface_title" - style="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:text="@string/interface_title" /> - - <TextView - android:id="@+id/interface_name_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_title" - android:layout_marginTop="8dp" - android:labelFor="@+id/interface_name_text" - android:text="@string/name" /> - - <EditText - android:id="@+id/interface_name_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_name_label" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={name}" - app:filter="@{NameInputFilter.newInstance()}" /> - - <TextView - android:id="@+id/private_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/interface_name_text" - android:labelFor="@+id/private_key_text" - android:text="@string/private_key" /> - - <EditText - android:id="@+id/private_key_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/private_key_label" - android:layout_toStartOf="@+id/generate_private_key_button" - android:contentDescription="@string/public_key_description" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={config.interface.privateKey}" - app:filter="@{KeyInputFilter.newInstance()}" /> - - <Button - android:id="@+id/generate_private_key_button" - style="@style/Widget.AppCompat.Button.Borderless.Colored" - android:layout_width="96dp" - android:layout_height="wrap_content" - android:layout_alignBottom="@id/private_key_text" - android:layout_alignParentEnd="true" - android:layout_below="@+id/private_key_label" - android:onClick="@{() -> config.interface.generateKeyPair()}" - android:text="@string/generate" /> - - <TextView - android:id="@+id/public_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/private_key_text" - android:labelFor="@+id/public_key_text" - android:text="@string/public_key" /> - - <TextView - android:id="@+id/public_key_text" - style="?attr/editTextStyle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_label" - android:contentDescription="@string/public_key_description" - android:ellipsize="end" - android:focusable="false" - android:hint="@string/hint_generated" - android:maxLines="1" - android:onClick="@{ClipboardUtils::copyTextView}" - android:text="@{config.interface.publicKey}" /> - - <TextView - android:id="@+id/addresses_label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/public_key_text" - android:layout_toStartOf="@+id/listen_port_label" - android:labelFor="@+id/addresses_text" - android:text="@string/addresses" /> - - <EditText - android:id="@+id/addresses_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/addresses_label" - android:layout_toStartOf="@+id/listen_port_text" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={config.interface.addresses}" /> - - <TextView - android:id="@+id/listen_port_label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/addresses_label" - android:layout_alignParentEnd="true" - android:layout_alignStart="@+id/generate_private_key_button" - android:labelFor="@+id/listen_port_text" - android:text="@string/listen_port" /> - - <EditText - android:id="@+id/listen_port_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/addresses_text" - android:layout_alignParentEnd="true" - android:layout_alignStart="@+id/generate_private_key_button" - android:hint="@string/hint_random" - android:inputType="number" - android:text="@={config.interface.listenPort}" - android:textAlignment="center" /> - - <TextView - android:id="@+id/dns_servers_label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/addresses_text" - android:layout_toStartOf="@+id/mtu_label" - android:labelFor="@+id/dns_servers_text" - android:text="@string/dns_servers" /> - - <EditText - android:id="@+id/dns_servers_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/dns_servers_label" - android:layout_toStartOf="@+id/mtu_text" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={config.interface.dnsServers}" /> - - <TextView - android:id="@+id/mtu_label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/dns_servers_label" - android:layout_alignParentEnd="true" - android:layout_alignStart="@+id/generate_private_key_button" - android:labelFor="@+id/mtu_text" - android:text="@string/mtu" /> - - <EditText - android:id="@+id/mtu_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/dns_servers_text" - android:layout_alignParentEnd="true" - android:layout_alignStart="@+id/generate_private_key_button" - android:hint="@string/hint_automatic" - android:inputType="number" - android:text="@={config.interface.mtu}" - android:textAlignment="center" /> - - <Button - android:id="@+id/set_excluded_applications" - style="@style/Widget.AppCompat.Button.Borderless.Colored" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@+id/dns_servers_text" - android:layout_marginLeft="-8dp" - android:onClick="@{fragment::onRequestSetExcludedApplications}" - android:text="@{@plurals/set_excluded_applications(config.interface.excludedApplications.size, config.interface.excludedApplications.size)}" /> - </RelativeLayout> - </androidx.cardview.widget.CardView> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:divider="@null" - android:orientation="vertical" - app:items="@{config.peers}" - app:layout="@{@layout/tunnel_editor_peer}" - tools:ignore="UselessLeaf" /> - - <Button - style="@style/Widget.AppCompat.Button.Colored" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginEnd="4dp" - android:layout_marginStart="4dp" - android:onClick="@{() -> config.addPeer()}" - android:text="@string/add_peer" /> - </LinearLayout> - </ScrollView> - </androidx.coordinatorlayout.widget.CoordinatorLayout> -</layout> diff --git a/app/src/main/res/layout/tunnel_editor_peer.xml b/app/src/main/res/layout/tunnel_editor_peer.xml deleted file mode 100644 index 175c174e..00000000 --- a/app/src/main/res/layout/tunnel_editor_peer.xml +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="android.view.View" /> - - <import type="com.wireguard.android.widget.KeyInputFilter" /> - - <variable - name="collection" - type="androidx.databinding.ObservableList<com.wireguard.android.viewmodel.PeerProxy>" /> - - <variable - name="item" - type="com.wireguard.android.viewmodel.PeerProxy" /> - </data> - - <androidx.cardview.widget.CardView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginEnd="8dp" - android:layout_marginStart="8dp" - android:layout_marginTop="4dp" - android:background="?android:attr/colorBackground" - app:cardCornerRadius="4dp" - app:cardElevation="2dp" - app:contentPadding="8dp"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/peer_title" - style="?android:attr/textAppearanceMedium" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:layout_marginBottom="8dp" - android:layout_toStartOf="@+id/peer_action_delete" - android:text="@string/peer" /> - - <ImageButton - android:id="@+id/peer_action_delete" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_alignParentTop="true" - android:background="@null" - android:contentDescription="@string/delete" - android:onClick="@{() -> item.unbind()}" - android:src="@drawable/ic_action_delete" /> - - <TextView - android:id="@+id/public_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/peer_title" - android:labelFor="@+id/public_key_text" - android:text="@string/public_key" /> - - <EditText - android:id="@+id/public_key_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_label" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={item.publicKey}" - app:filter="@{KeyInputFilter.newInstance()}" /> - - <TextView - android:id="@+id/pre_shared_key_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/public_key_text" - android:labelFor="@+id/pre_shared_key_text" - android:text="@string/pre_shared_key" /> - - <EditText - android:id="@+id/pre_shared_key_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/pre_shared_key_label" - android:hint="@string/hint_optional" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={item.preSharedKey}" /> - - <TextView - android:id="@+id/allowed_ips_label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/pre_shared_key_text" - android:layout_toStartOf="@+id/exclude_private_ips" - android:labelFor="@+id/allowed_ips_text" - android:text="@string/allowed_ips" /> - - <CheckBox - android:id="@+id/exclude_private_ips" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/allowed_ips_label" - android:layout_alignParentEnd="true" - android:checked="@={item.excludingPrivateIps}" - android:text="@string/exclude_private_ips" - android:visibility="@{item.ableToExcludePrivateIps ? View.VISIBLE : View.GONE}" /> - - <EditText - android:id="@+id/allowed_ips_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/allowed_ips_label" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={item.allowedIps}" /> - - <TextView - android:id="@+id/endpoint_label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/allowed_ips_text" - android:layout_toStartOf="@+id/persistent_keepalive_label" - android:labelFor="@+id/endpoint_text" - android:text="@string/endpoint" /> - - <EditText - android:id="@+id/endpoint_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/endpoint_label" - android:layout_toStartOf="@+id/persistent_keepalive_text" - android:inputType="textNoSuggestions|textVisiblePassword" - android:text="@={item.endpoint}" /> - - <TextView - android:id="@+id/persistent_keepalive_label" - android:layout_width="96dp" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/endpoint_label" - android:layout_alignParentEnd="true" - android:labelFor="@+id/persistent_keepalive_text" - android:text="@string/persistent_keepalive" /> - - <EditText - android:id="@+id/persistent_keepalive_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/endpoint_text" - android:layout_alignParentEnd="true" - android:layout_alignStart="@+id/persistent_keepalive_label" - android:hint="@string/hint_optional" - android:inputType="number" - android:text="@={item.persistentKeepalive}" - android:textAlignment="center" /> - </RelativeLayout> - </androidx.cardview.widget.CardView> -</layout> diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml deleted file mode 100644 index 3a7c1c7a..00000000 --- a/app/src/main/res/layout/tunnel_list_fragment.xml +++ /dev/null @@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="com.wireguard.android.model.Tunnel" /> - - <variable - name="fragment" - type="com.wireguard.android.fragment.TunnelListFragment" /> - - <variable - name="rowConfigurationHandler" - type="com.wireguard.android.databinding.ObservableKeyedRecyclerViewAdapter.RowConfigurationHandler" /> - - <variable - name="tunnels" - type="com.wireguard.android.util.ObservableKeyedList<String, Tunnel>" /> - </data> - - <androidx.coordinatorlayout.widget.CoordinatorLayout - android:id="@+id/main_container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground" - android:clipChildren="false"> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/tunnel_list" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:choiceMode="multipleChoiceModal" - android:clipToPadding="false" - android:paddingBottom="@{@dimen/design_fab_size_normal * 1.1f}" - android:visibility="@{tunnels.size() > 0 ? android.view.View.VISIBLE : android.view.View.GONE}" - app:configurationHandler="@{rowConfigurationHandler}" - app:items="@{tunnels}" - app:layout="@{@layout/tunnel_list_item}" /> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:orientation="vertical" - android:visibility="@{tunnels.size() == 0 ? android.view.View.VISIBLE : android.view.View.GONE}"> - - <androidx.appcompat.widget.AppCompatImageView - android:id="@+id/logo_placeholder" - android:layout_width="140dp" - android:layout_height="140dp" - android:layout_gravity="center" - android:layout_marginBottom="20dp" - android:layout_marginTop="-70dp" - android:alpha="0.3333333" - android:src="@mipmap/ic_launcher" /> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:text="@string/tunnel_list_placeholder" - android:textSize="20sp" /> - </LinearLayout> - - <com.wireguard.android.widget.fab.FloatingActionsMenu - android:id="@+id/create_menu" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="bottom|end" - android:layout_margin="@dimen/fab_margin" - android:clipChildren="false" - app:fab_labelStyle="@style/fab_label" - app:fab_labelsPosition="@integer/label_position" - app:layout_behavior="com.wireguard.android.widget.fab.FloatingActionButtonBehavior"> - - <com.wireguard.android.widget.fab.LabeledFloatingActionButton - android:id="@+id/create_from_file" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:onClick="@{fragment::onRequestImportConfig}" - app:fabSize="mini" - app:fab_title="@string/create_from_file" - app:srcCompat="@drawable/ic_action_open_white" /> - - <com.wireguard.android.widget.fab.LabeledFloatingActionButton - android:id="@+id/create_from_qrcode" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:onClick="@{fragment::onRequestScanQRCode}" - app:fabSize="mini" - app:fab_title="@string/create_from_qr_code" - app:srcCompat="@drawable/ic_action_scan_qr_code_white" /> - - <com.wireguard.android.widget.fab.LabeledFloatingActionButton - android:id="@+id/create_empty" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:onClick="@{fragment::onRequestCreateConfig}" - app:fabSize="mini" - app:fab_title="@string/create_empty" - app:srcCompat="@drawable/ic_action_edit_white" /> - </com.wireguard.android.widget.fab.FloatingActionsMenu> - </androidx.coordinatorlayout.widget.CoordinatorLayout> -</layout> diff --git a/app/src/main/res/layout/tunnel_list_item.xml b/app/src/main/res/layout/tunnel_list_item.xml deleted file mode 100644 index 13e14fed..00000000 --- a/app/src/main/res/layout/tunnel_list_item.xml +++ /dev/null @@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - - <data> - - <import type="com.wireguard.android.model.Tunnel" /> - - <import type="com.wireguard.android.model.Tunnel.State" /> - - <variable - name="collection" - type="com.wireguard.android.util.ObservableKeyedList<String, Tunnel>" /> - - <variable - name="key" - type="String" /> - - <variable - name="item" - type="com.wireguard.android.model.Tunnel" /> - - <variable - name="fragment" - type="com.wireguard.android.fragment.TunnelListFragment" /> - </data> - - <com.wireguard.android.widget.MultiselectableRelativeLayout - android:id="@+id/tunnel_list_item" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="@drawable/list_item_background" - android:descendantFocusability="beforeDescendants" - android:focusable="true" - android:nextFocusRight="@+id/tunnel_switch" - android:padding="16dp"> - - <TextView - android:id="@+id/tunnel_name" - style="?android:attr/textAppearanceMedium" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:ellipsize="end" - android:maxLines="1" - android:text="@{key}" /> - - <com.wireguard.android.widget.ToggleSwitch - android:id="@+id/tunnel_switch" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignBaseline="@+id/tunnel_name" - android:layout_alignParentEnd="true" - android:nextFocusLeft="@+id/tunnel_list_item" - app:checked="@{item.state == State.UP}" - app:onBeforeCheckedChanged="@{fragment::setTunnelState}" /> - </com.wireguard.android.widget.MultiselectableRelativeLayout> -</layout> diff --git a/app/src/main/res/menu/config_editor.xml b/app/src/main/res/menu/config_editor.xml deleted file mode 100644 index dd0137df..00000000 --- a/app/src/main/res/menu/config_editor.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<menu xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - <item - android:id="@+id/menu_action_save" - android:alphabeticShortcut="s" - android:icon="@drawable/ic_action_save" - android:title="@string/save" - app:showAsAction="always" /> -</menu> diff --git a/app/src/main/res/menu/main_activity.xml b/app/src/main/res/menu/main_activity.xml deleted file mode 100644 index 68bce52e..00000000 --- a/app/src/main/res/menu/main_activity.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<menu xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - <item - android:id="@+id/menu_settings" - android:alphabeticShortcut="s" - android:icon="@drawable/ic_settings" - android:orderInCategory="1000" - android:title="@string/settings" - app:showAsAction="always" /> -</menu> diff --git a/app/src/main/res/menu/tunnel_detail.xml b/app/src/main/res/menu/tunnel_detail.xml deleted file mode 100644 index 2834a661..00000000 --- a/app/src/main/res/menu/tunnel_detail.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<menu xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - <item - android:id="@+id/menu_action_edit" - android:alphabeticShortcut="e" - android:icon="@drawable/ic_action_edit" - android:title="@string/edit" - app:showAsAction="always" /> -</menu> diff --git a/app/src/main/res/menu/tunnel_list_action_mode.xml b/app/src/main/res/menu/tunnel_list_action_mode.xml deleted file mode 100644 index 22f61943..00000000 --- a/app/src/main/res/menu/tunnel_list_action_mode.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<menu xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> - <item - android:id="@+id/menu_action_select_all" - android:alphabeticShortcut="s" - android:icon="@drawable/ic_action_select_all" - android:title="@string/select_all" - app:showAsAction="always" /> - <item - android:id="@+id/menu_action_delete" - android:alphabeticShortcut="d" - android:icon="@drawable/ic_action_delete" - android:title="@string/delete" - app:showAsAction="always" /> -</menu> diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index a8a8fa55..00000000 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> - <background android:drawable="@color/ic_launcher_background" /> - <foreground android:drawable="@drawable/ic_launcher_foreground" /> -</adaptive-icon> diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index a8a8fa55..00000000 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> - <background android:drawable="@color/ic_launcher_background" /> - <foreground android:drawable="@drawable/ic_launcher_foreground" /> -</adaptive-icon> diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 8a5b8d69..00000000 --- a/app/src/main/res/mipmap-hdpi/ic_launcher.png +++ /dev/null diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png Binary files differdeleted file mode 100644 index 56111942..00000000 --- a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +++ /dev/null diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png Binary files differdeleted file mode 100644 index aa5ac825..00000000 --- a/app/src/main/res/mipmap-mdpi/ic_launcher.png +++ /dev/null diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png Binary files differdeleted file mode 100644 index ebad3192..00000000 --- a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png Binary files differdeleted file mode 100644 index ef183c3d..00000000 --- a/app/src/main/res/mipmap-xhdpi/ic_launcher.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png Binary files differdeleted file mode 100644 index 79f3fa98..00000000 --- a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png Binary files differdeleted file mode 100644 index 95e7241c..00000000 --- a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png Binary files differdeleted file mode 100644 index d1731b3b..00000000 --- a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png Binary files differdeleted file mode 100644 index d3ec336b..00000000 --- a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +++ /dev/null diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png Binary files differdeleted file mode 100644 index c0ae03bc..00000000 --- a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +++ /dev/null diff --git a/app/src/main/res/values-ldrtl/fab.xml b/app/src/main/res/values-ldrtl/fab.xml deleted file mode 100644 index f612440c..00000000 --- a/app/src/main/res/values-ldrtl/fab.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <integer name="label_position">1</integer> -</resources>
\ No newline at end of file diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml deleted file mode 100644 index 247d8e33..00000000 --- a/app/src/main/res/values-night/colors.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- TODO(msf): remove these 2 hard-coded colors and replace with theme colors --> - <color name="fab_label_text_color">#000000</color> - <color name="fab_label_background_color">#bbbbbb</color> - - <color name="accent">#5e97f6</color> -</resources> diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml deleted file mode 100644 index 86a86e63..00000000 --- a/app/src/main/res/values/attrs.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <declare-styleable name="Multiselected"> - <attr name="state_multiselected" format="boolean" /> - </declare-styleable> -</resources> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml deleted file mode 100644 index bc0fbdb0..00000000 --- a/app/src/main/res/values/colors.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- TODO(msf): remove these 2 hard-coded colors and replace with theme colors --> - <color name="fab_label_text_color">#ffffff</color> - <color name="fab_label_background_color">#444444</color> - - <color name="accent">#2196F3</color> -</resources> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml deleted file mode 100644 index 92be463c..00000000 --- a/app/src/main/res/values/dimens.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <dimen name="fab_margin">16dp</dimen> -</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/fab.xml b/app/src/main/res/values/fab.xml deleted file mode 100644 index 8fbdc724..00000000 --- a/app/src/main/res/values/fab.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <item name="fab_expand_menu_button" type="id" /> - <item name="fab_label" type="id" /> - - <dimen name="fab_shadow_offset">3dp</dimen> - <dimen name="fab_shadow_radius">9dp</dimen> - - <dimen name="fab_stroke_width">1dp</dimen> - - <dimen name="fab_actions_spacing">24dp</dimen> - <dimen name="fab_labels_margin">8dp</dimen> - - <declare-styleable name="LabeledFloatingActionButton"> - <attr name="fab_title" format="string" /> - </declare-styleable> - <declare-styleable name="FloatingActionsMenu"> - <attr name="fab_labelStyle" format="reference" /> - <attr name="fab_labelsPosition" format="enum"> - <enum name="left" value="0" /> - <enum name="right" value="1" /> - </attr> - <attr name="fab_expandDirection" format="enum"> - <enum name="up" value="0" /> - <enum name="down" value="1" /> - <enum name="left" value="2" /> - <enum name="right" value="3" /> - </attr> - </declare-styleable> - <integer name="label_position">0</integer> -</resources> diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml deleted file mode 100644 index f8bad52e..00000000 --- a/app/src/main/res/values/ic_launcher_background.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <color name="ic_launcher_background">#871719</color> -</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/ids.xml b/app/src/main/res/values/ids.xml deleted file mode 100644 index 7f34f808..00000000 --- a/app/src/main/res/values/ids.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <item name="item_change_listener" type="id" /> -</resources> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml deleted file mode 100644 index 33470706..00000000 --- a/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,173 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <plurals name="delete_error"> - <item quantity="one">Unable to delete %d tunnel: %s</item> - <item quantity="other">Unable to delete %d tunnels: %s</item> - </plurals> - <plurals name="delete_success"> - <item quantity="one">Successfully deleted %d tunnel</item> - <item quantity="other">Successfully deleted %d tunnels</item> - </plurals> - <plurals name="delete_title"> - <item quantity="one">%d tunnel selected</item> - <item quantity="other">%d tunnels selected</item> - </plurals> - <plurals name="import_partial_success"> - <item quantity="one">Imported %d of %d tunnels</item> - <item quantity="other">Imported %d of %d tunnels</item> - </plurals> - <plurals name="import_total_success"> - <item quantity="one">Imported %d tunnel</item> - <item quantity="other">Imported %d tunnels</item> - </plurals> - <plurals name="set_excluded_applications"> - <item quantity="one">%d Excluded Application</item> - <item quantity="other">%d Excluded Applications</item> - </plurals> - <string name="add_peer">Add peer</string> - <string name="addresses">Addresses</string> - <string name="allowed_ips">Allowed IPs</string> - <string name="app_name">WireGuard</string> - <string name="bad_config_context">%1$s\'s %2$s</string> - <string name="bad_config_context_top_level">%s</string> - <string name="bad_config_error">%1$s in %2$s</string> - <string name="bad_config_explanation_pka">: Must be positive and no more than 65535</string> - <string name="bad_config_explanation_positive_number">: Must be positive</string> - <string name="bad_config_explanation_udp_port">: Must be a valid UDP port number</string> - <string name="bad_config_reason_invalid_key">Invalid key</string> - <string name="bad_config_reason_invalid_number">Invalid number</string> - <string name="bad_config_reason_invalid_value">Invalid value</string> - <string name="bad_config_reason_missing_attribute">Missing attribute</string> - <string name="bad_config_reason_missing_section">Missing section</string> - <string name="bad_config_reason_missing_value">Missing value</string> - <string name="bad_config_reason_syntax_error">Syntax error</string> - <string name="bad_config_reason_unknown_attribute">Unknown attribute</string> - <string name="bad_config_reason_unknown_section">Unknown section</string> - <string name="bad_config_reason_value_out_of_range">Value out of range</string> - <string name="bad_extension_error">File must be .conf or .zip</string> - <string name="cancel">Cancel</string> - <string name="config_delete_error">Cannot delete configuration file %s</string> - <string name="config_exists_error">Configuration for “%s” already exists</string> - <string name="config_file_exists_error">Configuration file “%s” already exists</string> - <string name="config_not_found_error">Configuration file “%s” not found</string> - <string name="config_rename_error">Cannot rename configuration file “%s”</string> - <string name="config_save_error">Cannot save configuration for “%1$s”: %2$s</string> - <string name="config_save_success">Successfully saved configuration for “%s”</string> - <string name="create_activity_title">Create WireGuard Tunnel</string> - <string name="create_bin_dir_error">Cannot create local binary directory</string> - <string name="create_empty">Create from scratch</string> - <string name="create_from_file">Create from file or archive</string> - <string name="create_from_qr_code">Create from QR code</string> - <string name="create_output_dir_error">Cannot create output directory</string> - <string name="create_downloads_file_error">Cannot create file in downloads directory</string> - <string name="create_temp_dir_error">Cannot create local temporary directory</string> - <string name="create_tunnel">Create Tunnel</string> - <string name="dark_theme_summary_off">Currently using light (day) theme</string> - <string name="dark_theme_summary_on">Currently using dark (night) theme</string> - <string name="dark_theme_title">Use dark theme</string> - <string name="delete">Delete</string> - <string name="deselect_all">Deselect All</string> - <string name="dns_servers">DNS servers</string> - <string name="edit">Edit</string> - <string name="endpoint">Endpoint</string> - <string name="error_down">Error bringing down tunnel: %s</string> - <string name="error_fetching_apps">Error fetching apps list: %s</string> - <string name="error_root">Please obtain root access and try again</string> - <string name="error_up">Error bringing up tunnel: %s</string> - <string name="exclude_private_ips">Exclude private IPs</string> - <string name="excluded_applications">Excluded Applications</string> - <string name="generate">Generate</string> - <string name="generic_error">Unknown “%s” error</string> - <string name="hint_automatic">(auto)</string> - <string name="hint_generated">(generated)</string> - <string name="hint_optional">(optional)</string> - <string name="hint_random">(random)</string> - <string name="illegal_filename_error">Illegal file name “%s”</string> - <string name="import_error">Unable to import tunnel: %s</string> - <string name="import_from_qr_code">Import Tunnel from QR Code</string> - <string name="import_success">Imported “%s”</string> - <string name="interface_title">Interface</string> - <string name="key_length_explanation_base64">: WireGuard base64 keys must be 44 characters (32 bytes)</string> - <string name="key_length_explanation_binary">: WireGuard keys must be 32 bytes</string> - <string name="key_length_explanation_hex">: WireGuard hex keys must be 64 characters (32 bytes)</string> - <string name="listen_port">Listen port</string> - <string name="log_export_error">Unable to export log: %s</string> - <string name="log_export_success">Saved to “%s”</string> - <string name="log_export_summary">Log file will be saved to downloads folder</string> - <string name="log_export_title">Export log file</string> - <string name="logcat_error">Unable to run logcat: </string> - <string name="module_version_error">Unable to determine kernel module version</string> - <string name="module_installer_not_found">No modules are available for your device</string> - <string name="module_installer_initial">The experimental kernel module can improve performance</string> - <string name="module_installer_success">Success. The application will restart in 5 seconds</string> - <string name="module_installer_title">Download and install kernel module</string> - <string name="module_installer_working">Downloading and installing…</string> - <string name="module_installer_error">Something went wrong. Please try again</string> - <string name="mtu">MTU</string> - <string name="multiple_tunnels_error">Only one userspace tunnel can run at a time</string> - <string name="name">Name</string> - <string name="no_config_error">Trying to bring up a tunnel with no config</string> - <string name="no_configs_error">No configurations found</string> - <string name="no_tunnels_error">No tunnels exist</string> - <string name="parse_error_generic">string</string> - <string name="parse_error_inet_address">IP address</string> - <string name="parse_error_inet_endpoint">endpoint</string> - <string name="parse_error_inet_network">IP network</string> - <string name="parse_error_integer">number</string> - <string name="parse_error_reason">Cannot parse %1$s “%2$s”</string> - <string name="peer">Peer</string> - <string name="permission_description">Allows an app to control WireGuard tunnels. Apps with this permission may enable and disable WireGuard tunnels at will, potentially misdirecting Internet traffic.</string> - <string name="permission_label">control WireGuard tunnels</string> - <string name="persistent_keepalive">Persistent keepalive</string> - <string name="pre_shared_key">Pre-shared key</string> - <string name="private_key">Private key</string> - <string name="public_key">Public key</string> - <string name="public_key_description">Public key</string> - <string name="qr_code_hint">Tip: generate with `qrencode -t ansiutf8 < tunnel.conf`.</string> - <string name="restore_on_boot_summary">Bring up previously-enabled tunnels on boot</string> - <string name="restore_on_boot_title">Restore on boot</string> - <string name="save">Save</string> - <string name="select_all">Select all</string> - <string name="set_exclusions">Set Exclusions</string> - <string name="settings">Settings</string> - <string name="shell_exit_status_read_error">Shell cannot read exit status</string> - <string name="shell_marker_count_error">Shell expected 4 markers, received %d</string> - <string name="shell_start_error">Shell failed to start: %d</string> - <string name="toggle_error">Error toggling WireGuard tunnel: %s</string> - <string name="tools_installer_already">wg and wg-quick are already installed</string> - <string name="tools_installer_failure">Unable to install command-line tools (no root?)</string> - <string name="tools_installer_initial">Install optional tools for scripting</string> - <string name="tools_installer_initial_magisk">Install optional tools for scripting as Magisk module</string> - <string name="tools_installer_initial_system">Install optional tools for scripting into the system partition</string> - <string name="tools_installer_success_magisk">wg and wg-quick installed as a Magisk module (reboot required)</string> - <string name="tools_installer_success_system">wg and wg-quick installed into the system partition</string> - <string name="tools_installer_title">Install command line tools</string> - <string name="tools_installer_working">Installing wg and wg-quick</string> - <string name="tools_unavailable_error">Required tools unavailable</string> - <string name="tun_create_error">Unable to create tun device</string> - <string name="tunnel_config_error">Unable to configure tunnel (wg-quick returned %d)</string> - <string name="tunnel_create_error">Unable to create tunnel: %s</string> - <string name="tunnel_create_success">Successfully created tunnel “%s”</string> - <string name="tunnel_error_already_exists">Tunnel “%s” already exists</string> - <string name="tunnel_error_invalid_name">Invalid name</string> - <string name="tunnel_list_placeholder">Add a tunnel using the blue button</string> - <string name="tunnel_name">Tunnel Name</string> - <string name="tunnel_on_error">Unable to turn tunnel on (wgTurnOn returned %d)</string> - <string name="tunnel_rename_error">Unable to rename tunnel: %s</string> - <string name="tunnel_rename_success">Successfully renamed tunnel to “%s”</string> - <string name="type_name_go_userspace">Go userspace</string> - <string name="type_name_kernel_module">Kernel module</string> - <string name="unknown_error">Unknown error</string> - <string name="version_summary">%1$s backend v%2$s</string> - <string name="version_summary_checking">Checking %s backend version</string> - <string name="version_summary_unknown">Unknown %s version</string> - <string name="version_title">WireGuard for Android v%s</string> - <string name="vpn_not_authorized_error">VPN service not authorized by user</string> - <string name="vpn_start_error">Unable to start Android VPN service</string> - <string name="zip_export_error">Unable to export tunnels: %s</string> - <string name="zip_export_success">Saved to “%s”</string> - <string name="zip_export_summary">Zip file will be saved to downloads folder</string> - <string name="zip_export_title">Export tunnels to zip file</string> - <string name="key_length_error">Incorrect key length</string> - <string name="key_contents_error">Bad characters in key</string> -</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml deleted file mode 100644 index 2605691d..00000000 --- a/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources xmlns:android="http://schemas.android.com/apk/res/android"> - - <style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar"> - <item name="colorAccent">@color/accent</item> - </style> - - <style name="fab_label" parent="TextAppearance.AppCompat.Inverse"> - <item name="android:background">@drawable/fab_label_background</item> - <item name="android:textColor">@color/fab_label_text_color</item> - </style> - -</resources> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml deleted file mode 100644 index 9c09ae89..00000000 --- a/app/src/main/res/xml/preferences.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <com.wireguard.android.preference.VersionPreference android:icon="@mipmap/ic_launcher" /> - <CheckBoxPreference - android:defaultValue="false" - android:key="restore_on_boot" - android:summary="@string/restore_on_boot_summary" - android:title="@string/restore_on_boot_title" /> - <com.wireguard.android.preference.ModuleDownloaderPreference android:key="module_downloader" /> - <com.wireguard.android.preference.ToolsInstallerPreference android:key="tools_installer" /> - <com.wireguard.android.preference.ZipExporterPreference /> - <com.wireguard.android.preference.LogExporterPreference /> - <CheckBoxPreference - android:defaultValue="false" - android:key="dark_theme" - android:summaryOff="@string/dark_theme_summary_off" - android:summaryOn="@string/dark_theme_summary_on" - android:title="@string/dark_theme_title" /> -</androidx.preference.PreferenceScreen> |