Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions catroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ dependencies {

// Room Test helpers
testImplementation("androidx.room:room-testing:$room_version")

// LeakCanary - Memory leak detection (debug builds only)
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
}

static def getGitCommitInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import okhttp3.ConnectionSpec
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.Request
import okio.Okio
import okio.buffer
import okio.sink
import org.catrobat.catroid.common.Constants
import org.catrobat.catroid.web.ServerAuthenticationConstants.CHECK_EMAIL_AVAILABLE_URL
import org.catrobat.catroid.web.ServerAuthenticationConstants.CHECK_GOOGLE_TOKEN_URL
Expand Down Expand Up @@ -248,7 +249,7 @@ class CatrobatServerCalls(private val okHttpClient: OkHttpClient = CatrobatWebCl
try {
val response = httpClient.newCall(request).execute()
if (response.isSuccessful) {
val bufferedSink = Okio.buffer(Okio.sink(destination))
val bufferedSink = destination.sink().buffer()
response.body()?.let { bufferedSink.writeAll(it.source()) }
bufferedSink.close()
successCallback.onSuccess()
Expand Down
Loading