Update Java versions, add generated profiles

This commit is contained in:
Isira Seneviratne 2024-01-02 16:48:44 +05:30
parent c8c767f86d
commit df604e42b0
4 changed files with 25732 additions and 12 deletions

View File

@ -57,6 +57,7 @@ android {
jvmTarget = "17" jvmTarget = "17"
} }
// Comment this block if issues occur while generating the baseline profile
splits { splits {
abi { abi {
isEnable = true isEnable = true

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -11,12 +11,12 @@ android {
compileSdk = 34 compileSdk = 34
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_17
} }
kotlinOptions { kotlinOptions {
jvmTarget = "1.8" jvmTarget = JavaVersion.VERSION_17.toString()
} }
defaultConfig { defaultConfig {
@ -28,20 +28,21 @@ android {
targetProjectPath = ":app" targetProjectPath = ":app"
testOptions.managedDevices.devices { // testOptions.managedDevices.devices {
create<ManagedVirtualDevice>("pixel6Api34") { // create<ManagedVirtualDevice>("pixel6Api34") {
device = "Pixel 6" // device = "Pixel 6"
apiLevel = 34 // apiLevel = 34
systemImageSource = "google" // systemImageSource = "google"
} // }
} // }
} }
// This is the configuration block for the Baseline Profile plugin. // This is the configuration block for the Baseline Profile plugin.
// You can specify to run the generators on a managed devices or connected devices. // You can specify to run the generators on a managed devices or connected devices.
// For connected devices, API 28+ (rooted) or 33+ (not rooted) is required.
baselineProfile { baselineProfile {
managedDevices += "pixel6Api34" // managedDevices += "pixel6Api34"
useConnectedDevices = false useConnectedDevices = true
} }
dependencies { dependencies {