Граф коммитов

32 Коммитов

Автор SHA1 Сообщение Дата
Ben Dean-Kawamura 7625a2cecc Switch to UniFFI library mode
This removes the need for a lot configuration in our `uniffi.toml`
files.
2024-09-18 20:31:35 +00:00
Ryan VanderMeulen ab01e05def Add namespaces to the various modules 2024-01-22 19:57:26 +00:00
Mark Hammond 4fde1d35c0 Allow `inactive` field in tabs records and payloads.
This adds an `inactive` field to a `RemoteTabRecord` with the default
value being `false`. The intent is for the mobile platforms to start
populating this, then all platforms can choose how to handle such
tabs (eg, they may not show them by default and instead add a button
which shows them).
2024-01-03 21:38:33 +00:00
Sammy Khamis 588eef1bf4 ran ktlintFormat for the auto-fixable ones 2023-05-23 19:47:53 +00:00
Mark Hammond 5802165598
Remove duplicate DeviceType enums. (#5316) 2023-04-28 05:35:26 +10:00
Tarik Eshaq 914ac9caec
Fixes name conflict in swift generated code (#5181)
* Fixes name conflict in swift generated code

* Adds changelog
2022-10-15 11:49:32 -04:00
Ryan VanderMeulen 5cd7d6c9ff Fix or suppress new detekt errors. 2022-09-16 00:32:01 -04:00
lougeniaC64 0f8a0f3da2
Updated tabs component for iOS integration (#4905) 2022-05-24 15:19:58 -04:00
Mark Hammond 1f21f33061
Persist remote tabs to a sql database. (#4862) 2022-03-02 13:30:57 +11:00
Ben Dean-Kawamura de16ab8d36 Added method to check which sync engines are available
This allows us to test register_with_sync_manager
2021-11-17 09:28:39 -05:00
Ryan Kelly c12b286312 Extract the bulk of shared gradle logic into script plugins.
Prior to this commit, the `build.gradle` for each individual
project contained copy-pasted logic for configuring Android
and protobuf. Some of them were even using slightly different
versions of the same dependencies.

With this commit, there are two new gradle scripts that encapsulate
this shared logic:

* ./build-scripts/component-common.gradle, for basic Android
  and Kotlin setup.
* ./build-scripts/protobuf-common.gradle, for configuration specific
  to the protobuf plugin.

Hopefully this will make the logic easier to maintain going forward.
2021-07-20 13:56:15 +10:00
Sammy Khamis 31c7fb7f3b
Updates to uniffi tabs (#4343)
* changed last_used in the Tab struct to be i64 instead of u64
2021-07-19 14:28:44 -10:00
Ryan Kelly 28e4982cd2
Consolidate megazord-related gradle logic into a shared helper. (#4187)
Prior to this commit, each of our individual components had its
own copy of gradle logic for depending on the megazord, including
a couple of lengthy comments about fiddling around with JNA for
the Android Studio test runner.

I've moved all that logic into a helper function in `publish.gradle`
so that we can maintain it in a single location from here out.
There may be a cleaner or more idiomatic way to achieve this kind
of code-sharing in gradle, but I figure this *has* to be better
than our current copy-paste-based approach.

I've manually confirmed that a local `./gradlew test` completes
successfully, as well as testing via Android Studio.
2021-07-19 13:14:08 +10:00
Sammy Khamis d0b7b74cea
Uniffi-ing the Tabs component (#4192)
* uniffi-ed the tabs component

Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-07-13 09:40:33 -10:00
Sammy Khamis 80f266c192
add osx branch to protobuf artifacts to get only x86_64 (#4093) 2021-05-18 13:57:05 -10:00
Alessio Placitelli 9356e5d3b9 Support the new JVM 1.8 target
This fixes the "Cannot inline bytecode built with JVM target 1.8 into
bytecode that is being built with JVM target 1.6. Please specify proper
'-jvm-target' option" problem.
2020-07-17 06:04:35 +02:00
Thom Chiovoloni 136d486484
Fix snake_case 2020-06-26 15:47:51 -07:00
Thom Chiovoloni 2fd83053e3
lint fix 2020-06-26 15:17:56 -07:00
Thom Chiovoloni 7ee1f4284e
Use JSON for remote tabs in remote_tabs_update_local 2020-06-26 15:06:23 -07:00
Thom Chiovoloni 4cee713c7d
Regression test for tabs issue 2020-06-17 10:29:43 -07:00
Thom Chiovoloni 1c96a9f067
Likely fix of sync tabs issue [ci full] 2020-06-17 10:22:25 -07:00
Edouard Oger 8ca3360307
Use Android SDK's side-by-side NDK 2020-06-11 19:15:30 -04:00
Edouard Oger f34a18eb72
Remove experimental namespace for RemoteTabs 2020-05-27 12:18:06 -04:00
Edouard Oger f024577453
Remove outdated comments [ci skip] 2020-04-29 19:06:08 -04:00
Edouard Oger 63db43d0e4
Workaround protobuf bug 2020-04-29 17:44:02 -04:00
Edouard Oger 6d954a2fb6
Downgrade protobuf-javalite to 3.9.2 2020-04-24 14:42:22 -04:00
Edouard Oger 4e5f54d066
Update Android dependencies 2020-04-08 13:23:31 -04:00
Ryan Kelly 0e31668247
Add support and docs for an auto-publish based local dev workflow.
Our docs currently recommend two ways of building consuming apps against
local changes to this repo: an automated-but-perpetually-buggy composite build
workflow, and a reliable-but-tedious manual workflow of publishing to a local
maven repo.

This commit removes them both and replaces them with something similar to
the workflow used by android-components: some scripting to automate publishing
to and consuming from a local maven repo.
2020-03-12 15:05:21 +11:00
Nick Alexander 2921db3571
Do not force Android packaging tasks to re-run on every build.
There where two issues.  The most obvious is that the task name that
merges JNI libraries has evolved; it's now `merge{...}JniLibFolders`.

The second, which really caught me out, is that when both
`main.jniLibs.srcDirs` and `debug.jniLibs.srcDirs` contain the same
path, then the Android source set merger silently fails.  I don't
really understand what's happening here, I just know that using only
`main.jniLibs.srcDirs` solves the issue.

Fixes #2659.
2020-03-02 12:08:26 +11:00
Edouard Oger 415f1b30aa
Make ClientRemoteTabs.id the FxA device ID if available 2019-12-05 11:29:18 -05:00
Edouard Oger 8577d8f336
Remove `local_id` from `TabsEngine` constructor. 2019-11-21 16:00:53 -05:00
Edouard Oger 27643d483b
Remote Tabs FFI 2019-11-12 16:09:48 -05:00