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
import kotlin.time.measureTime | |
import kotlin.time.measureTimedValue | |
fun main() { | |
val executionTime = measureTime{ | |
val isFlooding= predictFloodingInNairobi(0.35,7000.0) | |
println("Will Nairobi Flood? $isFlooding ") | |
} |
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
//Koin | |
implementation("io.insert-koin:koin-android:3.4.3") | |
implementation("io.insert-koin:koin-androidx-compose:3.4.3") | |
// Room | |
implementation("androidx.room:room-runtime:2.6.1") | |
ksp("androidx.room:room-compiler:2.6.1") | |
implementation("androidx.room:room-ktx:2.6.1") | |
//Retrofit | |
implementation("com.squareup.okhttp3:okhttp:4.12.0") | |
implementation("com.squareup.okhttp3:logging-interceptor:4.10.0") |
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
<xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appBar" | |
android:layout_width="match_parent" | |
android:layout_height="250dp" |