Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
Dependency updates
  • Loading branch information
dkrivoruchko committed May 16, 2021
1 parent 0a30e24 commit 6f470bf
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId = "info.dvkr.screenstream"
minSdkVersion(21)
targetSdkVersion(30)
versionCode = 30602
versionName = "3.6.2"
versionCode = 30603
versionName = "3.6.3"
resConfigs("en", "ru", "pt-rBR", "zh-rTW", "fr-rFR", "fa", "it", "pl", "hi", "de", "sk", "es", "ar", "ja", "gl", "ca")

vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -78,10 +78,11 @@ dependencies {

implementation(project(":data"))

implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0")

implementation("androidx.core:core-ktx:1.5.0-rc01")
implementation("androidx.core:core-ktx:1.5.0-rc02")
implementation("androidx.activity:activity-ktx:1.2.3")
implementation("androidx.fragment:fragment-ktx:1.3.3")
implementation("androidx.appcompat:appcompat:1.3.0-rc01")
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
Expand All @@ -103,7 +104,7 @@ dependencies {

implementation("io.insert-koin:koin-android:3.0.1")
implementation("com.github.iamironz:binaryprefs:1.0.1")
implementation("com.elvishew:xlog:1.8.0")
implementation("com.elvishew:xlog:1.9.0")

firebaseImplementation("com.google.android.play:core:1.10.0")
firebaseImplementation("com.google.android.play:core-ktx:1.8.1") {
Expand All @@ -112,8 +113,8 @@ dependencies {
exclude group: "androidx.fragment"
exclude group: "androidx.core"
}
firebaseReleaseImplementation("com.google.firebase:firebase-analytics:18.0.3")
firebaseReleaseImplementation("com.google.firebase:firebase-crashlytics:17.4.1")
firebaseReleaseImplementation("com.google.firebase:firebase-analytics:19.0.0")
firebaseReleaseImplementation("com.google.firebase:firebase-crashlytics:18.0.0")

debugImplementation("com.squareup.leakcanary:leakcanary-android:2.7")
}
Expand Down
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath("com.android.tools.build:gradle:4.1.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32")
classpath("com.google.gms:google-services:4.3.5")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.5.2")
classpath("com.android.tools.build:gradle:4.2.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")
classpath("com.google.gms:google-services:4.3.8")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.6.1")
}
}

allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url = uri("https://jitpack.io") }
}
Expand Down
13 changes: 7 additions & 6 deletions data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion(21)
targetSdkVersion(30)
versionCode = 30602
versionName = "3.6.2"
versionCode = 30603
versionName = "3.6.3"
}

compileOptions {
Expand All @@ -27,12 +27,13 @@ android {
}

dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.0")

implementation("androidx.core:core:1.5.0-rc01")
implementation("androidx.core:core:1.5.0-rc02")

implementation("io.ktor:ktor-server-cio:1.5.3")
implementation("io.ktor:ktor-server-cio:1.5.4")

implementation("com.github.iamironz:binaryprefs:1.0.1")
implementation("com.elvishew:xlog:1.8.0")
implementation("com.elvishew:xlog:1.9.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ internal class HttpServer(
private val httpServerFiles: HttpServerFiles = HttpServerFiles(applicationContext, settingsReadOnly)
private val clientData: ClientData = ClientData(settingsReadOnly) { sendEvent(it) }
private val stopDeferred: AtomicReference<CompletableDeferred<Unit>?> = AtomicReference(null)
private val blockedJPEG: ByteArray = ByteArrayOutputStream().apply {
addressBlockedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, this)
}.toByteArray()
private val blockedJPEG: ByteArray by lazy {
ByteArrayOutputStream().apply {
addressBlockedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, this)
}.toByteArray()
}

private var ktorServer: CIOApplicationEngine? = null

Expand All @@ -67,9 +69,7 @@ internal class HttpServer(
XLog.d(getLog("startServer"))

val coroutineExceptionHandler = CoroutineExceptionHandler { _, throwable ->
if (throwable is IOException) return@CoroutineExceptionHandler
XLog.e(getLog("onCoroutineException >>>"))
XLog.e(getLog("onCoroutineException"), throwable)
XLog.e(getLog("onCoroutineException", throwable.toString()))
sendEvent(Event.Error(FatalError.HttpServerException))
ktorServer?.stop(250, 250)
ktorServer = null
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip

0 comments on commit 6f470bf

Please sign in to comment.