Skip to content

Commit 4ddf3f2

Browse files
refactor: remove dependency on material and AppCompatActivity
1 parent 0f1232f commit 4ddf3f2

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ tasks.withType<KotlinCompile> {
5555
dependencies {
5656
// Basic android dependencies
5757
implementation("androidx.core:core-ktx:1.17.0")
58-
implementation("com.google.android.material:material:1.13.0")
5958
implementation("androidx.datastore:datastore:1.2.0")
6059
implementation("com.google.protobuf:protobuf-javalite:4.33.5")
6160
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.10.0")

app/src/main/java/org/bitcoindevkit/devkitwallet/presentation/DevkitWalletActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import android.content.Context
99
import android.os.Bundle
1010
import android.util.Log
1111
import androidx.activity.compose.setContent
12-
import androidx.appcompat.app.AppCompatActivity
12+
import androidx.activity.ComponentActivity
1313
import androidx.compose.runtime.getValue
1414
import androidx.compose.runtime.mutableStateOf
1515
import androidx.compose.runtime.setValue
@@ -38,7 +38,7 @@ private val Context.userPreferencesStore: DataStore<UserPreferences> by dataStor
3838
serializer = UserPreferencesSerializer,
3939
)
4040

41-
class DevkitWalletActivity : AppCompatActivity() {
41+
class DevkitWalletActivity : ComponentActivity() {
4242
override fun onCreate(savedInstanceState: Bundle?) {
4343
installSplashScreen()
4444

app/src/main/res/values/themes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<resources>
22
<!-- Base application theme -->
3-
<style name="Theme.BitcoindevkitSampleApp" parent="Theme.MaterialComponents.NoActionBar">
4-
<!-- Status bar color -->
3+
<style name="Theme.BitcoindevkitSampleApp" parent="android:Theme.Material.Light.NoActionBar">
4+
<item name="android:windowBackground">@color/surface</item>
55
<item name="android:statusBarColor">@color/surface</item>
66
</style>
77
</resources>

0 commit comments

Comments
 (0)