~samwhited/oslp

dc84dd4de516f17d4ac1f8cdfa8f2ffb70dcc190 — Sam Whited 3 years ago 2b3dc41
Set user agent when fetching map tiles

Also bump deps
M build.gradle => build.gradle +2 -2
@@ 4,7 4,7 @@ buildscript {
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
        classpath 'com.android.tools.build:gradle:3.1.1'
    }
}
allprojects {


@@ 78,7 78,7 @@ clean.doFirst({
})

ext {
    supportLibVersion = '27.1.0'
    supportLibVersion = '27.1.1'
}

dependencies {

M src/main/java/com/samwhited/opensharelocationplugin/activities/LocationActivity.java => src/main/java/com/samwhited/opensharelocationplugin/activities/LocationActivity.java +2 -0
@@ 22,6 22,7 @@ import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

import com.samwhited.opensharelocationplugin.BuildConfig;
import com.samwhited.opensharelocationplugin.R;
import com.samwhited.opensharelocationplugin.overlays.Marker;
import com.samwhited.opensharelocationplugin.overlays.MyLocation;


@@ 113,6 114,7 @@ protected Bitmap marker_icon;
		final Context ctx = getApplicationContext();
		final IConfigurationProvider config = Configuration.getInstance();
		config.load(ctx, getPreferences());
		config.setUserAgentValue(BuildConfig.APPLICATION_ID + "_" + BuildConfig.VERSION_CODE);

		final File f = new File(getApplicationContext().getCacheDir()+ "/tiles");
		try {