Skip to content

Commit

Permalink
[feature/#719] Fix local build
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed May 27, 2024
1 parent c9d90ba commit 6a7a2e3
Show file tree
Hide file tree
Showing 10 changed files with 46,352 additions and 19 deletions.
6 changes: 5 additions & 1 deletion app-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ android {
signingConfig = signingConfigs.getByName("debug")
matchingFallbacks += listOf("release")
isDebuggable = false
proguardFiles("benchmark-rules.pro")
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
}
Expand Down
25,891 changes: 25,891 additions & 0 deletions app-android/src/devRelease/generated/baselineProfiles/baseline-prof.txt

Large diffs are not rendered by default.

20,425 changes: 20,425 additions & 0 deletions app-android/src/prodRelease/generated/baselineProfiles/baseline-prof.txt

Large diffs are not rendered by default.

27 changes: 20 additions & 7 deletions baselineprofile/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import com.android.build.api.dsl.ManagedVirtualDevice

@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.androidTest)
alias(libs.plugins.kotlinGradlePlugin)
alias(libs.plugins.androidx.baselineprofile)
}

android {
namespace = "io.github.droidkaigi.confsched2023"
namespace = "io.github.droidkaigi.confsched2023.baselineprofile"
compileSdk = 34

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}

defaultConfig {
Expand All @@ -32,8 +31,22 @@ android {

flavorDimensions += listOf("network")
productFlavors {
create("dev") { dimension = "network" }
create("prod") { dimension = "network" }
create("dev") {
dimension = "network"
buildConfigField(
"String",
"APP_FLAVOR_SUFFIX",
"\".dev\""
)
}
create("prod") {
dimension = "network"
buildConfigField(
"String",
"APP_FLAVOR_SUFFIX",
"\"\""
)
}
}

testOptions.managedDevices.devices {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.github.droidkaigi.confsched2023.baselineprofile

val PACKAGE_NAME = buildString {
append("io.github.droidkaigi.confsched2023")
append(BuildConfig.APP_FLAVOR_SUFFIX)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.droidkaigi.confsched2023
package io.github.droidkaigi.confsched2023.baselineprofile

import androidx.benchmark.macro.junit4.BaselineProfileRule
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.droidkaigi.confsched2023
package io.github.droidkaigi.confsched2023.baselineprofile

import androidx.benchmark.macro.BaselineProfileMode
import androidx.benchmark.macro.CompilationMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class KmpPlugin : Plugin<Project> {
with(pluginManager) {
apply("org.jetbrains.kotlin.multiplatform")
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java) {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink>().configureEach {
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ twitterComposeRule = "0.0.26"
lottie = "6.1.0"
kover = "0.7.3"
uiautomator = "2.2.0"
benchmark-macro-junit4 = "1.2.0-beta01"
androidx-baselineprofile = "1.2.0-beta01"
benchmark-macro-junit4 = "1.2.4"
androidx-baselineprofile = "1.2.4"
profileinstaller = "1.3.1"

[libraries]
Expand Down

0 comments on commit 6a7a2e3

Please sign in to comment.