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

38 Коммитов

Автор SHA1 Сообщение Дата
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 5c5afe3b0a Remove non-existing ignored files
[doc only]
2022-06-13 15:53:11 +02:00
Jan-Erik Rediger 880544a71e Use a tooling crate to run uniffi-bindgen and builtin bindgen in build.rs 2022-05-06 14:11:27 +02:00
Jan-Erik Rediger 5a0f453b27 Merge branch 'main' into uniffi 2022-05-04 12:24:49 +02:00
Jan-Erik Rediger 8dba2219ea Add a workflow & substitute script to build and autopublish Glean locally
[doc only]
2022-05-04 10:40:32 +02:00
Jan-Erik Rediger 3158a95b80 Ignore generated file 2021-10-11 12:37:01 +02:00
Jan-Erik Rediger e438cc4c2a Bare layout for UniFFI
This creates a new crate `glean-uniffi` that will be consumed by the
different foreign-language SDKs.
Eventually `glean-core` and `glean` should go away and be merged into
that `glean-uniffi`
2021-10-05 13:40:11 +02:00
brizental 037d783a9b Remove copied changelog.md file
[doc only]

...And put it back in the .gitignore file
so that other people don't fall on the same trap :)
'
2021-06-04 17:37:58 +02:00
brizental c99e66b790 Add Glean.js changelog to changelog appendix 2021-06-02 15:08:27 +02:00
Jan-Erik Rediger ffab21022c Python: Ignore build-time generate when linting
When locally building or installing glean this file is generated.
It trips up flake8, because it definitely does not correspond to its
standards.

It's auto-generated, so there's no need for linting,
let's just ignore it.
2021-05-28 16:38:06 +02:00
Jan-Erik Rediger 7143c8a1d1 Python: Create new event extra API dynamically 2021-05-28 16:38:06 +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
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
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
Alessio Placitelli a6919b09f8 Update the .gitignore to ignore .venv for C# 2020-08-04 10:22:01 +02:00
Travis Long b33adf94c4 Bug 1643011 - Add C# Dispatchers 2020-06-10 10:31:38 -05:00
Alessio Placitelli 3e2a77dfd3 Move the Glean C# APIs to a sub-directory
This is required otherwise both tests and Glean
will fail to build: projects need to be peers,
not nested.
2020-06-08 17:45:36 +02:00
Alessio Placitelli aeb0585f92 Ignore c# outputs in both glean-core and the sample app 2020-06-08 15:25:53 +02:00
Jan-Erik Rediger eb62c3ab6c CI: Import improvement changes from a-s
a-s PR here: https://github.com/mozilla/application-services/pull/3113
It's a preqrequisite for enabling releases.

[skip ci]
2020-05-19 15:37:20 +02:00
Jan-Erik Rediger 5fdd54e174 iOS: Add GzipSwift as a dependency for tests
From https://github.com/1024jp/GzipSwift
It's a wrapper around zlib, used for gzip (de)compression.

It is MIT licensed: e8c00b4bdc/LICENSE
2020-05-18 18:26:53 +02:00
Jan-Erik Rediger ab09aba9c8 Render the Glean changelog in the book
[doc only]
2019-12-20 13:49:30 +01:00
Travis Long ca574acedb Bug 1586736 - Add Glean iOS debug functionality
This adds the custom URL handling to provide the Glean debug functionality.  This also adds the functionality to the glean-sample-app and the documentation on how to add and use this in a consuming application.
2019-12-10 09:08:30 -06:00
Michael Droettboom f5d6d5a0e9
Add support for Python code coverage (#494) 2019-11-20 13:16:13 -05:00
Michael Droettboom ddc0ada0e3
Implement counter metric type for Python bindings. (#439)
* Implement counter metric type for Python bindings.

It's pretty helpful to have type annotations for the documentation, if nothing
else, so additionally, this adds support for mypy type annotations.

* Simplify CircleCI task name

* Add a bug number
2019-11-05 11:05:06 -05:00
Travis Long c194e02b02 1582447 - Change to use URLSessionUploadTask
According to the [docs](https://developer.apple.com/documentation/foundation/urlsessiontask), URLSessionDataTask doesn't work in a background session and we should be using URLSessionUploadTask which does work in a background session.
2019-10-04 10:09:04 -05:00
Jan-Erik Rediger c45687c580 Don't track build logs
[doc only]
2019-10-01 17:03:14 +02:00
Jan-Erik Rediger ba6cc47214 Generate files at build time
[doc only]
2019-10-01 17:03:14 +02:00
Jan-Erik Rediger a39be3f651 Move Cartfile out of the way
When tests are run this file gets copied to 'Cartfile'
Having a Cartfile and pulling this project from another project using carthage, will
cause any Cartfile here to be run, and there is currently a carthage bug
whereby pulling OHHTTPStubs reports a circular dependancy error (incorrectly).
2019-09-27 12:19:59 +02:00
Jan-Erik Rediger 85327123d4 Unignore the C file 2019-07-29 14:42:40 +02:00
Jan-Erik Rediger 847f127efb Update C example 2019-07-19 15:11:51 +02:00
Jan-Erik Rediger 78e77a6a8c Ignore generated stuff 2019-04-30 14:27:03 +02:00
Jan-Erik Rediger 52979046bd Write first part of FFI library and header and use it in C app
Currently macOS only compilation
2019-04-26 14:15:14 +02:00
Jan-Erik Rediger a2bd27cfc1 Ignore data 2019-04-24 17:21:54 +02:00
Jan-Erik Rediger 4acd8d2cd5 Add dependency on glean.rs 2019-03-28 16:06:12 -03:00
Jan-Erik Rediger 78ca696dbd Add documentation as a book 2019-03-19 14:41:38 +01:00
Jan-Erik Rediger becd66b3c0 Import Android build files
Copied from application-services:
https://github.com/mozilla/application-services
2019-03-19 14:07:36 +01:00
Jan-Erik Rediger f9f7d3aca1 Reproducable builds by keeping the lock file 2019-03-18 16:32:35 +01:00
Jan-Erik Rediger 95b6bcc036 Create initial Rust workspace 2019-03-18 13:03:49 +01:00