diff --git a/packages/hmssdk_flutter/android/build.gradle b/packages/hmssdk_flutter/android/build.gradle index 6accc5814..8350bb55f 100644 --- a/packages/hmssdk_flutter/android/build.gradle +++ b/packages/hmssdk_flutter/android/build.gradle @@ -50,7 +50,6 @@ dependencies { implementation "live.100ms:android-sdk:${sdkVersions['android']}" implementation "live.100ms:video-view:${sdkVersions['android']}" implementation "live.100ms:hls-player:${sdkVersions['android']}" - implementation "live.100ms:hms-noise-cancellation-android:${sdkVersions['android']}" implementation 'com.google.code.gson:gson:2.9.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0' diff --git a/packages/hmssdk_flutter/example/android/app/build.gradle b/packages/hmssdk_flutter/example/android/app/build.gradle index 3739f6891..cb01c87b0 100644 --- a/packages/hmssdk_flutter/example/android/app/build.gradle +++ b/packages/hmssdk_flutter/example/android/app/build.gradle @@ -1,5 +1,9 @@ +import groovy.json.JsonSlurper + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') +def sdkVersions = new JsonSlurper().parse file("../../../lib/assets/sdk-versions.json") + if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) @@ -79,6 +83,7 @@ flutter { dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'com.google.firebase:firebase-crashlytics:18.6.2' + implementation "live.100ms:hms-noise-cancellation-android:${sdkVersions['android']}" } apply plugin: 'com.google.gms.google-services'