WIP: Add iOS version #10

Draft
Deadpikle wants to merge 67 commits from feature/ios into main
4 changed files with 10 additions and 7 deletions
Showing only changes of commit afed4c8438 - Show all commits
+2
View File
@@ -7,8 +7,10 @@
-always save report data (file locations, title, etc.) to internal dir (might already be done?) -always save report data (file locations, title, etc.) to internal dir (might already be done?)
-add dropdown to Add Items button to have add items from folder and remove choose working folder option (data always saved internally) -add dropdown to Add Items button to have add items from folder and remove choose working folder option (data always saved internally)
-no more option to save data internally -> ALWAYS save report_data.json internally
-update project title -> should update recently used data -update project title -> should update recently used data
-this sort of works, something is wrong with the upgrade process where the UUID is not brought over properly; need to test and fix (maybe fixed already and my dataset is wrong?) -this sort of works, something is wrong with the upgrade process where the UUID is not brought over properly; need to test and fix (maybe fixed already and my dataset is wrong?)
-make backup of last generated PDF
-iOS-specific (MAUI essentials?) -iOS-specific (MAUI essentials?)
-Take picture -Take picture
-Add pic from gallery -Add pic from gallery
+1
View File
@@ -217,6 +217,7 @@ class Settings : ChangeNotifier
} }
settings.AllReportInfo = list.OrderBy(x => x.Title).ToList(); settings.AllReportInfo = list.OrderBy(x => x.Title).ToList();
settings.WorkingFolderToInternalFolderName = []; // clear this list; it is no longer going to be used settings.WorkingFolderToInternalFolderName = []; // clear this list; it is no longer going to be used
settings.SaveReportJsonDataInInternalDir = true; // this is now always true
settings.SettingsVersion = 2; settings.SettingsVersion = 2;
settings.SaveSettingsNotAsync(); // saves all data; UUIDs should be in sync if user has toggled settings settings.SaveSettingsNotAsync(); // saves all data; UUIDs should be in sync if user has toggled settings
} }
@@ -115,12 +115,12 @@ class SettingsViewModel: ChangeNotifier
public bool SaveReportJsonDataInInternalDir public bool SaveReportJsonDataInInternalDir
{ {
get => _settings.SaveReportJsonDataInInternalDir; get => true; // _settings.SaveReportJsonDataInInternalDir;
set //set
{ //{
_settings.SaveReportJsonDataInInternalDir = value; // _settings.SaveReportJsonDataInInternalDir = value;
NotifyPropertyChanged(); // NotifyPropertyChanged();
} //}
} }
public List<DateDisplayFormat> DateFormats public List<DateDisplayFormat> DateFormats
+1 -1
View File
@@ -72,7 +72,7 @@
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox> </ComboBox>
<CheckBox IsChecked="{Binding SaveReportJsonDataInInternalDir}">Save report data (names, notes, etc.) in MayShow settings directory (saves in working directory by default)</CheckBox> <!-- <CheckBox IsChecked="{Binding SaveReportJsonDataInInternalDir}">Save report data (names, notes, etc.) in MayShow settings directory (saves in working directory by default)</CheckBox> -->
<Button Command="{Binding OpenSettingsDir}"> <Button Command="{Binding OpenSettingsDir}">
<TextBlock> <TextBlock>
<Run Text="&#xf07c;" <Run Text="&#xf07c;"