Monday, February 10, 2014

Go Batty Status Update

I spent the day working on Go Batty. I have been working on implementing Google Play Services and AdMob. It turns out, they are discontinuing AdMob, and merging it with Google Play Services.

I was planning on using both the Google Play and the AdMob Unity plugins released by Google. Because of merging the AdMob functionality with Google Play, when I was trying to build my project, it decided it was not possible, giving me a cryptic error code. After a bit of searching, I found out this code apparently meant that both SDK jars (which need to be included in Unity for the plugins to function) have definitions for the same class. After realizing this, I quickly figured out I needed to remove one of the SDKs from the project, and obviously chose to remove the AdMob SDK, since its functionality is in Google Play Services. This also would mean modifying the AdMobPlugin.java file included in the plugin, as it will no longer be accessing the AdMob SDK. I hopefully made all of the necessary changes, changing all references to the AdMob system to the new Google Play Ads system. I won't know if this worked until my AdSense account setup is 100% complete (waiting for that deposit that shows Google I accurately gave them my account info).

After removing [renaming the extension to .jarbak just for an easy restore] the AdMob SDK, Unity then had another cryptic build error. This time it was some nonsense about the Google Play Services version in the manifest file. I made sure the correct lines were included, and Unity still continued to have the error. Apparently, there was another AndroidManifest.xml file hiding in the Google Play Plugin that was essentially blank, and Unity decided it wanted to use this one.

Art is coming along nicely (thanks to my wonderful wife +W.D. Wheeler who has been working hard on it today), users are authenticating in Google Play (or so it seems), and more extra implementation is done.

Next up on my list is to get leaderboards and achievements working, and hopefully that deposit will come in so I can test my ad implementation. Things are looking on schedule to be done by the end of the week. I just might have enough time off my traditional job for the next few days to get it done.

2 comments:

  1. Hi, how did you change the admob plugin to use the new GPS sdk. Could you share your source?

    ReplyDelete
  2. I decided to write a new one from scratch, took a bit to get it working, I'm not that good at Android Java. I put the important part of the code here

    ReplyDelete