Commit graph

19 commits

Author SHA1 Message Date
c3a8df46d1
Fix tests 2023-09-28 20:03:44 -06:00
92a00456c3
Encode props as map 2023-09-27 10:27:26 -06:00
68409a7484
Prevent crashes when failing to decode event json 2023-09-27 10:27:26 -06:00
92495c06c4
Use Timber instead of Android Log 2023-09-27 10:27:26 -06:00
2a1ab12c2e Fix test workflow 2022-11-16 17:49:16 -07:00
da795df33e Bump test dependencies 2022-11-16 17:46:45 -07:00
3f3b30f2b4 Move unit tests to JVM with Robolectric 2022-11-16 17:46:19 -07:00
d1b934dea1 Add some tests 2022-11-06 21:40:54 -07:00
0b35ae3030 Delete ExampleInstrumentedTest.kt 2022-11-06 20:56:50 -07:00
c8b9950e98 Make Plausible thread-safe 2022-11-06 20:38:04 -07:00
e2a58c9314 Make Plausible.{client,config} nullable instead of lateinit
Misuse of the API shouldn't cause the app to crash, as analytics aren't an essential function.
2022-11-06 20:32:30 -07:00
76f8f68103 Remove domain and screenWidth from Plausible.event()
These values were coming from the config by default anyways, and they're not likely to be changed between events, so it's probably better to just simplify the API a bit
2022-11-06 20:27:08 -07:00
e09618e6ec Remove ExampleUnitTest.kt 2022-11-06 20:22:18 -07:00
0e0f0c551e Close OkHttp response when finished with it 2022-11-06 20:22:10 -07:00
fc321a1d58 Check whether or not Plausible is enabled before sending events 2022-11-03 09:23:13 -06:00
8d15f6704c Add license to README.md 2022-11-01 07:14:15 -06:00
102404f49a Configure Maven Central publishing 2022-11-01 07:12:43 -06:00
7a868e8cec Add license 2022-11-01 05:58:12 -06:00
549c7eceff Initial commit 2022-10-29 21:49:40 -06:00