Skip to content

Commit

Permalink
Upgrade libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Jun 27, 2023
1 parent 0bc7118 commit 0488be9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
24 changes: 12 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.4.4'
kotlinCompilerExtensionVersion '1.4.6'
}
packagingOptions {
jniLibs {
Expand All @@ -100,43 +100,43 @@ configurations {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.activity:activity-compose:1.7.0'
implementation 'androidx.activity:activity-compose:1.7.2'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation 'com.google.android.material:material:1.9.0'

implementation platform("androidx.compose:compose-bom:$compose_version")
implementation 'androidx.compose.material:material'
implementation "androidx.compose.material:material-icons-extended"
implementation 'androidx.compose.ui:ui-tooling-preview'

implementation "androidx.navigation:navigation-compose:2.5.3"
implementation "androidx.navigation:navigation-compose:2.6.0"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
implementation "androidx.profileinstaller:profileinstaller:1.3.0"
implementation "androidx.security:security-crypto:1.1.0-alpha05"
implementation "androidx.profileinstaller:profileinstaller:1.3.1"
implementation "androidx.security:security-crypto:1.1.0-alpha06"

implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"

// Tor
implementation "org.briarproject:onionwrapper-android:0.0.3"
implementation "org.briarproject:onionwrapper-android:0.0.4"
tor 'org.briarproject:tor-android:0.4.7.13-2'
tor 'org.briarproject:obfs4proxy-android:0.0.14-tor2'
tor 'org.briarproject:snowflake-android:2.5.1'
implementation 'org.briarproject:moat-api:0.2'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'

def ktor_version = '2.2.4'
def ktor_version = '2.3.1'
implementation "io.ktor:ktor-server-core:$ktor_version"
implementation "io.ktor:ktor-server-netty:$ktor_version"
implementation "io.ktor:ktor-server-pebble:$ktor_version"
implementation "io.ktor:ktor-server-status-pages:$ktor_version"
implementation "io.ktor:ktor-server-call-logging:$ktor_version"
implementation 'org.slf4j:slf4j-api:2.0.6'
implementation 'org.slf4j:slf4j-api:2.0.7'
implementation 'com.github.tony19:logback-android:3.0.0'

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'

debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
Expand All @@ -145,7 +145,7 @@ dependencies {

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.4.0"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.4.3"
androidTestImplementation 'tools.fastlane:screengrab:2.1.1'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.net.TrafficStats
import android.util.Base64
import android.util.Base64.NO_PADDING
import android.util.Base64.URL_SAFE
import com.mitchellbosecke.pebble.loader.ClasspathLoader
import io.ktor.http.ContentDisposition.Companion.Attachment
import io.ktor.http.ContentDisposition.Parameters.FileName
import io.ktor.http.HttpHeaders.ContentDisposition
Expand All @@ -17,8 +16,7 @@ import io.ktor.server.application.call
import io.ktor.server.application.install
import io.ktor.server.engine.ApplicationEngine
import io.ktor.server.engine.embeddedServer
import io.ktor.server.http.content.resources
import io.ktor.server.http.content.static
import io.ktor.server.http.content.staticResources
import io.ktor.server.netty.Netty
import io.ktor.server.pebble.Pebble
import io.ktor.server.pebble.PebbleContent
Expand All @@ -30,6 +28,7 @@ import io.ktor.server.response.respondFile
import io.ktor.server.routing.Route
import io.ktor.server.routing.get
import io.ktor.server.routing.routing
import io.pebbletemplates.pebble.loader.ClasspathLoader
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -136,15 +135,9 @@ class WebserverManager @Inject constructor() {
}

private fun Route.defaultRoutes(staticPath: String) {
static("$staticPath/css") {
resources("assets/static/css")
}
static("$staticPath/img") {
resources("assets/static/img")
}
static("$staticPath/js") {
resources("assets/static/js")
}
staticResources("$staticPath/css", "assets/static/css")
staticResources("$staticPath/img", "assets/static/img")
staticResources("$staticPath/js", "assets/static/js")
}

private fun Route.sendRoutes(sendPage: SendPage, staticPathMap: Map<String, String>) {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
ext {
kotlin_version = '1.8.10'
kotlin_version = '1.8.20'
hilt_version = '2.45'
compose_version = '2023.03.00'
compose_version = '2023.05.01'
}
repositories {
google()
Expand Down

0 comments on commit 0488be9

Please sign in to comment.