Comments (5)
Hi,
sometimes the design of android APIs make me very sad...
So how do you imagine such feature? Checkbox option that would generate deserialization in readFromParcel method instead of constructor would be enough?
from android-parcelable-intellij-plugin.
Yea, the API is definitely weird.
You may put the checkbox, thats an option. Another option might be to generate the parcelable exactly in the same way as google showed in Rect class(link in first post). In that way it should be compatible with both aidl and standard parcelable. It is not different much from the way you do it now, right?
from android-parcelable-intellij-plugin.
The problem I can see in solution from sample is calling non-final method from constructor that is generally bad practice. Making this method final would forbid inharitance of parcelable objects.
That's why I don't want to make it a default behaviour. I guess making this optional would be better solution.
To be honest I am not sure when I'll find time to implement this. If you need this asap maybe try to implement it and pull request? I'll be happy to review it and merge. The codebase of plugin shouldn't be hard to understand.
from android-parcelable-intellij-plugin.
I would do it at start, no problem, but I am afraid I moved from the project a month ago and don't need it anymore, sorry, it is up to you.
from android-parcelable-intellij-plugin.
I have added a pull request for this: #74
I have also released an updated version in the meanwhile to be manually installed: https://github.com/koh-osug/android-parcelable-intellij-plugin/releases/tag/v0.7.1
NOTE: this must be installed over the existing plugin, otherwise some hook seems to be missing.
I'n not familiar with the meaning of the field until-build
in the plugin.xml
but it might not work in later versions if IntelliJ is restricting this artificially by using this.
from android-parcelable-intellij-plugin.
Related Issues (20)
- runtime exception when readList
- NullPointerException: null HOT 4
- android studio mac 配置环境 HOT 1
- There is no Preferences -> Plugins -> Install plugin from disk....
- Parent class CREATOR is miss when i parcelable with it in child class HOT 6
- Object is not parceled correctly if it has a field of an array of its own type HOT 1
- Not work in Andriod_studio_window_x64_2.1.2
- Generate final parameters where possible? HOT 2
- short[] causes broken code HOT 4
- Enum support HOT 3
- Code formating
- Generate code with parent object from library
- After installing, plugin not visible in AS 2.3 HOT 1
- [Question] Why the generated constructor is protected rather than private? HOT 1
- Error writing a list of Parcelable objects with subclasses
- How to parcel private List<T> data; HOT 1
- Request: support Kotlin too
- Android Studio 3.0 not work HOT 10
- when map is null. HOT 1
- Android Studio 4.1 support HOT 13
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 android-parcelable-intellij-plugin.