diff --git a/app/build.gradle b/app/build.gradle
index b3f898183..a474fd403 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,6 +3,18 @@ apply plugin: 'jacoco-android'
apply from: 'quality.gradle'
dependencies {
+ compile "com.android.support:support-v4:${project.supportLibVersion}"
+ compile "com.android.support:appcompat-v7:${project.supportLibVersion}"
+ compile "com.android.support:design:${project.supportLibVersion}"
+ compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
+ annotationProcessor "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
+ compile('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar') {
+ transitive = true
+ }
+ compile "com.google.guava:guava:${GUAVA_VERSION}"
+
+ androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
+
compile 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
compile 'in.yuvi:http.fluent:1.3'
@@ -10,27 +22,16 @@ dependencies {
compile 'ch.acra:acra:4.7.0'
compile 'org.mediawiki:api:1.3'
compile 'commons-codec:commons-codec:1.10'
- compile "com.android.support:support-v4:${project.supportLibVersion}"
- compile "com.android.support:appcompat-v7:${project.supportLibVersion}"
- compile "com.android.support:design:${project.supportLibVersion}"
compile 'com.google.code.gson:gson:2.7'
- compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
- annotationProcessor "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
compile 'com.jakewharton.timber:timber:4.5.1'
- compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2@aar'){
- transitive=true
- }
compile 'com.facebook.fresco:fresco:1.3.0'
compile 'com.facebook.stetho:stetho:1.5.0'
- compile "com.google.guava:guava:${GUAVA_VERSION}"
-
+ compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
- androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
+ testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
-
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
- testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
}
android {
@@ -51,11 +52,12 @@ android {
buildTypes {
release {
- minifyEnabled false // See https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently - proguard.cfg modification alone insufficient.
+ minifyEnabled false
+ // See https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently - proguard.cfg modification alone insufficient.
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
- testCoverageEnabled true
+ testCoverageEnabled true
}
}
diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/NoPermissionsFragment.java b/app/src/main/java/fr/free/nrw/commons/nearby/NoPermissionsFragment.java
new file mode 100644
index 000000000..cd622d522
--- /dev/null
+++ b/app/src/main/java/fr/free/nrw/commons/nearby/NoPermissionsFragment.java
@@ -0,0 +1,30 @@
+package fr.free.nrw.commons.nearby;
+
+
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import fr.free.nrw.commons.R;
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class NoPermissionsFragment extends Fragment {
+
+
+ public NoPermissionsFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.fragment_no_permissions, container, false);
+ }
+
+}
diff --git a/app/src/main/res/layout/fragment_no_permissions.xml b/app/src/main/res/layout/fragment_no_permissions.xml
new file mode 100644
index 000000000..320b0e14d
--- /dev/null
+++ b/app/src/main/res/layout/fragment_no_permissions.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 8d0a53b63..b98314cc0 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -198,4 +198,7 @@ Tap this message (or hit back) to skip this step.
no description found
Commons Article
WikiData Article
+
+
+ Hello blank fragment