Skip to content

Commit 0c56fe2

Browse files
committed
Publish commit
1 parent 48706b7 commit 0c56fe2

File tree

8 files changed

+9
-51
lines changed

8 files changed

+9
-51
lines changed

.idea/compiler.xml

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/res/layout/activity_main.xml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
android:id="@+id/button"
1212
android:layout_width="wrap_content"
1313
android:layout_height="wrap_content"
14-
android:background="@drawable/button_bg"
1514
android:onClick="showDatePicker"
1615
android:text="@string/open_date_picker"
1716
android:theme="@null"

build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ buildscript {
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle:8.6.0")
15+
classpath("com.android.tools.build:gradle:8.7.2")
1616
classpath(kotlin("gradle-plugin", version = "1.9.20"))
1717
}
18+
1819
}
1920

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ pluginManagement {
1212
}
1313
}
1414
dependencyResolutionManagement {
15-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1615
repositories {
1716
google()
1817
mavenCentral()
18+
maven { url = uri("https://jitpack.io") } // Add JitPack repository
1919
}
2020
}
2121

+2-38
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.jetbrains.kotlin.android)
4-
id("maven-publish") // Ensure the plugin is applied
54
}
65

76
android {
@@ -23,10 +22,12 @@ android {
2322
)
2423
}
2524
}
25+
2626
compileOptions {
2727
sourceCompatibility = JavaVersion.VERSION_17
2828
targetCompatibility = JavaVersion.VERSION_17
2929
}
30+
3031
kotlinOptions {
3132
jvmTarget = "17"
3233
}
@@ -40,40 +41,3 @@ dependencies {
4041
androidTestImplementation(libs.androidx.junit)
4142
androidTestImplementation(libs.androidx.espresso.core)
4243
}
43-
44-
afterEvaluate {
45-
publishing {
46-
publications {
47-
create<MavenPublication>("release") {
48-
from(components["release"])
49-
groupId = "com.github.styropyr0"
50-
artifactId = "styro-custom-date-picker"
51-
version = "1.0.1"
52-
53-
pom {
54-
name.set("Customizable Date Picker")
55-
description.set("A custom date picker library for Android.")
56-
url.set("https://github.com/styropyr0/CustomizableDatePicker")
57-
licenses {
58-
license {
59-
name.set("Apache License 2.0")
60-
url.set("https://opensource.org/licenses/Apache-2.0")
61-
}
62-
}
63-
developers {
64-
developer {
65-
id.set("styropyr0")
66-
name.set("Saurav Sajeev")
67-
email.set("[email protected]")
68-
}
69-
}
70-
scm {
71-
connection.set("scm:git:github.com/styropyr0/CustomizableDatePicker.git")
72-
developerConnection.set("scm:git:ssh://github.com/styropyr0/CustomizableDatePicker.git")
73-
url.set("https://github.com/styropyr0/CustomizableDatePicker")
74-
}
75-
}
76-
}
77-
}
78-
}
79-
}

0 commit comments

Comments
 (0)