Comments (7)
Done. This will show up in the upcoming bug fix release, probably this weekend.
You are referring to javax.annotation.Nullable
correct, the same issue as in johncarl81/transfuse#52 ?
from parceler.
One thought... is your android build including the Parceler (not Parceler-api) jar contents and dependencies into your final apk?
from parceler.
I'm using Gradle and it possible that Parceler is added into APK. But it is
later removed by proguard, I guess.
Sent from my Nexus 5. Excuse my brevity.
Check my apps at http://android.hubalek.net and at
http://blackberry.hubalek.net
Dne 6. 1. 2014 20:09 "John Ericksen" [email protected] napsal(a):
One thought... is your android build including the Parceler (not
Parceler-api) jar contents and dependencies into your final apk?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-31676643
.
from parceler.
I'd recommend using android-apt plugin to run Parceler during the annotation processing phase and ignore it and its dependencies for the final apk, like the following:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.1'
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
apply plugin: 'android-apt'
repositories {
mavenCentral()
}
dependencies {
apt 'org.parceler:parceler:0.2.3'
compile 'org.parceler:parceler-api:0.2.3'
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
}
This avoids the need to even worry about Proguard and will hopefully solve your duplicate class problem outright. Let me know if this works for you.
from parceler.
Will look at it tomorrow, thanks for suggestion, I really appreciate it.
BTW: I'm curious why you can't move javax.* classes out of the jar? I'm
using multiple annotation processors (Dagger, Butter Knife) and all work
without any extra plugin.
Sent from my Nexus 5. Excuse my brevity.
Check my apps at http://android.hubalek.net and at
http://blackberry.hubalek.net
Dne 6. 1. 2014 20:31 "John Ericksen" [email protected] napsal(a):
I'd recommend using android-apt plugin to run Parceler during the
annotation processing phase and ignore it and its dependencies for the
final apk, like the following:buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.1'
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
apply plugin: 'android-apt'repositories {
mavenCentral()
}dependencies {
apt 'org.parceler:parceler:0.2.3'
compile 'org.parceler:parceler-api:0.2.3'
}android {
compileSdkVersion 19
buildToolsVersion "19.0.0"defaultConfig { minSdkVersion 7 targetSdkVersion 19 } compileOptions { sourceCompatibility JavaVersion.VERSION_1_6 targetCompatibility JavaVersion.VERSION_1_6 }
}
This avoids the need to even worry about Proguard and will hopefully solve
your duplicate class problem outright. Let me know if this works for you.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-31678741
.
from parceler.
I believe that I can move the javax.* classes out of the transfuse-bootstrap jar and rely on jsr305 instead.. if that's necessary. I ran into a couple stumbling blocks this weekend regarding the removal of javax.annotation.Nullable, but I should have it fixed soon. I'll let you know.
from parceler.
This is incorporated into the 0.2.5 release
from parceler.
Related Issues (20)
- Ability to treat reflection warnings as errors HOT 5
- Parceler fails when used with with Lifecycle-viewmodel 2.2.0 HOT 7
- Facing Vulnerabilities in parceler library HOT 1
- Facing Vulnerabilities in parceler library HOT 1
- Polymorphism documentation not updated? HOT 6
- Cannot get working with navigation graph HOT 1
- Crashing on background HOT 4
- ParcelAnnotationProcessor.process take lot amount of time. HOT 15
- Unable to find generated Parcelable class HOT 1
- error: Parceler: Code generation did not complete successfully. HOT 47
- Cant find class to parcel ! HOT 1
- Can't generate code HOT 3
- Unable to Marshall with Parceler HOT 2
- Errors in HashMap$$PackageHelper HOT 3
- cannot running with kapt HOT 1
- Parceler: Code generation did not complete successfully. org.parceler.transfuse.transaction.TransactionRuntimeException: Encountered ErrorType <error>, unable to recover HOT 4
- [Request Feature] Support for Kotlin Symbol Processing
- Parceler code generation fails on AS 2023.3.1
- Getters and Setter Alphabetically Order for Write and Read
- Not sure how to convert a Cursor
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 parceler.