Skip to content

Commit

Permalink
chore: upgrade agp to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Aug 21, 2023
1 parent 3a65370 commit 6d3fbe6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ android {
exclude(module = "protobuf-java")
}

packagingOptions {
packaging {
resources.pickFirsts.add("google/protobuf/*.proto")
jniLibs.pickFirsts.add("**/libsodium.so")
}
android.buildFeatures.buildConfig = true
}

kapt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import com.android.build.api.dsl.ApplicationExtension
import com.wire.android.gradle.configureAndroidKotlinTests
import com.wire.android.gradle.configureCompose
import com.wire.android.gradle.configureKotlinAndroid
import com.wire.android.gradle.version.Versionizer
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
Expand Down Expand Up @@ -45,7 +44,7 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {

configureCompose(this)

packagingOptions {
packaging {
resources {
pickFirsts.add("META-INF/AL2.0")
pickFirsts.add("META-INF/LGPL2.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import findVersion
import org.gradle.api.Project

internal fun Project.configureCompose(
commonExtension: CommonExtension<*, *, *, *>,
commonExtension: CommonExtension<*, *, *, *, *>,
): Unit = with(commonExtension) {
buildFeatures {
compose = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import versionCatalog

internal fun Project.configureKotlinAndroid(
commonExtension: CommonExtension<*, *, *, *>,
commonExtension: CommonExtension<*, *, *, *, *>,
): Unit = with(commonExtension) {
compileSdk = AndroidSdk.compile

Expand Down Expand Up @@ -85,7 +85,7 @@ private fun Project.configureKotlin() {
}
}

internal fun CommonExtension<*, *, *, *>.configureAndroidKotlinTests() {
internal fun CommonExtension<*, *, *, *, *>.configureAndroidKotlinTests() {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments.putAll(
Expand Down
3 changes: 1 addition & 2 deletions buildSrc/src/main/kotlin/scripts/variants.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package scripts
import com.android.build.api.dsl.ApplicationProductFlavor
import com.android.build.api.dsl.ProductFlavor
import customization.ConfigType
import customization.Customization
import customization.Customization.getBuildtimeConfiguration
import customization.FeatureConfigs
import customization.FeatureFlags
Expand Down Expand Up @@ -170,7 +169,7 @@ android {
*/
productFlavors.forEach { flavor ->
Features.values().forEach { feature ->
val activated = FeatureFlags.activated[flavor.name].orEmpty().contains(feature)
val activated = FeatureFlags.activated.mapKeys { it.key.buildName }[flavor.name].orEmpty().contains(feature)
flavor.buildConfigField("Boolean", feature.name, activated.toString())
}

Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# Gradle - Remind to change in `gradle-wrapper.properties` file as well!
gradle = "7.6.1"
gradle = "8.1"

# Kotlin
kotlin = "1.9.0"
Expand All @@ -13,7 +13,7 @@ ktx-serialization = "1.5.1"

# Android Core / Architecture
google-gms = "4.3.15"
android-gradlePlugin = "7.4.1"
android-gradlePlugin = "8.1.0"
desugaring = "1.1.5"
firebaseBOM = "31.4.0"
fragment = "1.5.6"
Expand Down Expand Up @@ -92,6 +92,7 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
wire-android-application = { id = "com.wire.android.application" }
wire-android-library = { id = "com.wire.android.library" }
wire-hilt = { id = "com.wire.android.hilt" }
androidTest = { id = "com.android.test", version.ref = "android-gradlePlugin" }

[bundles]
#android = ["appCompat", "activityCompose", "work", "composeMaterial", "coroutinesAndroid", "ktor", "ktor-okHttp"]
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 6d3fbe6

Please sign in to comment.