Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for 1.14.0 #540

Merged
merged 53 commits into from
Jan 4, 2024
Merged

Changes for 1.14.0 #540

merged 53 commits into from
Jan 4, 2024

Conversation

eb1
Copy link
Contributor

@eb1 eb1 commented Jan 4, 2024

Fixes # 538, 539.

Changes proposed in this request:

  • Refactoring of project file reader (moving from ProjectViews into the project model object)
  • Refactoring of file open code to use file chooser plugin instead of scanning the local device directories. Users can select a file to open, or copy data from the clipboard (for both regular documents and project / .aic files)

eb1 added 30 commits December 1, 2023 10:25
Add ios and android platform if they don't exist before calling build on ios / android, respectively.
Need to update to node 16.x
Tasks still available if needed
Command line to add ios and android platforms working; also set the default gulpfile task to just build Android (for the CI build)
Try - force Gradle wrapper to the older (working) 7.3.1
try again...
eh, no promises...
Only compatible with browser platform (which we don't distribute)
Another test
eb1 added 23 commits December 5, 2023 15:44
Note that this removes the actual compile. Might need to stop here if we can't get the server's build environment to cooperate. 👎
Start work on 1.14.0 (48)
Using a file chooser instead of scanning the local drives for file import. Usability improved 100-fold, BUT this required a lot of refactoring. Will probably be dealing with lurking bugs for a bit before this milestone can be released (and will need to be released in lock-step with the project file issue adapt-it#539).
Add an alert for when the clipboard is empty (or the user doesn't give permission to copy).
- Use chooser plugin to select project files (same work done for adapt-it#538).
- Allow project import from clipboard (not a huge use case, but the work was already done for basic file import)
- Add .aic filetype to Android supported file type lists
Work still in progress.
Work on clipboard import of project files. Still in progress...
Work in progress. Also removed unused windows and firefoxos platform data, and expanded the chooser plugin's accepted files to */* for Android (logic to filter out unsupported file types is in the file import code)
Lost about a day tracking this down :/ SQLite plugin and the ES6 plugin used by social-sharing collide, causing AIM to not launch. There's a fork of social--sharing that removes this dependency.
Sanity import checks for .aic files:
(1) test for existence of source/target language names (is it a valid .aic file?), return false if not found so file import can fall back on text import
(2) if source/target language exist AND there is a project list, check each project to make sure we aren't importing a duplicate project (error out if we are).
Logic for multiple projects (ask the user if they want to switch projects at the end of the import)
Refactoring in progress -- moving import persistence to the model object (project::fromString()).
More refactoring of AIC file import...
Work in progress
refactoring import from projectviews->project object. projectViews now has a shell importSettingsFile() that calls project.fromString() to do the work.
missing errMsg definition
Set up iOS UTI declaration for AIC files, so users can open/import from another process on iOS.
Code cleanup -- a couple bugs in project management / copy project from file
Pretty close -- just need to get switching project from project mgt / copy new project working properly
Still need to test Android side, but final pieces of this issue have been implemented.
@eb1 eb1 merged commit 2c0420c into adapt-it:master Jan 4, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant