Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerst committed Oct 10, 2024
2 parents e6afda2 + a8ad8b9 commit 1c1be8b
Show file tree
Hide file tree
Showing 16 changed files with 255 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload app bundle
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: appbundle
path: outputs/app-play-release.aab
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: SARIF file
path: results.sarif
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## <a id="unreleased"></a>[Unreleased]

## <a id="v1.11.16"></a>[v1.11.16] - 2024-10-10

### Fixed

- case-insensitive access to restricted directories

## <a id="v1.11.15"></a>[v1.11.15] - 2024-10-09

### Changed
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/res/values-id/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
<string name="analysis_channel_name">Pindai media</string>
<string name="analysis_notification_default_title">Memindai media</string>
<string name="analysis_notification_action_stop">Berhenti</string>
<string name="map_shortcut_short_label">Peta</string>
</resources>
1 change: 1 addition & 0 deletions android/app/src/main/res/values-lt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
<string name="search_shortcut_short_label">Paieška</string>
<string name="analysis_notification_action_stop">Sustabdyti</string>
<string name="analysis_notification_default_title">Nuskaitoma medija</string>
<string name="map_shortcut_short_label">Žemėlapis</string>
</resources>
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/135.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
In v1.11.16:
- enjoy new map layers
- share "geo" addresses to Aves and see your collection in that area
Full changelog available on GitHub
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/13501.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
In v1.11.16:
- enjoy new map layers
- share "geo" addresses to Aves and see your collection in that area
Full changelog available on GitHub
10 changes: 9 additions & 1 deletion lib/l10n/app_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1384,5 +1384,13 @@
"chipActionGoToExplorerPage": "Tampilkan di Explorer",
"@chipActionGoToExplorerPage": {},
"mapAttributionOsmData": "Data peta © [OpenStreetMap](https://www.openstreetmap.org/copyright) kontributor",
"@mapAttributionOsmData": {}
"@mapAttributionOsmData": {},
"mapStyleOpenTopoMap": "OpenTopoMap",
"@mapStyleOpenTopoMap": {},
"mapAttributionOpenTopoMap": "[SRTM](https://www.earthdata.nasa.gov/sensors/srtm) | Ubin oleh [OpenTopoMap](https://opentopomap.org/), [CC BY-SA](https://creativecommons.org/licenses/by-sa/3.0/)",
"@mapAttributionOpenTopoMap": {},
"mapStyleOsmLiberty": "OSM Liberty",
"@mapStyleOsmLiberty": {},
"mapAttributionOsmLiberty": "Ubin oleh [OpenMapTiles](https://www.openmaptiles.org/), [CC BY](http://creativecommons.org/licenses/by/4.0) • Disediakan oleh [OSM Americana](https://tile.ourmap.us)",
"@mapAttributionOsmLiberty": {}
}
214 changes: 213 additions & 1 deletion lib/l10n/app_lt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1332,5 +1332,217 @@
"chipActionShowCollection": "Rodyti kolekcijoje",
"@chipActionShowCollection": {},
"mapAttributionOsmData": "Žemėlapio duomenys © [OpenStreetMap](https://www.openstreetmap.org/copyright) bendradarbiai",
"@mapAttributionOsmData": {}
"@mapAttributionOsmData": {},
"filterLocatedLabel": "Lokalizuota",
"@filterLocatedLabel": {},
"aboutDataUsageSectionTitle": "Duomenų naudojimas",
"@aboutDataUsageSectionTitle": {},
"chipActionConfigureVault": "Konfigūruoti saugyklą",
"@chipActionConfigureVault": {},
"chipActionGoToPlacePage": "Rodyti Vietose",
"@chipActionGoToPlacePage": {},
"chipActionLock": "Rakinti",
"@chipActionLock": {},
"chipActionShowCountryStates": "Rodyti valstybes",
"@chipActionShowCountryStates": {},
"entryActionCast": "Transliuoti",
"@entryActionCast": {},
"saveCopyButtonLabel": "IŠSAUGOTI KOPIJĄ",
"@saveCopyButtonLabel": {},
"applyTooltip": "Taikyti",
"@applyTooltip": {},
"editorActionTransform": "Transformuoti",
"@editorActionTransform": {},
"editorTransformCrop": "Apkirpti",
"@editorTransformCrop": {},
"editorTransformRotate": "Pasukti",
"@editorTransformRotate": {},
"cropAspectRatioFree": "Laisvai",
"@cropAspectRatioFree": {},
"cropAspectRatioOriginal": "Originalas",
"@cropAspectRatioOriginal": {},
"widgetTapUpdateWidget": "Atnaujinti valdiklį",
"@widgetTapUpdateWidget": {},
"passwordDialogEnter": "Įveskite slaptažodį",
"@passwordDialogEnter": {},
"settingsAccessibilityShowPinchGestureAlternatives": "Rodyti kelių palietimų gestų alternatyvas",
"@settingsAccessibilityShowPinchGestureAlternatives": {},
"chipActionCreateVault": "Kurti saugyklą",
"@chipActionCreateVault": {},
"filterTaggedLabel": "Pažymėti",
"@filterTaggedLabel": {},
"configureVaultDialogTitle": "Konfigūruoti saugyklą",
"@configureVaultDialogTitle": {},
"settingsVideoPlaybackTile": "Atkūrimas",
"@settingsVideoPlaybackTile": {},
"vaultDialogLockTypeLabel": "Užrakto tipas",
"@vaultDialogLockTypeLabel": {},
"aboutDataUsageData": "Duomenys",
"@aboutDataUsageData": {},
"vaultDialogLockModeWhenScreenOff": "Užrakinti kai ekranas išsijungia",
"@vaultDialogLockModeWhenScreenOff": {},
"pinDialogConfirm": "Konfigūruoti PIN",
"@pinDialogConfirm": {},
"patternDialogEnter": "Įveskite paveikslą",
"@patternDialogEnter": {},
"pinDialogEnter": "Įveskite PIN",
"@pinDialogEnter": {},
"passwordDialogConfirm": "Patvirtinti slaptažodį",
"@passwordDialogConfirm": {},
"renameProcessorHash": "Maiša",
"@renameProcessorHash": {},
"aboutDataUsageInternal": "Vidaus",
"@aboutDataUsageInternal": {},
"aboutDataUsageCache": "Talpykla",
"@aboutDataUsageCache": {},
"sortByDuration": "Pagal trukmę",
"@sortByDuration": {},
"sortOrderShortestFirst": "Trumpiausi pirmiausiai",
"@sortOrderShortestFirst": {},
"selectStorageVolumeDialogTitle": "Pasirinkti saugyklą",
"@selectStorageVolumeDialogTitle": {},
"searchStatesSectionTitle": "Valstybės",
"@searchStatesSectionTitle": {},
"settingsVideoGestureVerticalDragBrightnessVolume": "Braukite į viršų ar apačią kad keisti šviesumą/garsumą",
"@settingsVideoGestureVerticalDragBrightnessVolume": {},
"settingsDisablingBinWarningDialogMessage": "Daiktai šiukšlių dėžėje bus ištrinti visam laikui.",
"@settingsDisablingBinWarningDialogMessage": {},
"settingsDisplayUseTvInterface": "Android TV vaizdas",
"@settingsDisplayUseTvInterface": {},
"settingsForceWesternArabicNumeralsTile": "Priversti arabų skaitmenys",
"@settingsForceWesternArabicNumeralsTile": {},
"albumTierVaults": "Seifai",
"@albumTierVaults": {},
"tooManyItemsErrorDialogMessage": "Bandykite vėl su mažiau daiktų.",
"@tooManyItemsErrorDialogMessage": {},
"castDialogTitle": "Transliavimo įrenginiai",
"@castDialogTitle": {},
"aboutDataUsageExternal": "Išorinė",
"@aboutDataUsageExternal": {},
"statePageTitle": "Valstybės",
"@statePageTitle": {},
"settingsAskEverytime": "Klausti kiekvieną kartą",
"@settingsAskEverytime": {},
"settingsCollectionBurstPatternsTile": "Burst modeliai",
"@settingsCollectionBurstPatternsTile": {},
"settingsCollectionBurstPatternsNone": "Jokio",
"@settingsCollectionBurstPatternsNone": {},
"settingsViewerShowDescription": "Rodyti aprašymą",
"@settingsViewerShowDescription": {},
"settingsVideoBackgroundMode": "Fono grojimas",
"@settingsVideoBackgroundMode": {},
"settingsVideoResumptionModeTile": "Tęsti atkūrimą",
"@settingsVideoResumptionModeTile": {},
"aboutDataUsageDatabase": "Duombazė",
"@aboutDataUsageDatabase": {},
"settingsModificationWarningDialogMessage": "Kiti nustatymai bus pakeisti.",
"@settingsModificationWarningDialogMessage": {},
"patternDialogConfirm": "Konfigūruoti paveikslą",
"@patternDialogConfirm": {},
"lengthUnitPixel": "px",
"@lengthUnitPixel": {},
"lengthUnitPercent": "%",
"@lengthUnitPercent": {},
"collectionActionSetHome": "Nustatyti kaip namus",
"@collectionActionSetHome": {},
"drawerPlacePage": "Vietos",
"@drawerPlacePage": {},
"placeEmpty": "Jokių vietų",
"@placeEmpty": {},
"settingsViewerShowHistogram": "Rodyti histogramą",
"@settingsViewerShowHistogram": {},
"settingsVideoEnablePip": "Paveikslas paveiksle",
"@settingsVideoEnablePip": {},
"settingsConfirmationVaultDataLoss": "Rodyti saugyklos duomenų praradimo ispėjimą",
"@settingsConfirmationVaultDataLoss": {},
"aboutDataUsageClearCache": "Valyti talpyklą",
"@aboutDataUsageClearCache": {},
"statsTopStatesSectionTitle": "Pagrindinės valstybės",
"@statsTopStatesSectionTitle": {},
"mapStyleOsmLiberty": "OSM Liberty",
"@mapStyleOsmLiberty": {},
"mapStyleOpenTopoMap": "OpenTopoMap",
"@mapStyleOpenTopoMap": {},
"maxBrightnessNever": "Niekada",
"@maxBrightnessNever": {},
"maxBrightnessAlways": "Visada",
"@maxBrightnessAlways": {},
"overlayHistogramNone": "Jokios",
"@overlayHistogramNone": {},
"overlayHistogramRGB": "RGB",
"@overlayHistogramRGB": {},
"overlayHistogramLuminance": "Skaistis",
"@overlayHistogramLuminance": {},
"vaultLockTypePassword": "Slaptažodis",
"@vaultLockTypePassword": {},
"videoResumptionModeNever": "Niekada",
"@videoResumptionModeNever": {},
"videoResumptionModeAlways": "Visada",
"@videoResumptionModeAlways": {},
"newVaultWarningDialogMessage": "Daiktai saugyklose yra prieinami tik šiai programėlei ir jokiom kitom.\n\nJei pašalinsite šią programą arba išvalysite jos duomenis, jūs prarasite visus šiuos daiktus.",
"@newVaultWarningDialogMessage": {},
"authenticateToConfigureVault": "Autentifikuoti, kad konfigūruoti saugyklą",
"@authenticateToConfigureVault": {},
"authenticateToUnlockVault": "Autentifikuoti, kad atrakinti saugyklą",
"@authenticateToUnlockVault": {},
"vaultBinUsageDialogMessage": "Kai kurios saugyklos naudoja šiukšlių dėžę.",
"@vaultBinUsageDialogMessage": {},
"exportEntryDialogQuality": "Kokybė",
"@exportEntryDialogQuality": {},
"sortOrderLongestFirst": "Ilgiausi pirmiausiai",
"@sortOrderLongestFirst": {},
"stateEmpty": "Jokių valstybių",
"@stateEmpty": {},
"placePageTitle": "Vietos",
"@placePageTitle": {},
"setHomeCustom": "Pritaikytas",
"@setHomeCustom": {},
"settingsVideoPlaybackPageTitle": "Atkūrimas",
"@settingsVideoPlaybackPageTitle": {},
"settingsVideoResumptionModeDialogTitle": "Tęsti atkūrimą",
"@settingsVideoResumptionModeDialogTitle": {},
"settingsVideoBackgroundModeDialogTitle": "Fono grojimas",
"@settingsVideoBackgroundModeDialogTitle": {},
"newVaultDialogTitle": "Nauja saugykla",
"@newVaultDialogTitle": {},
"exportEntryDialogWriteMetadata": "Įrašyti metainformaciją",
"@exportEntryDialogWriteMetadata": {},
"explorerActionSelectStorageVolume": "Pasirinkite saugyklą",
"@explorerActionSelectStorageVolume": {},
"stopTooltip": "Stabdyti",
"@stopTooltip": {},
"videoActionABRepeat": "A-B kartoti",
"@videoActionABRepeat": {},
"videoRepeatActionSetStart": "Nustatyti pradžią",
"@videoRepeatActionSetStart": {},
"viewerActionLock": "Užrakinti peržiūrą",
"@viewerActionLock": {},
"viewerActionUnlock": "Atrakinti peržiūrą",
"@viewerActionUnlock": {},
"cropAspectRatioSquare": "Kvadratas",
"@cropAspectRatioSquare": {},
"vaultLockTypePattern": "Piešinys",
"@vaultLockTypePattern": {},
"vaultLockTypePin": "PIN",
"@vaultLockTypePin": {},
"explorerPageTitle": "Naršyklė",
"@explorerPageTitle": {},
"settingsThumbnailShowHdrIcon": "Rodyti HDR ikoną",
"@settingsThumbnailShowHdrIcon": {},
"columnCount": "{count, plural, =1{{count} stulpelis} other{{count} stulpeliai}}",
"@columnCount": {
"placeholders": {
"count": {
"format": "decimalPattern"
}
}
},
"chipActionGoToExplorerPage": "Rodyti Naršyklėje",
"@chipActionGoToExplorerPage": {},
"videoRepeatActionSetEnd": "Nustatyti pabaigą",
"@videoRepeatActionSetEnd": {},
"keepScreenOnVideoPlayback": "Vaizdo įrašo atkūrimo metu",
"@keepScreenOnVideoPlayback": {},
"aboutDataUsageMisc": "Įvairūs",
"@aboutDataUsageMisc": {}
}
2 changes: 1 addition & 1 deletion lib/l10n/app_vi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@
"@chipActionGoToExplorerPage": {},
"explorerPageTitle": "Khám phá",
"@explorerPageTitle": {},
"mapAttributionOsmData": "Dữ liệu bản đồ © [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors",
"mapAttributionOsmData": "Dữ liệu bản đồ © [OpenStreetMap](https://www.openstreetmap.org/copyright) đóng góp",
"@mapAttributionOsmData": {},
"setHomeCustom": "Tùy chỉnh",
"@setHomeCustom": {},
Expand Down
1 change: 1 addition & 0 deletions lib/model/app/contributors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class Contributors {
Contributor('Leo Aaua Felix', 'g00g7el@gmail.com'),
Contributor('-J-', 'heyj0e@tuta.io'),
Contributor('bittin1ddc447d824349b2', 'bittin@reimu.nl'),
Contributor('splice11', 'trenchedgrandpa@protonmail.com'),
// Contributor('Alvi Khan', 'aveenalvi@gmail.com'), // Bengali
// Contributor('Htet Oo Hlaing', 'htetoh2006@outlook.com'), // Burmese
// Contributor('Khant', 'khant@users.noreply.hosted.weblate.org'), // Burmese
Expand Down
1 change: 1 addition & 0 deletions lib/model/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ class Settings with ChangeNotifier, SettingsAccess, AppSettings, DisplaySettings
case SettingKeys.collectionBurstPatternsKey:
case SettingKeys.pinnedFiltersKey:
case SettingKeys.hiddenFiltersKey:
case SettingKeys.deactivatedHiddenFiltersKey:
case SettingKeys.collectionBrowsingQuickActionsKey:
case SettingKeys.collectionSelectionQuickActionsKey:
case SettingKeys.viewerQuickActionsKey:
Expand Down
18 changes: 9 additions & 9 deletions lib/widgets/common/action_mixins/permission_aware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,43 @@ mixin PermissionAwareMixin {
Future<bool> checkStoragePermissionForAlbums(BuildContext context, Set<String> storageDirs, {Set<AvesEntry>? entries}) async {
final restrictedDirsLowerCase = await storageService.getRestrictedDirectoriesLowerCase();
while (true) {
final dirs = await storageService.getInaccessibleDirectories(storageDirs);
final inaccessibleDirs = await storageService.getInaccessibleDirectories(storageDirs);

final restrictedInaccessibleDirs = dirs
final restrictedInaccessibleDirsLowerCase = inaccessibleDirs
.map((dir) => dir.copyWith(
relativeDir: dir.relativeDir.toLowerCase(),
))
.where(restrictedDirsLowerCase.contains)
.toSet();
if (restrictedInaccessibleDirs.isNotEmpty) {
if (restrictedInaccessibleDirsLowerCase.isNotEmpty) {
if (entries != null && await storageService.canRequestMediaFileBulkAccess()) {
// request media file access for items in restricted directories
final uris = <String>[], mimeTypes = <String>[];
entries.where((entry) {
final dirPath = entry.directory;
if (dirPath == null) return false;
final dir = androidFileUtils.relativeDirectoryFromPath(dirPath);
return restrictedInaccessibleDirs.contains(dir?.copyWith(relativeDir: dir.relativeDir.toLowerCase()));
return restrictedInaccessibleDirsLowerCase.contains(dir?.copyWith(relativeDir: dir.relativeDir.toLowerCase()));
}).forEach((entry) {
uris.add(entry.uri);
mimeTypes.add(entry.mimeType);
});
final granted = await storageService.requestMediaFileAccess(uris, mimeTypes);
if (!granted) return false;
} else if (entries == null && await storageService.canInsertMedia(restrictedInaccessibleDirs)) {
} else if (entries == null && await storageService.canInsertMedia(restrictedInaccessibleDirsLowerCase)) {
// insertion in restricted directories
} else {
// cannot proceed further
await showRestrictedDirectoryDialog(context, restrictedInaccessibleDirs.first);
await showRestrictedDirectoryDialog(context, restrictedInaccessibleDirsLowerCase.first);
return false;
}
// clear restricted directories
dirs.removeAll(restrictedInaccessibleDirs);
inaccessibleDirs.removeWhere((dir) => restrictedInaccessibleDirsLowerCase.contains(dir.copyWith(relativeDir: dir.relativeDir.toLowerCase())));
}

if (dirs.isEmpty) return true;
if (inaccessibleDirs.isEmpty) return true;

final dir = dirs.first;
final dir = inaccessibleDirs.first;
final confirmed = await showDialog<bool>(
context: context,
builder: (context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/navigation/drawer/app_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AppDrawer extends StatefulWidget {
final source = context.read<CollectionSource>();
final specialAlbums = source.rawAlbums.where((album) {
final type = androidFileUtils.getAlbumType(album);
return [AlbumType.camera, AlbumType.screenshots].contains(type);
return [AlbumType.camera, AlbumType.download, AlbumType.screenshots].contains(type);
}).toList()
..sort(source.compareAlbumsByName);
return specialAlbums;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository: https://github.com/deckerst/aves
# - play changelog: /whatsnew/whatsnew-en-US
# - izzy changelog: /fastlane/metadata/android/en-US/changelogs/XXX01.txt
# - libre changelog: /fastlane/metadata/android/en-US/changelogs/XXX.txt
version: 1.11.15+134
version: 1.11.16+135
publish_to: none

environment:
Expand Down
2 changes: 1 addition & 1 deletion whatsnew/whatsnew-en-US
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
In v1.11.15:
In v1.11.16:
- enjoy new map layers
- share "geo" addresses to Aves and see your collection in that area
Full changelog available on GitHub

0 comments on commit 1c1be8b

Please sign in to comment.