2015-08-30 14:16:27 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2017-04-14 02:24:54 +08:00
|
|
|
jcenter()
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
2017-10-27 06:36:10 +08:00
|
|
|
classpath 'com.android.tools.build:gradle:2.3.3'
|
2016-08-26 13:21:40 +08:00
|
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.0'
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.protobuf'
|
|
|
|
|
|
|
|
android {
|
2018-01-27 04:24:10 +08:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion '28.0.0'
|
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
|
|
|
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
|
|
|
}
|
2016-08-26 13:21:40 +08:00
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
aosp {
|
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
2017-07-04 04:50:52 +08:00
|
|
|
|
|
|
|
l3go {
|
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
2017-10-31 01:03:34 +08:00
|
|
|
|
|
|
|
quickstep {
|
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
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']
|
2017-07-04 04:50:52 +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']
|
2017-07-04 04:50:52 +08:00
|
|
|
java.srcDirs = ['tests/src']
|
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 {
|
2017-11-07 13:09:23 +08:00
|
|
|
java.srcDirs = ['src_flags', "src_ui_overrides"]
|
2017-01-21 17:33:02 +08:00
|
|
|
}
|
2017-07-04 04:50:52 +08:00
|
|
|
|
|
|
|
l3go {
|
|
|
|
res.srcDirs = ['go/res']
|
2017-11-07 13:09:23 +08:00
|
|
|
java.srcDirs = ['go/src_flags', "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']
|
2017-11-07 13:09:23 +08:00
|
|
|
java.srcDirs = ['src_flags', 'quickstep/src']
|
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 {
|
|
|
|
mavenCentral()
|
2017-04-14 02:24:54 +08:00
|
|
|
jcenter()
|
2015-08-30 14:16:27 +08:00
|
|
|
}
|
|
|
|
|
2018-01-27 04:24:10 +08:00
|
|
|
final String SUPPORT_LIBS_VERSION = '28.0.0-SNAPSHOT'
|
2015-08-30 14:16:27 +08:00
|
|
|
dependencies {
|
2016-12-17 07:04:51 +08:00
|
|
|
compile "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
|
2017-06-15 10:04:10 +08:00
|
|
|
compile "com.android.support:support-dynamic-animation:${SUPPORT_LIBS_VERSION}"
|
2016-12-17 07:04:51 +08:00
|
|
|
compile "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
|
2017-07-04 04:50:52 +08:00
|
|
|
compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
|
2015-10-17 08:18:54 +08:00
|
|
|
|
2017-11-03 02:04:49 +08:00
|
|
|
quickstepCompile fileTree(dir: "quickstep/libs", include: 'sysui_shared.jar')
|
|
|
|
|
2015-10-17 08:18:54 +08:00
|
|
|
testCompile 'junit:junit:4.12'
|
2017-07-04 04:50:52 +08:00
|
|
|
androidTestCompile "org.mockito:mockito-core:1.9.5"
|
2016-09-10 06:47:55 +08:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
2017-11-07 13:09:23 +08:00
|
|
|
androidTestCompile 'com.android.support.test:runner:1.0.0'
|
|
|
|
androidTestCompile 'com.android.support.test:rules:1.0.0'
|
2016-02-26 06:50:53 +08:00
|
|
|
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
|
2017-01-06 07:22:41 +08:00
|
|
|
androidTestCompile "com.android.support:support-annotations:${SUPPORT_LIBS_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
|
|
|
}
|
|
|
|
}
|