File tree Expand file tree Collapse file tree
crates/tauri-cli/templates/mobile/android/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' tauri-cli ' : ' patch:changes'
3+ ---
4+
5+ Enable edge to edge in ` tauri android init ` template
Original file line number Diff line number Diff line change @@ -64,9 +64,10 @@ dependencies {
6464 implementation(platform(" {{this}}" )){{/ each}}
6565 {{~#each android- app- dependencies}}
6666 implementation(" {{this}}" ){{/ each}}
67- implementation(" androidx.webkit:webkit:1.6.1" )
68- implementation(" androidx.appcompat:appcompat:1.6.1" )
69- implementation(" com.google.android.material:material:1.8.0" )
67+ implementation(" androidx.webkit:webkit:1.14.0" )
68+ implementation(" androidx.appcompat:appcompat:1.7.1" )
69+ implementation(" androidx.activity:activity-ktx:1.10.1" )
70+ implementation(" com.google.android.material:material:1.12.0" )
7071 testImplementation(" junit:junit:4.13.2" )
7172 androidTestImplementation(" androidx.test.ext:junit:1.1.4" )
7273 androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.0" )
Original file line number Diff line number Diff line change 11package {{escape-kotlin-keyword app.identifier}}
22
3- class MainActivity : TauriActivity ()
3+ import android.os.Bundle
4+ import androidx.activity.enableEdgeToEdge
5+
6+ class MainActivity : TauriActivity () {
7+ override fun onCreate (savedInstanceState : Bundle ? ) {
8+ enableEdgeToEdge()
9+ super .onCreate(savedInstanceState)
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments