123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- apply from: configPath
- apply from: "$scriptPath/android_app.gradle"
- apply from: protobufNanoConfig
- apply from: frameworkDependencies
- android {
- namespace 'com.android.launcher3'
- defaultConfig {
- versionCode 30
- versionName "11.0"
- }
- flavorDimensions = ["app", "recents"]
- productFlavors {
- aosp {
- dimension "app"
- }
- withQuickstep {
- dimension "recents"
- }
- }
- sourceSets {
- main {
- res.srcDirs = ["$launcherCode/res"]
- java.srcDir "$launcherCode/src"
- java.srcDir "$launcherCode/src_plugins"
- java.srcDir "$launcherCode/src_build_config"
- manifest.srcFile "$launcherCode/AndroidManifest-common.xml"
- proto {
- srcDir "$launcherCode/protos/"
- srcDir "$launcherCode/proto_overrides/"
- }
- }
- aosp {
- java.srcDir "$launcherCode/src_flags"
- java.srcDir "$launcherCode/src_shortcuts_overrides"
- }
- aospWithQuickstep {
- manifest.srcFile "$launcherCode/quickstep/AndroidManifest-launcher.xml"
- }
- withQuickstep {
- java.srcDir "$launcherCode/quickstep/src"
- java.srcDir "$launcherCode/quickstep/recents_ui_overrides/src"
- res.srcDir "$launcherCode/quickstep/res"
- res.srcDir "$launcherCode/quickstep/recents_ui_overrides/res"
- manifest.srcFile "$launcherCode/quickstep/AndroidManifest.xml"
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- final String ANDROID_X_VERSION = '1.0.0'
- dependencies {
- implementation "androidx.core:core:1.2.0"
- implementation "androidx.fragment:fragment:1.2.0"
- implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
- implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
- implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
- implementation "com.google.protobuf:protobuf-javalite:3.21.1"
- implementation project(':1100_r48:IconLoader')
- implementation project(':1100_r48:LauncherLogProtosLite')
- implementation project(':1100_r48:SystemUI:PluginCoreLib')
- implementation project(':1100_r48:SystemUI:SystemUISharedLib')
- implementation project(':1100_r48:SystemUI:SysUiStatsLog')
- }
- protobuf {
- generateProtoTasks {
- all().each { task ->
- task.builtins {
- javanano {
- option "java_package=launcher_log_extension.proto|com.android.launcher3.userevent.nano"
- option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
- option "java_package=launcher_dump.proto|com.android.launcher3.model.nano"
- option "enum_style=java"
- }
- }
- }
- }
- }
|