Commit graph

814 commits

Author SHA1 Message Date
sgschantz
f5677782b0 fix(mac): check for macOS 11 for PostEvent access
CGPreflightPostEventAccess API should be available
with macOS 10.5 (Catalina) but that does not appear
to be true in experience. Changing to check for 11.0
(Big Sur) before using that API instead.

Fixes: #12295
2024-09-03 13:07:25 +07:00
sgschantz
cc2c917bc2 fix(mac): nil window references after dismissing dialogs
also delete commented code
2024-09-02 15:56:50 +07:00
sgschantz
b38700cb19 fix(mac): comment cleanup 2024-09-02 09:34:31 +07:00
sgschantz
19cb236fe5 fix(mac): open download info sheet from config window
Rather than opening from the keyboard download window
which is supposed to be closed by the download info
sheet. This prevents the download info sheet from
closing its own parent on which it depends.
2024-08-30 15:05:58 +07:00
Shawn Schantz
d6d9feb64c
Merge branch 'master' into fix/mac/9308-no-package-info 2024-08-30 12:55:23 +07:00
Shawn Schantz
0aa4be5584
Merge pull request #12144 from keymanapp/change/mac/2542-use-partial-keyboard-paths
change(mac): store partial path in UserDefaults
2024-08-30 12:36:17 +07:00
Shawn Schantz
a283fd1391
Merge pull request #12106 from keymanapp/change/mac/2542-store-keyboards-elsewhere
change(mac): store data in Library directory instead of Documents
2024-08-30 12:35:36 +07:00
sgschantz
9ddb7ba329 change(mac): encapsulate active keyboards access in KMSettingsRepository 2024-08-30 09:38:58 +07:00
sgschantz
569a8a8a49 fix(mac): eliminate all use of deprecated API beginSheetModalForWindow
beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:
was deprecated in macOS 10.10 and replaced by
beginSheetModalForWindow:completionHandler:

The newer API automatically closes the sheet.
Explicitly closing the sheet also seemed to be causing
the parent windows to close.

Fixes: #9308
2024-08-29 15:38:00 +07:00
Darcy Wong
1d55100cb3 chore(common): Update crowdin strings for Czech 2024-08-29 14:54:48 +07:00
sgschantz
24daed27f7 change(mac): minor comment cleanup
Fixes: #2542
2024-08-28 12:54:42 +07:00
Shawn Schantz
31a545bcf2
Merge branch 'change/mac/2542-store-keyboards-elsewhere' into change/mac/2542-use-partial-keyboard-paths 2024-08-28 12:46:27 +07:00
Shawn Schantz
8dd258d485
Merge branch 'master' into change/mac/2542-store-keyboards-elsewhere 2024-08-27 13:09:25 +07:00
sgschantz
ea6e29581b change(mac): some minor changes after review comments 2024-08-27 13:06:37 +07:00
Shawn Schantz
930221376c fix(mac): show package info after keyboard install
Move to updated APIs that no longer require window dismissal.

Fixes: #9308
2024-08-27 04:19:51 +07:00
Shawn Schantz
2b752bf7ef
Merge branch 'master' into fix/mac/12197-invalid-version-string 2024-08-26 14:02:44 +07:00
sgschantz
24f4a61ada change(mac): responded to review comments 2024-08-21 17:05:07 +07:00
Shawn Schantz
f074edaccf
Merge branch 'master' into fix/mac/11674-crash-during-compliance-check 2024-08-21 11:19:35 +07:00
sgschantz
a26389bfea test(mac): removed commented code 2024-08-21 11:12:43 +07:00
sgschantz
5c96f8f769 fix(mac): remove text from short bundle version string
in info.plist for both input method and engine, remove
the framing text so that it just contains the version
number triplet

