diff --git a/android/app/build.gradle b/android/app/build.gradle index 410706e21..06517c95b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -34,7 +34,7 @@ android { } compileSdkVersion 34 - + namespace "com.example.talawa" sourceSets { main.java.srcDirs += 'src/main/kotlin' } @@ -50,6 +50,14 @@ android { versionName flutterVersionName multiDexEnabled true } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = '17' + } buildTypes { release { @@ -67,4 +75,5 @@ flutter { dependencies { implementation 'com.android.support:multidex:1.0.3' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.10" + } diff --git a/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart b/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart index b92928038..7859ef378 100644 --- a/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart +++ b/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart @@ -212,8 +212,7 @@ void main() { }); test('isReachable throws TimeoutException on timeout', () async { - final isReachableResult = await mockService.isReachable( - client: mockClient, + final isReachableResult = await actualService.isReachable( uriString: 'https://timeout.com', ); expect(isReachableResult, false);