-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
93 lines (80 loc) · 2.08 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
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.github.promeg:android-multi-channel-plugin:0.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'android-multi-channel'
repositories {
jcenter()
mavenLocal()
}
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
productFlavors{
inside{}
outside{}
}
signingConfigs {
// Never upload your keystore & password to VCS
debug {
storeFile file("DebugKeyStore.jks")
storePassword "123456"
keyAlias "debugkey"
keyPassword "123456"
}
release {
storeFile file("ReleaseKeyStore.jks")
storePassword "123456"
keyAlias "releasekey"
keyPassword "123456"
}
}
defaultConfig {
applicationId "com.github.promeg.multichannel.example"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.github.promeg:android-multi-channel-plugin-lib:0.1'
}
multiFlavors{
prefix = "A_";
subfix = "_B";
defaultSigningConfig = android.signingConfigs.release
channelConfig {
inside {
// override default signing config
signingConfig = android.signingConfigs.debug
childFlavors = ["c1", "c2"]
}
outside {
// using default signing config
childFlavors = ["cc1", "cc2"]
}
notexist {
childFlavors = ["ccc1", "ccc2"]
}
}
}