diff options
Diffstat (limited to 'lib/model/app')
| -rw-r--r-- | lib/model/app/contributors.dart | 200 | ||||
| -rw-r--r-- | lib/model/app/dependencies.dart | 410 | ||||
| -rw-r--r-- | lib/model/app/intent.dart | 27 | ||||
| -rw-r--r-- | lib/model/app/permissions.dart | 16 | ||||
| -rw-r--r-- | lib/model/app/support.dart | 80 |
5 files changed, 733 insertions, 0 deletions
diff --git a/lib/model/app/contributors.dart b/lib/model/app/contributors.dart new file mode 100644 index 0000000..ae583e2 --- /dev/null +++ b/lib/model/app/contributors.dart @@ -0,0 +1,200 @@ +class Contributors { + static const translators = { + Contributor('D3ZOXY', 'its.ghost.message@gmail.com'), + Contributor('JanWaldhorn', 'weblate@jwh.anonaddy.com'), + Contributor('n-berenice', null), + Contributor('Jonatas de Almeida Barros', 'ajonatas56@gmail.com'), + Contributor('MeFinity', 'me.dot.finity@gmail.com'), + Contributor('Maki', null), + Contributor('HiSubway', 'shenyusoftware@gmail.com'), + Contributor('glemco', 'glemco@posteo.net'), + Contributor('Aerowolf', null), + Contributor('小默', 'duzhe163908@gmail.com'), + Contributor('metezd', 'itoldyouthat@protonmail.com'), + Contributor('Martijn Fabrie', null), + Contributor('Koen Koppens', 'koenkoppens@proton.me'), + Contributor('Emmanouil Papavergis', null), + Contributor('kha84', 'khalukhin@gmail.com'), + Contributor('gallegonovato', 'fran-carro@hotmail.es'), + Contributor('Havokdan', 'havokdan@yahoo.com.br'), + Contributor('Jean Mareilles', 'waged1266@tutanota.com'), + Contributor('이정희', 'daemul72@gmail.com'), + Contributor('Translator-3000', 'weblate.m1d0h@8shield.net'), + Contributor('Ralea Adrian Vicențiu', 'ralea.adrian@gmail.com'), + Contributor('Igor Sorocean', 'sorocean.igor@gmail.com'), + Contributor('JY3', 'GeeyunJY3@gmail.com'), + Contributor('Gediminas Murauskas', 'muziejusinfo@gmail.com'), + Contributor('Oğuz Ersen', 'oguz@ersen.moe'), + Contributor('Allan Nordhøy', 'epost@anotheragency.no'), + Contributor('pemibe', 'pemibe4634@dmonies.com'), + Contributor('Linerly', 'linerly@proton.me'), + Contributor('Skrripy', 'rozihrash.ya6w7@simplelogin.com'), + Contributor('vesp', 'vesp@post.cz'), + Contributor('Dan', 'denqwerta@gmail.com'), + Contributor('Tijolinho', 'pedrohenrique29.alfenas@gmail.com'), + Contributor('Piotr K', '1337.kelt@gmail.com'), + Contributor('rehork', 'cooky@e.email'), + Contributor('Eric', 'zxmegaxqug@hldrive.com'), // @hamburger2048 / 大王叫我来巡山 + Contributor('Aitor Salaberria', 'trslbrr@gmail.com'), + Contributor('Felipe Nogueira', 'contato.fnog@gmail.com'), + Contributor('kaajjo', 'claymanoff@gmail.com'), + Contributor('Eduardo Malaspina', 'vaio0@swismail.com'), + Contributor('Evgeniy Khramov', 'thejenjagamertjg@gmail.com'), + Contributor('syu_pf_ssy', 'syu.pf.ssy@outlook.com'), + Contributor('Dick Pluim', 'github@dickpluim.com'), + Contributor('György Viktor', 'wickdj@gmail.com'), + Contributor('byPety', 'peter@csordascsalad.hu'), + Contributor('tryvseu', 'tryvseu@tuta.io'), + Contributor('陳義昇', 'love80312@gmail.com'), + Contributor('Макар Разин', 'makarrazin14@gmail.com'), + Contributor('Leon', 'leonhoog@outlook.com'), + Contributor('stephen-cusi', 'magiskcurry@qq.com'), + Contributor('atilluF', '110931720+atilluF@users.noreply.github.com'), + Contributor('Davide Neri', 'davnerix@gmail.com'), + Contributor('ShiftCtrlAltDel', 'who--is@yandex.ru'), + Contributor('lol lol', 'besonderspositiverpanda@ji5.de'), + Contributor('Fabian Rennebeck', 'propago47@posteo.org'), + Contributor('Henry The Mole', 'htmole@gmail.com'), + Contributor('Kryštof Černý', 'cleverline1mc@gmail.com'), + Contributor('marciozomb13', 'marciozomb13@outlook.com'), + Contributor('yangyangdaji', '1504305527@qq.com'), + Contributor('ngocanhtve', 'ngocanh.tve@gmail.com'), + Contributor('Le Nhut Binh', 'bebinh2202@gmail.com'), + Contributor('Martin Frandel', 'martinko.fr@gmail.com'), + Contributor('Milan Šalka', 'salka.milan@googlemail.com'), + Contributor('Diviega Ayulsa', 'ayulsadiviega@gmail.com'), + Contributor('Fqwe1', 'Fqwe1@users.noreply.hosted.weblate.org'), + Contributor('Reza Almanda', 'rezaalmanda27@gmail.com'), + Contributor('Sveinn í Felli', 'sv1@fellsnet.is'), + Contributor('Henning Bunk', 'henningtbunk@gmail.com'), + Contributor('Samirah Ail', 'samiratalzahrani@gmail.com'), + Contributor('Salih Ail', 'rrrfff444@gmail.com'), + Contributor('Nasreddine Loukriz', 'nasreddineloukriz@gmail.com'), + Contributor('Mohamed Zeroug', 'mzeroug19@gmail.com'), + Contributor('ssantos', 'ssantos@web.de'), + Contributor('Сергій', 'sergiy.goncharuk.1@gmail.com'), + Contributor('v1s7', 'v1s7@users.noreply.hosted.weblate.org'), + Contributor('fuzfyy', 'egeozce35@gmail.com'), + Contributor('minh', 'teaminh@skiff.com'), + Contributor('luckris25', 'lk1thebestl@gmail.com'), + Contributor('Marc Amorós', 'marquitus99@gmail.com'), + Contributor('elea11', 'p.manuel.warnecke@gmail.com'), + Contributor('しいたけ', 'Shiitake@users.noreply.hosted.weblate.org'), + Contributor('wanzh', 'wanzh66666@gmail.com'), + Contributor('ID J', 'tabby4442@gmail.com'), + Contributor('randint', 'lancameb@hotmail.com'), + Contributor('امیر جهانگرد', 'ijahangard.a@gmail.com'), + Contributor('slasb37', 'p84haghi@gmail.com'), + Contributor('mimvahedi', 'vahedi0vahedi@gmail.com'), + Contributor('Alireza Rashidi', 'alirezarashidigoorabi@gmail.com'), + Contributor('何意挽秋風', '94283631+RejectVanity@users.noreply.github.com'), + Contributor('cheese', 'deanlemans5646@gmail.com'), + Contributor('Owen Elderbroek', 'o.elderbroek@gmail.com'), + Contributor('Maxi', 'maxitendo01@proton.me'), + Contributor('Jerguš Fonfer', 'caro.jf@protonmail.com'), + Contributor('elfriob', 'elfriob@ya.ru'), + Contributor('Stephan Paternotte', 'stephan@paternottes.net'), + Contributor('Tung Anh', 'buihuutunganh2007@gmail.com'), + Contributor('Adrien N', 'adriennathaniel1999@gmail.com'), + Contributor('Shift18', 'bribable.lawyer@posteo.net'), + Contributor('Andreas Håll', 'ante_skalman@hotmail.com'), + Contributor('Scorza9999', 'oliva.scorza@gmail.com'), + Contributor('Taufan', 'taufanxxx@gmail.com'), + Contributor('Leo Aaua Felix', 'g00g7el@gmail.com'), + Contributor('-J-', 'heyj0e@tuta.io'), + Contributor('bittin', 'bittin@reimu.nl'), + Contributor('splice11', 'trenchedgrandpa@protonmail.com'), + Contributor('Ihor Hordiichuk', 'igor_ck@outlook.com'), + Contributor('João Palmeiro', 'joaommpalmeiro@gmail.com'), + Contributor('Whoever4976', 'wolffjonas47@gmail.com'), + Contributor('Your Average Code', 'neumeiersi91358@th-nuernberg.de'), + Contributor('Paranoid Android', 'f.cherdzhiev@innopolis.university'), + Contributor('Noah Kenzie Rodriguez-Beus', 'noahbeus@protonmail.com'), + Contributor('5FeetUnder', '15950507+5FeetUnder@users.noreply.github.com'), + Contributor('Cleverson Cândido', 'optimuspraimu@gmail.com'), + Contributor('Hasan Kara', 'hasanbeytullahkara@gmail.com'), + Contributor('Thomas Di Cristofaro', 'hostedweblate.8347@tdc.akamail.it'), + Contributor('Petrov', 'i_v_c@mail.ru'), + Contributor('தமிழ்நேரம்', 'anishprabu.t@gmail.com'), + Contributor('bovirus', 'roberto.boriotti@canon.it'), + Contributor('Максим Горпиніч', 'maksimgorpinic2005a@gmail.com'), + Contributor('Priit Jõerüüt', 'hwlate@joeruut.com'), + Contributor('Dr Hieu', 'v7pvas7m@anonaddy.com'), + Contributor('Saúl Palacios', 'palacios22c@gmail.com'), + Contributor('Grooty12', 'Rasmus@rosendahl-kaa.name'), + Contributor('Victor M', 'victormorita@tuta.io'), + Contributor('cat', 'catsnote@proton.me'), + Contributor('Bruno Fragoso', 'darth_signa@hotmail.com'), + Contributor('hugoalh', 'hugoalh@users.noreply.hosted.weblate.org'), + Contributor('Josep M. Ferrer', 'txemaq@gmail.com'), + Contributor('pitroig', 'ona@riseup.net'), + Contributor('Rubén Castiñeiras Lorenzo', 'rcasl@outlook.com'), + Contributor('hanyang cheng', 'cinxiafortis@tutanota.de'), + Contributor('Chethan', 'chethan@users.noreply.hosted.weblate.org'), + Contributor('Prasannakumar T Bhat', 'pbhat99@gmail.com'), + Contributor('Bora Atıcı', 'boratici.acc@gmail.com'), + Contributor('Ettore Atalan', 'atalanttore@googlemail.com'), + Contributor('VertekPlus', 'vertekplus@users.noreply.hosted.weblate.org'), + Contributor('slabs37', 'p84haghi@gmail.com'), + Contributor('GiannosOB', 'giannos2105@gmail.com'), + Contributor('Miquel Martí', 'miquelmarti111@gmail.com'), + Contributor('Yurt Page', 'yurtpage@gmail.com'), + Contributor('Murcielago', 'weblate.j9bmx@slmail.me'), + Contributor('vm', 'varga.m007@gmail.com'), + Contributor('WMatheist', 'wmatheist@protonmail.com'), + Contributor('Daniel Nylander', 'daniel@danielnylander.se'), + Contributor('Alioc', 'hit.177411245@gmail.com'), + Contributor('Sasi Ba', 'sasiba8328@fuasha.com'), + Contributor('Sevect', 'sevect@users.noreply.hosted.weblate.org'), + Contributor('Star Athendwyl', 'weblate.tyke961@passmail.net'), + Contributor('Marija Grineviciute', 'marijagrine@protonmail.com'), + Contributor('Hasan Berat Kaylan', 'hasanberatkaylan@gmail.com'), + Contributor('Mahyar-Saberifard', 'mahyarsaberi20@gmail.com'), + Contributor('ggLuigi_Ching', 'chingy.cyl@gmail.com'), + Contributor('Åzze', 'laitinen.jere222@gmail.com'), + Contributor('Olli', 'ollinen@ollit.dev'), + Contributor('Ricky Tigg', 'ricky.tigg@gmail.com'), + Contributor('Oris5', 'otso.karttunen@gmail.com'), + Contributor('nullspace', 'jxhchina@gmail.com'), + Contributor('dcre', 'realdcre@users.noreply.hosted.weblate.org'), + Contributor('AUGANOS', 'giannoskai@proton.me'), + Contributor('H@di', 'hadi@hadisafari.ir'), + Contributor('Kachelkaiser', 'kachelkaiser@htpst.de'), + Contributor('Kiril Panayotov', 'eccyboo@protonmail.com'), + Contributor('Xusi Fons', 'xusi@keemail.me'), + Contributor('abc0922001', 'abc0922001@hotmail.com'), + // Contributor('Femini', 'nizamismidov4@gmail.com'), // Azerbaijani + // Contributor('Jamil Farajov', 'jamilfarajov@gmail.com'), // Azerbaijani + // Contributor('Alvi Khan', 'aveenalvi@gmail.com'), // Bengali + // Contributor('Htet Oo Hlaing', 'htetoh2006@outlook.com'), // Burmese + // Contributor('Khant', 'khant@users.noreply.hosted.weblate.org'), // Burmese + // Contributor('Thit Lwin', 'thitlwincoder@gmail.com'), // Burmese + // Contributor('Idj', 'joneltmp+goahn@gmail.com'), // Hebrew + // Contributor('elid', 'shopisrael12@gmail.com'), // Hebrew + // Contributor('Rohit Burman', 'rohitburman31p@rediffmail.com'), // Hindi + // Contributor('AJ07', 'ajaykumarmeena676@gmail.com'), // Hindi + // Contributor('Sartaj', 'ssaarrttaajj111@gmail.com'), // Hindi + // Contributor('Anurag Samota', 'anuragsamotasamota@gmail.com'), // Hindi + // Contributor('GoRaN', 'gorangharib.909@gmail.com'), // Kurdish (Central) + // Contributor('Rasti K5', 'rasti.khdhr@gmail.com'), // Kurdish (Central) + // Contributor('CYAXXX', 'ferhad.hasan9624@gmail.com'), // Kurdish (Northern) + // Contributor('Cx', 'cyax1@proton.me'), // Kurdish (Northern) + // Contributor('Raman', 'xysed@tutanota.com'), // Malayalam + // Contributor('Akhil Raj', 'akhilakae07@gmail.com'), // Malayalam + // Contributor('Over Barrow', 'rawixo6748@insfou.com'), // Nepali + // Contributor('Subham Jena', 'subhamjena8465@gmail.com'), // Odia + // Contributor('Prasanta-Hembram', 'Prasantahembram720@gmail.com'), // Santali + // Contributor('Enenra', 'nnra2210@gmail.com'), // Serbian + // Contributor('Nikola Perović', 'nikolaperovicccc@gmail.com'), // Serbian + // Contributor('mytja', 'mamnju21@gmail.com'), // Slovenian + // Contributor('Nattapong K', 'mixer5056@gmail.com'), // Thai + // Contributor('Feliks-WR', 'aq.1428@tuta.io'), // Urdu + }; +} + +class Contributor { + final String name; + final String? weblateEmail; + + const Contributor(this.name, this.weblateEmail); +} diff --git a/lib/model/app/dependencies.dart b/lib/model/app/dependencies.dart new file mode 100644 index 0000000..1f4c132 --- /dev/null +++ b/lib/model/app/dependencies.dart @@ -0,0 +1,410 @@ +import 'package:aves/app_flavor.dart'; + +class Dependencies { + static const String apache2 = 'Apache License 2.0'; + static const String bsd2 = 'BSD 2-Clause “Simplified” License'; + static const String bsd3 = 'BSD 3-Clause “Revised” License'; + static const String eclipse1 = 'Eclipse Public License 1.0'; + static const String lgpl3 = 'GNU Lesser General Public License v3.0'; + static const String mit = 'MIT License'; + static const String zlib = 'zlib License'; + + static const List<Dependency> androidDependencies = [ + Dependency( + name: 'AndroidSVG (Aves fork)', + license: apache2, + sourceUrl: 'https://github.com/deckerst/androidsvg', + ), + Dependency( + name: 'AndroidX (Core Kotlin, Exifinterface, Lifecycle Process, Multidex)', + license: apache2, + sourceUrl: 'https://android.googlesource.com/platform/frameworks/support/+/androidx-main/core/core-ktx', + ), + Dependency( + name: 'CWAC-Document', + license: apache2, + sourceUrl: 'https://github.com/commonsguy/cwac-document', + ), + Dependency( + name: 'Glide', + license: '$apache2, $bsd2', + sourceUrl: 'https://github.com/bumptech/glide', + ), + Dependency( + name: 'Metadata Extractor', + license: apache2, + sourceUrl: 'https://github.com/drewnoakes/metadata-extractor', + ), + Dependency( + name: 'MP4 Parser (Aves fork)', + license: apache2, + sourceUrl: 'https://github.com/deckerst/mp4parser', + ), + Dependency( + name: 'PixyMeta Android (Aves fork)', + license: eclipse1, + sourceUrl: 'https://github.com/deckerst/pixymeta-android', + ), + Dependency( + name: 'Tiff Bitmap Factory (Aves fork)', + license: mit, + sourceUrl: 'https://github.com/deckerst/Android-TiffBitmapFactory', + ), + ]; + + static const List<Dependency> _flutterPluginsCommon = [ + Dependency( + name: 'Connectivity Plus', + license: bsd3, + sourceUrl: 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus', + ), + Dependency( + name: 'Device Info Plus', + license: bsd3, + sourceUrl: 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus', + ), + Dependency( + name: 'Dynamic Color', + license: apache2, + sourceUrl: 'https://github.com/material-foundation/flutter-packages/tree/main/packages/dynamic_color', + ), + Dependency( + name: 'Floating', + license: mit, + sourceUrl: 'https://github.com/wrbl606/floating', + ), + Dependency( + name: 'Flutter Display Mode', + license: mit, + sourceUrl: 'https://github.com/ajinasokan/flutter_displaymode', + ), + Dependency( + name: 'Local Auth', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/local_auth/local_auth', + ), + Dependency( + name: 'Media Kit', + license: mit, + sourceUrl: 'https://github.com/media-kit/media-kit', + ), + Dependency( + name: 'Network Info Plus', + license: bsd3, + sourceUrl: 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus', + ), + Dependency( + name: 'Package Info Plus', + license: bsd3, + sourceUrl: 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus', + ), + Dependency( + name: 'Permission Handler', + license: mit, + sourceUrl: 'https://github.com/Baseflow/flutter-permission-handler', + ), + Dependency( + name: 'Printing', + license: apache2, + sourceUrl: 'https://github.com/DavBfr/dart_pdf', + ), + Dependency( + name: 'Screen Brightness', + license: mit, + sourceUrl: 'https://github.com/aaassseee/screen_brightness', + ), + Dependency( + name: 'Shared Preferences', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences', + ), + Dependency( + name: 'sqflite', + license: bsd2, + sourceUrl: 'https://github.com/tekartik/sqflite', + ), + Dependency( + name: 'Streams Channel (Aves fork)', + license: apache2, + sourceUrl: 'https://github.com/deckerst/aves_streams_channel', + ), + Dependency( + name: 'URL Launcher', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher', + ), + Dependency( + name: 'Volume Controller', + license: mit, + sourceUrl: 'https://github.com/kurenai7968/volume_controller', + ), + ]; + + static const List<Dependency> _googleMobileServices = [ + Dependency( + name: 'Google API Availability', + license: mit, + sourceUrl: 'https://github.com/Baseflow/flutter-google-api-availability', + ), + Dependency( + name: 'Google Maps for Flutter', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter', + ), + ]; + + static const List<Dependency> _flutterPluginsIzzyOnly = [ + ..._googleMobileServices, + ]; + + static const List<Dependency> _flutterPluginsLibreOnly = []; + + static const List<Dependency> _flutterPluginsPlayOnly = [ + ..._googleMobileServices, + Dependency( + name: 'FlutterFire (Core, Crashlytics)', + license: bsd3, + sourceUrl: 'https://github.com/FirebaseExtended/flutterfire', + ), + ]; + + static List<Dependency> flutterPlugins(AppFlavor flavor) => [ + ..._flutterPluginsCommon, + if (flavor == AppFlavor.izzy) ..._flutterPluginsIzzyOnly, + if (flavor == AppFlavor.libre) ..._flutterPluginsLibreOnly, + if (flavor == AppFlavor.play) ..._flutterPluginsPlayOnly, + ]; + + static const List<Dependency> flutterPackages = [ + Dependency( + name: 'Charts (Aves fork)', + license: apache2, + sourceUrl: 'https://github.com/deckerst/flutter_google_charts', + ), + Dependency( + name: 'Custom rounded rectangle border', + license: mit, + sourceUrl: 'https://github.com/lekanbar/custom_rounded_rectangle_border', + ), + Dependency( + name: 'Decorated Icon', + license: mit, + sourceUrl: 'https://github.com/benPesso/flutter_decorated_icon', + ), + Dependency( + name: 'Expansion Tile Card (Aves fork)', + license: bsd3, + sourceUrl: 'https://github.com/deckerst/expansion_tile_card', + ), + Dependency( + name: 'FlexColorPicker', + license: bsd3, + sourceUrl: 'https://github.com/rydmike/flex_color_picker', + ), + Dependency( + name: 'Flutter Highlight', + license: mit, + sourceUrl: 'https://github.com/git-touch/highlight', + ), + Dependency( + name: 'Flutter Map', + license: bsd3, + sourceUrl: 'https://github.com/fleaflet/flutter_map', + ), + Dependency( + name: 'Flutter Markdown Plus', + license: bsd3, + sourceUrl: 'https://github.com/foresightmobile/flutter_markdown_plus', + ), + Dependency( + name: 'Flutter Staggered Animations', + license: mit, + sourceUrl: 'https://github.com/mobiten/flutter_staggered_animations', + ), + Dependency( + name: 'Material Design Icons Flutter', + license: mit, + sourceUrl: 'https://github.com/ziofat/material_design_icons_flutter', + ), + Dependency( + name: 'Material Symbols Icons for Flutter', + license: apache2, + sourceUrl: 'https://github.com/timmaffett/material_symbols_icons', + ), + Dependency( + name: 'Overlay Support', + license: apache2, + sourceUrl: 'https://github.com/boyan01/overlay_support', + ), + Dependency( + name: 'Palette Generator', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/palette_generator', + ), + Dependency( + name: 'Panorama (Aves fork)', + license: apache2, + sourceUrl: 'https://github.com/deckerst/aves_panorama', + ), + Dependency( + name: 'Pattern Lock', + license: apache2, + sourceUrl: 'https://github.com/qwert2603/pattern_lock', + ), + Dependency( + name: 'Percent Indicator', + license: bsd2, + sourceUrl: 'https://github.com/diegoveloper/flutter_percent_indicator', + ), + Dependency( + name: 'Pin Code Fields', + license: mit, + sourceUrl: 'https://github.com/adar2378/pin_code_fields', + ), + Dependency( + name: 'Provider', + license: mit, + sourceUrl: 'https://github.com/rrousselGit/provider', + ), + Dependency( + name: 'Smooth Page Indicator', + license: mit, + sourceUrl: 'https://github.com/Milad-Akarie/smooth_page_indicator', + ), + Dependency( + name: 'Vector Map Tiles', + license: bsd3, + sourceUrl: 'https://github.com/greensopinion/flutter-vector-map-tiles', + ), + Dependency( + name: 'Vector Tile Renderer', + license: bsd3, + sourceUrl: 'https://github.com/greensopinion/dart-vector-tile-renderer', + ), + ]; + + static const List<Dependency> dartPackages = [ + Dependency( + name: 'Collection', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/collection', + ), + Dependency( + name: 'Country Code', + license: mit, + sourceUrl: 'https://github.com/denixport/dart.country', + ), + Dependency( + name: 'CSV', + license: mit, + sourceUrl: 'https://github.com/close2/csv', + ), + Dependency( + name: 'DLNA Dart', + license: bsd3, + sourceUrl: 'https://github.com/suconghou/dlna-dart', + ), + Dependency( + name: 'Equatable', + license: mit, + sourceUrl: 'https://github.com/felangel/equatable', + ), + Dependency( + name: 'Event Bus', + license: mit, + sourceUrl: 'https://github.com/marcojakob/dart-event-bus', + ), + Dependency( + name: 'Fluster', + license: mit, + sourceUrl: 'https://github.com/alfonsocejudo/fluster', + ), + Dependency( + name: 'Flutter Lints', + license: bsd3, + sourceUrl: 'https://github.com/flutter/packages/tree/main/packages/flutter_lints', + ), + Dependency( + name: 'Get It', + license: mit, + sourceUrl: 'https://github.com/fluttercommunity/get_it', + ), + Dependency( + name: 'GPX', + license: apache2, + sourceUrl: 'https://github.com/kb0/dart-gpx', + ), + Dependency( + name: 'HTTP', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/http', + ), + Dependency( + name: 'Intl', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/intl', + ), + Dependency( + name: 'LatLong2', + license: apache2, + sourceUrl: 'https://github.com/jifalops/dart-latlong', + ), + Dependency( + name: 'Memory Leak Tracker', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/leak_tracker', + ), + Dependency( + name: 'Path', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/path', + ), + Dependency( + name: 'PDF for Dart and Flutter', + license: apache2, + sourceUrl: 'https://github.com/DavBfr/dart_pdf', + ), + Dependency( + name: 'Proj4dart', + license: mit, + sourceUrl: 'https://github.com/maRci002/proj4dart', + ), + Dependency( + name: 'Shelf', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/shelf', + ), + Dependency( + name: 'Stack Trace', + license: bsd3, + sourceUrl: 'https://github.com/dart-lang/stack_trace', + ), + Dependency( + name: 'Synchronized', + license: mit, + sourceUrl: 'https://github.com/tekartik/synchronized.dart/tree/master/synchronized', + ), + Dependency( + name: 'Vector Math', + license: '$zlib, $bsd3', + sourceUrl: 'https://github.com/google/vector_math.dart', + ), + Dependency( + name: 'XML', + license: mit, + sourceUrl: 'https://github.com/renggli/dart-xml', + ), + ]; +} + +class Dependency { + final String name; + final String license; + final String sourceUrl; + + const Dependency({ + required this.name, + required this.license, + required this.sourceUrl, + }); +} diff --git a/lib/model/app/intent.dart b/lib/model/app/intent.dart new file mode 100644 index 0000000..ee4985b --- /dev/null +++ b/lib/model/app/intent.dart @@ -0,0 +1,27 @@ +class IntentActions { + static const edit = 'edit'; + static const pickItems = 'pick_items'; + static const pickCollectionFilters = 'pick_collection_filters'; + static const screenSaver = 'screen_saver'; + static const screenSaverSettings = 'screen_saver_settings'; + static const search = 'search'; + static const setWallpaper = 'set_wallpaper'; + static const view = 'view'; + static const viewGeo = 'view_geo'; + static const widgetOpen = 'widget_open'; + static const widgetSettings = 'widget_settings'; +} + +class IntentDataKeys { + static const action = 'action'; + static const allowMultiple = 'allowMultiple'; + static const brightness = 'brightness'; + static const explorerPath = 'explorerPath'; + static const filters = 'filters'; + static const mimeType = 'mimeType'; + static const page = 'page'; + static const query = 'query'; + static const secureUris = 'secureUris'; + static const uri = 'uri'; + static const widgetId = 'widgetId'; +} diff --git a/lib/model/app/permissions.dart b/lib/model/app/permissions.dart new file mode 100644 index 0000000..3104272 --- /dev/null +++ b/lib/model/app/permissions.dart @@ -0,0 +1,16 @@ +import 'package:permission_handler/permission_handler.dart'; + +class Permissions { + static const storage = [ + Permission.storage, + // for media access on Android >=13 + Permission.photos, + Permission.videos, + ]; + + static const mediaAccess = [ + ...storage, + // to access media with unredacted metadata with scoped storage (Android >=10) + Permission.accessMediaLocation, + ]; +} diff --git a/lib/model/app/support.dart b/lib/model/app/support.dart new file mode 100644 index 0000000..c2e6da2 --- /dev/null +++ b/lib/model/app/support.dart @@ -0,0 +1,80 @@ +import 'package:aves/ref/mime_types.dart'; + +class AppSupport { + // TODO TLAD [codec] make it dynamic if it depends on OS/lib versions + static const Set<String> undecodableImages = { + MimeTypes.art, + MimeTypes.cdr, + MimeTypes.crw, + MimeTypes.djvu, + MimeTypes.dwg, + MimeTypes.dxf, + MimeTypes.flic, + MimeTypes.jpeg2000, + MimeTypes.jxl, + MimeTypes.pat, + MimeTypes.pcx, + MimeTypes.pnm, + MimeTypes.psdVnd, + MimeTypes.psdX, + MimeTypes.octetStream, + MimeTypes.rgbe, + MimeTypes.tap, + MimeTypes.wmf, + MimeTypes.zip, + }; + + static bool canDecode(String mimeType) => !undecodableImages.contains(mimeType); + + // `exifinterface` v1.3.3 declared support for DNG, but it strips non-standard Exif tags when saving attributes, + // and DNG requires DNG-specific tags saved along standard Exif. So it was actually breaking DNG files. + static bool canEditExif(String mimeType) { + switch (mimeType.toLowerCase()) { + // as of androidx.exifinterface:exifinterface:1.3.4 + case MimeTypes.jpeg: + case MimeTypes.png: + case MimeTypes.webp: + return true; + default: + return false; + } + } + + static bool canEditIptc(String mimeType) { + switch (mimeType.toLowerCase()) { + // as of latest PixyMeta + case MimeTypes.jpeg: + case MimeTypes.tiff: + return true; + default: + return false; + } + } + + static bool canEditXmp(String mimeType) { + switch (mimeType.toLowerCase()) { + // as of latest PixyMeta + case MimeTypes.gif: + case MimeTypes.jpeg: + case MimeTypes.png: + case MimeTypes.tiff: + return true; + // using `mp4parser` + case MimeTypes.mp4: + return true; + default: + return false; + } + } + + static bool canRemoveMetadata(String mimeType) { + switch (mimeType.toLowerCase()) { + // as of latest PixyMeta + case MimeTypes.jpeg: + case MimeTypes.tiff: + return true; + default: + return false; + } + } +} |
