diff --git a/templates-api/src/main/assets/templates/base/module/android/proguard-rules.pro b/templates-api/src/main/assets/templates/base/module/android/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/module/android/res/drawable-v24/ic_launcher_foreground.xml b/templates-api/src/main/assets/templates/base/module/android/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index 2b068d1146..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_background.xml b/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 07d5da9cbf..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_round.webp deleted file mode 100644 index ead67900d6..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/drawable/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher.xml b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index eca70cfe52..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher_round.xml b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index eca70cfe52..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher.webp deleted file mode 100644 index d7bb5af942..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher_round.webp deleted file mode 100644 index bc9b71e29b..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-hdpi/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher.webp deleted file mode 100644 index b61d7366f5..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher_round.webp deleted file mode 100644 index b003c0366e..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-mdpi/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher.webp deleted file mode 100644 index 33b4e99358..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher_round.webp deleted file mode 100644 index a62f3b0c81..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher.webp deleted file mode 100644 index 21a284e0cf..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher_round.webp deleted file mode 100644 index ead67900d6..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher.webp deleted file mode 100644 index aa7d6427e6..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher_round.webp b/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher_round.webp deleted file mode 100644 index 9126ae37cb..0000000000 Binary files a/templates-api/src/main/assets/templates/base/module/android/res/mipmap-xxxhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/templates-api/src/main/assets/templates/base/module/android/res/xml/backup_rules.xml b/templates-api/src/main/assets/templates/base/module/android/res/xml/backup_rules.xml deleted file mode 100644 index 9b42d90d94..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/xml/backup_rules.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/module/android/res/xml/data_extraction_rules.xml b/templates-api/src/main/assets/templates/base/module/android/res/xml/data_extraction_rules.xml deleted file mode 100644 index c6c3bb05a9..0000000000 --- a/templates-api/src/main/assets/templates/base/module/android/res/xml/data_extraction_rules.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/templates-api/src/main/assets/templates/base/root/gitignore b/templates-api/src/main/assets/templates/base/root/gitignore deleted file mode 100644 index b6bc0116e0..0000000000 --- a/templates-api/src/main/assets/templates/base/root/gitignore +++ /dev/null @@ -1,83 +0,0 @@ -# Built application files -*.apk -*.aar -*.ap_ -*.aab - -# Files for the ART/Dalvik VM -*.dex - -# Java class files -*.class - -# Generated files -/bin/ -/gen/ -/out/ -# Uncomment the following line in case you need and you don't have the release build type files in your app -# Gradle files -.gradle/ -/build/ - -# Local configuration file (sdk path, etc) -local.properties - -# Proguard folder generated by Eclipse -proguard/ - -# Log Files -*.log - -# Android Studio Navigation editor temp files -.navigation/ - -# Android Studio captures folder -captures/ - -# IntelliJ -*.iml -.idea/workspace.xml -.idea/tasks.xml -.idea/gradle.xml -.idea/assetWizardSettings.xml -.idea/dictionaries -.idea/libraries -# Android Studio 3 in .gitignore file. -.idea/caches -.idea/modules.xml -# Comment next line if keeping position of elements in Navigation Editor is relevant for you -.idea/navEditor.xml - -# Keystore files -# Uncomment the following lines if you do not want to check your keystore files in. -#*.jks -#*.keystore - -# External native build folder generated in Android Studio 2.2 and later -.externalNativeBuild -.cxx/ - -# Google Services (e.g. APIs or Firebase) -# google-services.json - -# Freeline -freeline.py -freeline/ -freeline_project_description.json - -# fastlane -fastlane/report.xml -fastlane/Preview.html -fastlane/screenshots -fastlane/test_output -fastlane/readme.md - -# Version control -vcs.xml - -# lint -lint/intermediates/ -lint/generated/ -lint/outputs/ -lint/tmp/ -# lint/reports/ diff --git a/templates-api/src/main/assets/templates/base/root/gradle.properties b/templates-api/src/main/assets/templates/base/root/gradle.properties deleted file mode 100644 index cd0519bb2a..0000000000 --- a/templates-api/src/main/assets/templates/base/root/gradle.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Project-wide Gradle settings. -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app"s APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Kotlin code style for this project: "official" or "obsolete": -kotlin.code.style=official -# Enables namespacing of each library's R class so that its R class includes only the -# resources declared in the library itself and none from the library's dependencies, -# thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true \ No newline at end of file diff --git a/templates-api/src/main/java/com/itsaky/androidide/templates/base/util/utils.kt b/templates-api/src/main/java/com/itsaky/androidide/templates/base/util/utils.kt index 904ed1474d..ec400c75c0 100644 --- a/templates-api/src/main/java/com/itsaky/androidide/templates/base/util/utils.kt +++ b/templates-api/src/main/java/com/itsaky/androidide/templates/base/util/utils.kt @@ -21,13 +21,6 @@ import com.itsaky.androidide.templates.BaseTemplateData import com.itsaky.androidide.templates.ProjectTemplateData import java.io.File -/** - * Get the asset path for base template. - */ -internal fun baseAsset(type: String, path: String): String { - return "templates/base/${type}/${path}" -} - internal fun BaseTemplateData.optonallyKts(file: String): String { return if (useKts) "${file}.kts" else file }