-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathbuild.gradle
40 lines (34 loc) · 1.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
applicationId "com.mypopsy.sample.doorsignview"
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(path: ':library')
compile deps.support.appcompat
compile deps.support.design
}
afterEvaluate { project ->
android.applicationVariants.each { variant ->
Task copyApk = task(("release" + variant.variantData.name.capitalize()), type:Copy) {
from variant.outputs[0].outputFile
destinationDir project.projectDir
dependsOn variant.assemble
}
variant.assemble.finalizedBy(copyApk)
}
}