76 lines
2.2 KiB
Groovy
76 lines
2.2 KiB
Groovy
import com.vanniktech.maven.publish.SonatypeHost
|
|
|
|
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.dokka'
|
|
id 'com.vanniktech.maven.publish' version "0.25.3"
|
|
|
|
}
|
|
apply from: '../quality/static-check.gradle'
|
|
|
|
android {
|
|
namespace 'com.himanshoe.charty'
|
|
compileSdk 33
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 33
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.4.7'
|
|
}
|
|
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.4.7'
|
|
}
|
|
}
|
|
mavenPublishing {
|
|
publishToMavenCentral(SonatypeHost.S01)
|
|
signAllPublications()
|
|
}
|
|
dependencies {
|
|
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.9.0'
|
|
|
|
//Compose
|
|
implementation platform('androidx.compose:compose-bom:2023.05.01')
|
|
implementation 'androidx.compose.ui:ui'
|
|
implementation 'androidx.compose.ui:ui-graphics'
|
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
|
implementation 'androidx.compose.material3:material3'
|
|
debugImplementation "androidx.compose.ui:ui-tooling"
|
|
implementation 'androidx.compose.ui:ui-util'
|
|
implementation 'androidx.compose.material:material-icons-extended'
|
|
|
|
//time
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.4.0'
|
|
lintChecks('com.slack.lint.compose:compose-lint-checks:1.2.0')
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
|
dokkaPlugin("org.jetbrains.dokka:android-documentation-plugin:1.8.20")
|
|
} |