-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
172 additions
and
382 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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
autoquran/src/androidTest/java/com/quran/labs/autoquran/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
autoquran/src/main/java/com/quran/labs/autoquran/QuranAutoApplication.kt
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,27 @@ | ||
package com.quran.labs.autoquran | ||
|
||
import android.app.Application | ||
import com.quran.labs.autoquran.di.DaggerServiceComponent | ||
import com.quran.labs.feature.autoquran.QuranAudioService | ||
import com.quran.labs.feature.autoquran.di.QuranAutoInjector | ||
import com.quran.mobile.di.QuranApplicationComponent | ||
import com.quran.mobile.di.QuranApplicationComponentProvider | ||
|
||
class QuranAutoApplication : Application(), QuranApplicationComponentProvider { | ||
private lateinit var quranAutoApplicationComponent: QuranApplicationComponent | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
quranAutoApplicationComponent = object : QuranApplicationComponent, QuranAutoInjector { | ||
private val serviceComponent by lazy { DaggerServiceComponent.create() } | ||
|
||
override fun inject(service: QuranAudioService) { | ||
serviceComponent.inject(service) | ||
} | ||
} | ||
} | ||
|
||
override fun provideQuranApplicationComponent(): QuranApplicationComponent { | ||
return quranAutoApplicationComponent | ||
} | ||
} |
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
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<resources> | ||
<string name="app_name">Quran</string> | ||
<string name="quran_sura_title">Surah %1$s</string> | ||
</resources> |
Oops, something went wrong.