Skip to content

Commit fcff776

Browse files
Nicholas Ventimigliacopybara-github
authored andcommitted
Added jetpack compose 'compose-support' module.
PiperOrigin-RevId: 668052867
1 parent 353d2f0 commit fcff776

7 files changed

Lines changed: 70 additions & 0 deletions

File tree

kotlin/advanced/JetpackComposeDemo/app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

kotlin/advanced/JetpackComposeDemo/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
plugins {
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

78
tasks.register("clean", Delete::class) { delete(rootProject.buildDir) }
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

kotlin/advanced/JetpackComposeDemo/compose-util/consumer-rules.pro

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
</manifest>

kotlin/advanced/JetpackComposeDemo/settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ dependencyResolutionManagement {
1717
rootProject.name = "Jetpack"
1818

1919
include(":app")
20+
21+
include(":compose-util")

0 commit comments

Comments
 (0)