114 lines
3.4 KiB
Groovy
114 lines
3.4 KiB
Groovy
plugins {
|
|
alias libs.plugins.android.library
|
|
alias libs.plugins.kotlin.android
|
|
alias libs.plugins.kotlin.parcelize
|
|
id 'maven-publish'
|
|
}
|
|
|
|
def VERSION_NAME = "1.3.2"
|
|
|
|
android {
|
|
namespace 'com.navi.uitron'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
minSdk 21
|
|
targetSdk 33
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion libs.versions.compose.lib.get()
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
if (project.hasProperty('NEXUS_URL')) {
|
|
maven {
|
|
url = "$NEXUS_URL"
|
|
credentials {
|
|
username = "$NEXUS_USERNAME"
|
|
password = "$NEXUS_PASSWORD"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
if (project.hasProperty('NEXUS_URL')) {
|
|
maven(MavenPublication) {
|
|
artifactId = "uitron"
|
|
groupId = "com.navi.medici"
|
|
|
|
if ("$IS_SNAPSHOT" == "false") {
|
|
version = "$VERSION_NAME"
|
|
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-releases:com%2Fnavi%2Fmedici%2Fuitron%2F$version")
|
|
} else {
|
|
version = "$VERSION_NAME-SNAPSHOT"
|
|
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-snapshots:com%2Fnavi%2Fmedici%2Fuitron%2F$version")
|
|
}
|
|
artifact("build/outputs/aar/navi-uitron-release.aar")
|
|
pom.withXml {
|
|
def dependenciesNode = asNode().appendNode('dependencies')
|
|
configurations.implementation.allDependencies.each {
|
|
def dependencyNode = dependenciesNode.appendNode('dependency')
|
|
dependencyNode.appendNode('groupId', it.group)
|
|
dependencyNode.appendNode('artifactId', it.name)
|
|
dependencyNode.appendNode('version', it.version)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform(libs.androidx.compose.bom)
|
|
|
|
implementation libs.accompanist.pager
|
|
implementation libs.accompanist.pagerIndicators
|
|
|
|
implementation libs.android.material
|
|
|
|
implementation libs.androidx.activity.compose
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.compose.material
|
|
implementation libs.androidx.compose.material3
|
|
implementation libs.androidx.compose.ui.toolingPreview
|
|
implementation libs.androidx.compose.ui.ui
|
|
implementation libs.androidx.constraintlayoutCompose
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.androidx.hilt.navigation.compose
|
|
implementation libs.androidx.lifecycle.runtime.ktx
|
|
|
|
implementation libs.gson
|
|
|
|
implementation libs.lottieCompose
|
|
|
|
implementation libs.mvel2
|
|
|
|
api libs.coil.compose
|
|
|
|
androidTestImplementation libs.androidx.test.junit
|
|
|
|
testImplementation libs.junit
|
|
}
|