Migration from anymaps repository to the version in this repo

Fix UserAgent not specified bug
Fix #5
This commit is contained in:
Schoumi 2019-03-29 16:37:17 +01:00
parent 34f7e505b8
commit 254f3bf4e7
5 changed files with 17 additions and 16 deletions

View file

@ -1,12 +1,14 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "fr.mobdev.blooddonation"
minSdkVersion 17
targetSdkVersion 26
targetSdkVersion 28
versionCode = 12
versionName = "3.4"
}
@ -19,6 +21,8 @@ android {
}
dependencies {
implementation project(':anymaps-base')
implementation project(':anymaps-osm')
compile 'com.github.car2go.AnyMaps:anymaps-base:6.0.0'
compile 'com.github.car2go.AnyMaps:anymaps-osm:6.0.0'

View file

@ -3,12 +3,6 @@
package="fr.mobdev.blooddonation"
>
<supports-screens
android:largeScreens="false"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="false" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
@ -37,10 +31,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<receiver android:name=".service.BootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />

View file

@ -262,6 +262,7 @@ public class MapsFragment extends Fragment implements OnMapReadyCallback {
super.onViewCreated(view, savedInstanceState);
MapsConfiguration.getInstance().initialize(getActivity());
mapView = view.findViewById(R.id.maps_mv_map);
mapView.setUserAgent(BuildConfig.APPLICATION_ID);
mapView.onCreate(savedInstanceState);
}

View file

@ -2,9 +2,14 @@
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.3.2'
}
}
@ -12,5 +17,6 @@ allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
google()
}
}

View file

@ -1,6 +1,6 @@
#Wed Jun 14 13:37:17 CEST 2017
#Thu Mar 21 12:04:09 CET 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip