feat: add gradle export templates, support android app/lib and simple java
This commit is contained in:
+1
-1
@@ -38,5 +38,5 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// some dependencies
|
||||
// TODO: dependencies
|
||||
}
|
||||
+1
-1
@@ -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}}'
|
||||
Reference in New Issue
Block a user