Browse Source

Migration from anymaps repository to the version in this repo

Fix UserAgent not specified bug
Fix #5
tags/release-v3.5
Schoumi 1 year ago
parent
commit
254f3bf4e7
5 changed files with 17 additions and 16 deletions
  1. +7
    -3
      app/build.gradle
  2. +0
    -10
      app/src/main/AndroidManifest.xml
  3. +1
    -0
      app/src/main/java/fr/mobdev/blooddonation/fragment/MapsFragment.java
  4. +7
    -1
      build.gradle
  5. +2
    -2
      gradle/wrapper/gradle-wrapper.properties

+ 7
- 3
app/build.gradle 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'


+ 0
- 10
app/src/main/AndroidManifest.xml 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" />

+ 1
- 0
app/src/main/java/fr/mobdev/blooddonation/fragment/MapsFragment.java 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);
}


+ 7
- 1
build.gradle 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()
}
}

+ 2
- 2
gradle/wrapper/gradle-wrapper.properties 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

Loading…
Cancel
Save