forked from mozilla-mobile/android-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
166 lines (136 loc) · 5.02 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion Config.compileSdkVersion
defaultConfig {
applicationId "org.mozilla.samples.browser"
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "engine", "abi"
productFlavors {
// GeckoView release channels
geckoNightly {
dimension "engine"
}
geckoBeta {
dimension "engine"
}
geckoRelease {
dimension "engine"
}
// WebView
system {
dimension "engine"
}
servo {
dimension "engine"
}
// Processor architecture
arm {
dimension "abi"
}
x86 {
dimension "abi"
}
aarch64 {
dimension "abi"
}
universal {
dimension "abi"
}
}
variantFilter { variant ->
if (variant.buildType.name == "release") {
// This is a sample app that we are not releasing. Save some time and do not build
// release versions.
setIgnore(true)
}
def flavors = variant.flavors*.name.toString().toLowerCase()
if (flavors.contains("system") && !flavors.contains("universal")) {
setIgnore(true)
}
if (flavors.contains("gecko") && flavors.contains("universal")) {
setIgnore(true)
}
if (flavors.contains("servo") && !flavors.contains("arm")) {
setIgnore(true)
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
configurations {
geckoNightlyArmImplementation {}
geckoNightlyX86Implementation {}
geckoNightlyAarch64Implementation {}
geckoBetaArmImplementation {}
geckoBetaX86Implementation {}
geckoBetaAarch64Implementation {}
geckoReleaseArmImplementation {}
geckoReleaseX86Implementation {}
geckoReleaseAarch64Implementation {}
}
dependencies {
implementation project(':concept-awesomebar')
implementation project(':concept-engine')
implementation project(':concept-tabstray')
implementation project(':concept-toolbar')
implementation project(':concept-storage')
implementation project(':browser-awesomebar')
implementation project(':browser-engine-system')
implementation project(':browser-domains')
implementation project(':browser-search')
implementation project(':browser-session')
implementation project(':browser-tabstray')
implementation project(':browser-toolbar')
implementation project(':browser-menu')
implementation project(':browser-storage-memory')
implementation project(':feature-awesomebar')
implementation project(':feature-contextmenu')
implementation project(':feature-customtabs')
implementation project(':feature-intent')
implementation project(':feature-search')
implementation project(':feature-session')
implementation project(':feature-storage')
implementation project(':feature-toolbar')
implementation project(':feature-tabs')
implementation project(':feature-prompts')
implementation project(':ui-autocomplete')
implementation project(':support-utils')
implementation project(':feature-downloads')
implementation project(':support-ktx')
servoImplementation project(':browser-engine-servo')
geckoNightlyImplementation project(':browser-engine-gecko-nightly')
geckoNightlyArmImplementation Gecko.geckoview_nightly_arm
geckoNightlyX86Implementation Gecko.geckoview_nightly_x86
geckoNightlyAarch64Implementation Gecko.geckoview_nightly_aarch64
geckoBetaImplementation project(':browser-engine-gecko-beta')
geckoBetaArmImplementation Gecko.geckoview_beta_arm
geckoBetaX86Implementation Gecko.geckoview_beta_x86
geckoBetaAarch64Implementation Gecko.geckoview_beta_aarch64
geckoReleaseImplementation project(':browser-engine-gecko')
geckoReleaseArmImplementation Gecko.geckoview_release_arm
geckoReleaseX86Implementation Gecko.geckoview_release_x86
geckoReleaseAarch64Implementation Gecko.geckoview_release_aarch64
implementation Dependencies.support_design
implementation Dependencies.kotlin_stdlib
implementation Dependencies.kotlin_coroutines
implementation Dependencies.support_appcompat
implementation Dependencies.support_constraintlayout
}