2023-04-07 16:30:15 +05:30
|
|
|
plugins {
|
2023-12-20 15:57:20 +05:30
|
|
|
alias libs.plugins.android.library
|
|
|
|
|
alias libs.plugins.kotlin.android
|
|
|
|
|
alias libs.plugins.kotlin.parcelize
|
2024-06-13 23:26:13 +05:30
|
|
|
alias libs.plugins.maven.publish
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|
|
|
|
|
|
2024-09-11 19:28:48 +05:30
|
|
|
def VERSION = "1.22.0"
|
2023-04-08 02:29:02 +05:30
|
|
|
|
2023-04-07 16:30:15 +05:30
|
|
|
android {
|
|
|
|
|
namespace 'com.navi.uitron'
|
2023-11-24 13:20:52 +05:30
|
|
|
compileSdk 34
|
2023-04-07 16:30:15 +05:30
|
|
|
|
|
|
|
|
defaultConfig {
|
2024-05-14 11:27:47 -07:00
|
|
|
minSdk 23
|
2024-08-08 19:38:14 +05:30
|
|
|
targetSdk 34
|
2023-04-07 16:30:15 +05:30
|
|
|
|
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
2024-05-05 10:01:54 -07:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|
|
|
|
|
|
2024-05-05 10:01:54 -07:00
|
|
|
buildFeatures {
|
|
|
|
|
buildConfig true
|
|
|
|
|
compose true
|
|
|
|
|
}
|
2023-04-07 16:30:15 +05:30
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
2023-09-19 18:52:18 +05:30
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|
|
|
|
|
composeOptions {
|
2023-12-20 15:57:20 +05:30
|
|
|
kotlinCompilerExtensionVersion libs.versions.compose.lib.get()
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|
2024-05-05 10:01:54 -07:00
|
|
|
kotlinOptions {
|
|
|
|
|
freeCompilerArgs += ["-Xstring-concat=inline"]
|
|
|
|
|
jvmTarget = '17'
|
|
|
|
|
}
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|
|
|
|
|
|
2023-04-08 02:29:02 +05:30
|
|
|
publishing {
|
|
|
|
|
repositories {
|
2024-05-05 10:01:54 -07:00
|
|
|
if (project.hasProperty('NEXUS_URL')
|
|
|
|
|
&& project.hasProperty('NEXUS_USERNAME')
|
|
|
|
|
&& project.hasProperty('NEXUS_PASSWORD')) {
|
2023-04-08 02:29:02 +05:30
|
|
|
maven {
|
|
|
|
|
url = "$NEXUS_URL"
|
|
|
|
|
credentials {
|
|
|
|
|
username = "$NEXUS_USERNAME"
|
|
|
|
|
password = "$NEXUS_PASSWORD"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
publications {
|
|
|
|
|
if (project.hasProperty('NEXUS_URL')) {
|
|
|
|
|
maven(MavenPublication) {
|
2024-05-05 10:01:54 -07:00
|
|
|
if ("$NEXUS_URL".contains("maven-releases")) {
|
|
|
|
|
version = "$VERSION"
|
2023-04-10 20:07:00 +05:30
|
|
|
} else {
|
2024-05-05 10:01:54 -07:00
|
|
|
version = "$VERSION-SNAPSHOT"
|
2023-04-10 20:07:00 +05:30
|
|
|
}
|
2024-05-05 10:01:54 -07:00
|
|
|
artifactId = "uitron"
|
|
|
|
|
groupId = "com.navi.android"
|
|
|
|
|
|
|
|
|
|
artifact("build/outputs/aar/navi-uitron-${BUILD_TYPE}.aar")
|
2024-07-16 12:04:23 +05:30
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-08 02:29:02 +05:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-07 16:30:15 +05:30
|
|
|
dependencies {
|
2024-09-23 13:46:29 +05:30
|
|
|
api(libs.androidx.media3.exoplayer) {
|
|
|
|
|
exclude group: "com.google.guava", module: "guava"
|
|
|
|
|
}
|
|
|
|
|
api(libs.androidx.media3.ui) {
|
|
|
|
|
exclude group: "com.google.guava", module: "guava"
|
|
|
|
|
}
|
2024-05-05 10:01:54 -07:00
|
|
|
api libs.coil.compose
|
2023-12-20 15:57:20 +05:30
|
|
|
|
2024-05-05 10:01:54 -07:00
|
|
|
implementation platform(libs.androidx.compose.bom)
|
2023-12-20 15:57:20 +05:30
|
|
|
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
|
2023-04-07 16:30:15 +05:30
|
|
|
}
|