Skip to content

Commit 01bccf8

Browse files
installed dependencies
1 parent f7221be commit 01bccf8

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

app/build.gradle

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,24 @@ android {
2626
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2727
}
2828
}
29+
2930
compileOptions {
3031
sourceCompatibility JavaVersion.VERSION_1_8
3132
targetCompatibility JavaVersion.VERSION_1_8
3233
}
34+
3335
kotlinOptions {
3436
jvmTarget = '1.8'
3537
}
38+
3639
buildFeatures {
3740
compose true
3841
}
42+
3943
composeOptions {
4044
kotlinCompilerExtensionVersion '1.2.0'
4145
}
46+
4247
packagingOptions {
4348
resources {
4449
excludes += '/META-INF/{AL2.0,LGPL2.1}'
@@ -48,16 +53,21 @@ android {
4853

4954
dependencies {
5055

51-
implementation 'androidx.core:core-ktx:1.7.0'
52-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
53-
implementation 'androidx.activity:activity-compose:1.3.1'
54-
implementation "androidx.compose.ui:ui:$compose_version"
55-
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
56-
implementation 'androidx.compose.material3:material3:1.0.0-alpha11'
57-
testImplementation 'junit:junit:4.13.2'
58-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
59-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
60-
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
61-
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
62-
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
63-
}
56+
// core
57+
implementation 'androidx.core:core-ktx:1.9.0'
58+
59+
// compose ui
60+
implementation "androidx.compose.ui:ui:1.4.0-alpha04"
61+
62+
// compose preview
63+
implementation "androidx.compose.ui:ui-tooling-preview:1.4.0-alpha04"
64+
65+
// compose activity
66+
implementation 'androidx.activity:activity-compose:1.6.1'
67+
68+
// compose material3
69+
implementation 'androidx.compose.material3:material3:1.1.0-alpha04'
70+
71+
// lifecycle
72+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
73+
}

app/src/main/java/xyz/teamgravity/nestedscroll/MainActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import androidx.activity.compose.setContent
66
import androidx.compose.foundation.layout.fillMaxSize
77
import androidx.compose.material3.MaterialTheme
88
import androidx.compose.material3.Surface
9-
import androidx.compose.material3.Text
10-
import androidx.compose.runtime.Composable
119
import androidx.compose.ui.Modifier
12-
import androidx.compose.ui.tooling.preview.Preview
1310
import xyz.teamgravity.nestedscroll.ui.theme.NestedScrollTheme
1411

1512
class MainActivity : ComponentActivity() {

build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
buildscript {
2-
ext {
3-
compose_version = '1.2.0'
4-
}
5-
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
61
plugins {
7-
id 'com.android.application' version '7.4.0' apply false
8-
id 'com.android.library' version '7.4.0' apply false
2+
id 'com.android.application' version '7.3.1' apply false
3+
id 'com.android.library' version '7.3.1' apply false
94
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
105
}

0 commit comments

Comments
 (0)