From cfae237d1788da93a6b043ea927389bc3f4f5243 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 16 Feb 2020 16:36:25 -0800 Subject: [PATCH] Add a basic map view to app --- app/build.gradle | 6 ++++++ app/src/main/AndroidManifest.xml | 2 ++ .../fencelessgrazing/CollarListActivity.kt | 21 +++++++++++++++++++ .../main/res/layout/activity_collar_list.xml | 15 ++++++++++--- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c140eb5..f4622cd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,6 +23,10 @@ android { } } +repositories { + mavenCentral() +} + dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" @@ -35,4 +39,6 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation 'androidx.recyclerview:recyclerview:1.1.0' + implementation 'org.osmdroid:osmdroid-android:6.1.5' + implementation "androidx.preference:preference-ktx:1.1.0" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index be4b457..0d7fc6e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,8 @@ package="com.danilafe.fencelessgrazing"> + + - + + \ No newline at end of file