Comments (4)
Fortunately that line of code (selecting kapt
or apt
) was enough :)
I use it in mixed java/kotlin project with about 75% codebase in java. Blade
is generating its classes for both java and kotlin code.
from blade.
Hi,
no, this library does not support Kotlin classes. I'm planning to look at it. But I don't have time for it currently.
I don't use Kotlin, so it wasn't that important when I started this library.
If there is somebody who knows how to support kapt
or about some open-source library that also supports kapt
(from which I can inspire) - please leave a comment. thanks
from blade.
It turns out that Blade and Kotlin can play well together :) You just have to enable generating stubs in kapt
.
Put this in your build.gradle
and everything should work fine.
kapt {
generateStubs = true
}
Sometimes build is failing (InstantRun + kotlin incremental builds) but then simple clean-build action will make it work again.
Thanks @FrantisekGazo for such an awesome library :)
from blade.
@rciurkot that's great news. Thanks for sharing this solution :)
Blade
is using kapt
or apt
based on found plugin - as you can see here: https://github.com/FrantisekGazo/Blade/blob/master/plugin/src/main/groovy/eu/f3rog/blade/plugin/BladePlugin.groovy
. That is code I added when I started the library, but I was expecting that I will have to do something more.
@rciurkot did you try it with pure kotlin app or mixed java/kotlin?
from blade.
Related Issues (19)
- There is no I.startMyActivity() generated if there is no @Extra annotation in the class. HOT 1
- Support for Parceler HOT 1
- Possible improvement? HOT 6
- Multiple annotations HOT 7
- Inject code for @State at the end of `onSaveInstanceState()` HOT 1
- Support also yaml config file HOT 1
- Butterknife 8.4.0 does not work with Blade. HOT 4
- How to pass List as Extra? HOT 5
- Support for Kotlin projects HOT 1
- Generate assertions from standard Android annotations HOT 2
- NoClassDefFoundError: javax/inject/Inject HOT 3
- Support for com.android.tools.build:gradle:3.+ HOT 1
- Add method for Bundle creation to blade.F
- Combine modules arg and extra into one
- Support for MVVM
- Kotlin primitive is generated as private HOT 4
- Only Fragment subclass can contain @Arg with AndroidX HOT 5
- Error for gradle 4.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blade.