Last active
August 28, 2023 21:35
-
-
Save dzuluaga/042f7baa9b7c94ca703d46b17ca0909d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Application Kotlin file to initialize a Map provider | |
package com.omh.android.maps.sample | |
import android.app.Application | |
import com.omh.android.maps.api.factories.OmhMapProvider | |
class DemoApp : Application() { | |
override fun onCreate() { | |
super.onCreate() | |
OmhMapProvider.Initiator() | |
.addGmsPath(BuildConfig.MAPS_GMS_PATH) // Google Map Provider | |
.addNonGmsPath(BuildConfig.MAPS_NON_GMS_PATH) // OpenStreeMap Provider | |
.initialize() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment