uber / artist Goto Github PK
View Code? Open in Web Editor NEWAn artist creates views. Artist is a Gradle plugin that codegens a base set of Android Views.
License: Apache License 2.0
An artist creates views. Artist is a Gradle plugin that codegens a base set of Android Views.
License: Apache License 2.0
Travis CI logs:
TROUBLESHOOTING: A FOSSA API key is needed to run this command.
Running `fossa analyze` performs a dependency analysis and uploads the result
to FOSSA. To run an analysis without uploading results, run:
fossa analyze --output
You can provide your API key by setting the $FOSSA_API_KEY environment
variable. For example, try running:
FOSSA_API_KEY=<YOUR_API_KEY_HERE> $command
You can create an API key for your FOSSA account at:
app.fossa.com/account/settings/integrations/api_tokens
Add a Wiki page with a list of use cases such as:
When reading Artist's readme it is hard to answer the question "what kind of problems will this solve for me?" Maybe mention a concrete example use case? For example: "this can be used for adding automatic analytics to every view".
Close this issue if you disagree.
A layer of indirection will be added to Artist such that the core logic remains the same, but JavaPoet/KotlinPoet usages will be generified. The built-in traits will be switched to KotlinTraits.
Are great!
Change to avoid things to break after JCenter sunset
Codegen artifacts with androidx
package names if androidx flag is enabled
See what could be of use here
Here the generated parameter of setOnClickListener
should have a @Nullable
annotation to be consistent with android.view.View
, see here (slow to load)
public open override fun clicks(): Observable<Unit> {
if (clicks == null) {
....
rxview_longCl().map()
.doOnNext(UiChecks.checkClickableRequirementsAction(this))
.doOnNext(ViewAnalytics.logTapFor(this, getContext())).subscribe(clicks)
}
}
....
}
The Kotlin compiler assumes that the clicks in the subscribe method is null even though we set it a few lines prior. A possible fix for this is adding a let call before the rx chain. This way we will prevent the compiler from prompting
smart cast to 'PublishRelay<Unit>' is impossible, because 'clicks' is a mutable property that could have been changed by this time
How we're planning on solving it
public open override fun clicks(): Observable<Unit> {
if (clicks == null) {
....
clicks?.let {
rxview_longCl().map()
.doOnNext(UiChecks.checkClickableRequirementsAction(this))
.doOnNext(ViewAnalytics.logTapFor(this, getContext())).subscribe(it)
}
}
}
....
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.