Commit db1242aa authored by Beatriz Rizental's avatar Beatriz Rizental Committed by Pier Angelo Vendrame
Browse files

TB 42669: [android] Use custom no-op app-services

Fetch the custom built no-op application services library
from tor-browser-build when building for Android.
parent 8e3384df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -427,6 +427,7 @@ CLAUDE.local.md
mobile/android/.experimenter.json

# Tor libraries for local builds
mobile/android/fenix/tools/nimbus-fml
mobile/android/fenix/app/tor-expert-bundle.aar
mobile/android/fenix/app/src/main/assets/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ import org.tomlj.TomlTable

buildscript {
    repositories {
        mavenLocal()

        gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
            maven {
                url = repository
+9 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ class RemoteTabsCommandQueue(
            .groupBy {
                when (it.command) {
                    is RemoteCommand.CloseTab -> PendingCommandGroup.Key.CloseTab(it.deviceId)
                    is RemoteCommand.__NOOP -> PendingCommandGroup.Key.Noop(it.deviceId)
                    // Add `is ... ->` branches for future pending commands here...
                }.asAnyKey
            }
@@ -185,6 +186,13 @@ class RemoteTabsCommandQueue(
                            pendingCommands = pendingCommands,
                        )
                    }
                    is PendingCommandGroup.Key.Noop -> {
                        PendingCommandGroup(
                            deviceId = key.deviceId,
                            command = DeviceCommandOutgoing.Noop(),
                            pendingCommands = pendingCommands,
                        )
                    }
                    // Add `is ... ->` branches for future pending command grouping keys here...
                }.asAnyGroup
            }
@@ -280,6 +288,7 @@ class RemoteTabsCommandQueue(

        sealed interface Key {
            data class CloseTab(val deviceId: String) : Key
            data class Noop(val deviceId: String) : Key
            // Add data classes for future pending command grouping keys here...

            /** Returns this grouping key as a type-erased [Key]. */
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ sealed class DeviceCommandIncoming {
 * Outgoing device commands (ie, targeted at other devices.)
 */
sealed class DeviceCommandOutgoing {
    /** A command to do nothing */
    class Noop() : DeviceCommandOutgoing()

    /** A command to open a tab on another device */
    class SendTab(val title: String, val url: String, val privacy: TabPrivacy) : DeviceCommandOutgoing()

+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
    repositories {
        gradle.configureMavenRepositories(delegate)
        mavenLocal()
    }
    dependencies {
        classpath libs.kotlin.serialization
Loading