Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Dynamically load OBJ and Blocks like the Vuforia mod? #46

Open
Windwoes opened this issue Dec 18, 2017 · 5 comments
Open

Dynamically load OBJ and Blocks like the Vuforia mod? #46

Windwoes opened this issue Dec 18, 2017 · 5 comments
Assignees
Milestone

Comments

@Windwoes
Copy link
Member

Windwoes commented Dec 18, 2017

Would it be possible for us to package all the stuff that got stripped out for Turbo into an AAR which could then get dynamically loaded from the SDcard like my Vuforia mod?

conversation

@NoahAndrews
Copy link
Member

NoahAndrews commented Dec 18, 2017

So, one objection I came up with for this is that it prevents OBJ and Blocks modification. What if we included that code in the project still somehow? And just had a different gradle task to build it.

@NoahAndrews
Copy link
Member

And if we can get that to work, maybe there's other stuff we should do this with too

@NoahAndrews
Copy link
Member

And if we can't, we can at least load android.jar from SD

@NoahAndrews
Copy link
Member

image
image
image

@NoahAndrews NoahAndrews self-assigned this Jan 2, 2018
@NoahAndrews
Copy link
Member

NoahAndrews commented Jan 8, 2018

OnBotJavaManager actually copies the contents of Robotcore\assets\java to FIRST\java\lib already. Which would make it VERY easy to not include that stuff in the APK.

Javac.jar is already isolated, so it shouldn't be too hard to load that at runtime too. I think the biggest savings after that would be to put the org.firstinpires.ftc.robotcore.internal.android package into its own jar/dex. At that point, we can see how far we are size and method wise from Turbo. Of course, even if we decide that it's slim enough, we still should measure the impact of an option to disable the HTTP server and stuff.

@NoahAndrews NoahAndrews added this to the 1.2 milestone Jan 8, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants