-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix android data paths fixes #2697 #3004
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
base: master
Are you sure you want to change the base?
Fix android data paths fixes #2697 #3004
Conversation
A pity that this breaks the systematic structure we have across all OF applications. Is there really no better way, maybe with a new Eclipse version? pinging @openframeworks/android |
yes there's no way to solve this while keeping bin/data, the android plugin for eclipse is hardcoded to clean everything in bin and to use bin for generating the binaries. what we should add is some commands in the makefile's afterrun rule so it moves old bin/data to data, and probably add a ln -s in bin/data so multiarchitecture projects still work |
Well I know Zach has been talking about how to change the project structure I did this because I kept blowing away my files with a clean.
|
yeah that's terrible, I wonder if there's a pre or post build step that can regarding changes to the structure, I'm advocating for folders per platform
On Tue, Jun 3, 2014 at 8:56 AM, Dan Moore notifications@github.com wrote:
|
I've also gotten into the habit of moving my data inside the App package on
|
Making sure your project is on a git repo can really help too. Discard changes saves lives with the accidental clean with oF/Android at the moment. |
@danoli3 that is a inelegant fix for this issue. It works but you have to remember to add your data files to your git as you go. I'll make the changes @arturoc suggested yesterday. I'm also looking into implementing a way to read items from the resource folder and the assets folder from the cpp. When making an Android app that has equal parts Java and CPP it is a bit clunky that I need to include two copies of an assets: one in the standard location to access via the Android Java api and one in the ZIP for the CPP to use. I was also working yesterday to integrate the dropbox datastore and sync libraries with an Android OF app so I can sync files between app installs on different devices and push new files to the OF app without having to reinstall the APK or make a HTTP GET from the cpp. |
I need to redo this |
@danthemellowman do you think you can have this ready for the 0.9 deadline? |
yup. I'll get cracking on it. Just wrapped a couple projects so I have some free time. |
Problem with the above idea:
An alternative idea, is to keep @danthemellowman 's idea of the This way for Multiplatform projects, say iOS the user could implement the exact same script copying the data/ to bin/data. And possibly keep the device specific targets seperate. However for iOS we can leave this up to the user. For Android, we need this change to prevent the clean nuke. Since iOS Apps and Android Apps tend to go hand in hand these days, be a good idea to make this easier for oF users (As this is one of the many powers of oF) Here is the modications required to each Project Makefile
All this needs is another line checking if bin/ and bin/data exists, if they don't make them first. Note the only change is Possible issues with Makefile change.
|
I need to redo this PR today |
It seems this doesn't make so much sense anymore, since the eclipse plugin anyway is going away soon (hopefully 😉 #4549), and in Android Studio with gradle, this is not an issue. |
We still use Eclipse extensively in Android development. |
Is there any progress on this subject? We stopped upgrading from 0.8.0 to 0.9.0 and waiting a fix for this issue. |
Moved the data folder out of $PROJECT_ROOT/bin to $PROJECT_ROOT. Fixes #2697