Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ Replace hebrew flag #1432

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>


<meta-data
android:name="google_analytics_adid_collection_enabled"
Expand Down
42 changes: 40 additions & 2 deletions android/app/src/main/kotlin/com/flyweb/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ import android.util.Log
import android.net.wifi.WifiConfiguration
import android.net.wifi.WifiManager
import android.net.ConnectivityManager

import java.util.concurrent.Executors
import android.os.Looper
import android.os.Handler
import android.content.BroadcastReceiver
import android.content.IntentFilter
class MainActivity : FlutterActivity() {
private lateinit var mAdminComponentName: ComponentName
private lateinit var mDevicePolicyManager: DevicePolicyManager
Expand Down Expand Up @@ -59,8 +63,40 @@ class MainActivity : FlutterActivity() {
val isSuccess = clearDataRestart()
result.success(isSuccess)
}
"installApk" -> {
val filePath = call.argument<String>("filePath")
if (filePath != null) {
AsyncTask.execute {
try {
// Check if file exists
val file = java.io.File(filePath)
if (!file.exists()) {
Log.e("APK_INSTALL", "APK file not found at path: $filePath")
result.error("FILE_NOT_FOUND", "APK file not found", null)
return@execute
}
// Check if device is rooted
if (!checkRoot()) {
Log.e("APK_INSTALL", "Device is not rooted")
result.error("NOT_ROOTED", "Device is not rooted", null)
return@execute
}



else -> result.notImplemented()
executeCommand(listOf("pm install -r -d $filePath"), result)

result.success("Installation initiated")
} catch (e: Exception) {
Log.e("APK_INSTALL", "Failed to install APK", e)
result.error("INSTALL_FAILED", e.message, null)
}
}
} else {
result.error("INVALID_PATH", "File path is null", null)
}
}
else -> result.notImplemented()
}
}
}
Expand Down Expand Up @@ -127,6 +163,7 @@ class MainActivity : FlutterActivity() {
}
}


