forked from Igalia/wolvic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.gradle
203 lines (172 loc) · 9.51 KB
/
versions.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
// GeckoView versions can be found here:
// https://maven.mozilla.org/?prefix=maven2/org/mozilla/geckoview/
versions.gecko_view_nightly = "96.0.20211126093927"
versions.gecko_view_beta = "79.0.20200630191632"
versions.gecko_view_release = "78.0.20200630195452"
versions.android_components = "63.0.0"
// Note that android-components also depends on application-services,
// and in fact is our main source of appservices-related functionality.
// The version number below tracks the application-services version
// that we depend on directly for its rustlog package, and it's important
// that it be kept insync with the version used by android-components above.
versions.mozilla_appservices = "63.0.0"
versions.openwnn = "1.3.7"
versions.room = "2.2.0"
versions.lifecycle = "2.3.1"
versions.support = "1.1.0"
versions.cardview = "1.0.0"
versions.recyclerview = "1.1.0"
versions.constraint_layout = "2.0.0-alpha2"
versions.junit = "4.12"
versions.atsl_core = "1.2.0"
versions.atsl_runner = "1.1.0-alpha4"
versions.atsl_rules = "1.1.0-alpha4"
versions.espresso = "3.1.0-alpha4"
versions.android_gradle_plugin = "3.4.1"
versions.kotlin = "1.4.10"
versions.kotlin_coroutines = "1.3.9"
versions.snakeyaml = "1.24"
versions.gson = "2.8.5"
versions.robolectric = "4.2.1"
versions.work = "2.2.0"
versions.jna = "5.9.0"
versions.wavevr = "3.99.41"
ext.versions = versions
def deps = [:]
def gecko_view = [:]
gecko_view.nightly_arm64 = "org.mozilla.geckoview:geckoview-nightly-arm64-v8a:$versions.gecko_view_nightly"
gecko_view.nightly_x86_64 = "org.mozilla.geckoview:geckoview-nightly-x86_64:$versions.gecko_view_nightly"
gecko_view.beta_arm64 = "org.mozilla.geckoview:geckoview-beta-arm64-v8a:$versions.gecko_view_beta"
gecko_view.beta_x86_64 = "org.mozilla.geckoview:geckoview-beta-x86_64:$versions.gecko_view_beta"
gecko_view.release_arm64 = "org.mozilla.geckoview:geckoview-arm64-v8a:$versions.gecko_view_release"
gecko_view.release_x86_64 = "org.mozilla.geckoview:geckoview-x86_64:$versions.gecko_view_release"
deps.gecko_view = gecko_view
def android_components = [:]
android_components.telemetry = "org.mozilla.components:service-telemetry:$versions.android_components"
android_components.glean = "org.mozilla.components:service-glean:$versions.android_components"
android_components.browser_errorpages = "org.mozilla.components:browser-errorpages:$versions.android_components"
android_components.browser_search = "org.mozilla.components:browser-search:$versions.android_components"
android_components.browser_state = "org.mozilla.components:browser-state:$versions.android_components"
android_components.browser_storage = "org.mozilla.components:browser-storage-sync:$versions.android_components"
android_components.browser_domains = "org.mozilla.components:browser-domains:$versions.android_components"
android_components.service_accounts = "org.mozilla.components:service-firefox-accounts:$versions.android_components"
android_components.service_sync_logins = "org.mozilla.components:service-sync-logins:$versions.android_components"
android_components.mozilla_service_location = "org.mozilla.components:service-location:${versions.android_components}"
android_components.ui_autocomplete = "org.mozilla.components:ui-autocomplete:$versions.android_components"
android_components.concept_engine = "org.mozilla.components:concept-engine:$versions.android_components"
android_components.concept_fetch = "org.mozilla.components:concept-fetch:$versions.android_components"
android_components.lib_fetch = "org.mozilla.components:lib-fetch-httpurlconnection:$versions.android_components"
android_components.lib_dataprotect = "org.mozilla.components:lib-dataprotect:$versions.android_components"
android_components.support_rustlog = "org.mozilla.components:support-rustlog:$versions.android_components"
android_components.support_rusthttp = "org.mozilla.components:support-rusthttp:$versions.android_components"
android_components.support_webextensions = "org.mozilla.components:support-webextensions:$versions.android_components"
android_components.support_ktx = "org.mozilla.components:support-ktx:$versions.android_components"
android_components.feature_accounts = "org.mozilla.components:feature-accounts:$versions.android_components"
android_components.feature_webcompat = "org.mozilla.components:feature-webcompat:$versions.android_components"
android_components.feature_webcompat_reporter = "org.mozilla.components:feature-webcompat-reporter:$versions.android_components"
android_components.feature_addons = "org.mozilla.components:feature-addons:$versions.android_components"
android_components.support_test = "org.mozilla.components:support-test:$versions.android_components"
android_components.support_test_appservices = "org.mozilla.components:support-test-appservices:$versions.android_components"
deps.android_components = android_components
def app_services = [:]
app_services.rustlog = "org.mozilla.appservices:rustlog:${versions.mozilla_appservices}"
deps.app_services = app_services
deps.openwnn = "jp.co.omronsoft.openwnn:openwnn:$versions.openwnn"
def support = [:]
support.annotations = "androidx.annotation:annotation:$versions.support"
support.app_compat = "androidx.appcompat:appcompat:$versions.support"
support.recyclerview = "androidx.recyclerview:recyclerview:$versions.recyclerview"
support.cardview = "androidx.cardview:cardview:$versions.cardview"
support.design = "com.google.android.material:material:$versions.support"
support.v4 = "androidx.legacy:legacy-support-v4:$versions.support"
support.core_utils = "androidx.legacy:legacy-support-core-utils:$versions.support"
support.vector_drawable = "androidx.vectordrawable:vectordrawable:$versions.support"
deps.support = support
def work = [:]
work.testing = "androidx.work:work-testing:$versions.work"
deps.work = work
def room = [:]
room.runtime = "androidx.room:room-runtime:$versions.room"
room.compiler = "androidx.room:room-compiler:$versions.room"
room.testing = "androidx.room:room-testing:$versions.room"
deps.room = room
def lifecycle = [:]
lifecycle.runtime = "androidx.lifecycle:lifecycle-runtime:$versions.lifecycle"
lifecycle.viewmodel = "androidx.lifecycle:lifecycle-viewmodel:$versions.lifecycle"
lifecycle.java8 = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
lifecycle.compiler = "androidx.lifecycle:lifecycle-compiler:$versions.lifecycle"
lifecycle.process = "androidx.lifecycle:lifecycle-process:$versions.lifecycle"
deps.lifecycle = lifecycle
def espresso = [:]
espresso.core = "androidx.test.espresso:espresso-core:$versions.espresso"
espresso.contrib = "androidx.test.espresso:espresso-contrib:$versions.espresso"
espresso.intents = "androidx.test.espresso:espresso-intents:$versions.espresso"
deps.espresso = espresso
def atsl = [:]
atsl.core = "androidx.test:core-ktx:$versions.atsl_core"
atsl.runner = "androidx.test:runner:$versions.atsl_runner"
atsl.rules = "androidx.test:rules:$versions.atsl_runner"
deps.atsl = atsl
def sqlite = [:]
sqlite.sqlite = 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
deps.sqlite = sqlite
def disklrucache = [:]
disklrucache.disklrucache = 'com.jakewharton:disklrucache:2.0.2'
deps.disklrucache = disklrucache
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
kotlin.test = "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
kotlin.allopen = "org.jetbrains.kotlin:kotlin-allopen:$versions.kotlin"
kotlin.coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.kotlin_coroutines"
kotlin.coroutines_jdk8 = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$versions.kotlin_coroutines"
deps.kotlin = kotlin
def telemetry = [:]
deps.telemetry = telemetry
deps.constraint_layout = "androidx.constraintlayout:constraintlayout:$versions.constraint_layout"
deps.junit = "junit:junit:$versions.junit"
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
deps.android_components_version = versions.android_components
deps.snakeyaml = "org.yaml:snakeyaml:$versions.snakeyaml:android"
deps.gson = "com.google.code.gson:gson:$versions.gson"
deps.robolectric = "org.robolectric:robolectric:$versions.robolectric"
deps.jna = "net.java.dev.jna:jna:$versions.jna"
ext.deps = deps
def build_versions = [:]
build_versions.min_sdk = 24
build_versions.min_sdk_wave = 25
build_versions.target_sdk = 30
build_versions.target_sdk_wave = 30
build_versions.build_tools = "30.0.3"
ext.build_versions = build_versions
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
handler.maven { url 'https://maven.mozilla.org/maven2' }
handler.maven { url 'https://download.servo.org/nightly/maven' }
handler.maven { url 'https://developer.huawei.com/repo/' }
}
ext.addRepos = this.&addRepos