quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
1.95k stars 881 forks source link

Android Auto Support 🚗 #2648

Open jibraniqbal666 opened 3 months ago

jibraniqbal666 commented 3 months ago

Salam Y'all

Alhamdullilah, I was finally able to add the android auto support but with limitations, and the code is pretty basic for now.

Video (With sound):

https://github.com/quran/quran_android/assets/30576574/b4790b57-ebba-459d-880e-ada76fe25129

Feature:

Limitation:

Most of the code is in separate module and I am planning to add more features later, inshaAllah

Run with autoquran configuration to try it with Automotive emulator.

github-actions[bot] commented 3 months ago
OLD: app-madani-debug.apk (signature: V1, V2)
NEW: app-madani-debug.apk (signature: V1, V2)

          │            compressed            │           uncompressed           
          ├───────────┬───────────┬──────────┼───────────┬───────────┬──────────
 APK      │ old       │ new       │ diff     │ old       │ new       │ diff     
──────────┼───────────┼───────────┼──────────┼───────────┼───────────┼──────────
      dex │  20.3 MiB │  20.3 MiB │   -265 B │  65.5 MiB │  65.5 MiB │ -1.1 KiB 
     arsc │   2.2 MiB │   2.2 MiB │   -860 B │   2.2 MiB │   2.2 MiB │   -860 B 
 manifest │   5.6 KiB │   5.6 KiB │      0 B │  27.1 KiB │  27.1 KiB │      0 B 
      res │   1.6 MiB │   1.6 MiB │    -38 B │   1.8 MiB │   1.8 MiB │   -248 B 
    asset │ 404.2 KiB │ 404.2 KiB │      0 B │ 678.6 KiB │ 678.6 KiB │      0 B 
    other │ 188.6 KiB │ 188.6 KiB │    +24 B │ 385.6 KiB │ 385.6 KiB │     -2 B 
──────────┼───────────┼───────────┼──────────┼───────────┼───────────┼──────────
    total │  24.7 MiB │  24.7 MiB │ -1.1 KiB │  70.6 MiB │  70.6 MiB │ -2.2 KiB 
github-actions[bot] commented 3 months ago

Upgraded Dependencies app.cash.molecule:molecule-runtime:1.4.1, (changed from 1.4.2) app.cash.molecule:molecule-runtime-android:1.4.1, (changed from 1.4.2) com.google.dagger:dagger:2.51, (changed from 2.51.1) com.squareup.retrofit2:converter-moshi:2.10.0, (changed from 2.11.0) com.squareup.retrofit2:retrofit:2.10.0, (changed from 2.11.0) org.jetbrains.compose.runtime:runtime:1.6.0, (changed from 1.6.1)

ahmedre commented 3 months ago

wa3laikum alsalam, masha'Allah Jibran this looks really promising! Looking forward to following your progress here. I am guessing at some point we should probably make our existing AudioService conform to some of these interfaces (MediaBrowserServiceCompat) so they work with Android Auto out of the box.

jibraniqbal666 commented 3 months ago

@ahmedre, should we merge this or i should continue working on this branch?

ahmedre commented 3 months ago

let's keep working on it until it's in a more ready state?