Skip to content

Commit

Permalink
deploy: ed7500f
Browse files Browse the repository at this point in the history
  • Loading branch information
ericksli committed Aug 18, 2024
1 parent bdc3128 commit 0e0d6b3
Show file tree
Hide file tree
Showing 42 changed files with 221 additions and 60 deletions.
3 changes: 2 additions & 1 deletion 2024/06/firebase-cloud-messaging-legacy-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
</span></span><span class=line><span class=cl> <span class=p>.</span><span class=n>createScoped</span><span class=p>(</span><span class=cm>/* ... */</span><span class=p>)</span>
</span></span><span class=line><span class=cl><span class=n>googleCredentials</span><span class=p>.</span><span class=n>refresh</span><span class=p>()</span>
</span></span><span class=line><span class=cl><span class=k>val</span> <span class=py>accessToken</span> <span class=p>=</span> <span class=n>googleCredentials</span><span class=p>.</span><span class=n>accessToken</span><span class=p>.</span><span class=n>tokenValue</span>
</span></span></code></pre></div><p><code>Authorization</code> header 的值是 <code>"Bearer $accessToken"</code></p></div><footer class=post-footer><ul class=post-tags><li><a href=https://eric.swiftzer.net/tags/android/>Android</a></li><li><a href=https://eric.swiftzer.net/tags/firebase/>Firebase</a></li></ul><nav class=paginav><a class=next href=https://eric.swiftzer.net/2024/02/android-webview/><span class=title>下一頁 »</span><br><span>Android WebView 筆記</span></a></nav></footer><div id=disqus_thread></div><script>window.disqus_config=function(){},function(){if(["localhost","127.0.0.1"].indexOf(window.location.hostname)!=-1){document.getElementById("disqus_thread").innerHTML="Disqus comments not available by default when the website is previewed locally.";return}var t=document,e=t.createElement("script");e.async=!0,e.src="//efilm.disqus.com/embed.js",e.setAttribute("data-timestamp",+new Date),(t.head||t.body).appendChild(e)}()</script><noscript>Please enable JavaScript to view the <a href=https://disqus.com/?ref_noscript>comments powered by Disqus.</a></noscript><a href=https://disqus.com class=dsq-brlink>comments powered by <span class=logo-disqus>Disqus</span></a></article></main><footer class=footer><span>&copy; 2024 <a href=https://eric.swiftzer.net/>EricLog</a></span>
</span></span></code></pre></div><p><code>Authorization</code> header 的值是 <code>"Bearer $accessToken"</code></p></div><footer class=post-footer><ul class=post-tags><li><a href=https://eric.swiftzer.net/tags/android/>Android</a></li><li><a href=https://eric.swiftzer.net/tags/firebase/>Firebase</a></li></ul><nav class=paginav><a class=prev href=https://eric.swiftzer.net/2024/08/androidx-navigation-compose-type-safety/><span class=title>« 上一頁</span><br><span>AndroidX Navigation component for Jetpack Compose type safety</span>
</a><a class=next href=https://eric.swiftzer.net/2024/02/android-webview/><span class=title>下一頁 »</span><br><span>Android WebView 筆記</span></a></nav></footer><div id=disqus_thread></div><script>window.disqus_config=function(){},function(){if(["localhost","127.0.0.1"].indexOf(window.location.hostname)!=-1){document.getElementById("disqus_thread").innerHTML="Disqus comments not available by default when the website is previewed locally.";return}var t=document,e=t.createElement("script");e.async=!0,e.src="//efilm.disqus.com/embed.js",e.setAttribute("data-timestamp",+new Date),(t.head||t.body).appendChild(e)}()</script><noscript>Please enable JavaScript to view the <a href=https://disqus.com/?ref_noscript>comments powered by Disqus.</a></noscript><a href=https://disqus.com class=dsq-brlink>comments powered by <span class=logo-disqus>Disqus</span></a></article></main><footer class=footer><span>&copy; 2024 <a href=https://eric.swiftzer.net/>EricLog</a></span>
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg>
Expand Down
153 changes: 153 additions & 0 deletions 2024/08/androidx-navigation-compose-type-safety/index.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion archives/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>EricLog</title><link>https://eric.swiftzer.net/</link><description>Recent content on EricLog</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Sat, 01 Jun 2024 14:00:00 +0800</lastBuildDate><atom:link href="https://eric.swiftzer.net/index.xml" rel="self" type="application/rss+xml"/><item><title>Firebase Cloud Messaging legacy API</title><link>https://eric.swiftzer.net/2024/06/firebase-cloud-messaging-legacy-api/</link><pubDate>Sat, 01 Jun 2024 14:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/06/firebase-cloud-messaging-legacy-api/</guid><description>如果有用 Firebase Cloud Messaging (FCM) 或者其他關於 FCM 的第三方 SDK 的話應該會收到通知說 6 月 21 日會停用舊版的 FCM API(即是供 server 發送 notification 那個 API endpoint)。之後就要轉</description></item><item><title>Android WebView 筆記</title><link>https://eric.swiftzer.net/2024/02/android-webview/</link><pubDate>Sat, 24 Feb 2024 11:45:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/02/android-webview/</guid><description>好幾年都沒有特別去用 Android 的 WebView,近期工作需要用到 WebView,所以特別去查一下並將資料放在這篇文章內方便日後翻查。 AndroidX WebKit AndroidX 其實有 WebKit 的</description></item><item><title>Android 14 migration</title><link>https://eric.swiftzer.net/2024/02/android-14-migration/</link><pubDate>Fri, 02 Feb 2024 00:05:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/02/android-14-migration/</guid><description>最近把 MetroRide 的 API level 升到 34 (Android 14),中間發現了一些問題,在這裏記錄一下。 Foreground service MetroRide 有用到 AndroidX WorkManager 來下載離線資料並放到 SQLite database 內,而且開了 foreground service。在 Android</description></item><item><title>Android pseudolocale</title><link>https://eric.swiftzer.net/2023/07/android-pseudolocale/</link><pubDate>Fri, 14 Jul 2023 23:40:00 +0800</pubDate><guid>https://eric.swiftzer.net/2023/07/android-pseudolocale/</guid><description>在處理 app UI 多國語言時,我們不時要留意是不是預留了足夠空間來顯示文字。一般而言,中文內容通常都比其他語言短,你的 UI 可能看起來沒有問題,但換到其</description></item><item><title>Android 13 Per-app Language Preferences</title><link>https://eric.swiftzer.net/2023/01/android-13-per-app-language-preferences/</link><pubDate>Wed, 25 Jan 2023 14:27:00 +0800</pubDate><guid>https://eric.swiftzer.net/2023/01/android-13-per-app-language-preferences/</guid><description>最近抽點時間把 MetroRide 參照 Now in Android 示範項目更新一下,例如改用 TOML 版的 version catalog(之前是用 Kotlin DSL)、轉用 includeBuild 加 convention plugin 取代之前把 plugin 放在 buildSrc 內、更新 dependency 版本</description></item><item><title>裝備</title><link>https://eric.swiftzer.net/gear/</link><pubDate>Sat, 31 Dec 2022 00:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/gear/</guid><description>現正持有 相機 Olympus OM-D E-M10 這是我第一部可換鏡頭相機,於 2015 年 6 月購入。本來是考慮 Sony α6000,但最後因為價錢和 M4/3 系統鏡頭數量所以最後買了 E-M10。這</description></item><item><title>Jetpack Compose Navigation component sub-graph</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-navigation-component-sub-graph/</link><pubDate>Wed, 27 Jul 2022 21:30:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-navigation-component-sub-graph/</guid><description>這次遷移到 Compose 時特別花了時間試用 Compose 的 Navigation component,終於弄清 nested graph 的意義。其實 Compose 的 Navigation component 底層都是跟 XML 版的 Navigation component 一樣,只是底層多了以 route 形式的處理</description></item><item><title>Jetpack Compose 遷移 (2)</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-2/</link><pubDate>Tue, 26 Jul 2022 14:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-2/</guid><description>上一篇提過如何將 MetroRide 由傳統 view system 遷移到 Jetpack Compose。但一篇又太長,所以分拆成兩篇。 Dependency injection 按照官方的建議,composable function 要用到的 dependency 應該由</description></item><item><title>Jetpack Compose 遷移 (1)</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-1/</link><pubDate>Sun, 24 Jul 2022 14:06:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-1/</guid><description>近幾個月斷斷續續替 MetroRide 的界面由傳統 view system(即是 layout XML)轉為 Jetpack Compose,順帶補上去年參加 iThome 鐵人賽時用來做示範的重鐵抵站時間功能。</description></item><item><title>AndroidX Room Relational Query Method</title><link>https://eric.swiftzer.net/2022/01/androidx-room-relational-query-method/</link><pubDate>Sat, 29 Jan 2022 00:15:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/01/androidx-room-relational-query-method/</guid><description>最近為 MetroRide 做新功能,剛好有個地方可以用到 Room 2.4 的新功能:Relational Query Method。這個功能可以把平常 table 之間的 relationship 用 Map 一次過 return 出來,不用像</description></item></channel></rss>
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>EricLog</title><link>https://eric.swiftzer.net/</link><description>Recent content on EricLog</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Sun, 18 Aug 2024 22:00:00 +0800</lastBuildDate><atom:link href="https://eric.swiftzer.net/index.xml" rel="self" type="application/rss+xml"/><item><title>AndroidX Navigation component for Jetpack Compose type safety</title><link>https://eric.swiftzer.net/2024/08/androidx-navigation-compose-type-safety/</link><pubDate>Sun, 18 Aug 2024 22:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/08/androidx-navigation-compose-type-safety/</guid><description>AndroidX Navigation component 是 Google 推出的 single Activity app navigation library。本身是用 Fragment 來做每一頁的內容,然後再用新的 Android resource type——navigation 來定義 navigation graph(即是</description></item><item><title>Firebase Cloud Messaging legacy API</title><link>https://eric.swiftzer.net/2024/06/firebase-cloud-messaging-legacy-api/</link><pubDate>Sat, 01 Jun 2024 14:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/06/firebase-cloud-messaging-legacy-api/</guid><description>如果有用 Firebase Cloud Messaging (FCM) 或者其他關於 FCM 的第三方 SDK 的話應該會收到通知說 6 月 21 日會停用舊版的 FCM API(即是供 server 發送 notification 那個 API endpoint)。之後就要轉</description></item><item><title>Android WebView 筆記</title><link>https://eric.swiftzer.net/2024/02/android-webview/</link><pubDate>Sat, 24 Feb 2024 11:45:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/02/android-webview/</guid><description>好幾年都沒有特別去用 Android 的 WebView,近期工作需要用到 WebView,所以特別去查一下並將資料放在這篇文章內方便日後翻查。 AndroidX WebKit AndroidX 其實有 WebKit 的</description></item><item><title>Android 14 migration</title><link>https://eric.swiftzer.net/2024/02/android-14-migration/</link><pubDate>Fri, 02 Feb 2024 00:05:00 +0800</pubDate><guid>https://eric.swiftzer.net/2024/02/android-14-migration/</guid><description>最近把 MetroRide 的 API level 升到 34 (Android 14),中間發現了一些問題,在這裏記錄一下。 Foreground service MetroRide 有用到 AndroidX WorkManager 來下載離線資料並放到 SQLite database 內,而且開了 foreground service。在 Android</description></item><item><title>Android pseudolocale</title><link>https://eric.swiftzer.net/2023/07/android-pseudolocale/</link><pubDate>Fri, 14 Jul 2023 23:40:00 +0800</pubDate><guid>https://eric.swiftzer.net/2023/07/android-pseudolocale/</guid><description>在處理 app UI 多國語言時,我們不時要留意是不是預留了足夠空間來顯示文字。一般而言,中文內容通常都比其他語言短,你的 UI 可能看起來沒有問題,但換到其</description></item><item><title>Android 13 Per-app Language Preferences</title><link>https://eric.swiftzer.net/2023/01/android-13-per-app-language-preferences/</link><pubDate>Wed, 25 Jan 2023 14:27:00 +0800</pubDate><guid>https://eric.swiftzer.net/2023/01/android-13-per-app-language-preferences/</guid><description>最近抽點時間把 MetroRide 參照 Now in Android 示範項目更新一下,例如改用 TOML 版的 version catalog(之前是用 Kotlin DSL)、轉用 includeBuild 加 convention plugin 取代之前把 plugin 放在 buildSrc 內、更新 dependency 版本</description></item><item><title>裝備</title><link>https://eric.swiftzer.net/gear/</link><pubDate>Sat, 31 Dec 2022 00:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/gear/</guid><description>現正持有 相機 Olympus OM-D E-M10 這是我第一部可換鏡頭相機,於 2015 年 6 月購入。本來是考慮 Sony α6000,但最後因為價錢和 M4/3 系統鏡頭數量所以最後買了 E-M10。這</description></item><item><title>Jetpack Compose Navigation component sub-graph</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-navigation-component-sub-graph/</link><pubDate>Wed, 27 Jul 2022 21:30:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-navigation-component-sub-graph/</guid><description>這次遷移到 Compose 時特別花了時間試用 Compose 的 Navigation component,終於弄清 nested graph 的意義。其實 Compose 的 Navigation component 底層都是跟 XML 版的 Navigation component 一樣,只是底層多了以 route 形式的處理</description></item><item><title>Jetpack Compose 遷移 (2)</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-2/</link><pubDate>Tue, 26 Jul 2022 14:00:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-2/</guid><description>上一篇提過如何將 MetroRide 由傳統 view system 遷移到 Jetpack Compose。但一篇又太長,所以分拆成兩篇。 Dependency injection 按照官方的建議,composable function 要用到的 dependency 應該由</description></item><item><title>Jetpack Compose 遷移 (1)</title><link>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-1/</link><pubDate>Sun, 24 Jul 2022 14:06:00 +0800</pubDate><guid>https://eric.swiftzer.net/2022/07/jetpack-compose-migration-1/</guid><description>近幾個月斷斷續續替 MetroRide 的界面由傳統 view system(即是 layout XML)轉為 Jetpack Compose,順帶補上去年參加 iThome 鐵人賽時用來做示範的重鐵抵站時間功能。</description></item></channel></rss>
Loading

0 comments on commit 0e0d6b3

Please sign in to comment.