diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 99e0e99..4a08a6a 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -23,6 +23,7 @@
+
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 47d9fac..91b305e 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -26,12 +26,21 @@ android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
+
+ buildFeatures {
+ viewBinding = true
+ }
}
dependencies {
+ implementation(libs.unbounddragdrop)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
+ implementation(libs.androidx.activity)
+ implementation(libs.androidx.constraintlayout)
+ implementation(libs.kotlinx.coroutines.android)
+ implementation(libs.androidx.lifecycle.viewmodel.ktx)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index f7ecde1..48e216e 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -11,6 +11,17 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.UnboundDragDrop"
- tools:targetApi="31" />
+ tools:targetApi="31">
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build-logic/convention/build.gradle.kts b/build-logic/convention/build.gradle.kts
index f900fff..27aef4d 100644
--- a/build-logic/convention/build.gradle.kts
+++ b/build-logic/convention/build.gradle.kts
@@ -47,5 +47,9 @@ gradlePlugin {
id = "convention.compose"
implementationClass = "ComposeConventionPlugin"
}
+ register("convetionLibraryPublish") {
+ id = "convention.android.library.publish"
+ implementationClass = "AndroidLibraryPublishConventionPlugin"
+ }
}
}
diff --git a/build.gradle.kts b/build.gradle.kts
index 603f23c..466c34f 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -3,4 +3,6 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.com.android.library) apply false
+ alias(libs.plugins.com.vanniktech.maven.publish) apply false
+ alias(libs.plugins.com.gradleup.nmcp) apply false
}
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 2a589de..dc71514 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -4,22 +4,32 @@ agp = "8.5.0"
kotlin = "1.9.0"
coreKtx = "1.13.1"
junit = "4.13.2"
-junitVersion = "1.2.0"
-espressoCore = "3.6.0"
+junitVersion = "1.1.5"
+espressoCore = "3.5.1"
appcompat = "1.7.0"
+kotlinxCoroutinesAndroid = "1.7.3"
+lifecycleViewmodelKtx = "2.8.2"
material = "1.12.0"
+activity = "1.9.0"
+constraintlayout = "2.1.4"
timber = "5.0.1"
+unboundDragDrop = "0.0.1"
[libraries]
android-tools-build-gradle-plugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
-androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
+androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifecycleViewmodelKtx" }
kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
+androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
+kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutinesAndroid" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
+androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
+androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }
+unbounddragdrop = { group = "dev.adriankuta", name = "unbound-drag-drop", version.ref = "unboundDragDrop"}
[plugins]
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
@@ -27,4 +37,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
com-android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
convention-android-application = { id = "convention.android.application", version = "unspecified" }
convention-android-library = { id = "convention.android.library", version = "unspecified" }
+convention-android-library-publish = { id = "convention.android.library.publish", version = "unspecified" }
+com-vanniktech-maven-publish = { id = "com.vanniktech.maven.publish", version = "0.29.0" }
+com-gradleup-nmcp = { id = "com.gradleup.nmcp", version = "0.0.8"}
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 960c7fa..9c4ee0c 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -22,3 +22,4 @@ dependencyResolutionManagement {
rootProject.name = "Unbound Drag & Drop"
include(":app")
+include(":dragdrop")