Skip to content

Commit fc0ac5b

Browse files
committed
updated publication gradle
1 parent 972e456 commit fc0ac5b

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

app/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ android {
3030
}
3131
}
3232
compileOptions {
33-
sourceCompatibility = JavaVersion.VERSION_17
34-
targetCompatibility = JavaVersion.VERSION_17
33+
sourceCompatibility = JavaVersion.VERSION_11
34+
targetCompatibility = JavaVersion.VERSION_11
3535
}
3636
buildFeatures {
3737
compose = true
@@ -52,7 +52,7 @@ dependencies {
5252
implementation("androidx.core:core-ktx:1.12.0")
5353
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
5454
implementation("androidx.activity:activity-compose:1.8.2")
55-
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
55+
implementation(platform("androidx.compose:compose-bom:2024.01.00"))
5656
implementation("androidx.compose.ui:ui")
5757
implementation("androidx.compose.ui:ui-graphics")
5858
implementation("androidx.compose.ui:ui-tooling-preview")

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id("com.android.application") version "8.2.1" apply false
3+
id("com.android.application") version "8.2.2" apply false
44
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
55
}

flashlighter/build.gradle.kts

+16-13
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,28 @@ android {
3636
}
3737
}
3838

39-
afterEvaluate {
40-
publishing {
41-
publications {
42-
// Creates a Maven publication called "release".
43-
create<MavenPublication>("release") {
44-
// Applies the component for the release build variant.
45-
from(components["release"])
39+
publishing {
40+
publications {
41+
// Creates a Maven publication called "release".
42+
create<MavenPublication>("release") {
43+
// You can then customize attributes of the publication as shown below.
44+
groupId = "com.lumstep"
45+
artifactId = "flashlighter"
46+
version = "1.0.0"
47+
artifact("${layout.projectDirectory}/build/outputs/aar/flashlighter-release.aar")
48+
}
49+
}
4650

47-
// You can then customize attributes of the publication as shown below.
48-
groupId = "com.lumstep"
49-
artifactId = "flashlighter"
50-
version = "1.0.0"
51-
}
51+
repositories {
52+
maven {
53+
name = "GithubPackages"
54+
url = uri("https://maven.pkg.github.com/lumstep/flashlighter")
5255
}
5356
}
5457
}
5558

5659
dependencies {
57-
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
60+
implementation(platform("androidx.compose:compose-bom:2024.01.00"))
5861
implementation("androidx.compose.ui:ui")
5962
implementation("androidx.compose.ui:ui-graphics")
6063
implementation("androidx.compose.foundation:foundation")

0 commit comments

Comments
 (0)