diff --git a/SharedLibWrapper/build.gradle b/SharedLibWrapper/build.gradle new file mode 100644 index 0000000000..674e38abd6 --- /dev/null +++ b/SharedLibWrapper/build.gradle @@ -0,0 +1,17 @@ +apply plugin: 'java' + +final String ANDROID_TOP = "${rootDir}/../../.." +final String FRAMEWORK_PREBUILTS_DIR = "${ANDROID_TOP}/prebuilts/framework_intermediates/" + +sourceSets { + main { + java.srcDirs = ["${ANDROID_TOP}/frameworks/lib/systemui/SharedLibWrapper/src"] + } +} + +sourceCompatibility = 1.8 + +dependencies { + implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 'sysui_shared.jar') + compileOnly fileTree(dir: "$ANDROID_TOP/prebuilts/fullsdk-${org.gradle.internal.os.OperatingSystem.current().isMacOsX() ? "darwin" : "linux"}/platforms/${COMPILE_SDK}", include: 'android.jar') +} diff --git a/build.gradle b/build.gradle index e296455bec..534ca65115 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ buildscript { repositories { mavenCentral() google() + jcenter() } dependencies { classpath GRADLE_CLASS_PATH @@ -62,12 +63,6 @@ android { minSdkVersion 28 } - withQuickstepIconRecents { - dimension "recents" - - minSdkVersion 28 - } - withoutQuickstep { dimension "recents" } @@ -78,11 +73,6 @@ android { if (variant.buildType.name.endsWith('release')) { variant.setIgnore(true) } - - // Icon recents is Go only - if (name.contains("WithQuickstepIconRecents") && !name.contains("l3go")) { - variant.setIgnore(true) - } } sourceSets { @@ -96,10 +86,6 @@ android { } } - debug { - manifest.srcFile "AndroidManifest.xml" - } - androidTest { res.srcDirs = ['tests/res'] java.srcDirs = ['tests/src', 'tests/tapl'] @@ -112,15 +98,30 @@ android { aosp { java.srcDirs = ['src_flags', 'src_shortcuts_overrides'] + } + + aospWithoutQuickstep { manifest.srcFile "AndroidManifest.xml" } + aospWithQuickstep { + manifest.srcFile "quickstep/AndroidManifest-launcher.xml" + } + l3go { res.srcDirs = ['go/res'] java.srcDirs = ['go/src'] manifest.srcFile "go/AndroidManifest.xml" } + l3goWithoutQuickstepDebug { + manifest.srcFile "AndroidManifest.xml" + } + + l3goWithQuickstepDebug { + manifest.srcFile "quickstep/AndroidManifest-launcher.xml" + } + withoutQuickstep { java.srcDirs = ['src_ui_overrides'] } @@ -130,20 +131,17 @@ android { 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" - } } } -repositories { - maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" } - maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" } - mavenCentral() - google() +allprojects { + repositories { + maven { url "../../../prebuilts/sdk/current/androidx/m2repository" } + maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" } + maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" } + mavenCentral() + google() + } } dependencies { @@ -151,14 +149,12 @@ dependencies { implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}" implementation "androidx.preference:preference:${ANDROID_X_VERSION}" implementation project(':IconLoader') + withQuickstepImplementation project(':SharedLibWrapper') implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'launcher_protos.jar') // Recents lib dependency withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 'sysui_shared.jar') - // Recents lib dependency for Go - withQuickstepIconRecentsImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 'sysui_shared.jar') - // Required for AOSP to compile. This is already included in the sysui_shared.jar withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_core.jar') @@ -175,7 +171,7 @@ dependencies { protobuf { // Configure the protoc executable protoc { - artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3' + artifact = 'com.google.protobuf:protoc:3.0.0' generateProtoTasks { all().each { task -> diff --git a/gradle.properties b/gradle.properties index a77f52a22f..7a51375653 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,11 +2,11 @@ android.useAndroidX = true android.enableJetifier = true -ANDROID_X_VERSION=1.0.0-beta01 +ANDROID_X_VERSION=1+ -GRADLE_CLASS_PATH=com.android.tools.build:gradle:3.3.0 +GRADLE_CLASS_PATH=com.android.tools.build:gradle:3.5.1 -PROTOBUF_CLASS_PATH=com.google.protobuf:protobuf-gradle-plugin:0.8.6 +PROTOBUF_CLASS_PATH=com.google.protobuf:protobuf-gradle-plugin:0.8.8 PROTOBUF_DEPENDENCY=com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7 BUILD_TOOLS_VERSION=28.0.3 diff --git a/iconloaderlib/build.gradle b/iconloaderlib/build.gradle index 8a4d2b76e5..d7a62e1114 100644 --- a/iconloaderlib/build.gradle +++ b/iconloaderlib/build.gradle @@ -3,7 +3,6 @@ apply plugin: 'com.android.library' android { compileSdkVersion COMPILE_SDK buildToolsVersion BUILD_TOOLS_VERSION - publishNonDefault true defaultConfig { minSdkVersion 25 diff --git a/settings.gradle b/settings.gradle index b52bd4f784..ce13bfb4b2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,5 @@ include ':IconLoader' project(':IconLoader').projectDir = new File(rootDir, 'iconloaderlib') + +include ':SharedLibWrapper' +project(':SharedLibWrapper').projectDir = new File(rootDir, 'SharedLibWrapper')