{"id":504182,"date":"2026-11-20T21:25:32","date_gmt":"2026-11-20T18:25:32","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=504182"},"modified":"2026-11-20T21:25:32","modified_gmt":"2026-11-20T18:25:32","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=504182","title":{"rendered":"\u0421\u0432\u0430\u0439\u043f\u043e\u043c\u043e\u0439\u043a\u0430: \u0447\u0438\u0441\u0442\u0438\u043b\u043a\u0430 \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430\u043c\u0438 \u0438\u0437 Tinder \u043d\u0430 Capacitor"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u0443\u0441\u043e\u0440 \u0438\u0437 \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u043f\u043e \u043a\u043e\u043b\u043e\u0434\u0430\u043c \u0438 \u0434\u0430\u0451\u0442 \u0441\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438: \u0432\u043b\u0435\u0432\u043e &#8212; \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0432\u043f\u0440\u0430\u0432\u043e &#8212; \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0432\u0432\u0435\u0440\u0445 &#8212; \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0436\u0438\u0432\u0443\u0442 \u0432 WebView, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 &#8212; \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u043d\u0430 Java. \u041f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438\u0437 MediaStore \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 WebView, \u0438\u0441\u043a\u0430\u0442\u044c \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043a\u0435\u0448, \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c CLIP \u0432 8,8 \u041c\u0411, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0448\u0443\u0442\u0438\u043b\u043e \u043d\u0430\u0434 \u0444\u043e\u0442\u043e \u0441 \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0430, \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c Android 10, \u0433\u0434\u0435 \u043d\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u0440\u0437\u0438\u043d\u044b. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0443\u0440\u043e\u043a\u043e\u043c \u0441\u0442\u0430\u043b \u043e\u0434\u0438\u043d <code>else<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u043b\u0441\u044f \u043d\u0435 \u043a \u0442\u043e\u043c\u0443 <code>if<\/code> \u0438 \u0443\u0448\u0451\u043b \u0432 Google Play. \u041d\u0438\u0436\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0434 \u0438 \u0446\u0438\u0444\u0440\u044b \u0441 \u0434\u0432\u0443\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/0b\/63\/ff\/0b63ffaeaae835188eec78c3c5e5785e.png\" width=\"780\" height=\"440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/0b\/63\/ff\/0b63ffaeaae835188eec78c3c5e5785e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/0b\/63\/ff\/0b63ffaeaae835188eec78c3c5e5785e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u0427\u0442\u043e \u0437\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u043c\u043e\u0435\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435 \u0433\u043e\u0434\u0430\u043c\u0438 \u043a\u043e\u043f\u0438\u043b\u0441\u044f \u043c\u0443\u0441\u043e\u0440: \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0438 \u0441\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442\u044b \u0441 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0438 \u0432 WhatsApp \u043e\u0442 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u043e\u0432, \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438 (\u043a\u0443\u0434\u0430 \u0443\u0436 \u0431\u0435\u0437 \u043d\u0438\u0445), \u0447\u0435\u043a\u0438 \u0438 \u0441\u0435\u0440\u0438\u0438 \u0438\u0437 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0441\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u043c\u043e\u0435\u0439 \u0434\u043e\u0447\u0435\u0440\u0438. \u0427\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0440\u0443\u043a\u0430\u043c\u0438 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043a\u0443\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c &#171;\u0421\u0432\u0430\u0439\u043f\u043e\u043c\u043e\u0439\u043a\u0430&#187; (\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c: \u0441\u0432\u0430\u0439\u043f-\u043f\u043e\u043c\u043e\u0439\u043a\u0430 \u0438\u043b\u0438 \u0441\u0432\u0430\u0439\u043f\u043e-\u043c\u043e\u0439\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a \u0438 \u0442\u0430\u043a). \u041e\u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043b\u043e\u0434\u044b: \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, WhatsApp, Telegram, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0441\u0435\u0440\u0438\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432, \u0432\u0438\u0434\u0435\u043e \u0431\u043e\u043b\u044c\u0448\u0435 100 \u041c\u0411, \u0441\u0442\u0430\u0440\u044b\u0435 \u0444\u043e\u0442\u043e. \u041a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432 \u043a\u043e\u043b\u043e\u0434\u0435 \u043f\u0440\u0435\u0432\u044c\u044e \u0444\u0430\u0439\u043b\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0434\u0430\u0442\u0430. \u0421\u0432\u0430\u0439\u043f \u0432\u043b\u0435\u0432\u043e \u043a\u043b\u0430\u0434\u0451\u0442 \u0444\u0430\u0439\u043b \u0432 \u043c\u0435\u0448\u043e\u043a, \u0432\u043f\u0440\u0430\u0432\u043e &#8212; \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430, \u0432\u0432\u0435\u0440\u0445 &#8212; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435. \u041d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0432\u0430\u0439\u043f \u0438\u0433\u0440\u0430\u0435\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f: 10 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0438 5 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0435\u0451 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u041c\u0435\u0448\u043e\u043a \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439: \u0444\u0430\u0439\u043b\u044b \u0443\u0445\u043e\u0434\u044f\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u043a\u043e\u0440\u0437\u0438\u043d\u0443 Android \u043d\u0430 30 \u0434\u043d\u0435\u0439 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c.<\/p>\n<p><strong>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435:<\/strong> \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f <code>INTERNET<\/code>. \u041e\u043d\u043e \u0432\u0438\u0434\u0438\u0442 \u0432\u0441\u044e \u0433\u0430\u043b\u0435\u0440\u0435\u044e, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0438 \u043a\u0443\u0434\u0430-\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c. \u042d\u0442\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b Data safety \u0432 Play, \u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043e\u0434\u043d\u0443 \u0434\u044b\u0440\u0443 \u0432 WebView, \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435.<\/p>\n<p><strong>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0422\u0435\u043b\u0435\u0444\u043e\u043d<\/p>\n<\/th>\n<th>\n<p align=\"left\">Android<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0420\u043e\u043b\u044c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Samsung S25 Edge<\/p>\n<\/td>\n<td>\n<p align=\"left\">17 (One UI 9)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Huawei Y8p<\/p>\n<\/td>\n<td>\n<p align=\"left\">10 (EMUI 12), \u0431\u0435\u0437 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 Google<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043b\u0430\u0431\u044b\u0439 \u0438 \u0441\u0442\u0430\u0440\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u0421\u0442\u0435\u043a<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u043b\u043e\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">Vite 8, React 19, TypeScript<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">GSAP 3 (Draggable), \u0447\u0438\u0441\u0442\u044b\u0439 WebGL \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u043c\u0438 \u0448\u0435\u0439\u0434\u0435\u0440\u0430\u043c\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0431\u0451\u0440\u0442\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">Capacitor 8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043e\u0434\u0438\u043d Capacitor-\u043f\u043b\u0430\u0433\u0438\u043d <code>JunkStorePlugin<\/code> \u043d\u0430 Java \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0440\u044f\u0434\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u043e\u0434\u0435\u043b\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">TinyCLIP ViT-8M\/16, LiteRT (\u0431\u044b\u0432\u0448\u0438\u0439 TensorFlow Lite)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412\u0438\u0434\u0436\u0435\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>AppWidgetProvider<\/code> \u0438 <code>RemoteViews<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/23\/8f\/9a\/238f9a9c3703049123ca0f48be92be3a.png\" width=\"2080\" height=\"1360\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/23\/8f\/9a\/238f9a9c3703049123ca0f48be92be3a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/23\/8f\/9a\/238f9a9c3703049123ca0f48be92be3a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 WebView, \u0430 \u043d\u0435 Compose. \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438: \u0448\u0440\u0435\u0434\u0435\u0440 \u0440\u0435\u0436\u0435\u0442 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u043e\u0441\u044b, \u0422\u0430\u043d\u043e\u0441 \u0440\u0430\u0441\u0441\u044b\u043f\u0430\u0435\u0442 \u0435\u0451 \u0432 \u043f\u044b\u043b\u044c, \u043e\u0433\u043e\u043d\u044c \u043f\u0440\u043e\u0436\u0438\u0433\u0430\u0435\u0442 \u0435\u0451 \u043f\u043e \u0448\u0443\u043c\u0443. \u041d\u0430 GSAP \u0438 \u0448\u0435\u0439\u0434\u0435\u0440\u0430\u0445 \u044f \u0434\u0435\u043b\u0430\u044e \u0442\u0430\u043a\u043e\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0432 Compose, \u0430 WebView \u043d\u0430 S25 \u0434\u0435\u0440\u0436\u0438\u0442 60 fps (\u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d \u0438 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 WebView \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430 60 \u0413\u0446). \u0412\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u0432\u043e\u0434 &#8212; iOS: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0433\u0438\u043d.<\/p>\n<p>\u0426\u0435\u043d\u0430: \u0432\u0441\u0451, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0441\u0442 Capacitor, \u0438 \u0443 WebView \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u0441 \u043c\u0435\u0434\u0438\u0430. \u041f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0438\u0436\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<h3>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437<\/h3>\n<p>\u041b\u0438\u0446\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 (\u043f\u0440\u0435\u0432\u044c\u044e, \u043f\u043b\u0430\u0448\u043a\u0430 \u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e, \u0434\u0430\u0442\u0430) \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 <code>canvas<\/code> \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c <code>devicePixelRatio<\/code>. \u0414\u0430\u043b\u044c\u0448\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439, \u0430 \u043d\u0435 \u0441 DOM-\u0434\u0435\u0440\u0435\u0432\u043e\u043c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:<\/p>\n<pre><code class=\"typescript\">export interface FxContext {  \/** Fixed full-screen layer for effect elements. *\/  stage: HTMLElement;  \/** Untransformed card slot in viewport pixels. *\/  rect: Rect;  \/** Where the card was when the swipe was committed. *\/  from: Pose;  \/** Card face at device pixel ratio. *\/  bitmap: HTMLCanvasElement;  dpr: number;  file: JunkFile;  props: Props;  \/** Called about a second before the main animation ends (and again at the end): the next swipe may go. *\/  nearlyDone?: () =&gt; void;}export type Fx = (ctx: FxContext) =&gt; Promise&lt;void&gt;;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>DOM-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 <code>bitmap<\/code> \u0432 \u0441\u0432\u043e\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b: \u0448\u0440\u0435\u0434\u0435\u0440 \u0440\u0435\u0436\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 \u043f\u043e\u043b\u043e\u0441\u044b, \u0422\u0430\u043d\u043e\u0441 &#8212; \u043d\u0430 \u0447\u0430\u0441\u0442\u0438\u0446\u044b. WebGL-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442 \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u0438 \u0440\u0438\u0441\u0443\u044e\u0442 \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u0432\u0430\u0434. \u041e\u0431\u0449\u0438\u0439 \u043a\u0443\u0441\u043e\u043a GLSL \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0448\u0435\u0439\u0434\u0435\u0440\u0443:<\/p>\n<pre><code class=\"cpp\">uniform sampler2D u_tex;uniform vec2 u_res;uniform vec4 u_card;   \/\/ x, y, w, h \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0432 CSS-\u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445uniform float u_p;     \/\/ \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u0430 0..1, \u0435\u0433\u043e \u043a\u0440\u0443\u0442\u0438\u0442 GSAPuniform float u_t;     \/\/ \u0432\u0440\u0435\u043c\u044fvec2 P() { return v_uv * u_res; }vec4 cardAt(vec2 p) {  vec2 uv = (p - u_card.xy) \/ u_card.zw;  if (uv.x &lt; 0.0 || uv.y &lt; 0.0 || uv.x &gt; 1.0 || uv.y &gt; 1.0) return vec4(0.0);  return texture2D(u_tex, uv);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0432 \u0448\u0435\u0439\u0434\u0435\u0440\u0435: \u0444\u0440\u043e\u043d\u0442 \u043e\u0433\u043d\u044f \u0438\u0434\u0451\u0442 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445, <code>fbm<\/code>-\u0448\u0443\u043c \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0440\u0432\u0430\u043d\u044b\u043c, \u043f\u0435\u0440\u0435\u0434 \u0444\u0440\u043e\u043d\u0442\u043e\u043c \u0431\u0443\u043c\u0430\u0433\u0430 \u043e\u0431\u0443\u0433\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0444\u0440\u043e\u043d\u0442\u0435 \u0441\u0432\u0435\u0442\u0438\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cpp\">void main() {  vec2 p = P();  vec4 c = cardAt(p);  if (c.a &lt; 0.001) { gl_FragColor = vec4(0.0); return; }  vec2 uv = (p - u_card.xy) \/ u_card.zw;  float n = fbm(uv * vec2(3.0, 4.2) + vec2(0.0, -u_t * 0.25));  float d = (1.0 - uv.y) * 0.62 + uv.x * 0.38;  float t = d * 0.78 + n * 0.42;  float front = u_p * 1.34 - 0.08;  float e = t - front;  vec3 col = c.rgb \/ c.a;  float charA = 1.0 - smoothstep(0.015, 0.16, e);  col = mix(col, vec3(0.10, 0.06, 0.04), charA * 0.92);  float glow = 1.0 - smoothstep(0.0, 0.05, e);  float flick = 0.75 + 0.25 * noise(uv * 40.0 + u_t * 8.0);  vec3 fire = mix(vec3(1.0, 0.28, 0.02), vec3(1.0, 0.88, 0.4), 1.0 - smoothstep(0.0, 0.022, e));  col = mix(col, fire * 1.35 * flick, glow);  float a = c.a * smoothstep(-0.006, 0.004, e);  gl_FragColor = vec4(col * a, a);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>GSAP \u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0435\u0442 <code>u_p<\/code> \u043e\u0442 0 \u0434\u043e 1 \u0437\u0430 \u0434\u0432\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0441\u044b\u043f\u0430\u0435\u0442 DOM-\u0438\u0441\u043a\u0440\u044b \u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0444\u0440\u043e\u043d\u0442\u0430. \u0415\u0441\u043b\u0438 WebGL-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f, \u044d\u0444\u0444\u0435\u043a\u0442 \u043c\u043e\u043b\u0447\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 DOM-\u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<pre><code class=\"typescript\">export const burn: Fx = async (ctx) =&gt; {  const fx = shaderLayer(ctx, BURN, 40, 40);  if (!fx) return thanos(ctx);  \/\/ ...};<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u0432\u0430\u0439\u043f \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u0438\u043b\u0438 \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u044e \u0441\u0430\u043c \u0432 <code>onDrag<\/code>, \u043f\u043e\u0440\u043e\u0433 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f &#8212; 30% \u0448\u0438\u0440\u0438\u043d\u044b \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438 22% \u0432\u044b\u0441\u043e\u0442\u044b \u0434\u043b\u044f \u0441\u0432\u0430\u0439\u043f\u0430 \u0432\u0432\u0435\u0440\u0445:<\/p>\n<pre><code class=\"typescript\">if (x &lt; -W * 0.3 || (vx &lt; -800 &amp;&amp; x &lt; -24)) action = 'trash';else if (x &gt; W * 0.3 || (vx &gt; 800 &amp;&amp; x &gt; 24)) action = 'keep';else if (y &lt; -H * 0.22 || (vy &lt; -800 &amp;&amp; y &lt; -24 &amp;&amp; Math.abs(x) &lt; Math.abs(y))) action = 'fav';<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 24 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0440\u044b\u0432\u043e\u043a \u043d\u0435 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0441\u0432\u0430\u0439\u043f\u043e\u043c. \u0422\u0430\u043f \u0431\u0435\u0437 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d.<\/p>\n<h3>\u041a\u043e\u043b\u043e\u0434\u044b \u0438\u0437 MediaStore<\/h3>\n<p>\u041d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 <code>scan<\/code> \u043e\u0442\u0434\u0430\u0451\u0442 \u0438\u0437 MediaStore id, \u0438\u043c\u044f, <code>RELATIVE_PATH<\/code>, \u0440\u0430\u0437\u043c\u0435\u0440, \u0434\u0430\u0442\u0443 \u0441\u044a\u0451\u043c\u043a\u0438, \u0442\u0438\u043f, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0430 \u043d\u0430 Android 11+ \u0435\u0449\u0451 \u0438 <code>IS_FAVORITE<\/code>. \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 &#8212; \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043d\u0430 TypeScript \u043f\u043e \u043f\u0443\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, WhatsApp, Telegram \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u043e\u0439 \u043f\u043e \u043f\u0443\u0442\u0438. \u0421\u0435\u0440\u0438\u0438 &#8212; \u043a\u0430\u0434\u0440\u0430\u043c\u0438 \u043a\u0430\u043c\u0435\u0440\u044b, \u0441\u043d\u044f\u0442\u044b\u043c\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 2,5 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u0434\u0440 \u0441\u0435\u0440\u0438\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0434\u0443\u0442 \u0432 \u043a\u043e\u043b\u043e\u0434\u0443 \u0434\u0443\u0431\u043b\u0435\u0439:<\/p>\n<pre><code class=\"typescript\">const camera = pool.filter((m) =&gt; m.type === 'image' &amp;&amp; isCamera(m));for (let i = 0; i &lt; camera.length; ) {  let j = i + 1;  while (j &lt; camera.length &amp;&amp; camera[j].taken - camera[j - 1].taken &lt;= SERIES_GAP_MS) j++;  const total = j - i;  for (let k = i + 1; k &lt; j; k++) {    const m = camera[k];    series.push(toCard(m, RULES.series, { n: String(k - i + 1), total: String(total), gap: gapRu(m.taken - camera[k - 1].taken) }, `${k - i + 1}\/${total}`));    bytes += m.size;  }  i = j;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0433\u0440\u0443\u0431\u0430\u044f: \u043d\u0430 \u043c\u043e\u0435\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435 \u043e\u043d\u0430 \u043d\u0430\u0448\u043b\u0430 406 \u00ab\u0434\u0443\u0431\u043b\u0435\u0439\u00bb, \u0438 \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u0441\u044a\u0451\u043c\u043a\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0446\u0435\u043d.<\/p>\n<p>\u0424\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0441\u0442\u0430\u0432\u0438\u043b, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u043a\u043e\u043b\u043e\u0434\u044b. \u041a\u043b\u044e\u0447\u043e\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u043d\u0435 <code>_ID<\/code>, \u0430 \u043f\u0443\u0442\u044c, \u0438\u043c\u044f \u0438 \u0440\u0430\u0437\u043c\u0435\u0440:<\/p>\n<pre><code class=\"typescript\">export const mediaKey = (m: MediaItem) =&gt; `${m.path}${m.name}|${m.size}`;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>_ID<\/code> \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 MediaStore \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u043c\u043e\u0435\u0439 \u043a\u043e\u0440\u0437\u0438\u043d\u044b \u043d\u0430 Android 10 (\u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435). \u041f\u0443\u0442\u044c, \u0438\u043c\u044f \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0438\u043c\u0438.<\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435: \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u043a\u043e\u0440\u0437\u0438\u043d\u0430 Android 11+<\/h3>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Android 11 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u0430\u0432 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0447\u0443\u0436\u043e\u0435 \u0444\u043e\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433. <code>MediaStore.createTrashRequest<\/code> \u043a\u043b\u0430\u0434\u0451\u0442 \u0444\u0430\u0439\u043b\u044b \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 30 \u0434\u043d\u0435\u0439, <code>createDeleteRequest<\/code> \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c. \u041e\u0431\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 <code>PendingIntent<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u0432\u0435\u0442\u0430:<\/p>\n<pre><code class=\"java\">ContentResolver resolver = getContext().getContentResolver();\/\/ restore=true takes the items back out of the trashPendingIntent pi = permanent    ? MediaStore.createDeleteRequest(resolver, uris)    : MediaStore.createTrashRequest(resolver, uris, !restore);if (pendingConfirm != null) pendingConfirm.reject(\"superseded\");pendingConfirm = call;getActivity().runOnUiThread(() -&gt; confirmLauncher.launch(new IntentSenderRequest.Builder(pi.getIntentSender()).build()));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u043e\u0442 \u0436\u0435 <code>createTrashRequest<\/code> \u0441 <code>false<\/code> \u0434\u043e\u0441\u0442\u0430\u0451\u0442 \u0444\u0430\u0439\u043b\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e: \u043d\u0430 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0412\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451\u00bb.<\/p>\n<p><code>ActivityResultLauncher<\/code> \u043d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0445\u043e\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u044b: Activity \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u043e <code>onStart<\/code>. \u0412 Capacitor \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e &#8212; <code>load()<\/code> \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 <code>onCreate<\/code>:<\/p>\n<pre><code class=\"java\">@Overridepublic void load() {    \/\/ Must be registered before the activity is started; load() runs inside onCreate.    confirmLauncher = getActivity().registerForActivityResult(        new ActivityResultContracts.StartIntentSenderForResult(),        result -&gt; {            PluginCall call = pendingConfirm;            pendingConfirm = null;            if (call == null) return;            JSObject ret = new JSObject();            ret.put(\"ok\", result.getResultCode() == Activity.RESULT_OK);            call.resolve(ret);        }    );}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u0442\u043e\u0440\u0430\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0441\u0442\u044c: <code>RESULT_OK<\/code> \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435, \u0447\u0435\u043c MediaProvider \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b. \u0415\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b\u043e\u0441\u044c, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u043e\u043b\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 JS-\u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0435\u0449\u0451 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435:<\/p>\n<pre><code class=\"typescript\">const { ok } = await JunkStore.remove({ uris, permanent });if (!ok) {  showToast('\u0415\u043d\u043e\u0442 \u043f\u043e\u0434\u043e\u0436\u0434\u0451\u0442: \u043c\u0443\u0441\u043e\u0440 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u043c\u0435\u0448\u043a\u0435');  return;}\/\/ MediaProvider answers \"ok\" before it finishes moving files, so give it a moment to settle.let alive = uris.length;for (let i = 0; i &lt; 12 &amp;&amp; alive === uris.length; i++) {  await new Promise((r) =&gt; setTimeout(r, 250));  alive = (await JunkStore.countExisting({ uris })).alive;}\/\/ still nothing changed: Android said yes, so trust it rather than the slow providerconst count = alive === uris.length ? uris.length : uris.length - alive;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>countExisting<\/code> &#8212; \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <code>query<\/code> \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 URI \u0431\u0435\u0437 \u0444\u043b\u0430\u0433\u0430 <code>QUERY_ARG_MATCH_TRASHED<\/code>: \u0444\u0430\u0439\u043b\u044b \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0435 \u0432\u0438\u0434\u0438\u0442.<\/p>\n<h3>\u0412\u0438\u0434\u0435\u043e \u0432 WebView \u0438 Range<\/h3>\n<p>\u0412\u0438\u0434\u0435\u043e \u0432 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e <code>content:\/\/<\/code>-\u0430\u0434\u0440\u0435\u0441 \u0438\u0437 MediaStore. \u042f \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u044b WebView \u043a <a href=\"https:\/\/localhost\/_media_\/video\/&lt;id&gt;\" rel=\"noopener nofollow\"><code>https:\/\/localhost\/_media_\/video\/&lt;id&gt;<\/code><\/a> \u0432 \u0441\u0432\u043e\u0451\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0435 <code>BridgeWebViewClient<\/code> \u0438 \u043e\u0442\u0434\u0430\u044e \u0444\u0430\u0439\u043b \u0438\u0437 MediaStore \u0441\u0430\u043c.<\/p>\n<p>\u041f\u043e\u0434\u0432\u043e\u0445 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e <code>&lt;video&gt;<\/code> \u043f\u043e\u0447\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u0441\u0438\u0442 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430: \u0443 \u0432\u0438\u0434\u0435\u043e \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 MP4 (<code>moov<\/code>) \u0447\u0430\u0441\u0442\u043e \u043b\u0435\u0436\u0438\u0442 \u0432 \u043a\u043e\u043d\u0446\u0435. \u0411\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 <code>Range<\/code> \u0440\u043e\u043b\u0438\u043a \u043d\u0435 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0430 \u0444\u0430\u0439\u043b, \u0441\u0434\u0432\u0438\u0433\u0430\u043b\u0430\u0441\u044c \u043d\u0430 <code>start<\/code> \u0438 \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0430 <code>end - start + 1<\/code> \u0431\u0430\u0439\u0442. \u0412\u0438\u0434\u0435\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u043b\u043e. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, WebView \u0441\u0430\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 <code>Range<\/code> \u043a \u043f\u043e\u0442\u043e\u043a\u0443 \u0438\u0437 <code>shouldInterceptRequest<\/code>: \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 <code>start<\/code> \u0431\u0430\u0439\u0442 \u0438 \u0441\u0430\u043c \u0440\u0435\u0436\u0435\u0442 \u0445\u0432\u043e\u0441\u0442. \u041d\u0430\u0447\u0430\u043b\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043b\u043e\u0441\u044c \u0434\u0432\u0430\u0436\u0434\u044b. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0430 \u043f\u043e\u0442\u043e\u043a \u0441 \u043d\u0443\u043b\u044f, \u043d\u043e WebView \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0438 \u0447\u0438\u0442\u0430\u043b \u043b\u0438\u0448\u043d\u0435\u0435. \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u043e\u0442\u043e\u043a \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0444\u0430\u0439\u043b\u0430, \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 <code>end + 1<\/code>, \u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445:<\/p>\n<pre><code class=\"java\">\/\/ The WebView applies the Range itself to intercepted streams (it skips and limits bytes),\/\/ so the stream starts at 0 and we only describe the range in the headers.\/\/ ...but it does not stop at the end of a closed range, so the stream ends at end+1.InputStream in = new Limited(new ParcelFileDescriptor.AutoCloseInputStream(pfd), end + 1);Map&lt;String, String&gt; h = new HashMap&lt;&gt;();h.put(\"Accept-Ranges\", \"bytes\");h.put(\"Cache-Control\", \"no-store\");if (partial) h.put(\"Content-Range\", \"bytes \" + start + \"-\" + end + \"\/\" + total);return new WebResourceResponse(    mime != null ? mime : \"application\/octet-stream\",    null,    partial ? 206 : 200,    partial ? \"Partial Content\" : \"OK\",    h,    in);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>Limited<\/code> &#8212; \u044d\u0442\u043e <code>FilterInputStream<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0431\u0430\u0439\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438:<\/p>\n<pre><code class=\"java\">private static final class Limited extends FilterInputStream {    private long left;    Limited(InputStream in, long limit) {        super(in);        this.left = limit;    }    @Override    public int read(byte[] buf, int off, int len) throws IOException {        if (left &lt;= 0) return -1;        int n = super.read(buf, off, (int) Math.min(len, left));        if (n &gt; 0) left -= n;        return n;    }    @Override    public long skip(long n) throws IOException {        long s = super.skip(Math.min(n, left));        left -= s;        return s;    }    \/\/ read() \u0438 available() \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0442\u0430\u043a \u0436\u0435}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044f \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0432 \u0434\u043e\u043a\u0430\u0445 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u043d\u0430 \u0434\u0432\u0443\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445: S25 \u0441\u043e \u0441\u0432\u0435\u0436\u0438\u043c WebView \u0438 Huawei \u0441 WebView 114. \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445: \u043d\u0430 \u043d\u0438\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443.<\/p>\n<h3>\u041a\u0435\u0448 \u0447\u0443\u0436\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/h3>\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u0442\u0438\u043b\u043e \u0435\u0449\u0451 \u0438 \u043a\u0435\u0448. \u0421 Android 6 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043a\u0435\u0448 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c &#8212; \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u0435\u0441\u0442\u043e \u0447\u0435\u0440\u0435\u0437 <code>StorageManager.allocateBytes<\/code>: \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e, Android \u0441\u0430\u043c \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043a\u0435\u0448 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041d\u0430 \u043c\u043e\u0451\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u043b \u0440\u043e\u0432\u043d\u043e 0 \u0431\u0430\u0439\u0442. \u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0431\u044b\u043b\u043e 102 \u0413\u0411 \u0438\u0437 219, \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0447\u0435\u0433\u043e \u0431\u044b\u043b\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0442\u044c: \u043e\u043d\u0430 \u0447\u0438\u0441\u0442\u0438\u0442 \u043a\u0435\u0448, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u0441\u0442\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 Android 11: \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 <code>StorageManager.ACTION_CLEAR_APP_CACHE<\/code>. \u0415\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u0440\u0430\u0432\u043e\u043c \u00ab\u0414\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c\u00bb (<code>MANAGE_EXTERNAL_STORAGE<\/code>), \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0443. \u0423\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0435\u0448, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043b\u043e\u0433\u0438\u043d\u044b \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f.<\/p>\n<pre><code class=\"java\">public static boolean supported() {    return Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.R;}public static boolean hasAccess() {    return supported() &amp;&amp; Environment.isExternalStorageManager();}public static Intent clearIntent() {    return new Intent(StorageManager.ACTION_CLEAR_APP_CACHE);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u043b\u043e\u0441\u044c, \u0434\u0438\u0430\u043b\u043e\u0433 \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442. \u0421\u0447\u0438\u0442\u0430\u044e \u0441\u0430\u043c: \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0434\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u0438 \u0447\u0435\u0440\u0435\u0437 900 \u043c\u0441 \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f.<\/p>\n<pre><code class=\"java\">cacheLauncher = getActivity().registerForActivityResult(    new ActivityResultContracts.StartActivityForResult(),    result -&gt; new android.os.Handler(android.os.Looper.getMainLooper()).postDelayed(() -&gt; {        PluginCall call = pendingCache;        pendingCache = null;        if (call == null) return;        boolean ok = result.getResultCode() == Activity.RESULT_OK;        long freed = Math.max(0, CacheCleaner.freeSpace(getContext()) - cacheBefore);        if (ok) CacheCleaner.record(getContext(), freed);        \/\/ ...    }, 900));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0430 \u0436\u0435 \u043a\u043d\u043e\u043f\u043a\u0430 \u0435\u0441\u0442\u044c \u043d\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430: \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u0430\u044f Activity \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e\u0432\u0435\u0440\u0445 \u043b\u0430\u0443\u043d\u0447\u0435\u0440\u0430 \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043c\u043d\u0438\u0442 \u0438 \u0433\u0434\u0435<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0414\u0430\u043d\u043d\u044b\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0413\u0434\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>filesDir<\/code> \u0438 \u043a\u043e\u043f\u0438\u044f \u0432 Documents\/\u0421\u0432\u0430\u0439\u043f\u043e\u043c\u043e\u0439\u043a\u0430\/\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435.txt<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043e\u043f\u0438\u044f \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0435\u0448\u043e\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SharedPreferences<\/code>, \u0437\u0430\u043f\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 <code>commit()<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u0443\u0431\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0432\u0430\u0439\u043f\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SharedPreferences<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>SharedPreferences<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0435\u0451 \u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0438\u0434\u0436\u0435\u0442 \u0431\u0435\u0437 WebView<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0447\u0451\u0442\u0447\u0438\u043a\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>localStorage<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u043e<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u043e \u043c\u0435\u0448\u043e\u043a \u044f \u0443\u0437\u043d\u0430\u043b \u043d\u0430 \u0441\u0435\u0431\u0435. \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u043b \u043a\u043e\u043b\u043e\u0434\u0443, \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0412\u044b\u043d\u0435\u0441\u0442\u0438\u00bb \u0432 \u0443\u0433\u043b\u0443, \u043d\u0430\u0436\u0430\u043b \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb &#8212; \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u043f\u0430\u043b\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u0435\u0448\u043e\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u0430\u0439\u043f\u0430, \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043c\u0435\u0448\u043a\u0430 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043b\u043e\u0434\u044b, \u0430 \u00ab\u041d\u0430\u0437\u0430\u0434\u00bb \u0441 \u043d\u0435\u043f\u0443\u0441\u0442\u044b\u043c \u043c\u0435\u0448\u043a\u043e\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0441\u0442 \u00ab\u0412\u044b\u043d\u0435\u0441\u0442\u0438 \u043c\u0443\u0441\u043e\u0440\u00bb \u0441 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u00ab\u0415\u0449\u0451 \u043f\u043e\u0434\u0443\u043c\u0430\u044e\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442. <code>commit()<\/code> \u0432\u043c\u0435\u0441\u0442\u043e <code>apply()<\/code> \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e: \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f, \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0436\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435.<\/p>\n<p>\u041a\u043e\u043f\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0432 \u00ab\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445\u00bb \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0435 \u0432\u0435\u0440\u043d\u0443\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u041f\u0438\u0441\u0430\u0442\u044c \u0442\u0443\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u00ab\u0414\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c\u00bb \u043d\u0430 Android 11+ \u0438\u043b\u0438 \u0432\u044b\u0434\u0430\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 Android 10.<\/p>\n<h3>WebView \u0431\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<\/h3>\n<p>\u0411\u0435\u0437 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f <code>INTERNET<\/code> WebView \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441. \u041d\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c: \u0435\u0441\u043b\u0438 \u0432 WebView \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0447\u0443\u0436\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/site\/?data=\" rel=\"noopener nofollow\"><code>https:\/\/site\/?data=<\/code><\/a><code>...<\/code>. Capacitor \u043e\u0442\u043a\u0440\u043e\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0430 \u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0435\u0441\u0442\u044c. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u044b\u0440\u0430 \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u0438 \u0442\u0430\u043a\u0438\u0445 \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0442\u0440\u0438. <\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044f \u0438\u0445 \u0437\u0430\u043a\u0440\u044b\u043b:<\/p>\n<p>\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"java\">@Overridepublic boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {    Uri url = request.getUrl();    return !(\"https\".equals(url.getScheme()) &amp;&amp; \"localhost\".equals(url.getHost()));}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 Telegram-\u043a\u0430\u043d\u0430\u043b \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c, \u0430 \u043d\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0435\u0439 WebView.<\/p>\n<p>\u0412 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 <code>index.html<\/code> Vite-\u043f\u043b\u0430\u0433\u0438\u043d \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 Content-Security-Policy: \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0431\u0435\u0437 inline \u0438 <code>eval<\/code>, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438. \u0412 dev-\u0440\u0435\u0436\u0438\u043c\u0435 CSP \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f: \u0433\u043e\u0440\u044f\u0447\u0435\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 Vite \u043d\u0443\u0436\u043d\u044b inline-\u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<pre><code class=\"typescript\">const CSP = [  \"default-src 'self'\",  \"script-src 'self'\",  \"style-src 'self' 'unsafe-inline'\",  \"img-src 'self' data: blob:\",  \"media-src 'self' blob:\",  \"font-src 'self' data:\",  \"connect-src 'self'\",  \"object-src 'none'\",  \"frame-src 'none'\",  \"base-uri 'none'\",  \"form-action 'none'\",].join('; ');const csp = (): Plugin =&gt; ({  name: 'csp-meta',  apply: 'build',  transformIndexHtml: (html) =&gt;    html.replace('&lt;meta charset=\"UTF-8\" \/&gt;', `&lt;meta charset=\"UTF-8\" \/&gt;\\n    &lt;meta http-equiv=\"Content-Security-Policy\" content=\"${CSP}\" \/&gt;`),});<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u0447\u0435\u0440\u0435\u0437 DevTools \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0441 <code>allowUnsafeEvalBlockedByCSP: false<\/code>: \u0438\u043d\u0430\u0447\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c DevTools \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 <code>eval<\/code> \u0432 \u043e\u0431\u0445\u043e\u0434 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442.<\/p>\n<p>\u0422\u0440\u0435\u0442\u044c\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0430 &#8212; \u0438\u043c\u044f \u043f\u0440\u0435\u0432\u044c\u044e \u0432 \u043a\u0435\u0448\u0435. \u041e\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u043b\u043e\u0441\u044c \u0438\u0437 32-\u0431\u0438\u0442\u043d\u043e\u0433\u043e <code>hashCode()<\/code> URI. \u041f\u0440\u0438 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u0431\u044b \u043f\u0440\u0435\u0432\u044c\u044e \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0430 \u0441\u0432\u0430\u0439\u043f \u0443\u0434\u0430\u043b\u0438\u043b \u0431\u044b \u0434\u0440\u0443\u0433\u043e\u0439. \u0412 \u0436\u0438\u0437\u043d\u0438 \u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043b\u043e\u0432\u0438\u043b, \u043d\u043e \u0446\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u0430\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043b\u044e\u0447 &#8212; SHA-256 \u043e\u0442 URI, \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u0434\u0430\u0442\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0430 \u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u0435\u0448 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"java\">java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"SHA-256\");byte[] digest = md.digest((uriStr + \"|\" + size + \"|\" + modified).getBytes(java.nio.charset.StandardCharsets.UTF_8));StringBuilder hex = new StringBuilder();for (int i = 0; i &lt; 20; i++) hex.append(String.format(java.util.Locale.US, \"%02x\", digest[i]));return hex + \"-\" + w + \"x\" + h + \".jpg\";<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0414\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043b\u044e\u0447\u0435 \u0437\u0430\u043e\u0434\u043d\u043e \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0432\u044c\u044e, \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438.<\/p>\n<h3>\u041d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0448\u0443\u0442\u0438\u0442\u044c \u043d\u0430 \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435<\/h3>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 \u0448\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043a\u043e\u043b\u043e\u0434\u044b. \u041e\u0442\u043a\u0440\u044b\u0442\u043a\u0435 \u0438\u0437 WhatsApp \u0434\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u00ab\u0414\u043e\u0431\u0440\u043e\u0435 \u0443\u0442\u0440\u043e \u0438\u0437 2026 \u0433\u043e\u0434\u0430\u00bb. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u044d\u0442\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0444\u043e\u0442\u043e \u043c\u043e\u0433\u0438\u043b\u044b \u043c\u043e\u0435\u0439 \u0431\u0430\u0431\u0443\u0448\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u0441\u043b\u0430\u043b\u0438 \u0432 WhatsApp.<\/p>\n<p>\u0423\u0431\u0438\u0440\u0430\u0442\u044c \u0448\u0443\u0442\u043a\u0438 \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a\u043e\u0435: \u0435\u0441\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u0430, \u0447\u0442\u043e \u043d\u0430 \u0444\u043e\u0442\u043e \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435, \u043f\u043e\u0445\u043e\u0440\u043e\u043d\u044b \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f (\u00ab\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043e 19 \u043d\u043e\u044f\u0431\u0440\u044f 2026.\u00bb), \u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u0430\u044f &#8212; \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438 \u0442\u0430\u0435\u0442. \u0412\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u00ab\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u0430\u00bb \u0438 \u00ab\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0443\u0441\u043f\u0435\u043b\u0430\u00bb, \u0432\u0441\u0451 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e. \u0411\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435.<\/p>\n<h4>\u041c\u043e\u0434\u0435\u043b\u044c \u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u044b<\/h4>\n<p>\u0412\u0437\u044f\u043b TinyCLIP ViT-8M\/16 \u043e\u0442 Microsoft (\u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f MIT) \u0438 \u0441\u0434\u0435\u043b\u0430\u043b zero-shot \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. \u0422\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c CLIP \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437: \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0438 \u043a\u043b\u0430\u0434\u0443\u0442\u0441\u044f \u0432 APK \u0444\u0430\u0439\u043b\u043e\u043c <code>prompts.f32<\/code> (44 \u043f\u0440\u043e\u043c\u043f\u0442\u0430 \u043f\u043e 512 float). \u041d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043d\u043a\u043e\u0434\u0435\u0440.<\/p>\n<p>\u041f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0434\u0432\u0430 \u0441\u043f\u0438\u0441\u043a\u0430. \u0414\u0435\u0432\u044f\u0442\u044c \u00ab\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445\u00bb:<\/p>\n<pre><code class=\"python\">SENSITIVE = [    'a photo of a grave',    'a photo of a grave with a cross and flowers',    'a photo of a gravestone',    'a photo of a cemetery',    'a photo of a funeral',    'a photo of a coffin',    'a photo of a memorial with candles and wreaths',    'a photo of a patient in a hospital bed',    'a black and white portrait with a black mourning ribbon',]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0418 35 \u0431\u044b\u0442\u043e\u0432\u044b\u0445. \u042d\u0442\u043e \u043d\u0435 \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0435: \u0431\u0435\u0437 \u043d\u0438\u0445 softmax \u043d\u0435\u043a\u0443\u0434\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0430 \u0441 \u0440\u043e\u0437\u0430\u043c\u0438 \u0438 \u0441\u0432\u0435\u0447\u043e\u0439 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u00ab\u043c\u0435\u043c\u043e\u0440\u0438\u0430\u043b\u043e\u043c\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0435\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0441\u0446\u0435\u043d\u044b: <code>'a greeting card with flowers'<\/code>, <code>'a birthday cake with candles'<\/code>, <code>'christmas decorations with candles'<\/code>, <code>'a photo of a church'<\/code>, <code>'a photo of a monument in a city'<\/code>.<\/p>\n<p>\u041e\u0446\u0435\u043d\u043a\u0430 &#8212; \u0434\u043e\u043b\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0448\u043b\u0430\u0441\u044c \u043d\u0430 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u044b:<\/p>\n<pre><code class=\"java\">session.run(input, output);float[] e = output[0];double norm = 0;for (float v : e) norm += v * v;norm = Math.sqrt(norm);double[] logits = new double[prompts.length];double max = -Double.MAX_VALUE;for (int i = 0; i &lt; prompts.length; i++) {    double dot = 0;    for (int j = 0; j &lt; e.length; j++) dot += prompts[i][j] * e[j];    logits[i] = scale * dot \/ norm;    max = Math.max(max, logits[i]);}double sum = 0;double sens = 0;for (int i = 0; i &lt; logits.length; i++) {    double p = Math.exp(logits[i] - max);    sum += p;    if (i &lt; sensitiveCount) sens += p;}return (float) (sens \/ sum);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0443\u0436\u0435 \u043d\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430, <code>scale<\/code> &#8212; \u044d\u0442\u043e <code>logit_scale.exp()<\/code> \u0441\u0430\u043c\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (\u043e\u043a\u043e\u043b\u043e 50). \u041f\u043e\u0440\u043e\u0433 &#8212; 0,6.<\/p>\n<p>\u041d\u0430\u0431\u043e\u0440 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438: 15 \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u0438 46 \u0431\u044b\u0442\u043e\u0432\u044b\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0430\u043c\u043e\u0435 \u043a\u043e\u0432\u0430\u0440\u043d\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0432 \u0433\u0430\u043b\u0435\u0440\u0435\u0435, &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0438 \u00ab\u0414\u043e\u0431\u0440\u043e\u0435 \u0443\u0442\u0440\u043e\u00bb \u0441 \u0446\u0432\u0435\u0442\u0430\u043c\u0438 \u0438 \u0441\u0432\u0435\u0447\u0430\u043c\u0438. \u041f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432 Python \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 Android-\u0432\u0435\u0440\u0441\u0438\u044e: \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0431\u0438\u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0435 \u0441\u0436\u0430\u0442\u0438\u0435 \u0434\u043e 224, \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f CLIP.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041c\u0435\u0442\u0440\u0438\u043a\u0430<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u043e\u0439\u043c\u0430\u043d\u043e \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445<\/p>\n<\/td>\n<td>\n<p align=\"left\">12 \u0438\u0437 15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041b\u043e\u0436\u043d\u044b\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\">0 \u0438\u0437 46<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0430\u043c\u0430\u044f \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0443 \u0431\u044b\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,43 (\u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0430 \u0441 \u0440\u043e\u0437\u0430\u043c\u0438 \u0438 \u0441\u0432\u0435\u0447\u043e\u0439)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u043e\u0440\u043e\u0433<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,6<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u0440\u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0446\u0435\u043d\u0430: \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0448\u0443\u0442\u043a\u0443, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0434\u043e \u043c\u043e\u0434\u0435\u043b\u0438. \u041b\u043e\u0436\u043d\u043e\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u043b\u043e \u0431\u044b, \u0447\u0442\u043e \u0448\u0443\u0442\u043a\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0443 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u043e\u0442\u043e, \u0430 \u044d\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u0432\u0435\u0434\u044c \u043e\u043d\u043e \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u043e\u0433\u0430).<\/p>\n<h4>\u041a\u0430\u043a \u044f \u043d\u0435 \u0434\u0430\u043b APK \u0432\u044b\u0440\u0430\u0441\u0442\u0438 \u0432 \u0448\u0435\u0441\u0442\u044c \u0440\u0430\u0437<\/h4>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043d\u0430 ONNX Runtime. APK \u0432\u044b\u0440\u043e\u0441 \u0441 12 \u0434\u043e 77,5 \u041c\u0411: \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 ORT \u043f\u043e\u0434 \u0434\u0432\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0432\u0435\u0441\u044f\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u041f\u0435\u0440\u0435\u0448\u0451\u043b \u043d\u0430 LiteRT (<a href=\"http:\/\/com.google.ai\" rel=\"noopener nofollow\"><code>com.google.ai<\/code><\/a><code>.edge.litert:litert:1.4.2<\/code>), \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u0437 ONNX \u0447\u0435\u0440\u0435\u0437 onnx2tf.<\/p>\n<p>Float32-\u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0435\u0441\u0438\u043b\u0430 33 \u041c\u0411. \u0428\u0442\u0430\u0442\u043d\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0432\u0430\u043d\u0442\u0438\u0437\u0430\u0446\u0438\u044f onnx2tf \u0434\u0430\u0432\u0430\u043b\u0430 NaN \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435, \u043f\u0443\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 TensorFlow \u043f\u0430\u0434\u0430\u043b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u044e \u043a\u0432\u0430\u043d\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0441\u043e\u0432: \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0439 \u0442\u0435\u043d\u0437\u043e\u0440 float32 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 int8 \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u043c \u043f\u043e \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443, \u0430 \u043f\u0435\u0440\u0435\u0434 \u0433\u0440\u0430\u0444\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f <code>DEQUANTIZE<\/code>. \u0420\u0430\u043d\u0442\u0430\u0439\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0442\u0430\u043a\u0438\u0435 <code>DEQUANTIZE<\/code> \u043d\u0430\u0434 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0430\u043c \u0440\u0430\u0441\u0447\u0451\u0442 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u043e float32 \u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u0435\u0442, \u0430 \u0444\u0430\u0439\u043b \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u0432 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0430\u0432\u0438\u0442 flatbuffer \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443 TFLite:<\/p>\n<pre><code class=\"python\">for ti in range(len(sg.tensors)):    t = sg.tensors[ti]    if t.type != S.TensorType.FLOAT32 or ti in graph_inputs:        continue    b = model.buffers[t.buffer]    if b.data is None or len(b.data) &lt; MIN_ELEMENTS * 4:        continue    w = np.frombuffer(bytes(bytearray(b.data)), dtype='&lt;f4').reshape(list(t.shape))    q = S.TensorT()    q.name = (t.name or b'w') + b'_q8'    q.shape = list(t.shape)    axis_max = np.abs(w.reshape(w.shape[0], -1)).max(axis=1) if w.ndim &gt; 1 else np.array([np.abs(w).max()])    scale = np.where(axis_max &gt; 0, axis_max \/ 127.0, 1.0).astype(np.float32)    shaped = scale.reshape([-1] + [1] * (w.ndim - 1)) if w.ndim &gt; 1 else scale    data = np.clip(np.round(w \/ shaped), -127, 127).astype(np.int8)    q.type = S.TensorType.INT8    qp = S.QuantizationParametersT()    qp.scale = scale.tolist()    qp.zeroPoint = [0] * len(scale)    qp.quantizedDimension = 0    q.quantization = qp    nb = S.BufferT()    nb.data = np.frombuffer(data.tobytes(), dtype=np.uint8)    model.buffers.append(nb)    q.buffer = len(model.buffers) - 1    sg.tensors.append(q)    # the float tensor is now produced at load time by DEQUANTIZE; drop its float data unless shared    old = t.buffer    t.buffer = 0    if not any(o.buffer == old for o in sg.tensors):        model.buffers[old].data = None    op = S.OperatorT()    op.opcodeIndex = deq    op.inputs = [len(sg.tensors) - 1]    op.outputs = [ti]    new_ops.append(op)sg.operators = new_ops + list(sg.operators)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u043e\u0433\u043e\u043d \u0434\u0430\u043b 41,8 \u041c\u0411 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0445 \u0434\u0435\u0432\u044f\u0442\u0438: \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b int8-\u0431\u0443\u0444\u0435\u0440\u044b, \u043d\u043e \u0437\u0430\u0431\u044b\u043b \u043e\u0431\u043d\u0443\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0435 float-\u0431\u0443\u0444\u0435\u0440\u044b. \u041e\u0442\u0441\u044e\u0434\u0430 \u0431\u043b\u043e\u043a <code>t.buffer = 0<\/code> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e \u0431\u0443\u0444\u0435\u0440 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u043a\u0435\u043c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0435\u0441\u0438\u0442 8,8 \u041c\u0411. <code>eval_tflite.py<\/code> \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442 \u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u043e\u043c <code>.tflite<\/code> \u0442\u043e\u0442 \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440, \u0447\u0442\u043e \u0438 \u0434\u043b\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0440 APK<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0411\u0435\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 (1.0)<\/p>\n<\/td>\n<td>\n<p align=\"left\">12,2 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ONNX Runtime + float-\u043c\u043e\u0434\u0435\u043b\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">77,5 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">LiteRT + int8-\u0432\u0435\u0441\u0430 (1.2 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435)<\/p>\n<\/td>\n<td>\n<p align=\"left\">28,3 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 LiteRT \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u043e\u043a\u043e\u043b\u043e 7 \u041c\u0411 \u043d\u0430 \u0434\u0432\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. ABI \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b <code>arm64-v8a<\/code> \u0438 <code>armeabi-v7a<\/code>: x86 \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0443. \u0412 Play \u0443\u0445\u043e\u0434\u0438\u0442 AAB \u043d\u0430 18,4 \u041c\u0411, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.<\/p>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/h4>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0441 \u043d\u0438\u0437\u043a\u0438\u043c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u043c \u0438 \u0434\u0432\u0443\u043c\u044f \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 LiteRT, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0441\u043b\u0430\u0431\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445 \u044f\u0434\u0440\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u0435\u0448\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 LRU \u043d\u0430 3000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.<\/p>\n<pre><code class=\"java\">private final ExecutorService worker = Executors.newSingleThreadExecutor((r) -&gt; new Thread(() -&gt; {    Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);    r.run();}, \"sensitive-photos\"));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<pre><code class=\"java\">Interpreter.Options options = new Interpreter.Options();\/\/ two cores at most: weak phones keep the rest for the interfaceoptions.setNumThreads(2);session = new Interpreter(modelBuf, options);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0422\u0435\u043b\u0435\u0444\u043e\u043d<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u0434\u043d\u043e \u0444\u043e\u0442\u043e, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u0435\u0432\u044c\u044e<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u0435\u0440\u0432\u043e\u0435 \u0444\u043e\u0442\u043e (\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438)<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">S25 Edge<\/p>\n<\/td>\n<td>\n<p align=\"left\">55\u2013130 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043e\u043a\u043e\u043b\u043e 240 \u043c\u0441 \u0441\u0432\u0435\u0440\u0445\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Huawei Y8p<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043e\u043a\u043e\u043b\u043e 450 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043e\u043a\u043e\u043b\u043e 900 \u043c\u0441<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0440\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0442\u0443\u043a \u0432\u043f\u0435\u0440\u0451\u0434, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043f\u0440\u0435\u0432\u044c\u044e. \u041b\u0438\u0446\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0436\u0434\u0451\u0442 \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 2,5 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041d\u0435 \u0434\u043e\u0436\u0434\u0430\u043b\u043e\u0441\u044c &#8212; \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430, \u0430 \u043f\u043e\u0437\u0434\u043d\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u00ab\u0434\u0430\u00bb \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0435\u0451, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0449\u0451 \u0432 \u0441\u0442\u043e\u043f\u043a\u0435:<\/p>\n<pre><code class=\"typescript\">const sure = verdict ? await Promise.race([verdict, wait(VERDICT_WAIT_MS).then(() =&gt; null)]) : false;const face = drawFace(sure ? quietCard(f) : f, img, size.w, size.h, DPR);if (sure === null &amp;&amp; verdict) {  \/\/ a slow phone answered late: redraw the card if it is still in the stack  void verdict.then((late) =&gt; {    if (!late) return;    const plain = drawFace(quietCard(card), photo, cw, ch, DPR);    setFaces((prev) =&gt; (prev.has(card.id) ? new Map(prev).set(card.id, plain) : prev));  });}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h3>Android 10: \u043a\u043e\u0440\u0437\u0438\u043d\u044b \u043d\u0435\u0442, \u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u044e<\/h3>\n<p>\u041d\u0430 Huawei Y8p APK \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u0430. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u0430\u044f: <code>minSdk 30<\/code>. \u041e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043e 29 \u0431\u044b\u043b\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u043d\u0430 Android 10 \u043d\u0435\u0442 \u043d\u0438 <code>createTrashRequest<\/code>, \u043d\u0438 <code>createDeleteRequest<\/code>, \u043d\u0438 <code>IS_FAVORITE<\/code>, \u043d\u0438 <code>ACTION_CLEAR_APP_CACHE<\/code>.<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/th>\n<th>\n<p align=\"left\">Android 11+<\/p>\n<\/th>\n<th>\n<p align=\"left\">Android 10<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>READ_MEDIA_*<\/code> \/ <code>READ_EXTERNAL_STORAGE<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>READ<\/code> + <code>WRITE_EXTERNAL_STORAGE<\/code>, <code>requestLegacyExternalStorage<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u0440\u0437\u0438\u043d\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f, 30 \u0434\u043d\u0435\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u0432\u043e\u044f \u043f\u0430\u043f\u043a\u0430, 30 \u0434\u043d\u0435\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043b\u0438\u0441\u0442 \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043a\u0435\u0448\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043a\u0440\u044b\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0433\u0430\u043b\u0435\u0440\u0435\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>createFavoriteRequest<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0435\u0442<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041d\u0430 Android 10 \u0441 legacy-\u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b. \u0421\u0432\u043e\u044f \u043a\u043e\u0440\u0437\u0438\u043d\u0430 &#8212; \u044d\u0442\u043e \u043f\u0430\u043f\u043a\u0430 <code>Android\/data\/&lt;\u043f\u0430\u043a\u0435\u0442&gt;\/files\/trash<\/code> \u0438 <code>index.json<\/code> \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438:<\/p>\n<pre><code class=\"java\">static synchronized int remove(Context c, List&lt;Uri&gt; uris, boolean permanent) {    purge(c);    ContentResolver resolver = c.getContentResolver();    JSONArray index = load(c);    int done = 0;    List&lt;String&gt; rescan = new ArrayList&lt;&gt;();    for (Uri uri : uris) {        String path = dataPath(resolver, uri);        if (path == null) continue;        File src = new File(path);        try {            if (permanent) {                if (src.exists() &amp;&amp; !src.delete()) continue;            } else {                File dst = new File(dir(c), System.currentTimeMillis() + \"_\" + src.getName());                if (!move(src, dst)) continue;                JSONObject e = new JSONObject();                e.put(\"uri\", uri.toString());                e.put(\"path\", path);                e.put(\"file\", dst.getName());                e.put(\"at\", System.currentTimeMillis());                index.put(e);            }            \/\/ drop the gallery row; the file itself is already gone from its folder            try {                resolver.delete(uri, null, null);            } catch (Exception ignored) {                rescan.add(path);            }            done++;        } catch (Exception ignored) {            \/\/ this file stays in the gallery; the others go on        }    }    save(c, index);    if (!rescan.isEmpty()) MediaScannerConnection.scanFile(c, rescan.toArray(new String[0]), null, null);    return done;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0414\u0435\u0442\u0430\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u043b\u0438 \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435:<\/p>\n<ul>\n<li>\n<p><code>move<\/code> \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0431\u0443\u0435\u0442 <code>renameTo<\/code>, \u0430 \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0442\u043e\u043c\u0435 &#8212; \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p><code>index.json<\/code> \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0440\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0433\u0430\u043b\u0435\u0440\u0435\u044e \u0447\u0435\u0440\u0435\u0437 <code>MediaScannerConnection<\/code> \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 <code>_ID<\/code> &#8212; \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0434\u043e\u0432\u043e\u0434 \u0437\u0430 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043f\u0443\u0442\u0438 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0443\u0436\u0435 \u043b\u0435\u0436\u0438\u0442 \u0444\u0430\u0439\u043b \u0441 \u0442\u0435\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>restored_<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c \u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 30 \u0434\u043d\u0435\u0439 \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043d\u0430 Huawei. \u0421\u0442\u0430\u0440\u0448\u0435 Android 10 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e.<\/p>\n<h3>Google Play \u0438 \u00ab\u0414\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c\u00bb<\/h3>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 &#8212; AAB, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 upload key. \u0427\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0432\u0435\u0440\u0445 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e:<\/p>\n<ul>\n<li>\n<p>\u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044e <code>MANAGE_EXTERNAL_STORAGE<\/code>: \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u0435\u0448\u0430 \u0447\u0435\u0440\u0435\u0437 <code>ACTION_CLEAR_APP_CACHE<\/code>, \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0442, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u043e\u0442\u043e \u0438 \u0432\u0438\u0434\u0435\u043e: \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u044e \u0433\u0430\u043b\u0435\u0440\u0435\u044e, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u0444\u043e\u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442;<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0443 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>Data safety: \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f <code>INTERNET<\/code> \u043d\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043e\u043d\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 <a href=\"http:\/\/telegra.ph\" rel=\"noopener nofollow\">telegra.ph<\/a>;<\/p>\n<\/li>\n<li>\n<p>\u0430\u043d\u043a\u0435\u0442\u0443 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0430: \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 3+.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 \u00ab\u0414\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c\u00bb \u0437\u0430\u043d\u044f\u043b\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432, \u0431\u0435\u0437 \u0443\u0442\u043e\u0447\u043d\u044f\u044e\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0414\u0443\u043c\u0430\u044e, \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u0447\u0442\u043e \u0432 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u043d\u0430\u0437\u0432\u0430\u043d \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 API, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u044d\u0442\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e. \u041e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 Play \u0432\u044b\u0434\u0430\u043b \u0432\u0441\u0451 \u0436\u0435: \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0440\u0442\u0440\u0435\u0442\u043d\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u0430\u043c. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u0441\u0442\u0440\u043e\u043a\u043e\u0439 <code>&lt;uses-feature android:name=\"android.hardware.screen.portrait\" android:required=\"false\"\/&gt;<\/code><\/p>\n<h3>\u041e\u0434\u0438\u043d else \u0432 \u043f\u0440\u043e\u0434\u0435<\/h3>\n<p>\u0412\u0435\u0440\u0441\u0438\u044e 1.4.2 Google \u043e\u0434\u043e\u0431\u0440\u0438\u043b. \u042f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0435\u0451 \u0438\u0437 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u0438 \u0441\u0432\u0430\u0439\u043f\u043d\u0443\u043b \u0432\u043f\u0440\u0430\u0432\u043e, \u00ab\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00bb. \u0424\u0430\u0439\u043b \u0443\u0435\u0445\u0430\u043b \u0432 \u043c\u0435\u0448\u043e\u043a. \u0421\u0432\u0430\u0439\u043f\u043d\u0443\u043b \u0432\u043b\u0435\u0432\u043e &#8212; \u0442\u043e\u0436\u0435 \u0432 \u043c\u0435\u0448\u043e\u043a. \u0420\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435\u00bb.<\/p>\n<p>\u0412 1.4.2 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0430 \u00ab\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435\u00bb \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435. \u0412\u043e\u0442 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0441\u0432\u0430\u0439\u043f, \u0434\u043e \u043f\u0440\u0430\u0432\u043a\u0438:<\/p>\n<pre><code class=\"typescript\">if (action !== 'trash') void JunkStore.updateKept({ add: [key] }).then(applyKept);else {  \/\/ into the bag, saved right away  updateBag((k) =&gt; (k.includes(key) ? k : [...k, key]));  if (live.current.deckId === APPROVED_ID) void JunkStore.updateKept({ remove: [key] }).then(applyKept);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>if<\/code> \u0431\u0435\u0437 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 <code>else<\/code> \u0441 \u0431\u043b\u043e\u043a\u043e\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439. \u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043f\u043e\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u0412\u043e\u0442 \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u0441\u043b\u0435:<\/p>\n<pre><code class=\"typescript\">if (action !== 'trash') void JunkStore.updateKept({ add: [key] }).then(applyKept);if (action === 'fav' &amp;&amp; file.uri) void JunkStore.setFavorite({ uris: [file.uri], value: true });else {  updateBag((k) =&gt; (k.includes(key) ? k : [...k, key]));  if (live.current.deckId === APPROVED_ID) void JunkStore.updateKept({ remove: [key] }).then(applyKept);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u0441\u0442\u0430\u043b\u0430 \u043c\u0435\u0436\u0434\u0443 <code>if<\/code> \u0438 \u0435\u0433\u043e <code>else<\/code>, \u0438 <code>else<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u043b\u0441\u044f \u043a <code>action === 'fav'<\/code>. \u00ab\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00bb \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u043e \u0438 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445, \u0438 \u0432 \u043c\u0435\u0448\u043e\u043a. TypeScript \u0438 \u0441\u0431\u043e\u0440\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438: \u043a\u043e\u0434 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0435\u043d, \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435 \u0442\u043e. ESLint \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c <code>curly<\/code> \u043f\u043e\u0439\u043c\u0430\u043b \u0431\u044b \u044d\u0442\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u043e \u043b\u0438\u043d\u0442\u0435\u0440\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0435\u0442.<\/p>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 1.4.3 &#8212; \u044f\u0432\u043d\u0430\u044f \u0440\u0430\u0437\u0432\u0438\u043b\u043a\u0430 \u043d\u0430 \u0434\u0432\u0430 \u0441\u043b\u0443\u0447\u0430\u044f \u0441\u043e \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438 \u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0441\u043f\u0435\u043b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c 1.4.2. \u041c\u0435\u0448\u043e\u043a \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0441\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"typescript\">if (action === 'trash') {  updateBag((k) =&gt; (k.includes(key) ? k : [...k, key]));  if (live.current.deckId === APPROVED_ID) void JunkStore.updateKept({ remove: [key] }).then(applyKept);} else {  void JunkStore.updateKept({ add: [key] }).then(applyKept);  if (action === 'fav' &amp;&amp; file.uri) void JunkStore.setFavorite({ uris: [file.uri], value: true }).catch(() =&gt; undefined);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<pre><code class=\"typescript\">const { keys: stored } = await JunkStore.getBag();const approved = new Set((await JunkStore.getKept()).keys);const keys = stored.filter((k) =&gt; !approved.has(k));if (keys.length !== stored.length) void JunkStore.setBag({ keys });<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e 1.4.2 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430 \u00ab\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00bb \u0432 \u043e\u0431\u0430 \u043c\u0435\u0441\u0442\u0430. \u041f\u043e\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0432\u044b\u043d\u0435\u0441 \u043c\u0435\u0448\u043e\u043a, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u043e.<\/p>\n<p>\u0427\u0442\u043e \u044f \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435:<\/p>\n<ul>\n<li>\n<p>\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Play \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0438\u0437 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e Google, \u0430 \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u043b\u0435 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0438 \u0441\u0432\u0430\u0439\u043f\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u00ab\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00bb \u0438 \u00ab\u0443\u0434\u0430\u043b\u0438\u0442\u044c\u00bb \u043d\u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0435\u0442\u044c\u044e \u0432\u0435\u0442\u043a\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0437\u0434\u043d\u043e \u043d\u043e\u0447\u044c\u044e \u0432 \u043f\u0440\u043e\u0434 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e))<\/p>\n<\/li>\n<\/ul>\n<h3>\u0410 iOS?<\/h3>\n<p>\u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f \u0430\u0439\u0444\u043e\u043d\u0430. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0438 \u043a\u043e\u043b\u043e\u0434\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a \u0435\u0441\u0442\u044c: \u044d\u0442\u043e \u0432\u0435\u0431. \u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043b\u0430\u0433\u0438\u043d, \u0438 \u0447\u0430\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 iOS \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0434\u0430\u0441\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">Android<\/p>\n<\/th>\n<th>\n<p align=\"left\">iOS<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">MediaStore, \u043f\u0443\u0442\u0438 <code>RELATIVE_PATH<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">PhotoKit, \u043f\u0443\u0442\u0435\u0439 \u043d\u0435\u0442: \u043a\u043e\u043b\u043e\u0434\u044b WhatsApp \u0438 Telegram \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0438\u043d\u0430\u0447\u0435 \u0438\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>createTrashRequest<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>PHAssetChangeRequest.deleteAssets<\/code>, \u0444\u0430\u0439\u043b\u044b \u0443\u0445\u043e\u0434\u044f\u0442 \u0432 \u00ab\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435\u00bb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c, \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u0437 \u043a\u043e\u0440\u0437\u0438\u043d\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0435\u0442: \u00ab\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435\u00bb \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u00ab\u0424\u043e\u0442\u043e\u00bb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>ACTION_CLEAR_APP_CACHE<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0430\u043d\u0430\u043b\u043e\u0433\u0430 \u043d\u0435\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>createFavoriteRequest<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>PHAssetChangeRequest.isFavorite<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">LiteRT<\/p>\n<\/td>\n<td>\n<p align=\"left\">LiteRT \u0434\u043b\u044f iOS \u0438\u043b\u0438 Core ML<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043b\u044e\u0441 Mac \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438, \u0430\u0439\u0444\u043e\u043d \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0438 $99 \u0432 \u0433\u043e\u0434 \u0437\u0430 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430. \u0418\u0437 \u0442\u0440\u0451\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f iOS \u0435\u0441\u043b\u0438 \u0438 \u0431\u0443\u0434\u0435\u0442, \u0442\u043e \u043d\u0435\u0441\u043a\u043e\u0440\u043e.<\/p>\n<h3>\u0426\u0438\u0444\u0440\u044b<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0427\u0442\u043e<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u042d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">10 \u0438 5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">APK \u0431\u0435\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \/ \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/p>\n<\/td>\n<td>\n<p align=\"left\">12,2 \/ 28,3 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">AAB \u0432 Play<\/p>\n<\/td>\n<td>\n<p align=\"left\">18,4 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">8,8 \u041c\u0411 (int8-\u0432\u0435\u0441\u0430), \u0431\u044b\u043b\u043e 33 \u041c\u0411<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0444\u043e\u0442\u043e \u043d\u0430 S25 \/ Huawei<\/p>\n<\/td>\n<td>\n<p align=\"left\">55\u2013130 \/ ~450 \u043c\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">12 \u0438\u0437 15 \u043d\u0430\u0439\u0434\u0435\u043d\u043e, 0 \u0438\u0437 46 \u043b\u043e\u0436\u043d\u044b\u0445<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Android<\/p>\n<\/td>\n<td>\n<p align=\"left\">10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 Google Play \u0441 <code>MANAGE_EXTERNAL_STORAGE<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043f\u0430\u0440\u0430 \u0447\u0430\u0441\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>versionCode<\/code>, \u0441\u043e\u0436\u0436\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0435\u0441\u0442\u0430\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\">11<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 Google Play: <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=ru.barulin.musorswipe\" rel=\"noopener nofollow\">\u0421\u0432\u0430\u0439\u043f\u043e\u043c\u043e\u0439\u043a\u0430<\/a> &#8212; \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u043c\u0441. <\/p>\n<p>\u041f\u0440\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0432\u043e\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u0438\u0448\u0443 \u0432 Telegram-\u043a\u0430\u043d\u0430\u043b\u0435 <a href=\"https:\/\/t.me\/barulin_sdelal\" rel=\"noopener nofollow\">\u00ab\u042d\u0442\u043e \u0411\u0430\u0440\u0443\u043b\u0438\u043d \u0441\u0434\u0435\u043b\u0430\u043b\u00bb<\/a><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1110534\/\">https:\/\/habr.com\/ru\/articles\/1110534\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u0443\u0441\u043e\u0440 \u0438\u0437 \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u043f\u043e \u043a\u043e\u043b\u043e\u0434\u0430\u043c \u0438 \u0434\u0430\u0451\u0442 \u0441\u043c\u0430\u0445\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438: \u0432\u043b\u0435\u0432\u043e &#8212; \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0432\u043f\u0440\u0430\u0432\u043e &#8212; \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0432\u0432\u0435\u0440\u0445 &#8212; \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0436\u0438\u0432\u0443\u0442 \u0432 WebView, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 &#8212; \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u043d\u0430 Java. \u041f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438\u0437 MediaStore \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 WebView, \u0438\u0441\u043a\u0430\u0442\u044c \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043a\u0435\u0448, \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c CLIP \u0432 8,8 \u041c\u0411, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0448\u0443\u0442\u0438\u043b\u043e \u043d\u0430\u0434 \u0444\u043e\u0442\u043e \u0441 \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0430, \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c Android 10, \u0433\u0434\u0435 \u043d\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u0440\u0437\u0438\u043d\u044b. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0443\u0440\u043e\u043a\u043e\u043c \u0441\u0442\u0430\u043b \u043e\u0434\u0438\u043d else, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u043b\u0441\u044f \u043d\u0435 \u043a \u0442\u043e\u043c\u0443 if \u0438 \u0443\u0448\u0451\u043b \u0432 Google Play. \u041d\u0438\u0436\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u0434 \u0438 \u0446\u0438\u0444\u0440\u044b \u0441 \u0434\u0432\u0443\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432.\u0427\u0442\u043e \u0437\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0412 \u043c\u043e\u0435\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435 \u0433\u043e\u0434\u0430\u043c\u0438 \u043a\u043e\u043f\u0438\u043b\u0441\u044f \u043c\u0443\u0441\u043e\u0440: \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0438 \u0441\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442\u044b \u0441 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043e\u0442\u043a\u0440\u044b\u0442\u043a\u0438 \u0432 WhatsApp \u043e\u0442 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u043e\u0432, \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438 (\u043a\u0443\u0434\u0430 \u0443\u0436 \u0431\u0435\u0437 \u043d\u0438\u0445), \u0447\u0435\u043a\u0438 \u0438 \u0441\u0435\u0440\u0438\u0438 \u0438\u0437 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0441\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u043c\u043e\u0435\u0439 \u0434\u043e\u0447\u0435\u0440\u0438. \u0427\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0440\u0443\u043a\u0430\u043c\u0438 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043a\u0443\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c &#171;\u0421\u0432\u0430\u0439\u043f\u043e\u043c\u043e\u0439\u043a\u0430&#187; (\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c: \u0441\u0432\u0430\u0439\u043f-\u043f\u043e\u043c\u043e\u0439\u043a\u0430 \u0438\u043b\u0438 \u0441\u0432\u0430\u0439\u043f\u043e-\u043c\u043e\u0439\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a \u0438 \u0442\u0430\u043a). \u041e\u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043b\u043e\u0434\u044b: \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, WhatsApp, Telegram, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0441\u0435\u0440\u0438\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432, \u0432\u0438\u0434\u0435\u043e \u0431\u043e\u043b\u044c\u0448\u0435 100 \u041c\u0411, \u0441\u0442\u0430\u0440\u044b\u0435 \u0444\u043e\u0442\u043e. \u041a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432 \u043a\u043e\u043b\u043e\u0434\u0435 \u043f\u0440\u0435\u0432\u044c\u044e \u0444\u0430\u0439\u043b\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0434\u0430\u0442\u0430. \u0421\u0432\u0430\u0439\u043f \u0432\u043b\u0435\u0432\u043e \u043a\u043b\u0430\u0434\u0451\u0442 \u0444\u0430\u0439\u043b \u0432 \u043c\u0435\u0448\u043e\u043a, \u0432\u043f\u0440\u0430\u0432\u043e &#8212; \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430, \u0432\u0432\u0435\u0440\u0445 &#8212; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435. \u041d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0432\u0430\u0439\u043f \u0438\u0433\u0440\u0430\u0435\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f: 10 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0438 5 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0435\u0451 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u041c\u0435\u0448\u043e\u043a \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439: \u0444\u0430\u0439\u043b\u044b \u0443\u0445\u043e\u0434\u044f\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u043a\u043e\u0440\u0437\u0438\u043d\u0443 Android \u043d\u0430 30 \u0434\u043d\u0435\u0439 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c.\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435: \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f INTERNET. \u041e\u043d\u043e \u0432\u0438\u0434\u0438\u0442 \u0432\u0441\u044e \u0433\u0430\u043b\u0435\u0440\u0435\u044e, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0438 \u043a\u0443\u0434\u0430-\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c. \u042d\u0442\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b Data safety \u0432 Play, \u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043e\u0434\u043d\u0443 \u0434\u044b\u0440\u0443 \u0432 WebView, \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435.\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:\u0422\u0435\u043b\u0435\u0444\u043e\u043dAndroid\u0420\u043e\u043b\u044cSamsung S25 Edge17 (One UI 9)\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439Huawei Y8p10 (EMUI 12), \u0431\u0435\u0437 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 Google\u0441\u043b\u0430\u0431\u044b\u0439 \u0438 \u0441\u0442\u0430\u0440\u044b\u0439\u0421\u0442\u0435\u043a\u0421\u043b\u043e\u0439\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441Vite 8, React 19, TypeScript\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438GSAP 3 (Draggable), \u0447\u0438\u0441\u0442\u044b\u0439 WebGL \u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u043c\u0438 \u0448\u0435\u0439\u0434\u0435\u0440\u0430\u043c\u0438\u041e\u0431\u0451\u0440\u0442\u043a\u0430Capacitor 8\u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c\u043e\u0434\u0438\u043d Capacitor-\u043f\u043b\u0430\u0433\u0438\u043d JunkStorePlugin \u043d\u0430 Java \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0440\u044f\u0434\u043e\u043c\u041c\u043e\u0434\u0435\u043b\u044cTinyCLIP ViT-8M\/16, LiteRT (\u0431\u044b\u0432\u0448\u0438\u0439 TensorFlow Lite)\u0412\u0438\u0434\u0436\u0435\u0442AppWidgetProvider \u0438 RemoteViews\u041f\u043e\u0447\u0435\u043c\u0443 WebView, \u0430 \u043d\u0435 Compose. \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438: \u0448\u0440\u0435\u0434\u0435\u0440 \u0440\u0435\u0436\u0435\u0442 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u043e\u0441\u044b, \u0422\u0430\u043d\u043e\u0441 \u0440\u0430\u0441\u0441\u044b\u043f\u0430\u0435\u0442 \u0435\u0451 \u0432 \u043f\u044b\u043b\u044c, \u043e\u0433\u043e\u043d\u044c \u043f\u0440\u043e\u0436\u0438\u0433\u0430\u0435\u0442 \u0435\u0451 \u043f\u043e \u0448\u0443\u043c\u0443. \u041d\u0430 GSAP \u0438 \u0448\u0435\u0439\u0434\u0435\u0440\u0430\u0445 \u044f \u0434\u0435\u043b\u0430\u044e \u0442\u0430\u043a\u043e\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0432 Compose, \u0430 WebView \u043d\u0430 S25 \u0434\u0435\u0440\u0436\u0438\u0442 60 fps (\u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d \u0438 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 WebView \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430 60 \u0413\u0446). \u0412\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u0432\u043e\u0434 &#8212; iOS: \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0433\u0438\u043d.\u0426\u0435\u043d\u0430: \u0432\u0441\u0451, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0441\u0442 Capacitor, \u0438 \u0443 WebView \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u0441 \u043c\u0435\u0434\u0438\u0430. \u041f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0438\u0436\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435.\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u041b\u0438\u0446\u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 (\u043f\u0440\u0435\u0432\u044c\u044e, \u043f\u043b\u0430\u0448\u043a\u0430 \u0441 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e, \u0434\u0430\u0442\u0430) \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 canvas \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c devicePixelRatio. \u0414\u0430\u043b\u044c\u0448\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439, \u0430 \u043d\u0435 \u0441 DOM-\u0434\u0435\u0440\u0435\u0432\u043e\u043c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:export interface FxContext {  \/** Fixed full-screen layer for effect elements. *\/  stage: HTMLElement;  \/** Untransformed card slot in viewport pixels. *\/  rect: Rect;  \/** Where the card was when the swipe was committed. *\/  from: Pose;  \/** Card face at device pixel ratio. *\/  bitmap: HTMLCanvasElement;  dpr: number;  file: JunkFile;  props: Props;  \/** Called about a second before the main animation ends (and again at the end): the next swipe may go. *\/  nearlyDone?: () =&gt; void;}export type Fx = (ctx: FxContext) =&gt; Promise&lt;void&gt;;DOM-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 bitmap \u0432 \u0441\u0432\u043e\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b: \u0448\u0440\u0435\u0434\u0435\u0440 \u0440\u0435\u0436\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 \u043f\u043e\u043b\u043e\u0441\u044b, \u0422\u0430\u043d\u043e\u0441 &#8212; \u043d\u0430 \u0447\u0430\u0441\u0442\u0438\u0446\u044b. WebGL-\u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442 \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u0438 \u0440\u0438\u0441\u0443\u044e\u0442 \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u0432\u0430\u0434. \u041e\u0431\u0449\u0438\u0439 \u043a\u0443\u0441\u043e\u043a GLSL \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0448\u0435\u0439\u0434\u0435\u0440\u0443:uniform sampler2D u_tex;uniform vec2 u_res;uniform vec4 u_card;   \/\/ x, y, w, h \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0432 CSS-\u043f\u0438\u043a\u0441\u0435\u043b\u044f\u0445uniform float u_p;     \/\/ \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u0430 0..1, \u0435\u0433\u043e \u043a\u0440\u0443\u0442\u0438\u0442 GSAPuniform float u_t;     \/\/ \u0432\u0440\u0435\u043c\u044fvec2 P() { return v_uv * u_res; }vec4 cardAt(vec2 p) {  vec2 uv = (p &#8212; u_card.xy) \/ u_card.zw;  if (uv.x &lt; 0.0 || uv.y &lt; 0.0 || uv.x &gt; 1.0 || uv.y &gt; 1.0) return vec4(0.0);  return texture2D(u_tex, uv);}\u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0432 \u0448\u0435\u0439\u0434\u0435\u0440\u0435: \u0444\u0440\u043e\u043d\u0442 \u043e\u0433\u043d\u044f \u0438\u0434\u0451\u0442 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445, fbm-\u0448\u0443\u043c \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0440\u0432\u0430\u043d\u044b\u043c, \u043f\u0435\u0440\u0435\u0434 \u0444\u0440\u043e\u043d\u0442\u043e\u043c \u0431\u0443\u043c\u0430\u0433\u0430 \u043e\u0431\u0443\u0433\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0444\u0440\u043e\u043d\u0442\u0435 \u0441\u0432\u0435\u0442\u0438\u0442\u0441\u044f:void main() {  vec2 p = P();  vec4 c = cardAt(p);  if (c.a &lt; 0.001) { gl_FragColor = vec4(0.0); return; }  vec2 uv = (p &#8212; u_card.xy) \/ u_card.zw;  float n = fbm(uv * vec2(3.0, 4.2) + vec2(0.0, -u_t * 0.25));  float d = (1.0 &#8212; uv.y) * 0.62 + uv.x * 0.38;  float t = d * 0.78 + n * 0.42;  float front = u_p * 1.34 &#8212; 0.08;  float e = t &#8212; front;  vec3 col = c.rgb \/ c.a;  float charA = 1.0 &#8212; smoothstep(0.015, 0.16, e);  col = mix(col, vec3(0.10, 0.06, 0.04), charA * 0.92);  float glow = 1.0 &#8212; smoothstep(0.0, 0.05, e);  float flick = 0.75 + 0.25 * noise(uv * 40.0 + u_t * 8.0);  vec3 fire = mix(vec3(1.0, 0.28, 0.02), vec3(1.0, 0.88, 0.4), 1.0 &#8212; smoothstep(0.0, 0.022, e));  col = mix(col, fire * 1.35 * flick, glow);  float a = c.a * smoothstep(-0.006, 0.004, e);  gl_FragColor = vec4(col * a, a);}GSAP \u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0435\u0442 u_p \u043e\u0442 0 \u0434\u043e 1 \u0437\u0430 \u0434\u0432\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0441\u044b\u043f\u0430\u0435\u0442 DOM-\u0438\u0441\u043a\u0440\u044b \u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0444\u0440\u043e\u043d\u0442\u0430. \u0415\u0441\u043b\u0438 WebGL-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f, \u044d\u0444\u0444\u0435\u043a\u0442 \u043c\u043e\u043b\u0447\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 DOM-\u0432\u0435\u0440\u0441\u0438\u044e:export const burn: Fx = async (ctx) =&gt; {  const fx = shaderLayer(ctx, BURN, 40, 40);  if (!fx) return thanos(ctx);  \/\/ &#8230;};\u0421\u0432\u0430\u0439\u043f \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u0438\u043b\u0438 \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u044e \u0441\u0430\u043c \u0432 onDrag, \u043f\u043e\u0440\u043e\u0433 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f &#8212; 30% \u0448\u0438\u0440\u0438\u043d\u044b \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438 22% \u0432\u044b\u0441\u043e\u0442\u044b \u0434\u043b\u044f \u0441\u0432\u0430\u0439\u043f\u0430 \u0432\u0432\u0435\u0440\u0445:if (x &lt; -W * 0.3 || (vx &lt; -800 &amp;&amp; x &lt; -24)) action = &#8216;trash&#8217;;else if (x &gt; W * 0.3 || (vx &gt; 800 &amp;&amp; x &gt; 24)) action = &#8216;keep&#8217;;else if (y &lt; -H * 0.22 || (vy &lt; -800 &amp;&amp; y &lt; -24 &amp;&amp; Math.abs(x) &lt; Math.abs(y))) action = &#8216;fav&#8217;;\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 24 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0440\u044b\u0432\u043e\u043a \u043d\u0435 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0441\u0432\u0430\u0439\u043f\u043e\u043c. \u0422\u0430\u043f \u0431\u0435\u0437 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d.\u041a\u043e\u043b\u043e\u0434\u044b \u0438\u0437 MediaStore\u041d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 scan \u043e\u0442\u0434\u0430\u0451\u0442 \u0438\u0437 MediaStore id, \u0438\u043c\u044f, RELATIVE_PATH, \u0440\u0430\u0437\u043c\u0435\u0440, \u0434\u0430\u0442\u0443 \u0441\u044a\u0451\u043c\u043a\u0438, \u0442\u0438\u043f, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0430 \u043d\u0430 Android 11+ \u0435\u0449\u0451 \u0438 IS_FAVORITE. \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 &#8212; \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043d\u0430 TypeScript \u043f\u043e \u043f\u0443\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, WhatsApp, Telegram \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u043e\u0439 \u043f\u043e \u043f\u0443\u0442\u0438. \u0421\u0435\u0440\u0438\u0438 &#8212; \u043a\u0430\u0434\u0440\u0430\u043c\u0438 \u043a\u0430\u043c\u0435\u0440\u044b, \u0441\u043d\u044f\u0442\u044b\u043c\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 2,5 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u0434\u0440 \u0441\u0435\u0440\u0438\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0434\u0443\u0442 \u0432 \u043a\u043e\u043b\u043e\u0434\u0443 \u0434\u0443\u0431\u043b\u0435\u0439:const camera = pool.filter((m) =&gt; m.type === &#8216;image&#8217; &amp;&amp; isCamera(m));for (let i = 0; i &lt; camera.length; ) {  let j = i + 1;  while (j &lt; camera.length &amp;&amp; camera[j].taken &#8212; camera[j &#8212; 1].taken &lt;= SERIES_GAP_MS) j++;  const total = j &#8212; i;  for (let k = i + 1; k &lt; j; k++) {    const m = camera[k];    series.push(toCard(m, RULES.series, { n: String(k &#8212; i + 1), total: String(total), gap: gapRu(m.taken &#8212; camera[k &#8212; 1].taken) }, `${k &#8212; i + 1}\/${total}`));    bytes += m.size;  }  i = j;}\u042d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0433\u0440\u0443\u0431\u0430\u044f: \u043d\u0430 \u043c\u043e\u0435\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0435 \u043e\u043d\u0430 \u043d\u0430\u0448\u043b\u0430 406 \u00ab\u0434\u0443\u0431\u043b\u0435\u0439\u00bb, \u0438 \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u0441\u044a\u0451\u043c\u043a\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0446\u0435\u043d.\u0424\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0441\u0442\u0430\u0432\u0438\u043b, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u043a\u043e\u043b\u043e\u0434\u044b. \u041a\u043b\u044e\u0447\u043e\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u043d\u0435 _ID, \u0430 \u043f\u0443\u0442\u044c, \u0438\u043c\u044f \u0438 \u0440\u0430\u0437\u043c\u0435\u0440:export const mediaKey = (m: MediaItem) =&gt; `${m.path}${m.name}|${m.size}`;_ID \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 MediaStore \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u043c\u043e\u0435\u0439 \u043a\u043e\u0440\u0437\u0438\u043d\u044b \u043d\u0430 Android 10 (\u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435). \u041f\u0443\u0442\u044c, \u0438\u043c\u044f \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0438\u043c\u0438.\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435: \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u043a\u043e\u0440\u0437\u0438\u043d\u0430 Android 11+\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Android 11 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u0430\u0432 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0447\u0443\u0436\u043e\u0435 \u0444\u043e\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433. MediaStore.createTrashRequest \u043a\u043b\u0430\u0434\u0451\u0442 \u0444\u0430\u0439\u043b\u044b \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 30 \u0434\u043d\u0435\u0439, createDeleteRequest \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u043e\u0432\u0441\u0435\u043c. \u041e\u0431\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 PendingIntent, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u0432\u0435\u0442\u0430:ContentResolver resolver = getContext().getContentResolver();\/\/ restore=true takes the items back out of the trashPendingIntent pi = permanent    ? MediaStore.createDeleteRequest(resolver, uris)    : MediaStore.createTrashRequest(resolver, uris, !restore);if (pendingConfirm != null) pendingConfirm.reject(&#171;superseded&#187;);pendingConfirm = call;getActivity().runOnUiThread(() -&gt; confirmLauncher.launch(new IntentSenderRequest.Builder(pi.getIntentSender()).build()));\u0422\u043e\u0442 \u0436\u0435 createTrashRequest \u0441 false \u0434\u043e\u0441\u0442\u0430\u0451\u0442 \u0444\u0430\u0439\u043b\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e: \u043d\u0430 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0412\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451\u00bb.ActivityResultLauncher \u043d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0445\u043e\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u044b: Activity \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u043e onStart. \u0412 Capacitor \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e &#8212; load() \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 onCreate:@Overridepublic void load() {    \/\/ Must be registered before the activity is started; load() runs inside onCreate.    confirmLauncher = getActivity().registerForActivityResult(        new ActivityResultContracts.StartIntentSenderForResult(),        result -&gt; {            PluginCall call = pendingConfirm;            pendingConfirm = null;            if (call == null) return;            JSObject ret = new JSObject();            ret.put(&#171;ok&#187;, result.getResultCode() == Activity.RESULT_OK);            call.resolve(ret);        }    );}\u0412\u0442\u043e\u0440\u0430\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0441\u0442\u044c: RESULT_OK \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435, \u0447\u0435\u043c MediaProvider \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b. \u0415\u0441\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b\u043e\u0441\u044c, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u043e\u043b\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 JS-\u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0435\u0449\u0451 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435:const { ok } = await JunkStore.remove({ uris, permanent });if (!ok) {  showToast(&#8216;\u0415\u043d\u043e\u0442 \u043f\u043e\u0434\u043e\u0436\u0434\u0451\u0442: \u043c\u0443\u0441\u043e\u0440 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u043c\u0435\u0448\u043a\u0435&#8217;);  return;}\/\/ MediaProvider answers &#171;ok&#187; before it finishes moving files, so give it a moment to settle.let alive = uris.length;for (let i = 0; i &lt; 12 &amp;&amp; alive === uris.length; i++) {  await new Promise((r) =&gt; setTimeout(r, 250));  alive = (await JunkStore.countExisting({ uris })).alive;}\/\/ still nothing changed: Android said yes, so trust it rather than the slow providerconst count = alive === uris.length ? uris.length : uris.length &#8212; alive;countExisting &#8212; \u043e\u0431\u044b\u0447\u043d\u044b\u0439 query \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 URI \u0431\u0435\u0437 \u0444\u043b\u0430\u0433\u0430 QUERY_ARG_MATCH_TRASHED: \u0444\u0430\u0439\u043b\u044b \u0432&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-504182","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=504182"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504182\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}