diff --git a/app/build.gradle b/app/build.gradle deleted file mode 100644 index 5136bd3..0000000 --- a/app/build.gradle +++ /dev/null @@ -1,60 +0,0 @@ -plugins { - alias libs.plugins.android.application -} - -android { - compileSdk 36 - - namespace "com.juandiana.reflexgame" - - defaultConfig { - applicationId "com.juandiana.reflexgame" - minSdk 26 - targetSdk 33 - versionCode 1 - versionName "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildFeatures { - viewBinding true - } - - buildTypes { - release { - minifyEnabled false - } - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_21 - targetCompatibility JavaVersion.VERSION_21 - } - - lint { - abortOnError true - warningsAsErrors true - disable += "OldTargetApi" - disable += "GradleDependency" - htmlOutput file("build/reports/lint/lint-report.html") - } -} - -kotlin { - compilerOptions { - allWarningsAsErrors = true - } -} - - -dependencies { - // UI - implementation libs.androidx.core.ktx - implementation libs.androidx.appcompat - implementation libs.androidx.constraintlayout - implementation libs.androidx.recyclerview - implementation libs.androidx.fragment.ktx - implementation libs.androidx.lifecycle.viewmodel.ktx - implementation libs.androidx.lifecycle.livedata.ktx - implementation libs.google.material -} diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..242167b --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,58 @@ +plugins { + alias(libs.plugins.android.application) +} + +android { + compileSdk = 36 + namespace = "com.juandiana.reflexgame" + + defaultConfig { + applicationId = "com.juandiana.reflexgame" + minSdk = 26 + targetSdk = 33 + versionCode = 1 + versionName = "1.0" + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildFeatures { + viewBinding = true + } + + buildTypes { + getByName("release") { + isMinifyEnabled = false + } + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 + } + + lint { + abortOnError = true + warningsAsErrors = true + disable += setOf("OldTargetApi", "GradleDependency") + htmlOutput = file("build/reports/lint/lint-report.html") + } +} + +kotlin { + compilerOptions { + allWarningsAsErrors = true + } +} + + +dependencies { + // UI + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.appcompat) + implementation(libs.androidx.constraintlayout) + implementation(libs.androidx.recyclerview) + implementation(libs.androidx.fragment.ktx) + implementation(libs.androidx.lifecycle.viewmodel.ktx) + implementation(libs.androidx.lifecycle.livedata.ktx) + implementation(libs.google.material) +} diff --git a/settings.gradle b/settings.gradle.kts similarity index 95% rename from settings.gradle rename to settings.gradle.kts index 5a1e8d6..07346e5 100644 --- a/settings.gradle +++ b/settings.gradle.kts @@ -15,4 +15,4 @@ dependencyResolutionManagement { } rootProject.name = "ReflexGame" -include ":app" +include(":app")