1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+ id " dev.flutter.flutter-gradle-plugin"
6+ }
7+
18def localProperties = new Properties ()
2- def localPropertiesFile = rootProject. file(' local.properties' )
9+ def localPropertiesFile = rootProject. file(" local.properties" )
310if (localPropertiesFile. exists()) {
4- localPropertiesFile. withReader(' UTF-8' ) { reader ->
11+ localPropertiesFile. withReader(" UTF-8" ) { reader ->
512 localProperties. load(reader)
613 }
714}
815
9- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10- if (flutterRoot == null ) {
11- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12- }
13-
14- def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
16+ def flutterVersionCode = localProperties. getProperty(" flutter.versionCode" )
1517if (flutterVersionCode == null ) {
16- flutterVersionCode = ' 1 '
18+ flutterVersionCode = " 1 "
1719}
1820
19- def flutterVersionName = localProperties. getProperty(' flutter.versionName' )
21+ def flutterVersionName = localProperties. getProperty(" flutter.versionName" )
2022if (flutterVersionName == null ) {
21- flutterVersionName = ' 1.0'
23+ flutterVersionName = " 1.0"
2224}
2325
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2826android {
29- compileSdkVersion 33
27+ namespace = " com.adjust.examples"
28+ compileSdk = 34
3029
31- sourceSets {
32- main. java. srcDirs + = ' src/main/kotlin'
30+ compileOptions {
31+ sourceCompatibility = JavaVersion . VERSION_1_8
32+ targetCompatibility = JavaVersion . VERSION_1_8
3333 }
3434
35-
3635 defaultConfig {
3736 applicationId " com.adjust.examples"
3837 minSdkVersion flutter. minSdkVersion
39- targetSdkVersion 33
38+ targetSdkVersion 34
4039 versionCode flutterVersionCode. toInteger()
4140 versionName flutterVersionName
4241 }
@@ -45,19 +44,15 @@ android {
4544 release {
4645 // TODO: Add your own signing config for the release build.
4746 // Signing with the debug keys for now, so `flutter run --release` works.
48- signingConfig signingConfigs. debug
47+ signingConfig = signingConfigs. debug
4948 }
5049 }
51- lint {
52- checkReleaseBuilds false
53- disable ' InvalidPackage'
54- }
55- namespace ' com.adjust.examples'
5650}
5751
5852flutter {
59- source ' ../..'
53+ source = " ../.."
6054}
6155
6256dependencies {
63- }
57+ implementation ' com.adjust.sdk:adjust-android:5.1.0'
58+ }
0 commit comments