| plugins { | |
| id("com.android.application") | |
| id("dev.flutter.flutter-gradle-plugin") | |
| } | |
| android { | |
| namespace = "com.example.ok_http_example" | |
| compileSdk = flutter.compileSdkVersion | |
| compileOptions { | |
| sourceCompatibility = JavaVersion.VERSION_17 | |
| targetCompatibility = JavaVersion.VERSION_17 | |
| } | |
| defaultConfig { | |
| applicationId = "com.example.ok_http_example" | |
| minSdk = flutter.minSdkVersion | |
| targetSdk = flutter.targetSdkVersion | |
| versionCode = flutter.versionCode | |
| versionName = flutter.versionName | |
| } | |
| buildTypes { | |
| release { | |
| signingConfig = signingConfigs.getByName("debug") | |
| } | |
| } | |
| } | |
| kotlin { | |
| compilerOptions { | |
| jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 | |
| } | |
| } | |
| flutter { | |
| source = "../.." | |
| } | |
| dependencies { | |
| // "com.squareup.okhttp3:okhttp:4.12.0" is only present so that | |
| // `jnigen` will work. Applications should not need to include this line. | |
| // The version should be synced with `pkgs/ok_http/android/build.gradle`. | |
| implementation("com.squareup.okhttp3:okhttp:4.12.0") | |
| } |