diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index bad99e0..9a8dca9 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -48,7 +48,7 @@ dependencies { implementation(project(":torrentengine")) // Kotlin Coroutines - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1") // Gson для JSON сериализации implementation("com.google.code.gson:gson:2.11.0") diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..27836c0 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,33 @@ +// Legacy settings.gradle file for CI compatibility +// Main configuration is in settings.gradle.kts + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.7.3" apply false + id "com.android.library" version "8.7.3" apply false + id "org.jetbrains.kotlin.android" version "2.1.0" apply false +} + +include ":app" +project(":app").projectDir = file("app") + +include ":torrentengine" +project(":torrentengine").projectDir = file("torrentengine") \ No newline at end of file diff --git a/android/torrentengine/build.gradle.kts b/android/torrentengine/build.gradle.kts index 0579cd7..e42c0d0 100644 --- a/android/torrentengine/build.gradle.kts +++ b/android/torrentengine/build.gradle.kts @@ -43,8 +43,8 @@ dependencies { implementation("com.google.android.material:material:1.12.0") // Coroutines for async operations - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1") // Lifecycle components implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")