Skip to content

Commit

Permalink
Not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Jul 26, 2024
1 parent af377c3 commit 6dc6666
Show file tree
Hide file tree
Showing 13 changed files with 14,580 additions and 5,751 deletions.
20 changes: 19 additions & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ plugins {
id(Dependencies.Plugin.ksp) version Versions.Plugin.ksp
id(Dependencies.Plugin.junit5) version Versions.Plugin.junit5
id(Dependencies.Plugin.composeCompiler) version Versions.kotlin
// id("com.android.application")
// id("androidx.baselineprofile")
id(Dependencies.Plugin.baselineProfileId)
}

val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
Expand Down Expand Up @@ -87,6 +90,12 @@ android {
applicationIdSuffix = ".leakcanary"
matchingFallbacks += BuildTypes.DEBUG
}
create(BuildTypes.BENCHMARK) {
initWith(buildTypes.getByName(BuildTypes.BENCHMARK))
isMinifyEnabled = true
signingConfig = null
matchingFallbacks += BuildTypes.RELEASE
}
}

flavorDimensions += FlavorDimensions.BILLING
Expand Down Expand Up @@ -253,7 +262,8 @@ androidComponents {
enabledAppVariantTriples.map { (billing, infra, buildType) ->
billing + infra.capitalized() + buildType.capitalized()
}
enabledVariants.contains(currentVariant.name)
val required = listOf("ossProdBenchmarkRelease", "playProdBenchmarkRelease", "playDevmoleBenchmarkRelease", "ossProdBenchmarkFdroid", "playStagemoleBenchmarkRelease")
enabledVariants.contains(currentVariant.name) or required.contains(currentVariant.name)
}
}
}
Expand Down Expand Up @@ -320,6 +330,8 @@ dependencies {
implementation(project(Dependencies.Mullvad.tileService))
implementation(project(Dependencies.Mullvad.themeLib))
implementation(project(Dependencies.Mullvad.vpnService))
implementation("androidx.profileinstaller:profileinstaller:1.3.1")
"baselineProfile"(project(":baselineprofile"))

// Play implementation
playImplementation(project(Dependencies.Mullvad.billingLib))
Expand Down Expand Up @@ -379,3 +391,9 @@ dependencies {
androidTestImplementation(Dependencies.junitApi)
androidTestImplementation(Dependencies.Compose.junit5)
}

baselineProfile {
//mergeIntoMain = true
saveInSrc = true
automaticGenerationDuringBuild = false
}
Loading

0 comments on commit 6dc6666

Please sign in to comment.