-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native targets for Functional and Logging #26
Conversation
I'd love to have this setup, just haven't gotten around to it, since it requires using a macOS machine on CI. Created #27 to track. |
Honestly I started with Stately out of fear, but AtomicFU turned out to be much easier to work with. |
Codecov Report
@@ Coverage Diff @@
## main #26 +/- ##
============================================
+ Coverage 92.85% 92.98% +0.12%
- Complexity 57 58 +1
============================================
Files 12 12
Lines 112 114 +2
Branches 12 12
============================================
+ Hits 104 106 +2
Misses 8 8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, ya, atomicfu worked out great!
public synthetic class com/juul/tuulbox/logging/LogAtomicTagGeneratorRefVolatile { | ||
public fun <init> (Ljava/lang/Object;)V | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't quite pin down where this is coming from (and if it needs to be on the public API)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's auto-generated from atomicfu's plugin. Not totally sure why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the synthetic
marker prevents library consumers from accessing it directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's auto-generated from atomicfu's plugin. Not totally sure why
Oh gotchya. If it's generated from atomicfu, not much we can do (seems fine) — I was just a little confused where it was coming from.
I think the
synthetic
marker prevents library consumers from accessing it directly?
Not sure actually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍎 🚀 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to do some reading up on atomicFU for learning purposes
Functional
No changes, everything just worked.
Logging
No
StackTraceTagGenerator
for now, not ruling it out for later. Hit two snags in my first stab:Throwable
was setting off the memory-leak crash. I think it was a false positive, but didn't want to spend too much time debugging, because...Release
builds are super useless without the mapping file, which wouldn't be available at runtime.No console logger tests for now. In theory it should be possible to
freopen
the streams forstdout
andstderr
, but I had trouble getting that working.