Skip to content
Snippets Groups Projects
Verified Commit 27404b06 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Update dependencies

parent a18a12d6
No related branches found
No related tags found
No related merge requests found
...@@ -13,14 +13,11 @@ android { ...@@ -13,14 +13,11 @@ android {
defaultConfig { defaultConfig {
applicationId = "com.iskrembilen.quasseldroid" applicationId = "com.iskrembilen.quasseldroid"
setMinSdkVersion(21) minSdk = 21
setTargetSdkVersion(30) targetSdk = 30
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
// Disable test runner analytics testInstrumentationRunnerArguments["disableAnalytics"] = "true"
testInstrumentationRunnerArguments(mapOf(
"disableAnalytics" to "true"
))
} }
buildTypes { buildTypes {
...@@ -54,10 +51,6 @@ android { ...@@ -54,10 +51,6 @@ android {
val androidxComposeVersion: String by project val androidxComposeVersion: String by project
kotlinCompilerExtensionVersion = androidxComposeVersion kotlinCompilerExtensionVersion = androidxComposeVersion
} }
kotlinOptions {
useIR = true
}
} }
kapt { kapt {
...@@ -75,9 +68,19 @@ dependencies { ...@@ -75,9 +68,19 @@ dependencies {
implementation("com.google.android.material", "material", mdcVersion) implementation("com.google.android.material", "material", mdcVersion)
val androidxComposeVersion: String by project val androidxComposeVersion: String by project
implementation("androidx.compose.ui", "ui", androidxComposeVersion) implementation("androidx.compose.foundation", "foundation", androidxComposeVersion)
implementation("androidx.compose.foundation", "foundation-layout", androidxComposeVersion)
implementation("androidx.compose.material", "material", androidxComposeVersion) implementation("androidx.compose.material", "material", androidxComposeVersion)
implementation("androidx.compose.material", "material-icons-extended", androidxComposeVersion)
implementation("androidx.compose.runtime", "runtime", androidxComposeVersion)
implementation("androidx.compose.runtime", "runtime-livedata", androidxComposeVersion)
implementation("androidx.compose.ui", "ui-tooling", androidxComposeVersion) implementation("androidx.compose.ui", "ui-tooling", androidxComposeVersion)
implementation("androidx.compose.ui", "ui-util", androidxComposeVersion)
implementation("androidx.compose.ui", "ui-viewbinding", androidxComposeVersion)
testImplementation("androidx.compose.ui", "ui-test", androidxComposeVersion)
val androidxActivityComposeVersion: String by project
implementation("androidx.activity", "activity-compose", androidxActivityComposeVersion)
val androidxLifecycleVersion: String by project val androidxLifecycleVersion: String by project
implementation("androidx.lifecycle", "lifecycle-runtime-ktx", androidxLifecycleVersion) implementation("androidx.lifecycle", "lifecycle-runtime-ktx", androidxLifecycleVersion)
...@@ -93,10 +96,10 @@ dependencies { ...@@ -93,10 +96,10 @@ dependencies {
androidTestImplementation("com.google.dagger", "hilt-android-testing", daggerHiltVersion) androidTestImplementation("com.google.dagger", "hilt-android-testing", daggerHiltVersion)
androidTestAnnotationProcessor("com.google.dagger", "hilt-android-compiler", daggerHiltVersion) androidTestAnnotationProcessor("com.google.dagger", "hilt-android-compiler", daggerHiltVersion)
implementation("org.threeten", "threetenbp", "1.4.0") implementation("org.threeten", "threetenbp", "1.5.1")
implementation("io.coil-kt", "coil", "1.1.1") implementation("io.coil-kt", "coil", "1.2.2")
implementation("dev.chrisbanes.accompanist", "accompanist-coil", "0.5.0") implementation("com.google.accompanist", "accompanist-coil", "0.11.1")
val libquasselVersion: String by project val libquasselVersion: String by project
implementation("de.justjanne.libquassel", "libquassel-client", libquasselVersion) implementation("de.justjanne.libquassel", "libquassel-client", libquasselVersion)
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
package de.justjanne.quasseldroid.app package de.justjanne.quasseldroid.app
import android.os.Bundle import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.Image
import androidx.compose.foundation.border import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
...@@ -47,14 +49,13 @@ import androidx.compose.ui.Alignment ...@@ -47,14 +49,13 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.setContent
import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.font.FontFamily import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.lifecycle.lifecycleScope import androidx.lifecycle.lifecycleScope
import dev.chrisbanes.accompanist.coil.CoilImage import com.google.accompanist.coil.rememberCoilPainter
import kotlinx.coroutines.delay import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow
import org.threeten.bp.ZonedDateTime import org.threeten.bp.ZonedDateTime
...@@ -63,7 +64,8 @@ import kotlin.random.Random ...@@ -63,7 +64,8 @@ import kotlin.random.Random
val time = MutableStateFlow(ZonedDateTime.now()) val time = MutableStateFlow(ZonedDateTime.now())
inline class Password1(private val s: String) @JvmInline
value class Password1(private val s: String)
class MainActivity : AppCompatActivity() { class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
...@@ -92,8 +94,11 @@ fun UserPhoto( ...@@ -92,8 +94,11 @@ fun UserPhoto(
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) { ) {
val ringColor = remember { randomColor() } val ringColor = remember { randomColor() }
CoilImage( Image(
data = imageUrl as Any, painter = rememberCoilPainter(
imageUrl,
fadeIn = true
),
contentDescription = null, contentDescription = null,
modifier = modifier modifier = modifier
.border(2.dp, ringColor, CircleShape) .border(2.dp, ringColor, CircleShape)
...@@ -224,7 +229,7 @@ fun JetChat() { ...@@ -224,7 +229,7 @@ fun JetChat() {
Scaffold( Scaffold(
topBar = { TimeDisplay() }, topBar = { TimeDisplay() },
bottomBar = { InputLine() }, bottomBar = { InputLine() },
bodyContent = { content = {
Column { Column {
ChatMessage( ChatMessage(
authorName = "Ali Conors", authorName = "Ali Conors",
......
/*
* Quasseldroid - Quassel client for Android
*
* Copyright (c) 2019 Janne Mareike Koschinski
* Copyright (c) 2019 The Quassel Project
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3 as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
...@@ -20,27 +20,25 @@ ...@@ -20,27 +20,25 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("org.jlleitschuh.gradle.ktlint") version "10.0.0" id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
} }
buildscript { buildscript {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
jcenter()
} }
dependencies { dependencies {
classpath("com.android.tools.build", "gradle", "7.0.0-alpha05") classpath("com.android.tools.build", "gradle", "7.1.0-alpha02")
classpath("org.jetbrains.kotlin", "kotlin-gradle-plugin", "1.4.30") classpath("org.jetbrains.kotlin", "kotlin-gradle-plugin", "1.5.10")
classpath("com.google.dagger", "hilt-android-gradle-plugin", "2.31.2-alpha") classpath("com.google.dagger", "hilt-android-gradle-plugin", "2.37")
} }
} }
allprojects { subprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
jcenter()
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
......
...@@ -31,8 +31,8 @@ repositories { ...@@ -31,8 +31,8 @@ repositories {
} }
dependencies { dependencies {
implementation("com.android.tools.build:gradle:7.0.0-alpha05") implementation("com.android.tools.build:gradle:7.1.0-alpha02")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21-2") implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
implementation(gradleApi()) implementation(gradleApi())
implementation(localGroovy()) implementation(localGroovy())
} }
...@@ -32,18 +32,20 @@ org.gradle.caching=true ...@@ -32,18 +32,20 @@ org.gradle.caching=true
# Enable AndroidX # Enable AndroidX
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.jetifier.ignorelist=bcprov-jdk15on
# Dependency versions # Dependency versions
androidxAppcompatVersion=1.2.0 androidxActivityComposeVersion=1.3.0-beta01
androidxCoreVersion=1.2.0 androidxAppcompatVersion=1.3.0
androidxComposeVersion=1.0.0-alpha11 androidxCoreVersion=1.6.0-beta02
androidxLifecycleVersion=2.3.0-rc01 androidxComposeVersion=1.0.0-beta08
androidxLifecycleVersion=2.3.1
androidxMultidexVersion=2.0.1 androidxMultidexVersion=2.0.1
daggerHiltVersion=2.31.2-alpha daggerHiltVersion=2.37
hamcrestVersion=2.1 hamcrestVersion=2.2
junit4Version=4.13.1 junit4Version=4.13.2
junit5Version=5.3.1 junit5Version=5.7.2
kotlinBitflagsVersion=1.0.1 kotlinBitflagsVersion=1.3.0
libquasselVersion=0.1.0 libquasselVersion=0.6.1
mdcVersion=1.2.1 mdcVersion=1.3.0
sl4jVersion=1.7.30 sl4jVersion=1.7.30
testcontainersCiVersion=1.0.0 testcontainersCiVersion=1.3.0
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip distributionSha256Sum=0e46229820205440b48a5501122002842b82886e76af35f0f3a069243dca4b3c
distributionSha256Sum=8de6efc274ab52332a9c820366dd5cf5fc9d35ec7078fd70c8ec6913431ee610 distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
...@@ -23,9 +23,3 @@ rootProject.buildFileName = "build.gradle.kts" ...@@ -23,9 +23,3 @@ rootProject.buildFileName = "build.gradle.kts"
include( include(
":app" ":app"
) )
pluginManagement {
repositories {
gradlePluginPortal()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment