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

293 Коммитов

Автор SHA1 Сообщение Дата
Alessio Placitelli b9e7a144e0
Merge pull request #38 from Dexterp37/add_smoke_values
Add smoke values for common fields to make valid pings
2019-05-09 17:53:01 +02:00
Alessio Placitelli db693d7202 Add smoke values for common fields to make valid pings 2019-05-09 17:39:15 +02:00
Michael Droettboom e63c63e8be
Send a ping from the button (#37) 2019-05-09 11:31:59 -04:00
Jan-Erik Rediger b22ab8be19
Expose test api (#27)
Expose test api
2019-05-09 17:00:10 +02:00
Jan-Erik Rediger 5e48c9e1f9
Make use of test API (#25)
Make use of test API
2019-05-09 16:58:47 +02:00
Jan-Erik Rediger 128224e554
Sample generate (#24)
Sample generate
2019-05-09 16:56:03 +02:00
Jan-Erik Rediger 4c14c3c459 Wrap the glean-core-exposed testing API 2019-05-09 16:55:19 +02:00
Jan-Erik Rediger 08d528c006 Expose test API for counters over Ffi 2019-05-09 16:47:49 +02:00
Alessio Placitelli 6553128441
Merge pull request #23 from Dexterp37/core_metrics
Add a few core metrics
2019-05-09 16:42:07 +02:00
Alessio Placitelli 291030c44b Add a comment about staged init in Glean.kt 2019-05-09 16:37:36 +02:00
Jan-Erik Rediger 047ba7a4c4 Generate the boolean user metric 2019-05-09 16:36:05 +02:00
Jan-Erik Rediger d074af41f3 Make use of test API 2019-05-09 16:26:02 +02:00
Jan-Erik Rediger e611ff08c3 Generate metrics for sample app 2019-05-09 16:25:37 +02:00
Michael Droettboom 701549c96b
Add handleBackgroundEvent (#22) 2019-05-09 10:24:45 -04:00
Jan-Erik Rediger 6d5eaa8db2 Track if it is started early
Also don't send a ping just yet
2019-05-09 16:23:28 +02:00
Alessio Placitelli 7571f31061 Add a few core metrics 2019-05-09 16:22:27 +02:00
Alessio Placitelli 474848394c
Merge pull request #21 from badboy/null-check
Don't handle the array when getting a null pointer
2019-05-09 15:49:35 +02:00
Jan-Erik Rediger a95af6bb2a Don't handle the array when getting a null pointer 2019-05-09 15:40:58 +02:00
Jan-Erik Rediger bf0a58ddce
Introduce automatic metrics generation (#20)
Introduce automatic metrics generation
2019-05-09 15:40:26 +02:00
Alessio Placitelli 2ef559b53d Change the Windows toolchain to msvc 2019-05-09 15:24:58 +02:00
Alessio Placitelli 3780887769 Pass in the Lifetime and Ping information 2019-05-09 15:24:43 +02:00
Alessio Placitelli a2d75dc0ad Wire up Counters and Strings to the Rust FFI 2019-05-09 15:05:57 +02:00
Alessio Placitelli 240c9e58f4 Generate metrics from the metrics.yaml
This additionally stubs out all the required
metrics from service-glean.
2019-05-09 15:05:57 +02:00
Alessio Placitelli c13361d83e Fix klint errors in BooleanMetricType.kt 2019-05-09 15:05:56 +02:00
Alessio Placitelli 43bc4e986d Fix klint problems in Glean.kt 2019-05-09 15:05:56 +02:00
Alessio Placitelli e1a44fab6d Update the dependencies and tweak the Kotlin API 2019-05-09 15:05:56 +02:00
Jan-Erik Rediger c99ce4ba0a
Merge pull request #18 from badboy/pass-meta-data
Pass meta data
2019-05-09 15:03:52 +02:00
Jan-Erik Rediger 1117181c7d Add a comment to fix the error handling later 2019-05-09 14:59:08 +02:00
Jan-Erik Rediger bdb5fe6eff Pass more common meta data over Ffi on metric creation 2019-05-09 14:36:47 +02:00
Jan-Erik Rediger 5a14ef34bb Convert an integer into a lifetime
This will be used in the FFI part.
2019-05-09 14:31:52 +02:00
Michael Droettboom 66e39a524a
Add simple Kotlin test (#17)
* Add simple Kotlin test

* Use android docker

* Change robolectric version

* Fix syntax

* Fix android docker name

* Fix docker tag

* Disable android testing on Circle

* Update .circleci/config.yml

Co-Authored-By: Jan-Erik Rediger <badboy@archlinux.us>
2019-05-09 07:15:16 -04:00
Alessio Placitelli 3a21db06bf
Merge pull request #16 from Dexterp37/rkv_tests
Add test coverage for Database record
2019-05-09 12:10:02 +02:00
Alessio Placitelli 0158649be0
Merge branch 'master' into rkv_tests 2019-05-09 12:06:03 +02:00
Alessio Placitelli a07f0e3950 Add test coverage for Database record
This additionally moves some Database specific
detail (i.e. storage names formatted as "{}#")
back to the Database.
2019-05-09 12:02:25 +02:00
Jan-Erik Rediger d2fe269045
Implement API to get the value back from a metric (#15)
Implement API to get the value back from a metric
2019-05-09 11:56:30 +02:00
Jan-Erik Rediger 4cce42c48f Allow redundant closures for now 2019-05-09 11:21:45 +02:00
Jan-Erik Rediger c49b18f23a Implement test API to retrieved stored value 2019-05-09 11:10:27 +02:00
Jan-Erik Rediger 48e06ed73c
Pass around the object to access its state (#13)
Pass around the object to access its state
2019-05-08 16:01:35 +02:00
Jan-Erik Rediger 094390e703 Pass around the object to access its state
Fixes #11
2019-05-08 15:15:58 +02:00
Alessio Placitelli fb44796fe8
Merge pull request #12 from badboy/api-playground
Api playground
2019-05-08 15:01:34 +02:00
Jan-Erik Rediger ec6c604a58
No more singleton (#8)
No more singleton
2019-05-08 14:51:36 +02:00
Jan-Erik Rediger 5bbb46d228 Satisfy clippy 2019-05-08 14:34:42 +02:00
Jan-Erik Rediger bf8ad0a42f Reformat everything 2019-05-08 14:10:28 +02:00
Jan-Erik Rediger f5c4e947c8 Wrap the app-lifetime data in a lock
We handle the mutability internally and ensure access is synchronized.
This mimics the behavior of Rkv as well.
2019-05-08 14:06:54 +02:00
Jan-Erik Rediger 5f469cdea9 Drop the inner module 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger 2c287f0919 Remove unused imports 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger 748894e2fc The home path should include the sdk subdir 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger acc2140f9e Keep track of the glean object from the Kotlin side 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger d84475bdc6 Re-generate C header 2019-05-08 14:06:54 +02:00
Jan-Erik Rediger d6b5829ca9 Redefine FFI component without relying on singleton 2019-05-08 14:06:54 +02:00