-
Notifications
You must be signed in to change notification settings - Fork 1
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
add aidl parcelables into aar #16
base: main
Are you sure you want to change the base?
Conversation
d265b82
to
67d3a1b
Compare
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage::class.java, Usage.JAVA_RUNTIME)) | ||
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage::class.java, Usage.JAVA_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.
The second call overwrites the first, which one do you want to use and why? See comments in source code just above
Looks like you used JAVA_API in artifactsOf() for AIDL, so this could be left as JAVA_RUNTIME
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.
sorry, forgot to remove first line. i have tried to left only JAVA_RUNTIME but in that case i cannot access to aidl files.
67d3a1b
to
f0cd6ec
Compare
f0cd6ec
to
2eabbb8
Compare
I approved before seeing there was a new commit 😄 I guess you're still working on this. I spent quite some time earlier to investigate why we need a special combination of API and RUNTIME, but I could not figure it out. In my understanding when you set the usage attribute in artifactsOf(), you kind of override the usage attribute given to the configuration. I'll check with your changes |
2eabbb8
to
3ade5f6
Compare
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage::class.java, Usage.JAVA_RUNTIME)) | ||
} | ||
} | ||
val configurationApi = configurations.create(nameOf(greasifiedName, "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.
aidl parcelable files from project dependencies can be accessed only via greaseApi configuration
I dont have any other idea, so i have just added api configuration for special cases when we need include aidl parcelables from project dependencies in fat aat |
@natario1 what do you think about this solution? |
I'll take a look tomorrow! |
Closes #15