This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
111 lines (100 loc) · 2.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'com.android.application'
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:+'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:cardview-v7:21.0.3'
compile 'com.jakewharton:butterknife:6.1.0'
// compile 'com.afollestad:material-dialogs:0.7.1.1'
compile 'com.ogaclejapan.smarttablayout:library:1.1.0@aar'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile(project(':common')) {
exclude group: 'com.android.support', module: 'support-v4'
}
}
def getDate() {
(new Date().format('yyyyMMdd')).toInteger()
}
android {
compileSdkVersion 22
buildToolsVersion "23.0.1"
defaultConfig {
targetSdkVersion 19
minSdkVersion 15
versionCode getDate()
//versionName "build-" + getDate()
}
signingConfigs {
debug {
storeFile file(System.getProperty("user.home") + "/.android/debug.keystore")
}
release {
// Save password to ~/.gradle/gradle.properties
storeFile file(System.getProperty("user.home") + MC_ANDROID_STORE_PATH)
storePassword MC_ANDROID_STORE_PASSWORD
keyAlias "gojuon"
keyPassword MC_ANDROID_KEY_PASSWORD
}
}
buildTypes {
debug {
versionNameSuffix "-DEBUG"
}
release {
debuggable false
signingConfig signingConfigs.release
//runProguard true
//proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
java {
srcDir 'src'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
resources {
srcDir 'src'
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
}
}
// https://stackoverflow.com/questions/24668746
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}