diff --git a/app/build.gradle b/app/build.gradle
index f0b72987..6874d569 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -65,21 +65,25 @@ android {
}
ext {
+ annotationsVersion = '1.0.1'
+ appcompatVersion = '1.0.2'
+ cardviewVersion = '1.0.0'
databindingVersion = '3.1.3'
+ materialComponentsVersion = '1.0.0'
jsr305Version = '3.0.2'
+ preferenceVersion = '1.0.0'
streamsupportVersion = '1.6.0'
- supportLibsVersion = '27.1.1'
threetenabpVersion = '1.1.1'
zxingEmbeddedVersion = '3.6.0'
}
dependencies {
- implementation "com.android.databinding:library:$databindingVersion"
- implementation "com.android.support:appcompat-v7:$supportLibsVersion"
- implementation "com.android.support:cardview-v7:$supportLibsVersion"
- implementation "com.android.support:design:$supportLibsVersion"
- implementation "com.android.support:preference-v14:$supportLibsVersion"
- implementation "com.android.support:support-annotations:$supportLibsVersion"
+ implementation "androidx.annotation:annotation:$annotationsVersion"
+ implementation "androidx.appcompat:appcompat:$appcompatVersion"
+ implementation "androidx.cardview:cardview:$cardviewVersion"
+ implementation "androidx.databinding:databinding-runtime:$databindingVersion"
+ implementation "androidx.preference:preference:$preferenceVersion"
+ implementation "com.google.android.material:material:$materialComponentsVersion"
implementation "com.google.code.findbugs:jsr305:$jsr305Version"
implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion"
implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 02930b27..0fb63315 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -43,8 +43,7 @@
+ android:parentActivityName=".activity.MainActivity" />
-
-
@@ -25,7 +25,7 @@
android:inputType="textNoSuggestions|textVisiblePassword"
app:filter="@{NameInputFilter.newInstance()}" />
-
+
diff --git a/app/src/main/res/layout/tunnel_detail_fragment.xml b/app/src/main/res/layout/tunnel_detail_fragment.xml
index 9b06ddd4..34332c2f 100644
--- a/app/src/main/res/layout/tunnel_detail_fragment.xml
+++ b/app/src/main/res/layout/tunnel_detail_fragment.xml
@@ -32,7 +32,7 @@
android:layout_height="wrap_content"
android:orientation="vertical">
-
-
+
-
-
+
diff --git a/app/src/main/res/layout/tunnel_editor_fragment.xml b/app/src/main/res/layout/tunnel_editor_fragment.xml
index 3945fffc..db91df2b 100644
--- a/app/src/main/res/layout/tunnel_editor_fragment.xml
+++ b/app/src/main/res/layout/tunnel_editor_fragment.xml
@@ -24,7 +24,7 @@
type="String" />
-
-
-
+
-
+
diff --git a/app/src/main/res/layout/tunnel_editor_peer.xml b/app/src/main/res/layout/tunnel_editor_peer.xml
index 1224ddd3..175c174e 100644
--- a/app/src/main/res/layout/tunnel_editor_peer.xml
+++ b/app/src/main/res/layout/tunnel_editor_peer.xml
@@ -10,14 +10,14 @@
+ type="androidx.databinding.ObservableList<com.wireguard.android.viewmodel.PeerProxy>" />
-
-
+
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml
index 38d0dcbd..3a7c1c7a 100644
--- a/app/src/main/res/layout/tunnel_list_fragment.xml
+++ b/app/src/main/res/layout/tunnel_list_fragment.xml
@@ -19,14 +19,14 @@
type="com.wireguard.android.util.ObservableKeyedList<String, Tunnel>" />
-
-
-
-
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 0f2685d3..2605691d 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -5,10 +5,6 @@
- @color/accent
-
-