Add comments

This commit is contained in:
Adrian Kuta 2024-06-26 00:19:42 +02:00
parent 744593ffaf
commit 5a41df0b16
7 changed files with 45 additions and 4 deletions

1
.idea/gradle.xml generated
View File

@ -23,6 +23,7 @@
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/build-logic" />
<option value="$PROJECT_DIR$/build-logic/convention" />
<option value="$PROJECT_DIR$/dragdrop" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />

View File

@ -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)

View File

@ -11,6 +11,17 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.UnboundDragDrop"
tools:targetApi="31" />
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@ -47,5 +47,9 @@ gradlePlugin {
id = "convention.compose"
implementationClass = "ComposeConventionPlugin"
}
register("convetionLibraryPublish") {
id = "convention.android.library.publish"
implementationClass = "AndroidLibraryPublishConventionPlugin"
}
}
}

View File

@ -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
}

View File

@ -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"}

View File

@ -22,3 +22,4 @@ dependencyResolutionManagement {
rootProject.name = "Unbound Drag & Drop"
include(":app")
include(":dragdrop")