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

91 Коммитов

Автор SHA1 Сообщение Дата
Jan-Erik Rediger c0d70e9c09 Update android-native license file as well 2022-07-18 13:17:42 +02:00
Jan-Erik Rediger 3543395760 Implement a glean-build crate for use in Rust consumers
This crate should be used as a build dependency in Rust consumers.
In their `build.rs` they can call the builder to auto-generate code from
`metrics.yaml` and `pings.yaml` definitions:

    glean_build::Builder::default()
        .metrics("metrics.yaml")
        .pings("pings.yaml")
        .generate()
        .expect("Error generating Glean Rust bindings");

This requires a working Python3 & pip installation.
Windows untested.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1713573 and https://bugzilla.mozilla.org/show_bug.cgi?id=1772566
2022-07-13 16:13:41 +02:00
Jan-Erik Rediger 307325254b Use Swift packages for direct dependencies and drop Carthage
Only 2 dependencies left:
* Testing only: OHHTTPStubs for network mocking
* GzipSwift: for TestUtils to decode gzip'ed payloads

Both are available as Swift packages, so we can consume them that way.
2022-06-13 11:12:26 +02:00
Jan-Erik Rediger 7121816977 TC: Check for correct library name
We changed to `libxul` in 978f9b5.
We now need to check for that in the generated artifacts.
2022-05-19 16:32:08 +02:00
Jan-Erik Rediger 8ec875aa7c Merge branch 'main' into uniffi-merge-main 2022-04-05 14:39:31 +02:00
Jan-Erik Rediger d80624f34c Check for libs on 2 different darwin platforms 2022-02-24 15:31:34 +01:00
Jan-Erik Rediger 42eb20f6fd Remove old FFI layer 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 4cffa5d0e9 Don't generate Carthage archive anymore 2022-02-01 14:17:54 +01:00
Jan-Erik Rediger 16c929adf5 Remove the Glean C# SDK codebase
The Glean C# SDK had been abandoned for quite some time
and officially been marked deprecated in September (9836b2063d).
This just sunsets it officially by removing the codebase from the repository.
2021-12-13 17:28:43 +01:00
Jan-Erik Rediger 225c69ded3 Revert "Remove Xcode 12 hack"
This reverts commit ed4c58a6d6.

As long as we ship a carthage archive we need that hack, otherwise it
will try to build for both simulator and hardware ARM, failing to merge them
together.
2021-12-07 14:55:12 +01:00
Jan-Erik Rediger ed4c58a6d6 Remove Xcode 12 hack
We've since long supported properly building on M1 machines relying on
xcframeworks.
CI was also switched to Xcode 13 a while ago.
2021-11-03 11:24:17 +01:00
Jan-Erik Rediger 784a72dd44 Show all executed commands
[doc only] // not really but we don't need CI on this
2021-09-02 11:35:35 +02:00
Jan-Erik Rediger 6144759259 Kotlin: Do the artifact check for glean-native only
We want to check for the dynamic libraries and now these are only in glean-native.
2021-07-27 17:58:16 +02:00
Jan-Erik Rediger a9d9a5c084 iOS: Fix all occurences of `Glean.` in a line
[doc only] // not really, but release only
2021-06-04 16:49:57 +02:00
Jan-Erik Rediger 79f335fbcb Publish a glean-swift release once the xcframework is uploaded 2021-06-04 14:15:11 +02:00
Jan-Erik Rediger 852cf10051 Remove module/class name prefix in Swift interface files
See:
https://forums.swift.org/t/frameworkname-is-not-a-member-type-of-frameworkname-errors-inside-swiftinterface/28962
https://bugs.swift.org/browse/SR-898

tl;dr: Swift has problems if the module has the same name as a type
inside that module.
It then treats the name as a type name and prepends the module name
again at type resolution.

We manually (as far as `sed` is "manual") remove that name prefix (`Glean.`)
everywhere and hope it's alright.
2021-06-04 14:15:11 +02:00
Jan-Erik Rediger 93ca7f6584 Build for all iOS targets and bundle an xcframework 2021-06-04 14:15:11 +02:00
brizental c99e66b790 Add Glean.js changelog to changelog appendix 2021-06-02 15:08:27 +02:00
Alessio Placitelli 9bfeeb568b Fix and update the redirections for the moved pages 2021-06-01 14:13:46 +02:00
Alessio Placitelli 768ce3c45f Make doc generation happy 2021-05-31 11:44:39 +02:00
Alessio Placitelli 2ce9ed164f Add a redirect to account for inbound external links 2021-05-28 19:36:44 +02:00
Alessio Placitelli d5d9bb58dd Fix the 'build-rust-docs' command to run on Windows
This additionally adds a note on the bash version
to keep the files in sync.