private fun connectToWifi(call: MethodCall, result: MethodChannel.Result) {
AsyncTask.execute {
try {
Expand Down Expand Up @@ -251,6 +288,7 @@ fun connectToNetworkWPA(call: MethodCall, result: MethodChannel.Result) {
}
}
}

private fun sendDownArrowEvent(call: MethodCall, result: MethodChannel.Result) {
AsyncTask.execute {
try {
Expand Down
Binary file modified assets/img/flag/he.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/flag/th.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,17 @@
"example": "604"
}
}
}
},
"checkForUpdates": "التحقق من التحديثات",
"checkForNewVersion": "تحقق مما إذا كانت هناك نسخة جديدة متوفرة",
"wouldYouLikeToUpdate": "هل ترغب في تحديث التطبيق؟",
"updateCompleted": "تم التحديث بنجاح!",
"noUpdates": "لا توجد تحديثات",
"usingLatestVersion": "أنت تستخدم أحدث إصدار.",
"updateCancelled": "تم إلغاء التحديث",
"checkingUpdates": "جارٍ التحقق من التحديثات...",
"downloadingUpdate": "جارٍ تنزيل التحديث...",
"installingUpdate": "جارٍ تثبيت التحديث...",
"updateCompletedSuccessfully": "تم التحديث بنجاح",
"updateFailed": "فشل التحديث"
}
36 changes: 34 additions & 2 deletions lib/l10n/intl_bs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@
}
}
},
"quranReadingPagePortrait": "Strana {currentPage} / {totalPages}",
"@quranReadingPagePortrait": {
"description": "Placeholder text for displaying Quran reading page portrait numbers",
"placeholders": {
"currentPage": {
"type": "int",
"example": "1"
},
"totalPages": {
"type": "int",
"example": "604"
}
}
},
"chooseQuranPage": "Odaberite stranicu",
"checkingForUpdates": "Provjera za ažuriranje...",
"chooseQuranType": "Izaberi Kur'an",
Expand Down Expand Up @@ -320,5 +334,23 @@
"noFavoriteReciters": "Nema omiljenih učača. Pokušajte dodati jednog na listu",
"@noFavoriteReciters": {
"description": "Message shown when there are no favorite reciters"
}
}
},
"noReciterSearchResult": "Bez rezultata za vašu pretragu.",
"searchForReciter": "Potraži učača",
"downloadAllSuwarSuccessfully": "Kompletan Kur'an je preuzet",
"noSuwarDownload": "Nema novih sura za preuzimanje",
"connectDownloadQuran": "Da bi ste preuzeli molimo vas da se povežete na internetu",
"playInOnlineModeQuran": "Da bi ste slušali učenje Kur'ana molimo vas da se povežete na internetu",
"downloaded": "Preuzeto",
"switchQuranType": "Idi na {name}",
"@switchQuranType": {
"description": "Message shown when a reciter is added to favorites",
"placeholders": {
"name": {
"type": "String",
"example": "Warsh"
}
}
},
"surahSelector": "Odaberi suru"
}
15 changes: 14 additions & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,18 @@
}
}
},
"surahSelector":"Select Surah"
"surahSelector":"Select Surah",
"checkForUpdates": "Check for Updates",
"checkForNewVersion": "Check if a new version is available",
"wouldYouLikeToUpdate": "Would you like to update the app?",
"updateCompleted": "Update completed successfully!",
"noUpdates": "No Updates",
"usingLatestVersion": "You are using the latest version.",
"updateCancelled": "Update cancelled",
"checkingUpdates": "Checking updates...",
"downloadingUpdate": "Downloading update...",
"installingUpdate": "Installing update...",
"updateCompletedSuccessfully": "Update completed successfully",
"updateFailed": "Update failed"

}
65 changes: 61 additions & 4 deletions lib/l10n/intl_fa.arb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"darkMode": "حالت تاریک",
"lightMode": "حالت روشن",
"changeMosque": " مسجد را تغییر بده",
"in1": "در",
"in1": "پس از",
"sec": "ثانیه",
"online": "فعال",
"missingMosqueId": "کد شناسایی مسجد فراموش شده است",
Expand Down Expand Up @@ -58,7 +58,7 @@
"alIqama": "اقامه",
"alAdhan": "اذان",
"turnOfPhones": "لطفا موبایل خود را خاموش کنید",
"iqamaIn": "اقامه در",
"iqamaIn": "اقامه پس از",
"alAthkar": "اذکار",
"azkarList0": "استغفر الله استغفر الله استغفر الله اللهم أنت السلام و منک السلام تبارکت یا ذا الجلال و الإکرام، اللَّهُمَّ أَعِنِّي عَلَی ذِكْرِكَ، وَشُكْرِكَ، وَحُسْنِ عِبَادَتِكَ",
"@azkarList0": {
Expand Down Expand Up @@ -88,6 +88,34 @@
"@azkarList6": {
"description": "لا إِلَٰهَ إلاّ اللّهُ وحدَهُ لا شريكَ لهُ، لهُ المُـلْكُ ولهُ الحَمْد، وهوَ على كلّ شَيءٍ قَدير، اللّهُـمَّ لا مانِعَ لِما أَعْطَـيْت، وَلا مُعْطِـيَ لِما مَنَـعْت، وَلا يَنْفَـعُ ذا الجَـدِّ مِنْـكَ الجَـد"
},
"azkarList7": "اللهم أنت ربي، لا إله إلا أنت، خلقتني وأنا عبدُك, وأنا على عهدِك ووعدِك ما استطعتُ، أعوذ بك من شر ما صنعتُ، أبوءُ لَكَ بنعمتكَ عَلَيَّ، وأبوء بذنبي، فاغفر لي، فإنه لا يغفرُ الذنوب إلا أنت",
"@azkarList7": {
"description": "اللهم أنت ربي، لا إله إلا أنت، خلقتني وأنا عبدُك, وأنا على عهدِك ووعدِك ما استطعتُ، أعوذ بك من شر ما صنعتُ، أبوءُ لَكَ بنعمتكَ عَلَيَّ، وأبوء بذنبي، فاغفر لي، فإنه لا يغفرُ الذنوب إلا أنت"
},
"azkarList8": "أصبحنا وأصبح الملك لله، والحمد لله ولا إله إلا الله وحده لا شريك له، له الملك وله الحمد، وهو على كل شيء قدير، أسألك خير ما في هذا اليوم، وخير ما بعده، وأعوذ بك من شر هذا اليوم، وشر ما بعده، وأعوذ بك من الكسل وسوء الكبر، وأعوذ بك من عذاب النار وعذاب القبر",
"@azkarList8": {
"description": "أصبحنا وأصبح الملك لله، والحمد لله ولا إله إلا الله وحده لا شريك له، له الملك وله الحمد، وهو على كل شيء قدير، أسألك خير ما في هذا اليوم، وخير ما بعده، وأعوذ بك من شر هذا اليوم، وشر ما بعده، وأعوذ بك من الكسل وسوء الكبر، وأعوذ بك من عذاب النار وعذاب القبر"
},
"azkarList9": "اللَّهُمَّ إِنِّي أَصْبَحْتُ أُشْهِدُكَ، وَأُشْهِدُ حَمَلَةَ عَرْشِكَ، وَمَلاَئِكَتِكَ، وَجَمِيعَ خَلْقِكَ، أَنَّكَ أَنْتَ اللَّهُ لَا إِلَهَ إِلاَّ أَنْتَ وَحْدَكَ لاَ شَرِيكَ لَكَ، وَأَنَّ مُحَمَّداً عَبْدُكَ وَرَسُولُكَ |أربعَ مَرَّات|. [ وإذا أمسى قال: اللَّهم إني أمسيت...]",
"@azkarList9": {
"description": "اللَّهُمَّ إِنِّي أَصْبَحْتُ أُشْهِدُكَ، وَأُشْهِدُ حَمَلَةَ عَرْشِكَ، وَمَلاَئِكَتِكَ، وَجَمِيعَ خَلْقِكَ، أَنَّكَ أَنْتَ اللَّهُ لَا إِلَهَ إِلاَّ أَنْتَ وَحْدَكَ لاَ شَرِيكَ لَكَ، وَأَنَّ مُحَمَّداً عَبْدُكَ وَرَسُولُكَ |أربعَ مَرَّات|. [ وإذا أمسى قال: اللَّهم إني أمسيت...]"
},
"azkarList10": "|اللَّهُمَّ عَافِنِي فِي بَدَنِي، اللَّهُمَّ عَافِنِي فِي سَمْعِي، اللَّهُمَّ عَافِنِي فِي بَصَرِي، لاَ إِلَهَ إِلاَّ أَنْتَ. اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْكُفْرِ، وَالفَقْرِ، وَأَعُوذُ بِكَ مِنْ عَذَابِ القَبْرِ، لاَ إِلَهَ إِلاَّ أَنْتَ |ثلاثَ مرَّاتٍ",
"@azkarList10": {
"description": "|اللَّهُمَّ عَافِنِي فِي بَدَنِي، اللَّهُمَّ عَافِنِي فِي سَمْعِي، اللَّهُمَّ عَافِنِي فِي بَصَرِي، لاَ إِلَهَ إِلاَّ أَنْتَ. اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْكُفْرِ، وَالفَقْرِ، وَأَعُوذُ بِكَ مِنْ عَذَابِ القَبْرِ، لاَ إِلَهَ إِلاَّ أَنْتَ |ثلاثَ مرَّاتٍ"
},
"azkarList11": "|حَسْبِيَ اللَّهُ لاَ إِلَهَ إِلاَّ هُوَ عَلَيهِ تَوَكَّلتُ وَهُوَ رَبُّ الْعَرْشِ الْعَظِيمِ |سَبْعَ مَرّاتٍ",
"@azkarList11": {
"description": "|حَسْبِيَ اللَّهُ لاَ إِلَهَ إِلاَّ هُوَ عَلَيهِ تَوَكَّلتُ وَهُوَ رَبُّ الْعَرْشِ الْعَظِيمِ |سَبْعَ مَرّاتٍ"
},
"azkarList12": "|لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ، لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ، وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ |عشرَ مرَّاتٍ",
"@azkarList12": {
"description": "|رَضِيتُ بِاللَّهِ رَبَّاً، وَبِالْإِسْلاَمِ دِيناً، وَبِمُحَمَّدٍ صلى الله عليه وسلم نَبِيّاً |ثلاثَ مرَّاتٍ"
},
"azkarList13": "|لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ، لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ، وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ |عشرَ مرَّاتٍ",
"@azkarList13": {
"description": "|لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ، لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ، وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ |عشرَ مرَّات"
},
"jumuaaScreenTitle": "وقت نماز جمعه ",
"jumuaaHadith": "پیامبر اکرم صلی الله علیه و آله و سلم می فرمایند: «کسی که وضو را کامل بگیرد، سپس به جمعه برود و سپس گوش کند و سکوت کند، آنچه بین آن وقت تا جمعه بعد و سه روز دیگر و یک روز دیگر است آمرزیده می شود. کسی که دست به سنگ بزند، بیهوده است.»",
"shuruk": "طلوع آفتاب",
Expand Down Expand Up @@ -263,5 +291,34 @@
}
},
"chooseQuranPage": "صفحه را انتخاب کنید",
"checkingForUpdates": "Checking for updates..."
}
"checkingForUpdates": "Checking for updates...",
"chooseQuranType": "Choose quran",
"hafs": "Hafs",
"warsh": "Warsh",
"favorites": "Favorites",
"allReciters": "All Reciters",
"reciterAddedToFavorites": "Reciter {name} added to favorites",
"@reciterAddedToFavorites": {
"description": "Message shown when a reciter is added to favorites",
"placeholders": {
"name": {
"type": "String",
"example": "Abdul Basit"
}
}
},
"reciterRemovedFromFavorites": "Reciter {name} removed from favorites",
"@reciterRemovedFromFavorites": {
"description": "Message shown when a reciter is removed from favorites",
"placeholders": {
"name": {
"type": "String",
"example": "Abdul Basit"
}
}
},
"noFavoriteReciters": "No favorite reciters. Try adding one to the list",
"@noFavoriteReciters": {
"description": "Message shown when there are no favorite reciters"
}
}
14 changes: 13 additions & 1 deletion lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,18 @@
"example": "604"
}
}
}
},
"checkForUpdates": "Vérifier les mises à jour",
"checkForNewVersion": "Vérifiez si une nouvelle version est disponible",
"wouldYouLikeToUpdate": "Souhaitez-vous mettre à jour l'application ?",
"updateCompleted": "Mise à jour terminée avec succès !",
"noUpdates": "Aucune mise à jour",
"usingLatestVersion": "Vous utilisez la dernière version.",
"updateCancelled": "Mise à jour annulée",
"checkingUpdates": "Vérification des mises à jour...",
"downloadingUpdate": "Téléchargement de la mise à jour...",
"installingUpdate": "Installation de la mise à jour...",
"updateCompletedSuccessfully": "Mise à jour terminée avec succès",
"updateFailed": "Échec de la mise à jour"

}
36 changes: 34 additions & 2 deletions lib/l10n/intl_sq.arb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"maghrib": "Akshami ",
"isha": "Jacia",
"afterAdhanHadithTitle": "Duaja pas Ezanit",
"afterSalahHadith": "O Allahu im, Zot i kësaj thirrje të plotë dhe i namazit që do të falet, jepi Muhamedit ndërmjetësimin dhe nderimin, si dhe dërgoje atë në vendin e lavdishëm të cilin ia ke premtuar. Pa dyshim, Ti e mban premtimin e dhënë. Me të vërtetë Ti nuk e thyen premtimin",
"afterSalahHadith": "O Allahu im, Zot i kësaj thirrje të plotë dhe i namazit që do të falet, jepi Muhamedit ndërmjetësimin dhe nderimin, si dhe dërgoje atë në vendin e lavdishëm të cilin ia ke premtuar.",
"alIqama": "Ikameti",
"alAdhan": "Ezani",
"turnOfPhones": "Ju lutemi, bërë telefonin të pazëshëm!",
Expand Down Expand Up @@ -290,6 +290,20 @@
}
}
},
"quranReadingPagePortrait": "Faqe {currentPage} / {totalPages}",
"@quranReadingPagePortrait": {
"description": "Placeholder text for displaying Quran reading page portrait numbers",
"placeholders": {
"currentPage": {
"type": "int",
"example": "1"
},
"totalPages": {
"type": "int",
"example": "604"
}
}
},
"chooseQuranPage": "Zgjidhni faqen",
"checkingForUpdates": "Po kontrollon për përditësime...",
"chooseQuranType": "Zgjidhni Kuranin",
Expand Down Expand Up @@ -320,5 +334,23 @@
"noFavoriteReciters": "Nuk ka recitues të preferuar. Provoni të shtoni një në listë",
"@noFavoriteReciters": {
"description": "Message shown when there are no favorite reciters"
}
},
"noReciterSearchResult": "Nuk u gjetën rezultate për kërkimin tuaj",
"searchForReciter": "Kërko recituesin",
"downloadAllSuwarSuccessfully": "Komplet Kur'ani është shkarkuar",
"noSuwarDownload": "Nuk ka Sure të reja për t'u shkarkuar",
"connectDownloadQuran": "Ju lutem lidheni internetin për të shkarkuar",
"playInOnlineModeQuran": "Për të dëgjuar lidhuni me internetin",
"downloaded": "E shkarkuar",
"switchQuranType": "Shkoni te {name}",
"@switchQuranType": {
"description": "Message shown when a reciter is added to favorites",
"placeholders": {
"name": {
"type": "String",
"example": "Warsh"
}
}
},
"surahSelector": "Zgjidhni Suren"
}
Loading