Specify Kotlin version in modules and refactor (#101315)
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
// Generated file. Do not edit.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '{{kotlinVersion}}'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:{{agpVersionForModule}}'
|
||||
classpath 'com.android.tools.build:gradle:{{gradleVersionForModule}}'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +20,16 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
compileSdkVersion {{compileSdkVersion}}
|
||||
defaultConfig {
|
||||
minSdkVersion {{minSdkVersion}}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rootProject.name = '{{projectName}}'
|
||||
@@ -0,0 +1,3 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="{{androidIdentifier}}">
|
||||
</manifest>
|
||||
@@ -3,7 +3,7 @@ def flutterPluginVersion = 'managed'
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 31
|
||||
compileSdkVersion {{compileSdkVersion}}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
@@ -12,8 +12,8 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId "{{androidIdentifier}}.host"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 31
|
||||
minSdkVersion {{minSdkVersion}}
|
||||
targetSdkVersion {{targetSdkVersion}}
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user