Skip to content

Commit

Permalink
compose dependencies setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkarsh800 committed Jul 29, 2023
1 parent 97807e9 commit ebd66fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
/*
* Copyright 2016-2020 Open Food Facts
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id("com.android.application")
alias(libs.plugins.resourceplaceholders) apply true
Expand Down Expand Up @@ -130,7 +115,7 @@ dependencies {
implementation(libs.showcaseview)

// SplashScreen on API 31 and higher
implementation("androidx.core:core-splashscreen:1.0.0")
implementation("androidx.core:core-splashscreen:1.0.1")

// Unit Testing
testImplementation(libs.bundles.testing)
Expand All @@ -143,7 +128,6 @@ dependencies {
// Instrumented tests
androidTestUtil(libs.orchestrator)


androidTestImplementation(libs.androidx.test.runner) { exclude("junit") }
androidTestImplementation(libs.androidx.test.rules)

Expand All @@ -162,10 +146,13 @@ dependencies {
androidTestImplementation(libs.screengrab)
androidTestImplementation(libs.test.kotlin.coroutines)

// Jetpack Compose dependencies
implementation("androidx.compose.ui:ui:1.4.3")
implementation("androidx.compose.material:material:1.4.3")
implementation("androidx.compose.ui:ui-tooling:1.4.3")

resourcePlaceholders { files = listOf("xml/shortcuts.xml") }


}

android {
Expand All @@ -175,6 +162,11 @@ android {

buildFeatures {
viewBinding = true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.4.8"
}

flavorDimensions += listOf("versionCode", "platform")
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# https://kotlinlang.org/docs/releases.html#release-details
kotlin = "1.8.21"
kotlin = "1.8.22"
# https://github.com/Kotlin/kotlinx.coroutines
kotlin-coroutines = "1.7.3"
# https://github.com/FasterXML/jackson
Expand Down

0 comments on commit ebd66fc

Please sign in to comment.