Skip to content

Conversation

@sebastianekstrom
Copy link
Contributor

@sebastianekstrom sebastianekstrom commented Dec 12, 2025

📋 Summary

This PR will add an iOS widget based on the @bacons/apple-targets package.

Dark mode Light mode Lock screen
Simulator Screenshot - iPhone 17 #15 - 2025-12-12 at 13 46 57 Simulator Screenshot - iPhone 17 #15 - 2025-12-12 at 13 47 02 Simulator Screenshot - iPhone 17 #15 - 2025-12-12 at 13 47 11

@vercel
Copy link

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Review Updated (UTC)
polar Ignored Ignored Preview Dec 15, 2025 4:15pm
polar-sandbox Ignored Ignored Preview Dec 15, 2025 4:15pm

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

useEffect(() => {
AppState.addEventListener('change', (state) => {
if (state === 'background') {
ExtensionStorage.reloadWidget()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to the docs:

A widget’s budget applies to a 24-hour period. WidgetKit tunes the 24-hour window to the user’s daily usage pattern, which means the daily budget doesn’t necessarily reset at exactly midnight. For a widget the user frequently views, a daily budget typically includes from 40 to 70 refreshes. This rate roughly translates to widget reloads every 15 to 60 minutes, but it’s common for these intervals to vary due to the many factors involved.

This reloadWidget() call forces the widget to reload as soon as the app enters the background to ensure it's up-to-date.

@@ -0,0 +1,102 @@
const IS_WIDGET_BUILD = process.env.EXPO_WIDGET_BUILD === "1";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Our Sentry plugin caused a few issues so I had to convert our app.json to JavaScript and conditionally add the Sentry plugin.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2025

🚀 Expo preview is ready!

  • Project → Polar
  • Platforms → android, ios
  • Scheme → polar
  • Runtime Version → 1.1.0
  • More info

Learn more about 𝝠 Expo Github Action

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

6 similar comments
@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@sebastianekstrom sebastianekstrom marked this pull request as ready for review December 15, 2025 10:21
@sebastianekstrom sebastianekstrom force-pushed the chore/ios-widget branch 2 times, most recently from 5ae25e7 to b644afc Compare December 15, 2025 16:12
@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@sebastianekstrom sebastianekstrom merged commit 1bcd560 into main Dec 16, 2025
16 checks passed
@sebastianekstrom sebastianekstrom deleted the chore/ios-widget branch December 16, 2025 12:11
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