From 07546980f35ac2c4ce64fd25a57f86dcb5e4d50a Mon Sep 17 00:00:00 2001 From: Felipe Teixeira Date: Wed, 11 Dec 2024 12:43:03 -0300 Subject: [PATCH] refactor: update default versions of templates --- .../src/main/assets/templates/base/root/gitignore | 3 +++ .../com/itsaky/androidide/templates/constants.kt | 14 +++++++------- .../com/itsaky/androidide/templates/parameters.kt | 4 ++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/utilities/templates-api/src/main/assets/templates/base/root/gitignore b/utilities/templates-api/src/main/assets/templates/base/root/gitignore index b6bc0116e0..f7b7fea07d 100644 --- a/utilities/templates-api/src/main/assets/templates/base/root/gitignore +++ b/utilities/templates-api/src/main/assets/templates/base/root/gitignore @@ -1,3 +1,6 @@ +# AndroidIDE +.androidide/ + # Built application files *.apk *.aar diff --git a/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/constants.kt b/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/constants.kt index 812568150c..38bde28821 100644 --- a/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/constants.kt +++ b/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/constants.kt @@ -21,12 +21,12 @@ package com.itsaky.androidide.templates * @author Akash Yadav */ -const val ANDROID_GRADLE_PLUGIN_VERSION = "8.0.0" -const val GRADLE_DISTRIBUTION_VERSION = "8.1.1" -const val KOTLIN_VERSION = "1.8.21" +const val ANDROID_GRADLE_PLUGIN_VERSION = "8.6.0" +const val GRADLE_DISTRIBUTION_VERSION = "8.8" +const val KOTLIN_VERSION = "1.9.22" -val TARGET_SDK_VERSION = Sdk.Tiramisu -val COMPILE_SDK_VERSION = Sdk.Tiramisu +val TARGET_SDK_VERSION = Sdk.UpsideDownCake +val COMPILE_SDK_VERSION = Sdk.UpsideDownCake -const val JAVA_SOURCE_VERSION = "11" -const val JAVA_TARGET_VERSION = "11" +const val JAVA_SOURCE_VERSION = "17" +const val JAVA_TARGET_VERSION = "17" diff --git a/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/parameters.kt b/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/parameters.kt index aecc90b533..9738dbc9c7 100644 --- a/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/parameters.kt +++ b/utilities/templates-api/src/main/java/com/itsaky/androidide/templates/parameters.kt @@ -364,7 +364,7 @@ inline fun > enumParameter(crossinline block: EnumParameterBuilder Unit = {}) = stringParameter { name = string.project_app_name - default = "My Application" + default = "MyApplication" startIcon = { R.drawable.ic_android } constraints = listOf(NONEMPTY) @@ -398,7 +398,7 @@ inline fun projectLanguageParameter( inline fun minSdkParameter(crossinline configure: EnumParameterBuilder.() -> Unit = {}) = enumParameter { name = string.minimum_sdk - default = Sdk.Lollipop + default = Sdk.Naughat displayName = Sdk::displayName startIcon = { R.drawable.ic_min_sdk }