ajhager / libgdx-sbt-project.g8

A g8 template for developing Scala games using libgdx.
85 stars 44 forks source link

Upgrade Scala and SBT, switch Android plugin, remove iOS plugin (for now) #79

Closed aginiewicz closed 10 years ago

aginiewicz commented 10 years ago

This big commit updates Scala to 2.11.1 and SBT to 0.13.5. It was possible because of new Android plugin. This template now uses https://github.com/pfn/android-sdk-plugin plugin.

Directory layout of project was changed to mirror those of official gdx-setup.jar, though proguard rules are different - they are merge of rules from old project, gdx-setup.jar template rules and official android rules from proguard-android.txt.

Proguard rules might still need some polishing, there are warnings, but they seem not influence normal working of Libgdx, so they are ignored for now. If something does not work due to bad proguard rule, open ticket and it will be fixed in template.

Last, but not least, I disabled iOS code for now, due to few reasons:

That's why I decided to remove those files and publish what I already got, and wait for patches from someone who has iOS or Mac and can test/fix iOS support in new template.

aginiewicz commented 10 years ago

as side not - this now works quite well in emulator (x86 emulator with gpu acceleration, started on linux with command:

emulator -avd <name> -qemu -m 512 -enable-kvm

running premade Galaxy Nexus AVD on Android 4.4.2 AVD and Intel Atom (x86) image and host GPU.)

At least that's what I tested.

aginiewicz commented 10 years ago

I've noticed there is already new version of plugin, and that I left some old comments. Last commit is cosmetic.

ajhager commented 10 years ago

This all looks great. Checking it out now.

aginiewicz commented 10 years ago

actually it worked ok, warnings come from higher level in current version of rules, so I had to -dontwarn macros in my project. Template was ok.

ajhager commented 10 years ago

Looks like it is working well.

ajhager commented 10 years ago

I will work on getting iOS support back up and running.

aginiewicz commented 10 years ago

Great! One more thing - icons and style.xml are from gdx-setup.jar template. I think it accounts for fair use (there is no license for those files in gdx-setup.jar or I haven't found it). Do you think we should contact them about it?