Git Product home page Git Product logo

islamic-toolkit-kt's Introduction

Hi ๐Ÿ‘‹, I'm Ahmed Sleem

Proud Muslim โค๏ธ

Engineering Student working as Native Mobile Software Developer ๐ŸŒฑ

Loves writing native mobile apps for Android and iOS and admires using KMP

Some information about me (^-^)

๐Ÿ“ซ You will find me on twitter: https://twitter.com/typ_ahmed_sleem

islamic-toolkit-kt's People

Contributors

mohamedmabrouk1 avatar mustfaunlu avatar typ-ahmedsleem avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mohammedmabrouk

islamic-toolkit-kt's Issues

feat: Make more support for Functional Prorgamming Style

Improvement request

Module: core, praytimes, hijri

Description: Make more support for Functional Prorgamming Style

Request details:

The project needs more support for functional programming style that Kotlin provides

Example:

OOP style

val config = PrayerTimesCalculator.Config(
    calcMethod = CalculationMethod.EGYPT
    asrMethod = AsrMethod.SHAFII
    offsets = PrayerTimesOffsets(
       fajr = 10
       maghrib = 2
    )
)

Functional Programming style

val config = prayerTimesCalcConfig (
    calcMethod = CalculationMethod.EGYPT
    asrMethod = AsrMethod.SHAFII
    offsets = prayerTimesOffsets {
       fajr = 10
       maghrib = 2
    }
}

feat: Add more cities to PopularLocations

Improvement request

Module: core
Sub-module: location

Description: Add more cities to PopularLocations

Request details:

Add more popular cities and locations usually used by users such as: Makkah


This issue is open for contributions from other developers to cover a large set of locations

bug: PrayerTimes.current returns same value as PrayerTimes.next

Bug report

Module: prayertimes

Description: PrayerTimes.current returns same value as PrayerTimes.next

Bug details:

If we have a piece of code like:

val prays = PrayerTimes.getTodayPrays(loc, config)
val currentPray = prays.current
val nextPray = prays.next

// Let's assume that actual current pray is Asr and next pray is Maghrib

print(currentPray.type) // prints: MAGHRIB
print(nextPray.type) // prints: MAGHRIB

it prints the next pray not the current pray as I performed a test but found that both field getters return the same pray

feat: Directly call PopularLocations.CITY instead of PopularLocations.COUNTRY.CITY

Improvement request

Module: core

Description: Remove countries subcalsses and add more cities in PopularLocaitons

Request details:

I assume getting Cairo location from PopularLocations so, instead of calling it this way:

val cairo = PopularLocations.Egypt.CAIRO

it will be this way for more smooth calling:

val cairo = PopularLocations.Cairo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.