Android WYF migration guide

We have introduced a new WYF module that uses the MapView. This enhancement brings numerous advantages, such as providing a consistent user experience across multiple platforms and also improved usability.

It is important to mention that certain functionalities previously available may not be present in this new version. Rest assured, we are actively working on further development and enhancements for the module.

In order to use the new module, certain changes are required.

Remove the old library #

First of all, remove the old Situm WYF import:

// build.gradle of your app
...
dependencies {

    //And remove this
    implementation ('es.situm:situm-wayfinding:X.Y.Z-alpha@aar') {
        transitive = true
    }
}

Remove unnecessary settings #

There are some settings that you will need to remove:

  • Extending Theme.AppCompat.Light is not needed now. You can use any theme that you want.
  • Google Maps has been replaced by Mapbox. You no longer need to provide a Google Maps API Key as it was stated here: please remove it from your AndroidManifest.xml.
  • Remove the imports that start with es.situm.wayfinding and all the use of those classes.
  • Configuring the themes.xml file in order to make the Search Bar work is no longer needed. Remove this configuration.

Remove old imports and class usages #

Now, you’re ready to remove all usages of the old Situm WYF library.

First, remove the imports that start with es.situm.wayfinding. At this point, Android Studio will complain about all the classes that can no longer be found: remove all their usages as well. Some of these classes are SitumMapsLibrary, LibrarySettings, etc.

Finally, remove from your layouts/activity_main.xml (or similar file) all views that you created for the old Situm WYF.

Note! As a reminder of what you might have used / configured, you may visit the old WYF quickstart code example.

Use the new Situm WYF #

We have written a complete example on how to build your first application using the new Situm WYF module. Make sure you follow it!

Suscríbete a nuestro boletín

INFORMACIÓN BÁSICA SOBRE PROTECCIÓN DE DATOS

Responsable del tratamiento: SITUM TECHNOLOGIES, S.L.
Contacto: Responsable del tratamiento: situm@situm.es
Responsable de protección: dpo@situm.es
Finalidad y base legal: Gestionar el envío de newsletter de SITUM sólo con consentimiento.
Legitimación: Consentimiento expreso del interesado.
Destinatarios: Los datos no serán cedidos a terceros salvo obligación legal.
Plazo de conservación: Mientras la parte interesada permanezca suscrita al newsletter (en cada newsletter enviado por Situm estará disponible un link para darse de baja).
Derechos: El interesado podrá revocar en cualquier momento su consentimiento, así como ejercitar los derechos de oposición, acceso, conservación, rectificación, limitación, supresión de datos y no ser objeto de una decisión basada únicamente en el tratamiento automatizado de datos, dirigiéndose por escrito a SITUM en las direcciones indicadas.
Información Adicional: Puede consultar la información adicional y detallada sobre Protección de Datos en nuestra política de privacidad.

Por favor, descarga tu copia aquí.

Muchas gracias por descargar nuestro whitepaper. No dudes en contactar con nosotros si quieres saber más sobre cómo nuestras soluciones pueden ayudar a tu negocio.


Cerrar ventana