Fixes: #12197
2024-08-20 16:14:40 +07:00
sgschantz
49bfd08fb3 change(mac): persist options fix when dictionary exists
testing showed that when an option already existed,
it would be deleted when attempting to update it to
a new value
2024-08-19 12:49:46 +07:00
sgschantz
5364a741da change(mac): some refactoring
Mostly taking advantage of KMSettingsRepository so
that more of the UserDefaults changes happen through it
Still some refactoring remains for active keyboards list
2024-08-16 16:34:19 +07:00
sgschantz
b1685f5865 change(mac): use partial paths in settings
converts partial paths to full paths as needed
and vice-versa when moving between file
system access and referencing keyboards
in UserDefaults
2024-08-15 15:41:38 +07:00
sgschantz
1e805949ae change(mac): store partial path in UserDefaults 2024-08-09 14:49:37 +07:00
Shawn Schantz
05918b5f04
Merge branch 'master' into change/mac/2542-store-keyboards-elsewhere 2024-08-09 14:38:33 +07:00
sgschantz
5c250cdd6e chore(mac): updated mac project settings to include Greek localization 2024-08-08 12:25:43 +07:00
Darcy Wong
95e0090b74 fix(mac): Specify el.lproj folders 2024-08-07 10:01:42 +07:00
Darcy Wong
83f46c8e5e chore(common): Update localization for Greek Polytonic 2024-08-07 05:59:35 +07:00
Shawn Schantz
8b408730b7 change(mac): uses Library directory instead of Documents
Write new key KMDataModelVersion in UserDefaults with
integer value that determines how data is expected to be stored.
Migrates existing Keyman data to new location if it was written
with an older (or no) version.

Fixes: #2542
2024-08-06 17:14:34 +07:00
Shawn Schantz
b435090a6f change(mac): migrates options and changes keyboards successfully 2024-08-05 16:43:02 +07:00
sgschantz
c2e2cf53c6 change(mac): successful migration but not loading from config 2024-08-02 15:21:56 +07:00
sgschantz
4fb5d74f49 change(mac): implemented data migration and settings path updates 2024-08-01 17:00:07 +07:00
sgschantz
ec2e48c11f change(mac): moved directory locations into KMDataRepository 2024-07-31 15:58:40 +07:00
sgschantz
bff17dc1c2 change(mac): customize menus after all views are created
rather than reading from disk and adding keyboards include
awakeFromNib, do so in applicationDidFinishLaunching
2024-07-31 10:52:34 +07:00
sgschantz
37dcacc0cb change(mac): add KMDataRepository class to handle data (keyboards) migration 2024-07-30 16:08:34 +07:00
Shawn Schantz
9e4721cc25
Merge pull request #11947 from keymanapp/change/mac/11623-add-sentry-breadcrumbs
change(mac): add custom tags in sentry to better identify errors
2024-07-30 08:43:43 +07:00
Shawn Schantz
5488e32be2 change(mac): add class to encapsulate settings 2024-07-29 16:01:58 +07:00
Darcy Wong
75164e3099 chore(common): Update Crowdin strings for Portuguese 2024-07-17 17:10:57 -05:00
Shawn Schantz
333de576c8 change(mac): remove test code 2024-07-10 21:45:18 -04:00
sgschantz
59013ae478 change(mac): add custom sentry tags to provide crash context
still need to add breadcrumbs and remove test code
2024-06-15 17:24:34 +07:00
sgschantz
e1e58f2cef fix(mac): change build configuration to prevent cycle error in Xcode 15
Fixes: #11726
2024-06-07 10:15:46 +07:00
sgschantz
83c06299ba fix(mac): rollback runOnlyForDeploymentPostprocessing change
break into separate PR
2024-06-07 09:35:02 +07:00
sgschantz
39ae61a835 fix(mac): add unit tests to confirm first calls to compliance check
Also makes public the description method used for logging.
A private description method may have been an issue with
the older logging code.
To build successfully with Xcode, it was necessary to
change runOnlyForDeploymentPostprocessing=1. This was
apparently needed because of the upgrade to Xcode 15
2024-06-06 16:31:11 +07:00
Joshua Horton
320b72bd4a Merge branch 'master' into chore/mac/main-build.sh-rework 2024-05-30 09:52:25 +07:00
Joshua Horton
7008a3972e chore(mac): replaces more 'typeset' uses 2024-05-29 08:28:18 +07:00
Joshua Horton
12cb94c5a3
change(mac): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-05-29 08:26:45 +07:00
Shawn Schantz
b068f94537
Merge pull request #11515 from keymanapp/fix/mac/10997-adopt-unified-logging
change(mac): adopt unified logging APIs
2024-05-27 09:11:45 +07:00
Joshua Horton
e49d26ad9d change(mac): relocates one shell var definition 2024-05-27 09:04:58 +07:00
sgschantz
1d5ef914ce fix(mac): adopt unified logging
address review comments
2024-05-27 08:58:25 +07:00
Joshua Horton
45e0d875b3 fix(mac): -e to check if dir exists, as -f doesn't match against dirs 2024-05-27 08:48:26 +07:00