-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
67 lines (60 loc) · 1.55 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.0'
}
}
apply plugin: 'android'
dependencies {
}
android {
compileSdkVersion 19
buildToolsVersion "19.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
ndk{
moduleName "cppmodule"
abiFilter "armeabi-v7a"
stl "gnustl_static"
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
}
signingConfigs {
myConfig
}
buildTypes {
release {
signingConfig signingConfigs.myConfig
runProguard true
proguardFile getDefaultProguardFile('proguard-android.txt')
proguardFile file('proguard-project.txt')
}
}
//キーストア情報はgradle.propertiesファイルから取り込む
if (project.hasProperty('storeFile')) {
android.signingConfigs. myConfig.storeFile = file(storeFile)
}
if (project.hasProperty('storePassword')) {
android.signingConfigs. myConfig.storePassword = storePassword
}
if (project.hasProperty('keyAlias')) {
android.signingConfigs. myConfig.keyAlias = keyAlias
}
if (project.hasProperty('keyPassword')) {
android.signingConfigs. myConfig. keyPassword = keyPassword
}
}