summaryrefslogtreecommitdiffstats
path: root/mobile/android/focus-android/plugins/focusdependencies
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/focus-android/plugins/focusdependencies')
-rw-r--r--mobile/android/focus-android/plugins/focusdependencies/build.gradle25
-rw-r--r--mobile/android/focus-android/plugins/focusdependencies/settings.gradle19
-rw-r--r--mobile/android/focus-android/plugins/focusdependencies/src/main/java/FocusDependenciesPlugin.kt68
3 files changed, 112 insertions, 0 deletions
diff --git a/mobile/android/focus-android/plugins/focusdependencies/build.gradle b/mobile/android/focus-android/plugins/focusdependencies/build.gradle
new file mode 100644
index 0000000000..7b9006f55c
--- /dev/null
+++ b/mobile/android/focus-android/plugins/focusdependencies/build.gradle
@@ -0,0 +1,25 @@
+/* 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/. */
+
+plugins {
+ id "org.gradle.kotlin.kotlin-dsl" version "4.2.1"
+}
+
+repositories {
+ gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
+ maven {
+ url repository
+ if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
+ allowInsecureProtocol = true
+ }
+ }
+ }
+}
+
+gradlePlugin {
+ plugins.register("FocusDependenciesPlugin") {
+ id = "FocusDependenciesPlugin"
+ implementationClass = "FocusDependenciesPlugin"
+ }
+}
diff --git a/mobile/android/focus-android/plugins/focusdependencies/settings.gradle b/mobile/android/focus-android/plugins/focusdependencies/settings.gradle
new file mode 100644
index 0000000000..16701d4aac
--- /dev/null
+++ b/mobile/android/focus-android/plugins/focusdependencies/settings.gradle
@@ -0,0 +1,19 @@
+/* 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/. */
+
+// Prevents gradle builds from looking for a root settings.gradle
+pluginManagement {
+ apply from: file('../../../gradle/mozconfig.gradle')
+
+ repositories {
+ gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
+ maven {
+ url repository
+ if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
+ allowInsecureProtocol = true
+ }
+ }
+ }
+ }
+}
diff --git a/mobile/android/focus-android/plugins/focusdependencies/src/main/java/FocusDependenciesPlugin.kt b/mobile/android/focus-android/plugins/focusdependencies/src/main/java/FocusDependenciesPlugin.kt
new file mode 100644
index 0000000000..ecc69fe4f1
--- /dev/null
+++ b/mobile/android/focus-android/plugins/focusdependencies/src/main/java/FocusDependenciesPlugin.kt
@@ -0,0 +1,68 @@
+/* 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/. */
+
+import org.gradle.api.Plugin
+import org.gradle.api.initialization.Settings
+
+// If you ever need to force a toolchain rebuild (taskcluster) then edit the following comment.
+// FORCE REBUILD 2023-05-05
+
+class FocusDependenciesPlugin : Plugin<Settings> {
+ override fun apply(settings: Settings) = Unit
+}
+
+object FocusVersions {
+ object Adjust {
+ const val adjust = "4.38.2"
+ const val install_referrer = "2.2"
+ }
+
+ object AndroidX {
+ const val constraint_layout_compose = "1.0.1"
+ const val splashscreen = "1.0.1"
+ const val transition = "1.4.1"
+ }
+
+ object Google {
+ const val play = "1.10.3"
+ }
+
+ object Testing {
+ const val androidx_espresso = "3.5.1"
+ const val androidx_orchestrator = "1.4.2"
+ const val falcon = "2.2.0"
+ const val fastlane = "2.1.1"
+ const val junit = "5.10.2"
+ }
+
+ object ThirdParty {
+ const val osslicenses_plugin = "0.10.4"
+ }
+}
+
+object FocusDependencies {
+ const val androidx_constraint_layout_compose =
+ "androidx.constraintlayout:constraintlayout-compose:${FocusVersions.AndroidX.constraint_layout_compose}"
+
+ const val androidx_splashscreen = "androidx.core:core-splashscreen:${FocusVersions.AndroidX.splashscreen}"
+ const val androidx_transition = "androidx.transition:transition:${FocusVersions.AndroidX.transition}"
+
+ const val google_play = "com.google.android.play:core:${FocusVersions.Google.play}"
+
+ const val adjust = "com.adjust.sdk:adjust-android:${FocusVersions.Adjust.adjust}"
+ const val install_referrer = "com.android.installreferrer:installreferrer:${FocusVersions.Adjust.install_referrer}"
+ const val osslicenses_plugin = "com.google.android.gms:oss-licenses-plugin:${FocusVersions.ThirdParty.osslicenses_plugin}"
+
+ const val androidx_orchestrator = "androidx.test:orchestrator:${FocusVersions.Testing.androidx_orchestrator}"
+ const val espresso_contrib = "androidx.test.espresso:espresso-contrib:${FocusVersions.Testing.androidx_espresso}"
+ const val espresso_idling_resource = "androidx.test.espresso:espresso-idling-resource:${FocusVersions.Testing.androidx_espresso}"
+ const val espresso_intents = "androidx.test.espresso:espresso-intents:${FocusVersions.Testing.androidx_espresso}"
+ const val espresso_web = "androidx.test.espresso:espresso-web:${FocusVersions.Testing.androidx_espresso}"
+ const val falcon = "com.jraska:falcon:${FocusVersions.Testing.falcon}"
+ const val fastlane = "tools.fastlane:screengrab:${FocusVersions.Testing.fastlane}"
+
+ const val testing_junit_api = "org.junit.jupiter:junit-jupiter-api:${FocusVersions.Testing.junit}"
+ const val testing_junit_engine = "org.junit.jupiter:junit-jupiter-engine:${FocusVersions.Testing.junit}"
+ const val testing_junit_params = "org.junit.jupiter:junit-jupiter-params:${FocusVersions.Testing.junit}"
+}