File tree Expand file tree Collapse file tree
kotlin/advanced/JetpackComposeDemo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,5 +46,6 @@ dependencies {
4646 implementation(" androidx.compose.foundation:foundation" )
4747 implementation(" com.google.android.gms:play-services-ads:23.3.0" )
4848 implementation(" com.google.android.ump:user-messaging-platform:3.0.0" )
49+ implementation(project(" :compose-util" ))
4950 debugImplementation(" androidx.compose.ui:ui-tooling" )
5051}
Original file line number Diff line number Diff line change 22plugins {
33 id(" com.android.application" ) version " 8.2.2" apply false
44 id(" org.jetbrains.kotlin.android" ) version " 1.9.0" apply false
5+ id(" com.android.library" ) version " 8.2.2" apply false
56}
67
78tasks.register(" clean" , Delete ::class ) { delete(rootProject.buildDir) }
Original file line number Diff line number Diff line change 1+ plugins {
2+ id(" com.android.library" )
3+ id(" org.jetbrains.kotlin.android" )
4+ }
5+
6+ android {
7+ namespace = " com.google.android.gms.example"
8+ compileSdk = 35
9+
10+ defaultConfig {
11+ minSdk = 24
12+
13+ consumerProguardFiles(" consumer-rules.pro" )
14+ }
15+
16+ buildTypes {
17+ release {
18+ isMinifyEnabled = false
19+ proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
20+ }
21+ }
22+ compileOptions {
23+ sourceCompatibility = JavaVersion .VERSION_17
24+ targetCompatibility = JavaVersion .VERSION_17
25+ }
26+ kotlinOptions { jvmTarget = " 17" }
27+ buildFeatures { compose = true }
28+ composeOptions { kotlinCompilerExtensionVersion = " 1.5.1" }
29+ }
30+
31+ dependencies {
32+ implementation(" androidx.core:core-ktx:1.13.1" )
33+ implementation(" androidx.lifecycle:lifecycle-runtime-ktx:2.8.3" )
34+ implementation(platform(" androidx.compose:compose-bom:2024.06.00" ))
35+ implementation(" androidx.compose.ui:ui" )
36+ implementation(" androidx.compose.ui:ui-graphics" )
37+ implementation(" androidx.compose.material3:material3" )
38+ implementation(" androidx.compose.foundation:foundation" )
39+ implementation(" com.google.android.gms:play-services-ads:23.2.0" )
40+ debugImplementation(" androidx.compose.ui:ui-tooling" )
41+ }
Original file line number Diff line number Diff line change 1+ # Add project specific ProGuard rules here.
2+ # You can control the set of applied configuration files using the
3+ # proguardFiles setting in build.gradle.
4+ #
5+ # For more details, see
6+ # http://developer.android.com/guide/developing/tools/proguard.html
7+
8+ # If your project uses WebView with JS, uncomment the following
9+ # and specify the fully qualified class name to the JavaScript interface
10+ # class:
11+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+ # public *;
13+ #}
14+
15+ # Uncomment this to preserve the line number information for
16+ # debugging stack traces.
17+ #-keepattributes SourceFile,LineNumberTable
18+
19+ # If you keep the line number information, uncomment this to
20+ # hide the original source file name.
21+ #-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3+
4+ </manifest >
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ dependencyResolutionManagement {
1717rootProject.name = " Jetpack"
1818
1919include(" :app" )
20+
21+ include(" :compose-util" )
You can’t perform that action at this time.
0 commit comments