Overview
Correctness | |
1 | warning QueryPermissionsNeeded: Using APIs affected by query permissions |
4 | warning VectorRaster: Vector Image Generation |
Correctness:Messages | |
4 | warning MissingQuantity: Missing quantity translation |
3 | warning PluralsCandidate: Potential Plurals |
32 | warning StringFormatCount: Formatting argument types incomplete or inconsistent |
Security | |
2 | warning TrustAllX509TrustManager: Insecure TLS/SSL trust manager |
1 | warning ExportedService: Exported service does not require permission |
Usability:Typography | |
8 | warning TypographyDashes: Hyphen can be replaced with dash |
13 | warning TypographyEllipsis: Ellipsis string can be replaced with ellipsis character |
Productivity | |
14 | warning UseKtx: Use KTX extension function |
Included Additional Checks (76) | |
Disabled Checks (43) |
Using APIs affected by query permissions
../../src/androidMain/kotlin/com/ustadmobile/core/impl/UstadMobileSystemImpl.kt:248:
245 } 246 intent.setDataAndType(uri, mMimeType) 247 val pm = ctx.packageManager 248 if (intent.resolveActivity(pm) != null) { 249 ctx.startActivity(intent) 250 } else { 251 throw NoAppFoundException("No activity found for mimetype: $mMimeType", mMimeType)
QueryPermissionsNeeded
Correctness
Warning
Priority 5/10
Vector Image Generation
../../src/main/res/drawable/ic_logout.xml:5:
2 <vector 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:viewportWidth="122" 5 android:viewportHeight="122" android:width="512dp" android:height="512dp"> 6 <group> 7 <path 8 android:pathData="M86,28.074v-20.7c0-3.3-2.699-6-6-6H6c-3.3,0-6,2.7-6,6v3.9v78.2v2.701c0,2.199,1.3,4.299,3.2,5.299l45.6,23.601 c2,1,4.4-0.399,4.4-2.7v-23H80c3.301,0,6-2.699,6-6v-32.8H74v23.8c0,1.7-1.3,3-3,3H53.3v-30.8v-19.5v-0.6c0-2.2-1.3-4.3-3.2-5.3 l-26.9-13.8H71c1.7,0,3,1.3,3,3v11.8h12V28.074z"../generated/moko/androidMain/res/drawable/illustration_connect.xml:2:
1 <vector xmlns:android="http://schemas.android.com/apk/res/android" 2 android:width="1000dp" 3 android:height="1000dp" 4 android:viewportWidth="1000" 5 android:viewportHeight="1000">../generated/moko/androidMain/res/drawable/ustad_logo.xml:2:
1 <vector xmlns:android="http://schemas.android.com/apk/res/android" 2 android:width="1000dp" 3 android:height="250dp" 4 android:viewportWidth="1000" 5 android:viewportHeight="250">../../src/main/res/drawable/vector_drawable_logout.xml:3:
1 <?xml version="1.0" encoding="utf-8"?> 2 <vector xmlns:android="http://schemas.android.com/apk/res/android" android:viewportWidth="122" 3 android:viewportHeight="122" android:width="512dp" android:height="512dp"> 4 <group> 5 <path 6 android:pathData="M86,28.074v-20.7c0-3.3-2.699-6-6-6H6c-3.3,0-6,2.7-6,6v3.9v78.2v2.701c0,2.199,1.3,4.299,3.2,5.299l45.6,23.601 c2,1,4.4-0.399,4.4-2.7v-23H80c3.301,0,6-2.699,6-6v-32.8H74v23.8c0,1.7-1.3,3-3,3H53.3v-30.8v-19.5v-0.6c0-2.2-1.3-4.3-3.2-5.3 l-26.9-13.8H71c1.7,0,3,1.3,3,3v11.8h12V28.074z"
VectorRaster
Correctness
Warning
Priority 5/10
Missing quantity translation
../generated/moko/androidMain/res/values-fr/multiplatform_plurals.xml:3:
1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 <plurals name="number_of_attempts"> 4 <item quantity="one">%d tentative</item> 5 <item quantity="other">%d tentatives</item> 6 </plurals>../generated/moko/androidMain/res/values-fr/multiplatform_plurals.xml:7:
4 <item quantity="one">%d tentative</item> 5 <item quantity="other">%d tentatives</item> 6 </plurals> 7 <plurals name="duration_hours"> 8 <item quantity="one">%d heure</item> 9 <item quantity="other">%d heures</item> 10 </plurals>../generated/moko/androidMain/res/values-fr/multiplatform_plurals.xml:11:
8 <item quantity="one">%d heure</item> 9 <item quantity="other">%d heures</item> 10 </plurals> 11 <plurals name="duration_minutes"> 12 <item quantity="one">%d min</item> 13 <item quantity="other">%d min</item> 14 </plurals>../generated/moko/androidMain/res/values-fr/multiplatform_plurals.xml:15:
12 <item quantity="one">%d min</item> 13 <item quantity="other">%d min</item> 14 </plurals> 15 <plurals name="duration_seconds"> 16 <item quantity="one">%d sec</item> 17 <item quantity="other">%d sec</item> 18 </plurals>
MissingQuantity
Messages
Correctness
Warning
Priority 8/10
Potential Plurals
../generated/moko/androidMain/res/values/multiplatform_strings.xml:586:
583 <string name="overview">Overview</string> 584 <string name="add_new">Add new</string> 585 <string name="staff">Staff</string> 586 <string name="x_teachers_y_students">%1$d teachers, %2$d students</string> 587 <string name="call">Call</string> 588 <string name="organization_id">Organization ID</string> 589 <string name="student">Student</string>../generated/moko/androidMain/res/values/multiplatform_strings.xml:592:
589 <string name="student">Student</string> 590 <string name="contact_details">Contact details</string> 591 <string name="untitled">Untitled</string> 592 <string name="present_late_absent">%1$d present, %2$d late, %3$d absent</string> 593 <string name="marked_cap">Marked</string> 594 <string name="submitted_cap">Submitted</string> 595 <string name="not_submitted_cap">Not submitted</string>../generated/moko/androidMain/res/values/multiplatform_strings.xml:935:
932 <string name="assign_to_random_groups">Assign to random groups</string> 933 <string name="add_new_groups">Add new groups</string> 934 <string name="edit_groups">Edit groups</string> 935 <string name="num_replies">%1$d replies</string> 936 <string name="topics">Topics</string> 937 <string name="add_topic">Add topic</string> 938 <string name="add_a_reply">Add a reply</string>
PluralsCandidate
Messages
Correctness
Warning
Priority 5/10
Formatting argument types incomplete or inconsistent
../generated/moko/androidMain/res/values-bn/multiplatform_strings.xml:11:
8 <string name="edit_holiday_calendar">ছুটির ক্যালেন্ডার সম্পাদনা করুন</string> 9 <string name="primary_user">প্রাথমিক ব্যবহারকারী</string> 10 <string name="role_description">একটি ভূমিকা (উদাঃ শিক্ষক, শিক্ষার্থী, ইত্যাদি) উপরের নির্বাচিত সুযোগগুলিতে প্রযোজ্য এমন কিছু অনুমতিের (যেমন ব্যক্তির বিবরণ দেখুন, রেকর্ড উপস্থিতি ইত্যাদি) দেয়।</string> 11 <string name="invite_link_desc">এই লিঙ্কটি সহ যে কেউ যোগ দিতে এবং %1$s এ যোগদানের জন্য আবেদন করতে পারেন। তারপরে আপনি যোগদানের অনুরোধটি অনুমোদিত বা বাতিল করতে পারেন।</string> 12 <string name="permission_role_select">সমস্ত ভূমিকা দেখুন এবং নির্বাচন করুন</string> 13 <string name="permission_school_insert">একটি নতুন স্কুল প্রবেশ করান</string> 14 <string name="add_staff_to_school">স্কুলে কর্মী যুক্ত করুন</string>
679 <string name="reject">Reject</string> 680 <string name="ask_your_teacher_for_code">Ask your teacher for the code, then enter it below:</string> 681 <string name="copied_to_clipboard">Copied to clipboard</string> 682 <string name="invite_link_desc">Anyone with this link can join and apply to join. You can then approve or reject their request to join.</string> 683 <string name="copy_link">Copy link</string> 684 <string name="copy_code">Copy code</string> 685 <string name="share_link">Share link</string>../generated/moko/androidMain/res/values-rw/multiplatform_strings.xml:256:
253 <string name="add_role_permission">\"Ongeraho inshingano uruhushya\"</string> 254 <string name="scope">Imiterere</string> 255 <string name="role_description">Icyo umuntu ashinzwe (urugero: umwarimu,umunyeshuri, n\'ibindi) kimuha uburenganzira butandukanye(e.g. Kureba amakuru aranga umuntu,Kwandika ubwitabire,...) ibyo bikorwa hashingiwe ku miterere wahisemo haruguru.</string> 256 <string name="invite_link_desc">Uwaba ufite iri huza(linki) ashobora kuhinjirira hanyuma agasaba kwihuza %1$s.Ushobora kwemera cg guhakana ubusabe bwabo bwo kwiga.</string> 257 <string name="copy_link">Koporora ihuza(ilinki)</string> 258 <string name="copy_code">Koporora ikode</string> 259 <string name="role_not_selected_error">Inshingano y\'umuntu igomba gutoranywa</string>
679 <string name="reject">Reject</string> 680 <string name="ask_your_teacher_for_code">Ask your teacher for the code, then enter it below:</string> 681 <string name="copied_to_clipboard">Copied to clipboard</string> 682 <string name="invite_link_desc">Anyone with this link can join and apply to join. You can then approve or reject their request to join.</string> 683 <string name="copy_link">Copy link</string> 684 <string name="copy_code">Copy code</string> 685 <string name="share_link">Share link</string>../generated/moko/androidMain/res/values-rw/multiplatform_strings.xml:301:
298 <string name="repo_loading_status_loading_cloud">Gushyira kububiko bw\'amakuru (cloud)</string> 299 <string name="repo_loading_status_loading_mirror">Gushyira k\'urusobemiyoboro</string> 300 <string name="also_available_in">Ahandi wabisanga ni</string> 301 <string name="you_are_already_in_class">Ikosa: Usanzwe wanditse muriri shuri:%1$s</string> 302 <string name="or">Cyangwa ( cg )</string> 303 <string name="what_is_your_date_of_birth">Wavutse kuyihe tariki\?</string> 304 <string name="parents_email_address">Imeyili y\'ababyeyi</string>
731 <string name="select_account">Select account</string> 732 <string name="opening_link">Opening link: %1$s</string> 733 <string name="select_account_to_continue">Select account to continue</string> 734 <string name="you_are_already_in_class">Error: you are already enroled in this course</string> 735 <string name="you_are_already_in_school">Error: you are already enroled in the school: %1$s</string> 736 <string name="join_class">Join class</string> 737 <string name="join_school">Join school</string>../generated/moko/androidMain/res/values-my/multiplatform_strings.xml:314:
311 <string name="users_settings_desc">ထည့်သွင်း၊ ဖယ်ထုတ်၊ ပြုပြင်သူများ၊ သူတို့၏စကားဝှက်ကိုပြန်လည်သတ်မှတ်ပါ</string> 312 <string name="join_existing_school">ရှိပြီးသားကျောင်းသို့ဆက်သွယ်ပါ</string> 313 <string name="instructions_for_students">ကျောင်းသားများအတွက်ညွှန်ကြားချက်များ</string> 314 <string name="percentage_complete">%1$s% ပြည့်စုံ</string> 315 <string name="store_title">Ustad Mobile - အော့ဖ်လိုင်းဖွင့်ထားသောပညာရေးဆိုင်ရာအရင်းအမြစ်များ</string> 316 <string name="num_items_with_name_with_comma">%1$d %2$s, %3$d %4$s</string> 317 <string name="take_new_photo_from_camera">ကင်မရာမှဓာတ်ပုံအသစ်ယူပါ</string>
552 <string name="none_key">None</string> 553 <string name="instructions_for_students">Instructions for students</string> 554 <string name="not_started">Not started</string> 555 <string name="percentage_complete">%1$s%% complete</string> 556 <string name="percentage_score">Score %1$s%%</string> 557 <string name="started_date">Started %1$s</string> 558 <string name="started">Started</string>../generated/moko/androidMain/res/values-tg/multiplatform_strings.xml:315:
312 <string name="xapi_options_filters">Филтрҳо</string> 313 <string name="instructions_for_students">Супоришҳо барои хонандагон</string> 314 <string name="not_started">Оғоз нашудаст</string> 315 <string name="started_date">Оғоз шуд %1$s%</string> 316 <string name="started">Оғоз шуд</string> 317 <string name="mixed">Омехта</string> 318 <string name="store_description_short">Дастрасӣ ва мубодила мундариҷаи таълимӣ тариқи оффлайн</string>
554 <string name="not_started">Not started</string> 555 <string name="percentage_complete">%1$s%% complete</string> 556 <string name="percentage_score">Score %1$s%%</string> 557 <string name="started_date">Started %1$s</string> 558 <string name="started">Started</string> 559 <string name="mixed">Mixed</string> 560 <string name="store_title">Ustad Mobile - Offline Open Educational Resources</string>+ 27 More Occurrences...
StringFormatCount
Messages
Correctness
Warning
Priority 5/10
Insecure TLS/SSL trust manager
../../../../../../.gradle/caches/modules-2/files-2.1/com.athaydes.rawhttp/rawhttp-core/2.6.0/8bbc07fc8faa95d25f8d4d686336b37f674a84b1/rawhttp-core-2.6.0.jar:
../../../../../../.gradle/caches/modules-2/files-2.1/com.athaydes.rawhttp/rawhttp-core/2.6.0/8bbc07fc8faa95d25f8d4d686336b37f674a84b1/rawhttp-core-2.6.0.jar:
../../../../../../.gradle/caches/modules-2/files-2.1/com.athaydes.rawhttp/rawhttp-core/2.6.0/8bbc07fc8faa95d25f8d4d686336b37f674a84b1/rawhttp-core-2.6.0.jar:
TrustAllX509TrustManager
Security
Warning
Priority 6/10
Exported service does not require permission
../../src/androidMain/AndroidManifest.xml:7:
4 5 <application> 6 7 <service 8 android:name=".domain.interop.UstadHttpOverIpcServer" 9 android:exported="true"> 10 <intent-filter>
ExportedService
Security
Warning
Priority 5/10
Hyphen can be replaced with dash
../generated/moko/androidMain/res/values-fr/multiplatform_strings.xml:54:
51 <string name="add_new_language">Ajouter une nouvelle langue</string> 52 <string name="languages">Langues</string> 53 <string name="edit_language">Modifier la langue</string> 54 <string name="three_letter_code">Code à trois lettres (ISO 639-2)</string> 55 <string name="languages_description">Ajouter, retirer et modifier les langues utilisées pour catégoriser le contenu éducatif et les préférences des utilisateurs</string> 56 <string name="optional">Optionnel</string> 57 <string name="email">Courriel</string>../generated/moko/androidMain/res/values-fr/multiplatform_strings.xml:92:
89 <string name="male">Homme</string> 90 <string name="add_a_new_language">Ajouter une nouvelle langue</string> 91 <string name="select_language">Choisir une langue</string> 92 <string name="two_letter_code">Code à deux lettres (ISO 639-1)</string> 93 <string name="regcode">Code d\'inscription</string> 94 <string name="home">Accueil</string> 95 <string name="login">Se connecter</string>../generated/moko/androidMain/res/values-ps/multiplatform_strings.xml:642:
639 <string name="add_new_language">نوې ژبه زیاته کړئ</string> 640 <string name="languages">ژبې</string> 641 <string name="edit_language">ژبه اېډېټ کړئ</string> 642 <string name="two_letter_code">دوه لیکې کوډ (ISO 639-1)</string> 643 <string name="three_letter_code">درې لیکې کوډ (ISO 639-2)</string> 644 <string name="languages_description">د علمي منځپانګې د درجه بندۍ او د کاروونکي لومړيتوبونو لپاره د پام وړ ژبه زیاته، ړنګه او اېډېټ کړئ</string> 645 <string name="import_from_link">له لینک څخه وارد کړئ</string>../generated/moko/androidMain/res/values-ps/multiplatform_strings.xml:643:
640 <string name="languages">ژبې</string> 641 <string name="edit_language">ژبه اېډېټ کړئ</string> 642 <string name="two_letter_code">دوه لیکې کوډ (ISO 639-1)</string> 643 <string name="three_letter_code">درې لیکې کوډ (ISO 639-2)</string> 644 <string name="languages_description">د علمي منځپانګې د درجه بندۍ او د کاروونکي لومړيتوبونو لپاره د پام وړ ژبه زیاته، ړنګه او اېډېټ کړئ</string> 645 <string name="import_from_link">له لینک څخه وارد کړئ</string> 646 <string name="and_key">او</string>../generated/moko/androidMain/res/values-rw/multiplatform_strings.xml:693:
690 <string name="select_language">Hitamo ururimi</string> 691 <string name="languages">Indimi</string> 692 <string name="edit_language">Hindura ururimi</string> 693 <string name="two_letter_code">Ikode igizwe n\'inyuguti ebyiri (ISO 639-1)</string> 694 <string name="three_letter_code">ikode igizwe n\'inyuguti eshatu (ISO 639-2)</string> 695 <string name="languages_description">Ongeraho,Ukureho,unahindure indimi zikoreshwa mukugena ibyiciro by\'inyigisho z\'uburezi ndetse hanagendewe kumahitamo yukoresha iyi gahunda</string> 696 <string name="advanced">Icyiciro cyisumbuye</string>../generated/moko/androidMain/res/values-rw/multiplatform_strings.xml:694:
691 <string name="languages">Indimi</string> 692 <string name="edit_language">Hindura ururimi</string> 693 <string name="two_letter_code">Ikode igizwe n\'inyuguti ebyiri (ISO 639-1)</string> 694 <string name="three_letter_code">ikode igizwe n\'inyuguti eshatu (ISO 639-2)</string> 695 <string name="languages_description">Ongeraho,Ukureho,unahindure indimi zikoreshwa mukugena ibyiciro by\'inyigisho z\'uburezi ndetse hanagendewe kumahitamo yukoresha iyi gahunda</string> 696 <string name="advanced">Icyiciro cyisumbuye</string> 697 <string name="regcode">ikode yo gufunguza</string>../generated/moko/androidMain/res/values-fa/multiplatform_strings.xml:713:
710 <string name="add_new_language">زبان جدید اضافه کنید</string> 711 <string name="languages">زبانها</string> 712 <string name="edit_language">زبان را ویرایش کنید</string> 713 <string name="two_letter_code">کود دو رقمی (ISO 639-1)</string> 714 <string name="three_letter_code">کود سه رقمی (ISO 639-2)</string> 715 <string name="languages_description">اضافه، حذف، و ویرایش زبان مورد استفاده برای طبقهبندی محتوای علمی و اولویتهای کاربر</string> 716 <string name="incomplete">ناتکمیل</string>../generated/moko/androidMain/res/values-fa/multiplatform_strings.xml:714:
711 <string name="languages">زبانها</string> 712 <string name="edit_language">زبان را ویرایش کنید</string> 713 <string name="two_letter_code">کود دو رقمی (ISO 639-1)</string> 714 <string name="three_letter_code">کود سه رقمی (ISO 639-2)</string> 715 <string name="languages_description">اضافه، حذف، و ویرایش زبان مورد استفاده برای طبقهبندی محتوای علمی و اولویتهای کاربر</string> 716 <string name="incomplete">ناتکمیل</string> 717 <string name="attempts">تلاشها</string>
TypographyDashes
Typography
Usability
Warning
Priority 5/10
Ellipsis string can be replaced with ellipsis character
../generated/moko/androidMain/res/values-ar/multiplatform_strings.xml:185:
182 <string name="measurement_type">نوع المقياس</string> 183 <string name="select_one">إختر واحدة</string> 184 <string name="add_activity_literal">أضف نشاط</string> 185 <string name="add_activity">أضف نشاط جديد ...</string> 186 <string name="uom_default_title">وحدة القياس</string> 187 <string name="uom_boolean_title">صح أم خطأ</string> 188 <string name="uom_duration_title">الفترة الزمنية</string>../generated/moko/androidMain/res/values-bn/multiplatform_strings.xml:242:
239 <string name="uom_frequency_title">কতবার</string> 240 <string name="uom_duration_title">সময়ের দৈর্ঘ্য</string> 241 <string name="uom_boolean_title">সত্য অথবা মিথ্যা</string> 242 <string name="add_activity">একটি নতুন ক্রিয়াকলাপ যুক্ত করুন ...</string> 243 <string name="select_one">একটা নির্বাচন করুন</string> 244 <string name="measurement_type">পরিমাপের ধরণ</string> 245 <string name="frequency">কম্পাঙ্ক</string>../generated/moko/androidMain/res/values-rw/multiplatform_strings.xml:255:
252 <string name="import_link_error">Habaye ikosa mu kwinjiza</string> 253 <string name="add_role_permission">\"Ongeraho inshingano uruhushya\"</string> 254 <string name="scope">Imiterere</string> 255 <string name="role_description">Icyo umuntu ashinzwe (urugero: umwarimu,umunyeshuri, n\'ibindi) kimuha uburenganzira butandukanye(e.g. Kureba amakuru aranga umuntu,Kwandika ubwitabire,...) ibyo bikorwa hashingiwe ku miterere wahisemo haruguru.</string> 256 <string name="invite_link_desc">Uwaba ufite iri huza(linki) ashobora kuhinjirira hanyuma agasaba kwihuza %1$s.Ushobora kwemera cg guhakana ubusabe bwabo bwo kwiga.</string> 257 <string name="copy_link">Koporora ihuza(ilinki)</string> 258 <string name="copy_code">Koporora ikode</string>../generated/moko/androidMain/res/values-fa/multiplatform_strings.xml:263:
260 <string name="condition_not_in_list">در فهرست موجود نیست</string> 261 <string name="descending">نزولی</string> 262 <string name="add_person_filter">اضافه نمودن فیلتر شخص</string> 263 <string name="add_activity">اضافه نمودن یک فعالیت جدید...</string> 264 <string name="report">گزارش</string> 265 <string name="measurement_type">نوع اندازه گیری</string> 266 <string name="copy_link">کاپی نمودن پیوند</string>../generated/moko/androidMain/res/values-fa/multiplatform_strings.xml:270:
267 <string name="licence_type_cc_by_nc">مجوز CC توسط NC</string> 268 <string name="licence_type_cc_by_nc_sa">مجوز CC توسط NC SA</string> 269 <string name="licence_type_public_domain">دامنه عمومی</string> 270 <string name="syncing">در حال همگام سازی...</string> 271 <string name="feed">حاصله</string> 272 <string name="people">مردم</string> 273 <string name="record_attendance">ثبت حاضری</string>+ 8 More Occurrences...
TypographyEllipsis
Typography
Usability
Warning
Priority 5/10
Use KTX extension function
../../src/androidMain/kotlin/com/ustadmobile/core/domain/compress/audio/CompressAudioUseCaseAndroid.kt:45:
42 onProgress: CompressUseCase.OnCompressProgress? 43 ): CompressResult? = withContext(Dispatchers.IO) { 44 val destFile = if(toUri != null) { 45 Uri.parse(toUri).toFile().requireExtension("mp4") 46 }else { 47 File(appContext.cacheDir, UUID.randomUUID().toString() + ".mp4") 48 }../../src/androidMain/kotlin/com/ustadmobile/core/domain/compress/image/CompressImageUseCaseAndroid.kt:62:
59 val tmpInputFile = File(applicationContext.cacheDir, UUID.randomUUID().toString()) 60 try { 61 return withContext(Dispatchers.IO) { 62 val uri = Uri.parse(fromUri) 63 64 val uriFile = if(uri.scheme == "file") uri.toFile() else null../../src/androidMain/kotlin/com/ustadmobile/core/domain/compress/image/CompressImageUseCaseAndroid.kt:83:
80 } 81 82 val destFile = if(toUri != null) { 83 Uri.parse(toUri).toFile().requireExtension("webp") 84 }else { 85 File(applicationContext.cacheDir, UUID.randomUUID().toString() + ".webp") 86 }../../src/androidMain/kotlin/com/ustadmobile/core/domain/compress/video/CompressVideoUseCaseAndroid.kt:127:
124 //See also: https://developer.android.com/media/optimize/sharing#hdr_to_sdr 125 126 val destFile = if(toUri != null) { 127 Uri.parse(toUri).toFile().requireExtension("mp4") 128 }else { 129 File(appContext.cacheDir, UUID.randomUUID().toString() + ".mp4") 130 }../../src/androidMain/kotlin/com/ustadmobile/core/domain/compress/video/CompressVideoUseCaseAndroid.kt:134:
131 132 val sizeIn = uriHelper.getSize(DoorUri.parse(fromUri)) 133 val metaRetriever = MediaMetadataRetriever() 134 metaRetriever.setDataSource(appContext, Uri.parse(fromUri)) 135 val originalWidth = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)?.toInt() ?: 0 136 val originalHeight = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)?.toInt() ?: 0 137 //Duration in ms.+ 9 More Occurrences...
UseKtx
Productivity
Warning
Priority 6/10
Included Additional Checks
This card lists all the extra checks run by lint, provided from libraries,
build configuration and extra flags. This is included to help you verify
whether a particular check is included in analysis when configuring builds.
(Note that the list does not include the hundreds of built-in checks into lint,
only additional ones.)
Disabled Checks
One or more issues were not run by lint, either
because the check is not enabled by default, or because
it was disabled with a command line flag or via one or
more
lint.xml
configuration files in the project directories.
Suppressing Warnings and Errors
Lint errors can be suppressed in a variety of ways:
1. With a
2. With a
3. With a //noinspection comment in the source code
4. With ignore flags specified in the
5. With a
6. With a
7. With the --ignore flag passed to lint.
To suppress a lint warning with an annotation, add a
To suppress a lint warning with a comment, add a
To suppress a lint warning in an XML file, add a
To suppress a lint warning in a
Here we specify a comma separated list of issue id's after the disable command. You can also use
To suppress lint warnings with a configuration XML file, create a file named
The format of the
To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
For more information, see https://developer.android.com/studio/write/lint.html#config
1. With a
@SuppressLint
annotation in the Java code2. With a
tools:ignore
attribute in the XML file3. With a //noinspection comment in the source code
4. With ignore flags specified in the
build.gradle
file, as explained below5. With a
lint.xml
configuration file in the project6. With a
lint.xml
configuration file passed to lint via the --config flag7. With the --ignore flag passed to lint.
To suppress a lint warning with an annotation, add a
@SuppressLint("id")
annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources"
or {"UnusedResources","UnusedIds"}
, or it can be "all"
to suppress all lint warnings in the given scope.To suppress a lint warning with a comment, add a
//noinspection id
comment on the line before the statement with the error.To suppress a lint warning in an XML file, add a
tools:ignore="id"
attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android
declaration:xmlns:tools="http://schemas.android.com/tools"
To suppress a lint warning in a
build.gradle
file, add a section like this:android { lintOptions { disable 'TypographyFractions','TypographyQuotes' } }
Here we specify a comma separated list of issue id's after the disable command. You can also use
warning
or error
instead of disable
to change the severity of issues.To suppress lint warnings with a configuration XML file, create a file named
lint.xml
and place it at the root directory of the module in which it applies.The format of the
lint.xml
file is something like the following:<?xml version="1.0" encoding="UTF-8"?> <lint> <!-- Ignore everything in the test source set --> <issue id="all"> <ignore path="\*/test/\*" /> </issue> <!-- Disable this given check in this project --> <issue id="IconMissingDensityFolder" severity="ignore" /> <!-- Ignore the ObsoleteLayoutParam issue in the given files --> <issue id="ObsoleteLayoutParam"> <ignore path="res/layout/activation.xml" /> <ignore path="res/layout-xlarge/activation.xml" /> <ignore regexp="(foo|bar)\.java" /> </issue> <!-- Ignore the UselessLeaf issue in the given file --> <issue id="UselessLeaf"> <ignore path="res/layout/main.xml" /> </issue> <!-- Change the severity of hardcoded strings to "error" --> <issue id="HardcodedText" severity="error" /> </lint>
To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path
For more information, see https://developer.android.com/studio/write/lint.html#config