Skip to content

Commit

Permalink
Move experimental property to the Android scope
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis committed Nov 6, 2023
1 parent 0bd3475 commit 63e0e31
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ android {
signingConfig = signingConfigs.getByName("debug")
// Only use benchmark proguard rules
proguardFiles("benchmark-rules.pro")
isMinifyEnabled = false // Needed for DEX layout optimizations
applicationIdSuffix = NiaBuildType.BENCHMARK.applicationIdSuffix
// Enable DEX layout optimizations
// https://developer.android.com/topic/performance/baselineprofiles/dex-layout-optimizations#enable-dex-optimizations
isMinifyEnabled = false
experimentalProperties["android.experimental.r8.dex-startup-optimization"] = true
}
}

Expand All @@ -80,6 +77,10 @@ android {
}
}
namespace = "com.google.samples.apps.nowinandroid"

// Enable DEX layout optimizations
// https://developer.android.com/topic/performance/baselineprofiles/dex-layout-optimizations#enable-dex-optimizations
experimentalProperties["android.experimental.r8.dex-startup-optimization"] = true
}

dependencies {
Expand Down

0 comments on commit 63e0e31

Please sign in to comment.