-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update kujaku dependency (#3243) * Mapview initializing fix * Add Mapbox SDK token for ci/cd * Add unit tests ✅ --------- Co-authored-by: Martin Ndegwa <[email protected]>
- Loading branch information
1 parent
eebb9a7
commit 8463098
Showing
6 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ | |
package org.smartregister.fhircore.geowidget.screens | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import org.smartregister.fhircore.engine.util.annotation.ExcludeFromJacocoGeneratedReport | ||
|
||
/** Created by Ephraim Kigamba - [email protected] on 22-08-2022. */ | ||
@ExcludeFromJacocoGeneratedReport | ||
@AndroidEntryPoint | ||
class GeoWidgetTestActivity : AppCompatActivity() |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import java.io.File | ||
import java.io.FileInputStream | ||
import java.io.FileNotFoundException | ||
import java.io.InputStreamReader | ||
import java.util.Properties | ||
|
||
fun readProperties(file: String): Properties { | ||
val properties = Properties() | ||
val localProperties = File(file) | ||
if (localProperties.isFile) { | ||
InputStreamReader(FileInputStream(localProperties), Charsets.UTF_8).use { reader | ||
-> | ||
properties.load(reader) | ||
} | ||
} | ||
else throw FileNotFoundException("\u001B[34mFile $file not found\u001B[0m") | ||
|
||
return properties | ||
} | ||
|
||
val mapboxSdkToken = System.getenv("MAPBOX_SDK_TOKEN") ?: readProperties((project.properties["localPropertiesFile"] ?: "${rootProject.projectDir}/local.properties").toString()).getProperty("MAPBOX_SDK_TOKEN") | ||
|
||
allprojects { | ||
repositories { | ||
maven { | ||
url = uri("https://api.mapbox.com/downloads/v2/releases/maven") | ||
credentials.username = "mapbox" | ||
credentials.password = mapboxSdkToken | ||
authentication.create<BasicAuthentication>("basic") | ||
} | ||
} | ||
} |