Files
uitron/navi-uitron/build.gradle
2023-04-10 20:27:23 +05:30

91 lines
2.8 KiB
Groovy

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-parcelize'
id 'maven-publish'
}
def VERSION_NAME = "1.0.0"
android {
namespace 'com.navi.uitron'
compileSdk 32
defaultConfig {
minSdk 21
targetSdk 31
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_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.2.0-beta03'
}
}
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_PUSH) {
version = "navi_v$VERSION_NAME"
artifact("build/outputs/aar/navi-uitron-release.aar")
} else {
version = "navi_v$VERSION_NAME-SNAPSHOT"
artifact("build/outputs/aar/navi-uitron-debug.aar")
}
}
}
}
}
dependencies {
implementation "androidx.compose.ui:ui:1.2.0-beta03"
implementation "androidx.compose.material:material:1.2.0-beta03"
implementation "androidx.compose.ui:ui-tooling-preview:1.2.0-beta03"
implementation "com.google.accompanist:accompanist-pager:0.24.10-beta"
implementation "com.google.accompanist:accompanist-pager-indicators:0.24.10-beta"
implementation "androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha02"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.0-rc02'
implementation 'androidx.activity:activity-compose:1.4.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation "com.airbnb.android:lottie-compose:5.2.0"
implementation "io.coil-kt:coil-compose:2.2.2"
testImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.1.4"
}