2015-08-30 14:16:27 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-04-24 05:03:04 +08:00
|
|
|
google()
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-11-02 14:12:54 +08:00
|
|
|
classpath GRADLE_CLASS_PATH
|
|
|
|
classpath PROTOBUF_CLASS_PATH
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.protobuf'
|
|
|
|
|
|
|
|
android {
|
2018-11-02 14:12:54 +08:00
|
|
|
compileSdkVersion COMPILE_SDK.toInteger()
|
|
|
|
buildToolsVersion BUILD_TOOLS_VERSION
|
2015-08-30 14:16:27 +08:00
|
|
|
|
|
|
|
defaultConfig {
|
2016-05-11 06:35:02 +08:00
|
|
|
minSdkVersion 21
|
2018-01-27 04:24:10 +08:00
|
|
|
targetSdkVersion 28
|
2015-08-30 14:16:27 +08:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2015-10-17 08:18:54 +08:00
|
|
|
|
2018-08-25 08:48:25 +08:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2018-04-24 05:03:04 +08:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
|
|
|
}
|
2016-08-26 13:21:40 +08:00
|
|
|
|
2018-04-24 05:03:04 +08:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions "default"
|
|
|
|
|
2016-08-26 13:21:40 +08:00
|
|
|
productFlavors {
|
|
|
|
aosp {
|
2018-04-24 05:03:04 +08:00
|
|
|
dimension "default"
|
2016-08-26 13:21:40 +08:00
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
2017-07-04 04:50:52 +08:00
|
|
|
|
|
|
|
l3go {
|
2018-04-24 05:03:04 +08:00
|
|
|
dimension "default"
|
2017-07-04 04:50:52 +08:00
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
2017-10-31 01:03:34 +08:00
|
|
|
|
|
|
|
quickstep {
|
2018-04-24 05:03:04 +08:00
|
|
|
dimension "default"
|
2017-10-31 01:03:34 +08:00
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
2018-08-15 06:21:45 +08:00
|
|
|
|
|
|
|
minSdkVersion 28
|
2017-10-31 01:03:34 +08:00
|
|
|
}
|
2016-08-26 13:21:40 +08:00
|
|
|
}
|
2017-10-31 01:03:34 +08:00
|
|
|
|
|
|
|
// Disable release builds for now
|
|
|
|
android.variantFilter { variant ->
|
|
|
|
if (variant.buildType.name.endsWith('release')) {
|
|
|
|
variant.setIgnore(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-30 14:16:27 +08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2016-02-19 07:09:21 +08:00
|
|
|
res.srcDirs = ['res']
|
2019-01-05 07:52:46 +08:00
|
|
|
java.srcDirs = ['src']
|
2016-08-26 13:21:40 +08:00
|
|
|
manifest.srcFile 'AndroidManifest-common.xml'
|
2017-07-19 16:24:07 +08:00
|
|
|
proto {
|
|
|
|
srcDir 'protos/'
|
|
|
|
srcDir 'proto_overrides/'
|
|
|
|
}
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
2015-10-17 08:18:54 +08:00
|
|
|
|
2017-10-31 01:03:34 +08:00
|
|
|
debug {
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
}
|
|
|
|
|
2015-10-17 08:18:54 +08:00
|
|
|
androidTest {
|
2016-09-10 06:47:55 +08:00
|
|
|
res.srcDirs = ['tests/res']
|
2018-08-15 06:21:45 +08:00
|
|
|
java.srcDirs = ['tests/src', 'tests/tapl']
|
2017-01-21 17:33:02 +08:00
|
|
|
manifest.srcFile "tests/AndroidManifest-common.xml"
|
2015-10-17 08:18:54 +08:00
|
|
|
}
|
2016-08-26 13:21:40 +08:00
|
|
|
|
2017-10-31 01:03:34 +08:00
|
|
|
androidTestDebug {
|
|
|
|
manifest.srcFile "tests/AndroidManifest.xml"
|
2016-08-26 13:21:40 +08:00
|
|
|
}
|
2017-01-21 17:33:02 +08:00
|
|
|
|
2017-10-31 01:03:34 +08:00
|
|
|
aosp {
|
2019-01-05 07:52:46 +08:00
|
|
|
java.srcDirs = ['src_flags', "src_ui_overrides", 'src_shortcuts_overrides']
|
2017-01-21 17:33:02 +08:00
|
|
|
}
|
2017-07-04 04:50:52 +08:00
|
|
|
|
|
|
|
l3go {
|
|
|
|
res.srcDirs = ['go/res']
|
2018-10-31 08:16:25 +08:00
|
|
|
java.srcDirs = ['go/src', "src_ui_overrides"]
|
2017-10-31 01:03:34 +08:00
|
|
|
manifest.srcFile "go/AndroidManifest.xml"
|
2017-07-04 04:50:52 +08:00
|
|
|
}
|
|
|
|
|
2017-10-31 01:03:34 +08:00
|
|
|
quickstep {
|
|
|
|
res.srcDirs = ['quickstep/res']
|
2019-01-05 07:52:46 +08:00
|
|
|
java.srcDirs = ['src_flags', 'quickstep/src', 'src_shortcuts_overrides']
|
2017-10-31 01:03:34 +08:00
|
|
|
manifest.srcFile "quickstep/AndroidManifest.xml"
|
2017-07-04 04:50:52 +08:00
|
|
|
}
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2018-04-24 05:03:04 +08:00
|
|
|
maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" }
|
|
|
|
maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" }
|
2015-08-30 14:16:27 +08:00
|
|
|
mavenCentral()
|
2018-04-24 05:03:04 +08:00
|
|
|
google()
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-11-02 14:12:54 +08:00
|
|
|
implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
|
|
|
|
implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
|
|
|
|
implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
|
|
|
|
implementation PROTOBUF_DEPENDENCY
|
|
|
|
implementation project(':IconLoader')
|
|
|
|
|
|
|
|
// This is already included in sysui_shared
|
|
|
|
aospImplementation fileTree(dir: "libs", include: 'plugin_core.jar')
|
|
|
|
l3goImplementation fileTree(dir: "libs", include: 'plugin_core.jar')
|
2018-04-24 05:03:04 +08:00
|
|
|
|
|
|
|
quickstepImplementation fileTree(dir: "quickstep/libs", include: 'sysui_shared.jar')
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
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.0'
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.0'
|
|
|
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
|
2018-11-02 14:12:54 +08:00
|
|
|
androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
|
|
|
// Configure the protoc executable
|
|
|
|
protoc {
|
|
|
|
artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
|
2016-08-26 13:21:40 +08:00
|
|
|
|
|
|
|
generateProtoTasks {
|
|
|
|
all().each { task ->
|
|
|
|
task.builtins {
|
|
|
|
remove java
|
|
|
|
javanano {
|
2017-07-19 16:24:07 +08:00
|
|
|
option "java_package=launcher_log_extension.proto|com.android.launcher3.userevent.nano"
|
2016-11-10 08:24:30 +08:00
|
|
|
option "java_package=launcher_log.proto|com.android.launcher3.userevent.nano"
|
2017-03-08 01:10:06 +08:00
|
|
|
option "java_package=launcher_dump.proto|com.android.launcher3.model.nano"
|
2016-11-23 04:54:32 +08:00
|
|
|
option "enum_style=java"
|
2016-08-26 13:21:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
}
|