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

Setup saving simperium token to keychain on simperium did login #1169

Merged
merged 10 commits into from
Jun 7, 2024

Conversation

charliescheer
Copy link
Contributor

Fix

So the next shortcut/intent that we need to add is to be able to update a note from a shortcut. This is best done using the simperium API so that versioning is handled on the server. To do that we need to be able to access the api token that we get in the main app on login from the intents extension. So this PR sets that up.

Test

  1. Fresh install Simplenote mac
  2. Log into your account.
  3. Go to the file OpenNoteIntentHandler.swift and in line 28 add this code:
let token = KeychainManager.extensionToken
        print("# \(token)")
  1. Run the intents extension using the Shortcuts app. Create a shortcut that opens a note (any note it doesn't matter) and run the shortcut

Confirm that you see the token in the logs

Review

(Required) Add instructions for reviewers. For example:

Only one developer and one designer are required to review these changes, but anyone can perform the review.

Release

(Required) Add a concise statement to RELEASE-NOTES.txt if the changes should be included in release notes. Include details about updating the notes in this section. For example:

RELEASE-NOTES.txt was updated in d3adb3ef with:

Added markdown support

If the changes should not be included in release notes, add a statement to this section. For example:

These changes do not require release notes.

@charliescheer charliescheer added the [feature] shortcuts Anything related to Shortcuts label Jun 3, 2024
@charliescheer charliescheer added this to the 2.21 milestone Jun 3, 2024
@charliescheer charliescheer self-assigned this Jun 3, 2024
Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Simplenote/SimplenoteAppDelegate+Swift.swift Outdated Show resolved Hide resolved
Simplenote/SimplenoteAppDelegate.m Outdated Show resolved Hide resolved
Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@@ -10,3 +10,6 @@ gem 'fastlane-plugin-sentry', '~> 1.14'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 9.2'
gem 'rake', '~> 12.3'
gem 'xcpretty-travis-formatter', '~> 1.0'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what's this for?

@charliescheer charliescheer merged commit 7ffd391 into trunk Jun 7, 2024
8 checks passed
@charliescheer charliescheer deleted the charlie/1145/share-auth-token branch June 7, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[feature] shortcuts Anything related to Shortcuts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants