-
Notifications
You must be signed in to change notification settings - Fork 87
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
considering splitting module or/plus library out of DemoAndroidLNjScheme #338
Comments
I highly doubt anyone on our team has ever even compiled this app. As in #273 (comment), I only merged it as it didn't break anything. Doesn't targets/android/build-binary#L181 transfer files into the Android build? Or am I missing the question? |
Am Mon, 28 Sep 2020 13:07:54 -0700
schrieb Matthias Görges <[email protected]>:
Doesn't
[targets/android/build-binary#L181](https://github.com/part-cw/lambdanative/blob/01d94cb2eaf1114f2757cee36f1c185cce824814/targets/android/build-binary#L181)
transfer files into the Android build? Or am I missing the question?
If I understand the code correct, transfers files from the
`android_jars` directory in the **app**.
What I'd need would be to copy them from the `android_jars`
subdirectory of library/module.
The problem I'm facing:
1. In order to include/not include it into an app properly I only know
of creating a module and mention it in the `MODULES` file of the app.
Hence I'd extend the source line you're referring to to look for
`android_jars` in the modules list too.
I'm unsure how to get that right - hence me asking for a hint.
2. Neither am I sure that pulling the jar from a module is actually the
best choice. Maybe was better a library. What would you recommend?
3. In order to build the jar there is a java/jar invocation required.
Currently this us done using `make` in an extra step, which is
incompatible with a module build.
Question: is there a paved way already? I don't want to reinvent
the wheel.
|
I think there is at least one library which uses jars: libraries/usb-serial-for-android/make.sh which fakes the Will also need to think more about the extra make for the jar - a library would solve this step - see either of those two examples above, but it is not a particularly clean/beautiful approach either. |
Am Wed, 30 Sep 2020 00:57:49 -0700
schrieb Matthias Görges <[email protected]>:
Will also need to think more about the extra make for the jar - a
library would solve this step - see either of those two examples
above, but it is not a particularly clean/beautiful approach either.
For the extra `make` I already have an idea in mind I want to try out
before going into details.
Q: Which variable tells me in `scm.sh` how to call java/javac/jar?
|
As we don't do this anywhere there isn't one. In fact, we call all the java-related tools like |
The code build a
.jar
usingmake
and then needs to install that.How would I do that the intended way?
The text was updated successfully, but these errors were encountered: