-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
versions.gradle
207 lines (178 loc) · 9.89 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
204
205
206
207
/*
* 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_release = "128.0.20240725162350"
versions.gecko_view_nightly = "128.0.20240609205151"
versions.gecko_view_beta = "128.0.20240628091536"
versions.android_components = "128.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 = "128.0"
versions.room = "2.5.2"
versions.lifecycle = "2.6.2"
versions.cardview = "1.0.0"
versions.recyclerview = "1.3.2"
versions.constraint_layout = "2.1.4"
versions.junit = "4.13.2"
versions.atsl_core = "1.5.0"
versions.atsl_runner = "1.5.2"
versions.atsl_rules = "1.5.0"
versions.atsl_junit = "1.1.5"
versions.espresso = "3.5.1"
versions.android_gradle_plugin = '8.7.2'
versions.kotlin = "1.9.21"
versions.kotlin_coroutines = "1.7.3"
versions.snakeyaml = "2.0"
versions.gson = "2.10.1"
versions.robolectric = "4.11.1"
versions.work = "2.8.1"
versions.jna = "5.13.0"
versions.wavevr = "3.2.0"
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_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.browser_icons = "org.mozilla.components:browser-icons:$versions.android_components"
android_components.feature_findinpage = "org.mozilla.components:feature-findinpage:$versions.android_components"
android_components.feature_search = "org.mozilla.components:feature-search:$versions.android_components"
android_components.feature_toolbar = "org.mozilla.components:feature-toolbar:$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"
android_components.preference = "androidx.preference:preference:1.2.0"
deps.android_components = android_components
def app_services = [:]
app_services.rustlog = "org.mozilla.appservices:rustlog:$versions.mozilla_appservices"
deps.app_services = app_services
def support = [:]
support.annotations = "androidx.annotation:annotation:1.6.0"
support.app_compat = "androidx.appcompat:appcompat:1.6.1"
support.recyclerview = "androidx.recyclerview:recyclerview:$versions.recyclerview"
support.cardview = "androidx.cardview:cardview:$versions.cardview"
support.design = "com.google.android.material:material:1.9.0"
support.vector_drawable = "androidx.vectordrawable:vectordrawable:1.1.0"
support.viewpager2 = "androidx.viewpager2:viewpager2:1.0.0"
deps.support = support
def work = [:]
work.runtime = "androidx.work:work-runtime:$versions.work"
work.runtime_ktx = "androidx.work:work-runtime-ktx:$versions.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_rules"
atsl.junit = "androidx.test.ext:junit:$versions.atsl_junit"
deps.atsl = atsl
def disklrucache = [:]
disklrucache.disklrucache = 'com.jakewharton:disklrucache:2.0.2'
deps.disklrucache = disklrucache
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$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"
deps.colorpicker = "com.github.skydoves:colorpickerpreference:2.0.6"
ext.deps = deps
def build_versions = [:]
build_versions.min_sdk = 24
build_versions.min_sdk_wave = 25
build_versions.target_sdk = 34
build_versions.target_sdk_oculusvr = 32
build_versions.target_sdk_wave = 31
build_versions.target_sdk_aosp = 29
build_versions.target_sdk_spaces = 29
build_versions.target_sdk_visionglass = 33
build_versions.compile_sdk = 34
build_versions.build_tools = "34.0.0"
ext.build_versions = build_versions
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.mavenCentral()
handler.maven { url 'https://maven.mozilla.org/maven2' }
handler.maven { url 'https://developer.huawei.com/repo/' }
handler.maven { url 'https://storage.googleapis.com/r8-releases/raw' }
}
ext.addRepos = this.&addRepos