Pixel 7/7 Pro を購入するときの iPhone/Pixel シリーズ下取り価格一覧 (2022-10-08 18:00 現在)

1世代前のPixel 3が¥11,924 – ¥15,000、1世代先のPixel 5が¥49,805 – ¥61,500、Pixel 6およびPixel 6 Proが¥42,431 – ¥61,500で、最低額が最も高く設定されているのが3年前に発売された機種というあまりにも不自然な値段設定です。

👉 Pixel 7発売でPixel 4の下取り額が最大61,500円に爆上げ。中古スマホ店やメルカリから姿を消す hatena-bookmark


iPhone 6           ¥7,108 -  ¥9,380
iPhone 6 Plus      ¥7,176 - ¥10,100
iPhone 6S          ¥6,244 - ¥12,260
iPhone 6S Plus     ¥7,522 - ¥12,550
iPhone 7           ¥8,584 - ¥13,650
iPhone 7 Plus     ¥10,298 - ¥18,600
iPhone 8           ¥8,703 - ¥19,800
iPhone 8 Plus     ¥12,962 - ¥24,816
iPhone SE          ¥5,767 -  ¥9,250
iPhone SE2        ¥21,906 - ¥35,000
iPhone X          ¥12,072 - ¥25,900
iPhone XR         ¥14,614 - ¥29,202
iPhone XS         ¥14,357 - ¥33,600
iPhone XS Max     ¥22,351 - ¥40,600
iPhone 11         ¥41,885 - ¥61,500 *
iPhone 11 Pro     ¥36,876 - ¥61,500
iPhone 11 Pro Max ¥30,124 - ¥63,558
iPhone 12         ¥38,045 - ¥61,500
iPhone 12 Mini    ¥41,033 - ¥61,500
iPhone 12 Pro     ¥40,421 - ¥74,745
iPhone 12 Pro Max ¥46,777 - ¥84,915


Pixel          ¥6,469 -  ¥8,000
Pixel XL       ¥6,469 -  ¥8,000
Pixel 2        ¥5,903 -  ¥8,000
Pixel 2 XL     ¥5,165 -  ¥8,000
Pixel 3       ¥11,924 - ¥15,000
Pixel 3 XL    ¥11,211 - ¥15,000
Pixel 3a      ¥18,174 - ¥22,000
Pixel 3a XL   ¥17,462 - ¥22,000 
Pixel 4       ¥53,809 - ¥61,500 *
Pixel 4 XL    ¥52,347 - ¥61,500
Pixel 4a       ¥8,765 - ¥17,600
Pixel 4a 5G    ¥9,401 - ¥17,600
Pixel 5       ¥49,805 - ¥61,500
Pixel 5a (5G) ¥14,284 - ¥35,768
Pixel 6       ¥42,431 - ¥61,500
Pixel 6 Pro   ¥42,431 - ¥61,500

Pixel7-iPhone11
👉 Google Pixel 7 - Google ストア hatena-bookmark

このチャンスを見逃すな?!



👉 最新 Android Pixel7 端末をお得に購入するための3つのこと。 hatena-bookmark
👉 軽くて小さくて新しいスマホを買いたい iPhone14 vs Pixel7 hatena-bookmark


【Jetpack Compose】「Layout Inspector Recomposition counts」で re-compose 回数を確認する

Jetpack Compose を使っていると、

いつ、どの composable が、 compose されているか、

パフォーマンスが重ければ重いほど気になります。

確認してみましょう。

 

Layout Inspector

すごく便利そうな AndroidStudio の機能です。

【 Jetpack Compose】Layout Inspector Recomposition counts

👉 Compose のパフォーマンス  |  Jetpack Compose  |  Android Developers hatena-bookmark


[Tools]

  ↓

[Layout Inspector]

 

利用条件

端末側で設定が必要です。


表示属性検査を有効にする

【 Jetpack Compose】Layout Inspector Recomposition counts

👉 Compose のツール  |  Jetpack Compose  |  Android Developers hatena-bookmark

R8 などは OFFにする。


debug {
  minifyEnabled false // for layout inspector
  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}

あと、一番ネックになるのがこれ。

This is only available in Electric Eel at the moment:

"For even more cutting edge features, you can take a sneak peek at the Android Studio Electric Eel release in the Canary channel [...] These features will be promoted to more stable channels once we have your feedback and make improvements, so please try them out."

👉 android - Jetpack Compose: The layout inspector is not showing the menu for recomposition counts - Stack Overflow hatena-bookmark


Android Studio Electric Eel release in the Canary channel

今はまだ、非Statble な「Android Studio Electric Eel」でしか使えないようです。

JetBrains の「Toolbox」を使っていれば問題ありません。

JetBrains Toolbox で Android Studio の Stable/Beta/Canary が同時に管理できる?

使ってない人は、すぐインストールしておきましょう。

👉 JetBrains Toolbox で Android Studio の Stable/Beta/Canary が同時に管理できる? hatena-bookmark

 

結果

左下に Layout Inspector が開いたら以下。


[Component Tree]

  ↓

[View Option]

  ↓

[Show Recomposition counts]

compose counts

ヘビーな LazyVerticalGrid でやってみました。

re-compose されると、その部分が赤く変色します。



しかしこれ、

重すぎやせんか、ツールとして。

しかも、よく落ちる。

今後、期待しています。

👉 「Compose Compiler Reports」 recompose される条件とタイミングと範囲を知りたい hatena-bookmark
👉 【Jetpack Compose】LazyVerticalGrid - Profile GPU Rendering / Profile HWUI rendering - YouTube hatena-bookmark


'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead

'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead
👉 Issues with Gradle Kotlin DSL and `-Xopt-in` deprecation : KT-51708 hatena-bookmark


tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
   kotlinOptions {
     allWarningsAsErrors = false
     freeCompilerArgs += [
         "-Xopt-in=kotlin.RequiresOptIn",
         "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
         "-Xopt-in=kotlinx.coroutines.FlowPreview",
         "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi",
         "-Xopt-in=kotlin.Experimental",
     ]
   }
 }


'-Xopt-in' → '-opt-in'


tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
   kotlinOptions {
     allWarningsAsErrors = false
     freeCompilerArgs += [
         "-opt-in=kotlin.RequiresOptIn",
         "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
         "-opt-in=kotlinx.coroutines.FlowPreview",
         "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
         "-opt-in=kotlin.Experimental",
     ]
   }
 }

単純に gradle ファイル内、文字列の置換で完。

コード内アノテーションで利用の人はそのままでいいんかな。

👉 Opt-in requirement marker annotation on override requires the same marker on base declaration  hatena-bookmark
👉 AGP Upgrade Assistant で 7.2 移行時にCause: manifestData.`package` must not be null hatena-bookmark
👉 @Composable Scaffold で This material API is experimental and is likely to change or to be removed in the future. hatena-bookmark