-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch introduces a warsh flavor for the app (see #629).
- Loading branch information
Showing
16 changed files
with
108 additions
and
0 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
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
app/src/warsh/java/com/quran/labs/androidquran/data/QuranConstants.java
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,14 @@ | ||
package com.quran.labs.androidquran.data; | ||
|
||
import com.quran.labs.androidquran.util.QuranScreenInfo; | ||
|
||
import android.support.annotation.NonNull; | ||
import android.view.Display; | ||
|
||
public class QuranConstants { | ||
public static final int NUMBER_OF_PAGES = 604; | ||
|
||
public static QuranScreenInfo.PageProvider getPageProvider(@NonNull Display display) { | ||
return new QuranScreenInfo.DefaultPageProvider(display); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
app/src/warsh/java/com/quran/labs/androidquran/data/QuranData.java
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,5 @@ | ||
package com.quran.labs.androidquran.data; | ||
|
||
public class QuranData extends BaseQuranData { | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
app/src/warsh/java/com/quran/labs/androidquran/data/QuranFileConstants.java
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,28 @@ | ||
package com.quran.labs.androidquran.data; | ||
|
||
import com.quran.labs.androidquran.ui.util.TypefaceManager; | ||
|
||
public class QuranFileConstants { | ||
// server urls | ||
public static final String BASE_HOST = "http://android.quran.com/data/"; | ||
public static final String IMG_BASE_URL = BASE_HOST + "warsh/"; | ||
public static final String IMG_ZIP_BASE_URL = IMG_BASE_URL + "zips/"; | ||
public static final String PATCH_ZIP_BASE_URL = IMG_BASE_URL + "patches/v"; | ||
public static final String DATABASE_BASE_URL = BASE_HOST + "databases/"; | ||
public static final String AYAHINFO_BASE_URL = IMG_BASE_URL + "databases/ayahinfo/"; | ||
public static final String AUDIO_DB_BASE_URL = IMG_BASE_URL + "databases/audio/"; | ||
public static final int FONT_TYPE = TypefaceManager.TYPE_UTHMANI_HAFS; | ||
|
||
// local paths | ||
public static final String QURAN_BASE = "quran_android/"; | ||
public static final String DATABASE_DIRECTORY = "databases"; | ||
public static final String AUDIO_DIRECTORY = "warsh/audio"; | ||
public static final String AYAHINFO_DIRECTORY = "warsh/" + DATABASE_DIRECTORY; | ||
public static final String IMAGES_DIRECTORY = "warsh"; | ||
|
||
// arabic database | ||
public static final String ARABIC_DATABASE = "quran.ar.db"; | ||
|
||
// images version | ||
public static final int IMAGES_VERSION = 1; | ||
} |
4 changes: 4 additions & 0 deletions
4
app/src/warsh/java/com/quran/labs/androidquran/data/QuranInfo.java
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,4 @@ | ||
package com.quran.labs.androidquran.data; | ||
|
||
public class QuranInfo extends BaseQuranInfo { | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">قرآن - ورش</string> | ||
</resources> |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="qari_ahmad_khidr_attarabolsi_gapless">أحمد خضر الطرابلسي (متصل)</string> | ||
</resources> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Quran - Warsh</string> | ||
<string name="credits">Qaloon images used with permission of Nous Memes | ||
Editions Et Diffusion (Tunisia). | ||
The data used in the translations and Arabic comes from | ||
<a href="http://tanzil.net">tanzil.net</a> and | ||
<a href="http://quran.ksu.edu.sa">quran.ksu.edu.sa</a>.</string> | ||
</resources> |
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,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string-array name="quran_readers_name"> | ||
</string-array> | ||
|
||
<integer-array translatable="false" name="quran_readers_have_gapless_equivalents"> | ||
</integer-array> | ||
|
||
<string-array translatable="false" name="quran_readers_path"> | ||
</string-array> | ||
|
||
<string-array translatable="false" name="quran_readers_db_name"> | ||
</string-array> | ||
|
||
<string-array translatable="false" name="quran_readers_urls"> | ||
</string-array> | ||
|
||
<!-- actual qari names --> | ||
</resources> |
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<shortcut | ||
android:shortcutId="lastPage" | ||
android:enabled="true" | ||
android:icon="@drawable/ic_shortcut_last_page" | ||
android:shortcutShortLabel="@string/menu_jump_last_page" | ||
android:shortcutLongLabel="@string/menu_jump_last_page"> | ||
<intent | ||
android:action="com.quran.labs.androidquran.last_page" | ||
android:targetPackage="com.quran.labs.androidquran.warsh" | ||
android:targetClass="com.quran.labs.androidquran.ShortcutsActivity" | ||
/> | ||
</shortcut> | ||
</shortcuts> |