Simple Kotlin Multiplatform PrayerTimes App for iOS and Android
<div class="snippet-clipboard-content position-relative" data-snippet-clipboard-copy-content="Kotlin Multiplatform
___ _______ ___
/ _ \_______ ___ _____ ___/_ __(_)_ _ ___ ___ / _ | ___ ___
/ ___/ __/ _ `/ // / -_) __// / / / ' \/ -_|_-
Kotlin Multiplatform
___ _______ ___
/ _ \_______ ___ _____ ___/_ __(_)_ _ ___ ___ / _ | ___ ___
/ ___/ __/ _ `/ // / -_) __// / / / ' \/ -_|_-< / __ |/ _ \/ _ \
/_/ /_/ \_,_/\_, /\__/_/ /_/ /_/_/_/_/\__/___/ /_/ |_/ .__/ .__/
/___/ /_/ /_/
This is a sample PrayerTimes App with shared business logic written for a talk given for GDG MENA Digital Days on August 31st, 2021. The slide deck (10 slides, short since the talk was mostly live-coding) can be downloaded from here.
It uses the kotlin_multiplatform
branch of adhan for shared PrayerTime calculation logic.
Features
- shared business logic between iOS and Android
- implementation for Android (using Jetpack Compose)
- implementation for iOS (using SwiftUI)
Setup
- Obtain a Google API key (see here for details).
- Update
shared/src/commonMain/kotlin/app/salah/Secrets.kt
with your key.
On Android, open in Android Studio (Arctic Fox or above). On iOS, open the xcworkspace file in Xcode.