diff --git a/README.md b/README.md index ed51408..438a6e5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ repositories { } dependencies { - implementation("com.formbricks:android:2.0.0") // replace with latest version + implementation("com.formbricks:android:2.1.0") // replace with latest version } ``` diff --git a/android/build.gradle.kts b/android/build.gradle.kts index ba3bf55..9622652 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -11,7 +11,7 @@ plugins { id("org.sonarqube") version "4.4.1.3373" } -version = "2.0.0" +version = "2.1.0" val groupId = "com.formbricks" val artifactId = "android" diff --git a/android/src/main/java/com/formbricks/android/webview/WebAppInterface.kt b/android/src/main/java/com/formbricks/android/webview/WebAppInterface.kt index 76a4c8b..8f6d196 100644 --- a/android/src/main/java/com/formbricks/android/webview/WebAppInterface.kt +++ b/android/src/main/java/com/formbricks/android/webview/WebAppInterface.kt @@ -14,7 +14,16 @@ class WebAppInterface(private val callback: WebAppCallback?) { fun onClose() fun onDisplayCreated() fun onResponseCreated() - fun onFinished() + + /** + * Defaulted rather than abstract: [WebAppCallback] is public, so adding an abstract + * member would stop any existing implementor from compiling. Only the SDK implements + * this today, but that would make an additive change a breaking one. + */ + fun onFinished() { + // Intentionally empty. The default exists so implementors that predate this + // callback keep compiling; FormbricksFragment overrides it to do the real work. + } fun onFilePick(data: FileUploadData) fun onSurveyLibraryLoadError() }