feat: add gradle export templates, support android app/lib and simple java

This commit is contained in:
Skylot
2025-04-29 21:07:52 +01:00
parent 9981949a2b
commit e3aa49aaa9
54 changed files with 1153 additions and 570 deletions
@@ -38,5 +38,5 @@ android {
}
dependencies {
// some dependencies
// TODO: dependencies
}
@@ -1,6 +1,6 @@
buildscript {
repositories {
google()
google()
mavenCentral()
}
dependencies {
@@ -0,0 +1,36 @@
plugins {
id 'com.android.library'
}
android {
namespace '{{packageId}}'
compileSdk 30
defaultConfig {
minSdk {{minSdkVersion}}
{{additionalOptions}}
}
buildTypes {
release {
minifyEnabled false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
buildFeatures {
buildConfig = false
}
}
dependencies {
// TODO: dependencies
}
@@ -0,0 +1,3 @@
rootProject.name = '{{projectName}}'
include '{{mainModuleName}}'
@@ -0,0 +1,12 @@
plugins {
java
}
repositories {
google()
mavenCentral()
}
dependencies {
// some dependencies
}
@@ -0,0 +1,3 @@
rootProject.name = "{{projectName}}"
include("app")
@@ -1,2 +0,0 @@
include ':app'
rootProject.name = '{{applicationName}}'