mirror of
https://github.com/alesimula/Murine-launcher.git
synced 2026-10-28 09:43:42 +00:00
234 lines
7.5 KiB
Groovy
234 lines
7.5 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
}
|
|
dependencies {
|
|
classpath GRADLE_CLASS_PATH
|
|
classpath PROTOBUF_CLASS_PATH
|
|
classpath KOTLIN
|
|
}
|
|
}
|
|
|
|
final String ANDROID_TOP = "${rootDir}/../../.."
|
|
final String FRAMEWORK_PREBUILTS_DIR = "${ANDROID_TOP}/prebuilts/libs/"
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.google.protobuf'
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
|
|
android {
|
|
compileSdkVersion COMPILE_SDK
|
|
|
|
namespace = 'com.android.launcher3'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 26
|
|
targetSdkVersion 36
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
buildConfigField "boolean", "IS_STUDIO_BUILD", "false"
|
|
buildConfigField "boolean", "QSB_ON_FIRST_SCREEN", "true"
|
|
buildConfigField "boolean", "IS_DEBUG_DEVICE", "false"
|
|
buildConfigField "boolean", "WIDGET_ON_FIRST_SCREEN", "true"
|
|
buildConfigField "boolean", "WIDGETS_ENABLED", "true"
|
|
buildConfigField "boolean", "NOTIFICATION_DOTS_ENABLED", "true"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_21
|
|
targetCompatibility JavaVersion.VERSION_21
|
|
}
|
|
|
|
// The flavor dimensions for build variants (e.g. aospWithQuickstep, aospWithoutQuickstep)
|
|
// See: https://developer.android.com/studio/build/build-variants#flavor-dimensions
|
|
flavorDimensions "app", "recents"
|
|
|
|
productFlavors {
|
|
aosp {
|
|
dimension "app"
|
|
applicationId 'com.android.launcher3'
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
}
|
|
|
|
l3go {
|
|
dimension "app"
|
|
applicationId 'com.android.launcher3'
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
}
|
|
|
|
withQuickstep {
|
|
dimension "recents"
|
|
|
|
minSdkVersion 28
|
|
}
|
|
|
|
withoutQuickstep {
|
|
dimension "recents"
|
|
}
|
|
}
|
|
|
|
// Disable release builds for now
|
|
android.variantFilter { variant ->
|
|
if (variant.buildType.name.endsWith('release')) {
|
|
variant.setIgnore(true)
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs = ['res']
|
|
java.srcDirs = ['src', 'src_plugins', 'tests/shared', 'system_ext', 'tests/multivalentTests/shared', 'systemui_core/shared']
|
|
manifest.srcFile 'AndroidManifest-common.xml'
|
|
proto {
|
|
srcDirs = ['protos/', 'protos_overrides/']
|
|
}
|
|
}
|
|
|
|
androidTest {
|
|
res.srcDirs = ['tests/res']
|
|
java.srcDirs = ['tests/src', 'tests/tapl']
|
|
manifest.srcFile "tests/AndroidManifest-common.xml"
|
|
}
|
|
|
|
androidTestDebug {
|
|
manifest.srcFile "tests/AndroidManifest.xml"
|
|
}
|
|
|
|
aosp {
|
|
java.srcDirs = ['src_flags', 'src_shortcuts_overrides']
|
|
}
|
|
|
|
aospWithoutQuickstep {
|
|
java.srcDirs = ['src_no_quickstep']
|
|
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']
|
|
}
|
|
|
|
withQuickstep {
|
|
res.srcDirs = ['quickstep/res', 'quickstep/recents_ui_overrides/res']
|
|
java.srcDirs = ['quickstep/src', 'quickstep/recents_ui_overrides/src']
|
|
manifest.srcFile "quickstep/AndroidManifest.xml"
|
|
}
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '21'
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
}
|
|
|
|
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()
|
|
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
|
|
implementation "androidx.recyclerview:recyclerview:1.3.2"
|
|
implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
|
|
implementation project(':IconLoader')
|
|
implementation project(':systemUIPluginCore')
|
|
implementation project(':animationlib')
|
|
// implementation project(':UiTestsLibLauncher')
|
|
// withQuickstepImplementation project(':SharedLibWrapper')
|
|
implementation 'com.google.protobuf:protobuf-javalite:4.26.1'
|
|
implementation 'androidx.core:core-ktx:1.16.0'
|
|
|
|
// Recents lib dependency
|
|
withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}", include: 'sysui_shared.jar')
|
|
|
|
// Required for AOSP to compile. This is already included in the sysui_shared.jar
|
|
withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}", include: 'plugin_core.jar')
|
|
withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}", include: 'WindowManager-Shell-15.jar')
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation "org.mockito:mockito-core:1.9.5"
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
|
|
androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
|
|
|
|
api 'com.airbnb.android:lottie:6.6.6'
|
|
implementation 'com.google.dagger:dagger:2.56.2'
|
|
annotationProcessor 'com.google.dagger:dagger-compiler:2.56.2'
|
|
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.slice:slice-builders:1.0.0'
|
|
implementation 'androidx.graphics:graphics-shapes:1.1.0-alpha01'
|
|
|
|
implementation "androidx.window:window:1.3.0"
|
|
}
|
|
|
|
def protocVersion = '4.26.1'//'3.8.0'
|
|
|
|
protobuf {
|
|
// Configure the protoc executable
|
|
protoc {
|
|
if (osdetector.os == "osx") {
|
|
artifact = "com.google.protobuf:protoc:${protocVersion}:osx-x86_64"
|
|
} else {
|
|
// artifact = "com.google.protobuf:protoc:${protocVersion}${PROTO_ARCH_SUFFIX}"
|
|
artifact = "com.google.protobuf:protoc:${protocVersion}"
|
|
}
|
|
}
|
|
generateProtoTasks {
|
|
all().each { task ->
|
|
task.builtins {
|
|
remove java
|
|
java {
|
|
option "lite"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|