44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
plugins {
|
|
id("com.android.library") // era androidApplication
|
|
alias(libs.plugins.jetbrainsKotlinAndroid)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.myrobot.RobotIngles"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
// applicationId NÃO entra em library
|
|
minSdk = 21
|
|
targetSdk = 34
|
|
// versionCode / versionName também são coisa de app, pode tirar
|
|
// testInstrumentationRunner não é necessário pra nossa lib
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = 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"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
}
|