1- plugins {
2- id " com.android.application"
3- id " kotlin-android"
4- id " dev.flutter.flutter-gradle-plugin"
5- }
6-
7- def localProperties = new Properties ()
8- def localPropertiesFile = rootProject. file(' local.properties' )
9- if (localPropertiesFile. exists()) {
10- localPropertiesFile. withReader(' UTF-8' ) { reader ->
11- localProperties. load(reader)
12- }
13- }
14-
15- def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
16- if (flutterVersionCode == null ) {
17- flutterVersionCode = ' 1'
18- }
19-
20- def flutterVersionName = localProperties. getProperty(' flutter.versionName' )
21- if (flutterVersionName == null ) {
22- flutterVersionName = ' 1.0'
23- }
24-
25- android {
26- namespace " com.pythonide"
27- compileSdk flutter. compileSdkVersion
28- ndkVersion flutter. ndkVersion
29-
30- compileOptions {
31- sourceCompatibility JavaVersion . VERSION_1_8
32- targetCompatibility JavaVersion . VERSION_1_8
33- }
34-
35- kotlinOptions {
36- jvmTarget = ' 1.8'
37- }
38-
39- sourceSets {
40- main. java. srcDirs + = ' src/main/kotlin'
41- }
42-
43- defaultConfig {
44- applicationId " com.pythonide"
45- minSdk 21
46- targetSdk flutter. targetSdkVersion
47- versionCode flutterVersionCode. toInteger()
48- versionName flutterVersionName
1+ buildscript {
2+ ext. kotlin_version = ' 1.9.22'
3+ repositories {
4+ google()
5+ mavenCentral()
496 }
507
51- buildTypes {
52- release {
53- signingConfig signingConfigs. debug
54- minifyEnabled false
55- shrinkResources false
56- }
8+ dependencies {
9+ classpath ' com.android.tools.build:gradle:8.1.0'
10+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
5711 }
5812}
5913
60- flutter {
61- source ' ../..'
62- }
63-
64- dependencies {}
65-
6614allprojects {
6715 repositories {
6816 google()
6917 mavenCentral()
7018 }
7119}
7220
21+ rootProject. buildDir = ' ../build'
22+ subprojects {
23+ project. buildDir = " ${ rootProject.buildDir} /${ project.name} "
24+ }
25+ subprojects {
26+ project. evaluationDependsOn(' :app' )
27+ }
28+
7329tasks. register(" clean" , Delete ) {
7430 delete rootProject. buildDir
7531}
0 commit comments