2015-08-30 06:16:27 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2016-09-28 19:49:25 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:2.2.0'
|
2016-08-26 05:21:40 +00:00
|
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.0'
|
2015-08-30 06:16:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.protobuf'
|
|
|
|
|
|
|
|
android {
|
2016-07-07 22:01:26 +00:00
|
|
|
compileSdkVersion 25
|
|
|
|
buildToolsVersion '24.0.0'
|
2015-08-30 06:16:27 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2016-05-10 22:35:02 +00:00
|
|
|
minSdkVersion 21
|
2016-08-26 05:21:40 +00:00
|
|
|
targetSdkVersion 25
|
2015-08-30 06:16:27 +00:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2015-10-17 00:18:54 +00:00
|
|
|
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2015-08-30 06:16:27 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
|
|
|
}
|
2016-08-26 05:21:40 +00:00
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
aosp {
|
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
}
|
|
|
|
}
|
2015-08-30 06:16:27 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2016-02-18 23:09:21 +00:00
|
|
|
res.srcDirs = ['res']
|
2016-05-24 04:40:53 +00:00
|
|
|
java.srcDirs = ['src', 'src_config']
|
2016-08-26 05:21:40 +00:00
|
|
|
manifest.srcFile 'AndroidManifest-common.xml'
|
2015-08-30 06:16:27 +00:00
|
|
|
proto.srcDirs 'protos/'
|
|
|
|
}
|
2015-10-17 00:18:54 +00:00
|
|
|
|
|
|
|
androidTest {
|
|
|
|
java.srcDirs = ['tests/src']
|
|
|
|
manifest.srcFile "tests/AndroidManifest.xml"
|
|
|
|
}
|
2016-08-26 05:21:40 +00:00
|
|
|
|
|
|
|
aosp {
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
}
|
2015-08-30 06:16:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-02-25 22:50:53 +00:00
|
|
|
compile 'com.android.support:support-v4:23.1.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.1.1'
|
2016-03-17 22:39:39 +00:00
|
|
|
compile 'com.android.support:palette-v7:23.2.0'
|
2015-08-30 06:16:27 +00:00
|
|
|
compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2'
|
2015-10-17 00:18:54 +00:00
|
|
|
|
|
|
|
testCompile 'junit:junit:4.12'
|
2016-02-25 22:50:53 +00:00
|
|
|
androidTestCompile 'com.android.support.test:runner:0.5'
|
|
|
|
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
|
2016-03-17 22:39:39 +00:00
|
|
|
androidTestCompile 'com.android.support:support-annotations:23.2.0'
|
2015-08-30 06:16:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
|
|
|
// Configure the protoc executable
|
|
|
|
protoc {
|
|
|
|
artifact = 'com.google.protobuf:protoc:3.0.0-alpha-3'
|
2016-08-26 05:21:40 +00:00
|
|
|
|
|
|
|
generateProtoTasks {
|
|
|
|
all().each { task ->
|
|
|
|
task.builtins {
|
|
|
|
remove java
|
|
|
|
javanano {
|
|
|
|
option 'ignore_services=false'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-30 06:16:27 +00:00
|
|
|
}
|
|
|
|
}
|