It's much easier to test content on Windows by doing
`mdbook serve docs/user` FWIW.
2021-05-28 18:20:38 +02:00
Beatriz Rizental cb5a573ff1
Bug 1708204 - Apply new structure to book with minimal content changes (#1601) 2021-04-29 17:05:20 +02:00
Jan-Erik Rediger 831ad8b906 CI: Use local copy of the codecov script 2021-04-15 15:18:32 +02:00
Beatriz Rizental ad581e7bd0
Bug 1686670 - Break the book in two: a developer and a user book (#1502) 2021-02-18 16:12:45 +01:00
Jan-Erik Rediger 5e95a54654 CI: Generate docs for the target we also build 2021-02-10 11:24:23 +01:00
Jan-Erik Rediger 3d9bdb57fd iOS: Install dependencies as xcframeworks 2021-02-08 13:27:44 +01:00
Jan-Erik Rediger 76c1a6a72e Use a xcconfig file to work around Carthage shortcomings
We only support Xcode 12+ now anyway. No need to deal with Xcode 11 or
lower.
2021-01-22 11:17:42 +01:00
Jan-Erik Rediger adc8f55c8d Fix script to always check the full version line 2020-12-17 11:22:31 +01:00
Jan-Erik Rediger d76aa9de89 Avoid an early exit when there is _no_ `upstream` remote
[doc only]
2020-12-02 14:00:00 +01:00
Jan-Erik Rediger e3bbc3fa43 Detect _any_ Xcode 12.x version during carthage bootstrapping 2020-11-17 11:12:36 +01:00
Alessio Placitelli 450d392423 Change all the Glean versions inside the RLB manifest
This changes the behavior so that the RLB crate version
matches the glean-core version.
2020-10-20 17:35:40 +02:00
Alessio Placitelli 398a8b9215 Fixup the release script and main Cargo.toml 2020-10-20 16:46:50 +02:00
Jan-Erik Rediger f23c578102 Check the contents of produced Maven artifacts
[doc only]
2020-10-09 10:37:29 +02:00
Jan-Erik Rediger b7bfbca2a0
Merge pull request #1214 from mdboom/spellcheck-output
Improve spellchecker output in CI
2020-09-17 09:33:39 +02:00
Jan-Erik Rediger 120b5eb713 Use the same glean_parser version as used across the repository
Previously it used whatever was the latest version.
This could lead to CI failures when we update glean_parser but don't
update inside this repository.

[doc only]
2020-09-16 09:27:59 +02:00
Michael Droettboom 996422562e Improve spellchecker output in CI
The spellchecking CI *does* highlight the misspelled word using colorizing when
run locally, but this is somehow broken when displayed in the CircleCI log
viewer online.

There doesn't appear to be a way to put custom delimiters around the misspelled
word, but it is possible to *only* display the misspelled word without the
context from the rest of the line.  This is probably more helpful to understand
which words the spellchecker doesn't like.

Running the spellchecker locally through `make spellcheck` doesn't change --
that will still use the interactive version of aspell.
2020-09-15 09:36:28 -04:00
Michael Droettboom 4619da778b
1660120: Make Python bindings installable from source (#1203)
* 1660120: Make Python bindings installable from source

* Add CHANGELOG

* Improve variable names

* Address comments in PR

* Update docs
2020-09-09 11:01:39 -04:00
Jan-Erik Rediger a8e8c5be99 Swift: Ignore Apple Silicon target in Xcode 12
Carthage in default configuration breaks compilation in Xcode 12,
as it tries to build for the simulator now for the arm64 target as well.
That target however is for Apple Silicion, the upcoming Arm platform.
We don't need to run simulator builds there yet (we don't even have
those devices!), so we can safely ignore it.

We need to teach both Carthage about it and for simplification we do the
same for the sample app specifically.

Upstream issue: https://github.com/Carthage/Carthage/issues/3019
2020-08-27 14:29:29 +02:00
Alessio Placitelli 4a02a54c9e Update the release script to bump the C# versions 2020-08-06 16:42:00 +02:00
Jan-Erik Rediger 57d6930b8f Fix glean parser version replacement for C# 2020-08-04 13:49:02 +02:00
Jan-Erik Rediger b268e28288 Add metadata about the required glean-parser version 2020-08-04 13:48:32 +02:00
Alessio Placitelli 4ecbd93a53 Update the update-glean-parser-version.sh script for C# 2020-08-04 10:25:33 +02:00
Michael Droettboom df96612f72
Bug 1655481, Bug 1655760: Add glean_parser version update script (#1116)
* Bug 1655481, Bug 1655760: Add glean_parser version update script

Also, check the glean_parser version at runtime from the Python bindings.

* pythonlint

* Add docs

* Add __init__.py

* mypy fix
2020-08-03 18:51:34 -04:00
Jan-Erik Rediger a5f4201cab Use bsd-sed compatible commands when replacing versions
[doc only]
2020-07-21 11:57:47 +02:00
Jan-Erik Rediger 6c7d45efda Swap default branch everywhere 2020-06-09 10:04:30 +02:00
Jan-Erik Rediger 49ab1424ca
Merge pull request #877 from Dexterp37/gzip_uploads 2020-05-19 12:32:31 +02:00
Jan-Erik Rediger 927d77c8ed Move a-c/fenix development tips into Android section 2020-05-18 13:25:40 +02:00
Jan-Erik Rediger 8edd3fbc28 iOS (cleanup): Add UI tests to main testing scheme of sample app
For some reason this was missing.
With this added one can run the UI tests from the Xcode GUI
2020-05-18 10:52:22 +02:00
Jan-Erik Rediger 3aa4cfd7d1
Merge pull request #880 from mozilla/run-dep-summary-before-release 2020-05-14 11:16:51 +02:00