jamesbutler01 / Mymou

Mymou: A standalone touchscreen in-cage testing device
16 stars 10 forks source link

Cleanup #2

Closed iandol closed 5 years ago

iandol commented 5 years ago

OK, I've removed all the files that shouldn't have been in git (i.e. files and folders in the .gitignore file). Then I updated gradle to 4.6 (there is a V5.0 but it isn't compatible with Android Studio 3.2 yet), and the latest SDK. Gradle is building without errors, but Mymou crashes in the Emulator (due to Bluetooth). I don't have a tablet yet to test, but it seems removing those files from the folders didn't cause any build errors at least, and going forwards there will be less noise when we commit.

jamesbutler01 commented 5 years ago

Yeah annoyingly there is no support for Bluetooth on the emulators. If you dont manage to source a tablet anytime soon an easy workaround would be to check on startup if app is run from emulator and only activate rewardSystem if it's an actual tablet.

iandol commented 5 years ago

Yes, I will try to work out how to do that. Remember, I don't quite know what I'm doing at the moment, so some of my pull requests may break things (especially when I can't test their impact) 😱

jamesbutler01 commented 5 years ago

Just pushed an update which should now have this functionality. Simply change MainMenu.useBluetooth to false and this should disable all bluetooth calls. It will still make the bluetooth permission requests however, so not sure if they are also a problem on the emulator?