diff options
author | Kevin <kevhan@google.com> | 2019-01-04 17:54:51 -0800 |
---|---|---|
committer | Kevin <kevhan@google.com> | 2019-01-07 14:37:02 -0800 |
commit | 2857871b7f5cd68657020b8c1f39d6ab4b509b06 (patch) | |
tree | e5fffc1e7429ee83655425e7c9c2967a059c38ca /build.gradle | |
parent | 61ad3016be24e672fe215e355a2638fbcb1c6f63 (diff) | |
download | android_packages_apps_Trebuchet-2857871b7f5cd68657020b8c1f39d6ab4b509b06.tar.gz android_packages_apps_Trebuchet-2857871b7f5cd68657020b8c1f39d6ab4b509b06.tar.bz2 android_packages_apps_Trebuchet-2857871b7f5cd68657020b8c1f39d6ab4b509b06.zip |
Add build variant for go-specific recents.
This CL sets up the source directories to build a Go version of
quickstep recents/icon recents. This is accomplished by splitting the
quickstep resources/sources into two groups: the base source and
sources that should be overridden (recents_ui_overrides). The new Go
recents variant then takes the base and combines it with the sources
in go/quickstep which should replace the ones in recents_ui_overrides.
As of now, no classes have been moved yet, so there
are only placeholder files.
In addition, this modifies the make and gradle files to reflect the new
sources.
Bug: 114136250
Test: build all targets via tapas, build all APKs from IDE
Change-Id: I6d0a4d93ab1c38d4ffc28fd21823caadd96d23f7
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index e40df06e4..4191d4790 100644 --- a/build.gradle +++ b/build.gradle @@ -59,6 +59,12 @@ android { minSdkVersion 28 } + withQuickstepIconRecents { + dimension "recents" + + minSdkVersion 28 + } + withoutQuickstep { dimension "recents" } @@ -67,7 +73,12 @@ android { // Disable release builds for now android.variantFilter { variant -> if (variant.buildType.name.endsWith('release')) { - variant.setIgnore(true); + variant.setIgnore(true) + } + + // Icon recents is Go only + if (name.contains("WithQuickstepIconRecents") && !name.contains("l3go")) { + variant.setIgnore(true) } } @@ -112,8 +123,14 @@ android { } withQuickstep { - res.srcDirs = ['quickstep/res'] - java.srcDirs = ['quickstep/src'] + res.srcDirs = ['quickstep/res', 'quickstep/recents_ui_overrides/res'] + java.srcDirs = ['quickstep/src', 'quickstep/recents_ui_overrides/src'] + manifest.srcFile "quickstep/AndroidManifest.xml" + } + + withQuickstepIconRecents { + res.srcDirs = ['quickstep/res', 'go/quickstep/res'] + java.srcDirs = ['quickstep/src', 'go/quickstep/src'] manifest.srcFile "quickstep/AndroidManifest.xml" } } @@ -136,6 +153,9 @@ dependencies { // Recents lib dependency withQuickstepImplementation fileTree(dir: "quickstep/libs", include: 'sysui_shared.jar') + // Recents lib dependency for Go + withQuickstepIconRecentsImplementation fileTree(dir: "quickstep/libs", include: 'sysui_shared.jar') + // Required for AOSP to compile. This is already included in the sysui_shared.jar withoutQuickstepImplementation fileTree(dir: "libs", include: 'plugin_core.jar') |