<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shobhit Samaria on Medium]]></title>
        <description><![CDATA[Stories by Shobhit Samaria on Medium]]></description>
        <link>https://medium.com/@samzgamz?source=rss-c4aef9746bdf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PApzw-IIC5651YCZ.jpg</url>
            <title>Stories by Shobhit Samaria on Medium</title>
            <link>https://medium.com/@samzgamz?source=rss-c4aef9746bdf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:16:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samzgamz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A guide to avoid CocoaPods installation failure while building Unity project for iOS.]]></title>
            <link>https://medium.com/@samzgamz/a-guide-to-avoid-cocoapods-installation-failure-while-building-unity-project-for-ios-65f556aecac5?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/65f556aecac5</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[cocoapods]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Mon, 18 May 2020 11:53:23 GMT</pubDate>
            <atom:updated>2020-05-18T17:26:47.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8kWTiSsdE5dtyTh5d09IQg.png" /></figure><p>If you are using Unity to build your iOS projects and use SDK’s like Firebase, Facebook etc. which require CocoaPods, then these steps enlisted below should help you run a smooth and successful build.</p><p>Even if you are not using Unity and just using Xcode project, these steps should ensure that the pods get installed in your project successfully.</p><p>Once everything is setup, the builds usually almost always run successfully and rarely give problems. It is mostly during the first build or sometimes after an OS update or after a hard disk change or moving to a new machine, that problems creep up and the Unity build fails with the message — It is a long error message in the Console which would probably state how even the <strong><em>“pod repo update” </em></strong>was attempted and it failed as well.</p><p>For the people who aren’t aware how Pods work and not familiar with the Xcode CocoaPods workflow, this error is very hard to decipher and fix.</p><p>If you have encountered this error, follow the steps below to fix it and setup CocoaPods correctly.</p><p>The setup used for the purpose of this writeup:</p><p><strong><em>MacOS Catalina (10.15.6)</em></strong></p><p><strong><em>Unity 2018.4.22f1</em></strong></p><p><strong><em>Xcode 11.4.1</em></strong></p><p><strong><em>CocoaPods 1.9.1</em></strong></p><h3>1) Install Xcode.</h3><p>Pretty self explanatory and in all probability you should have done this step already. Xcode can be installed from the Mac AppStore or by downloading a xip file from the apple developer site.</p><h3>2) Sudo xcode-select</h3><p>Now we have to ensure that our system knows where our Xcode is and specifically where the developer tools which come bundled with it are installed.</p><p>Open Terminal on your Mac and run the following command.</p><blockquote><strong>sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer</strong></blockquote><p>Please note that the path to Xcode on your machine may vary. The path listed above is the default location of Xcode. You may have installed or moved Xcode to a new location. In that case, please run the command with the appropriate path.</p><p>Sometimes, just this magic command can make your build run fine. If it doesn’t, follow the next steps to install and correctly setup CocoaPods on your system.</p><h3>3) CocoaPods installation and setup.</h3><p>If your build is failing, the most likely cause is that CocoaPods is not installed and setup properly. So follow the steps below and by the end of it, CocoaPods would be installed successfully on your system.</p><p>First lets remove any previous installations so that we can make a fresh start. Open a Terminal and run the command below. If there was a previous installation (or more than one installations) this will remove them. Type “y” and press “Enter/Return” on any prompts that this command makes.</p><blockquote><strong><em>sudo gem uninstall cocoapods</em></strong></blockquote><p>Once you have uninstalled the previous version (or if no previous version exists) proceed to install cocoapods. Run the following command on the Terminal.</p><blockquote><strong><em>sudo gem install cocoapods</em></strong></blockquote><p>Let the process complete successfully. This should install the latest version of CocoaPods on your system.</p><p>But the installation process isn’t complete. CocoaPods is basically a repository of frameworks and their dependencies. You just have to specify which “pods” you want in your project in a podfile and it installs them. But in order for it to work, the entire repository needs to be on your system in a specific folder. There are several ways to do that. The first time you run a pod install, it will download the repository before proceeding. In older versions of CocoaPods, you can run <em>pod setup </em>and it should do the job (since version 1.8.0, pod setup does nothing!). Or in some cases <em>pod repo update </em>might work.</p><p>But I am going to list the method that I use which works for me every time.</p><p>First we need to create a folder. Go to your user folder using Finder Explorer. Look for a folder name (It is a hidden folder since the name starts with a dot). If you can’t see the folder, press <strong><em>Command+Shift+. </em></strong>to reveal the hidden folders. If the folder doesn’t exist, then create one with the name. Open the folder and look for a folder named <strong><em>repos. </em></strong>If the folder doesn’t exist, create one by that name. Open the <strong><em>repos </em></strong>folder. If there is a <strong><em>master </em></strong>folder inside it, then delete it. We are going to recreate it. Your folder structure should look like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*4k7p9syCYOv34gNbsbez-A.png" /></figure><p>Once you have got this open the terminal and run the below commands one by one.</p><blockquote><strong><em>cd ~/.cocoapods/repos</em></strong></blockquote><blockquote><strong><em>git clone –depth 1 </em></strong><a href="https://github.com/CocoaPods/Specs.git"><strong><em>https://github.com/CocoaPods/Specs.git</em></strong></a><strong><em> master</em></strong></blockquote><blockquote><strong><em>pod repo update</em></strong></blockquote><p>The git command should take a few minutes to complete as it downloads the repository to your system. Ensure all the commands listed above are completed successfully. Your folder structure should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*i03-sRwbEDRzPArwdNJL2Q.png" /></figure><p>Voila! Now you have completed the installation correctly. Go back to Unity and build for iOS again. And this time the build should succeed without any errors!</p><h3>4) Use .xcworkspace file instead of .xcodeproj</h3><p>If you are new to using Pods, then you probably won’t even be aware of this. If you are experienced, there is still a chance that you might forget this.</p><blockquote><strong>Always, use the .xcworkspace file to open your project in Xcode and not the .xcodeproj which you are probably used to.</strong></blockquote><p>Once the unity build process completes and the pods are installed successfully, notice that the generated Xcode project now has a .xcworkspace file alongside the usual .xcodeproj file. Use the .xcworkspace file to open you project in Xcode. Using the .xcodeproj file to open the project will lead to errors when building the Xcode project.</p><h3>Some parting info on CocoaPods</h3><p>There’s a lot of information on CocoaPods out on the internet, some old some new. A lot of questions being answered on StackOverflow. If you have been going through all the material, it can cause quite a lot of confusion. Especially with the new versions of CocoaPods not requiring the master repository on your system. Let me help you out with that.</p><p>As of CocoaPods version 1.8.0, there is no mandatory requirement for the master repository on your system. However, this also requires a change in the projects podfile to change the source of download. When testing with Unity 2018.4.22f1, I found the podfile still tries to download from the master repository and hence the master repo is required on the system. If the repo is not present, the Unity build process will try to download and install the repo which may fail due to network issues or some other error and will cause the build to fail. So it is better to have the master repository for now. In the future, when the new methodology is stable and becomes the norm, we probably won’t need the master repository.</p><p>When running into issues, a lot of old answers on internet can point you to <strong><em>“pod setup”</em></strong> to solve the problem. Let me reiterate that as of version 1.8.0, this command does nothing and just prints a completed message. Hence don’t rely on it.</p><p><strong><em>“pod repo update”</em></strong> command can be run to keep the master repo updated but it requires the master repository correctly configured to work. It especially requires the <strong><em>.git </em></strong>folder inside the <strong><em>master </em></strong>folder to be configured correctly. This command can be run on Terminal from any folder.</p><p><strong><em>“pod install” </em></strong>command is used to install the pods in your project. It will also download and install the master repository if it is not present. This command can only be run from a folder which has a valid podfile.</p><p>Hopefully you won’t run into any issues if you follow the above mentioned steps correctly and won’t need any additional help.</p><p>I am no expert on CocoaPods. But I have had to fiddle around to get my project to build with Google Firebase SDK and Facebook SDK. Hopefully this writeup will help any one else coming across the same problems.</p><p><em>Originally published at </em><a href="http://shobhitsamaria.com/cocoapods-installation-failure-while-building-unity-project-for-ios/"><em>http://shobhitsamaria.com</em></a><em> on May 18, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65f556aecac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Unity build for Android platform]]></title>
            <link>https://medium.com/@samzgamz/troubleshooting-unity-build-for-android-platform-17b16049f491?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/17b16049f491</guid>
            <category><![CDATA[build]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Sat, 08 Jul 2017 12:35:04 GMT</pubDate>
            <atom:updated>2017-07-08T12:35:04.892Z</atom:updated>
            <content:encoded><![CDATA[<p>So after releasing my games <a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><em>Mr. Mustachio</em></a> and <a href="https://itunes.apple.com/us/app/mr-mustachio-2/id1229343195?mt=8"><em>Mr. Mustachio 2</em></a><em> </em>on iOS, it was time to focus on android build as well. Since I was using Unity, it allows for cross platform development and the same project can be build for Android as well. All that you have to do is switch the build platform, set the appropriate keys and passwords, set the android sdk paths and hit the build button. Unity will build the apk for you to distribute! If you have a small project, this should work beautifully. However, chances are that it won’t be as simple as that. A bit complex project is likely to run into a few issues before you get the final build. I ran into a quite a few and spent a few days fixing all the stuff before managing to get the build up and running. It was apparent that quite a few people were facing the same issues on the internet. In order to help out people who could possibly run into the same issues, I am going to list them out with the solutions.</p><p>The setup:</p><p>Unity 5.6.0f3, Android Studio 2.3, MacOS Sierra</p><p><strong>1. <em>Unable to list target platforms.</em></strong></p><p>So to build for Android, you need to install the Android SDK. The usual way to do it is to install the Android Studio which does all the work for you by installing the latest SDK usually on the default path of <em>&lt;user&gt;/Library/Android.</em> Then you correctly setup the path to the android SDK in the Unity preferences and eagerly hit the build button! And you hit the first roadblock :(</p><p>The build does not take off and you see this error message :</p><p><em>Unable to list target platforms. Please make sure the android sdk path is correct.</em></p><p><strong>Solution : </strong>No need to double check the sdk path as it would be correct (actually it wouldn’t hurt to make sure!). The problem sems to be that unity is compatible with a certain version of Android SDK Tools (<em>&lt;user&gt;/Library/Android/sdk/tools</em>). Now Android Studio would have installed the latest version which doesn’t work with Unity. So you have to downgrade the SDK Tools. First download the compatible SDK Tools version. I found that 25.2.5 worked for me. But I doesn’t seem to be available for download now. Hopefully 25.0.1 should work.</p><p><a href="https://dl.google.com/android/repository/build-tools_r25.0.1-macosx.zip"><em>https://dl.google.com/android/repository/build-tools_r25.0.1-macosx.zip</em></a></p><p>(google for links to download windows or linux versions)</p><p>Unzip the file and replace the ‘tools’ folder in your Android SDK location (<em>&lt;user&gt;/Library/Android/sdk/tools</em>). Rerun the build and this time it should not give this error.</p><p>Of course, now the Android SDK Manager will complain that the latest build tools are not installed. For this, I keep two Android SDK folders in my Library, one for the Android Studio with the latest build tools and one for Unity with downgraded tools folder. Hopefully this should not be an issue in the newer versions of Unity.</p><p>Helpful Link : <a href="https://forum.unity3d.com/threads/android-deployment-error.444133/#post-2876464"><em>https://forum.unity3d.com/threads/android-deployment-error.444133/#post-2876464</em></a></p><p><strong>2. <em>Merging the different AndroidManifest.xml of the various plugins</em></strong></p><p>This is not a problem but just a caution. It is very likely that multiple plugins are being used in your project. Some plugins would need to make some changes or additions to the main AndroidManifest.xml. Some plugins like Facebook, Google Play Games, Fabric etc provide a button in their settings to update the xml file. Some plugins (like Heyzap etc.) might provide you a copy of AndroidManifest.xml and ask you to put it in your <em>Assets/Plugins/Android/</em> folder. You need to be careful in this regard to ensure that all the changes required by all the plugins are in the final main AndroidManifest.xml. There is no easy way to do it. You just have to be careful and observe what changes each plugin makes to the xml and ensure that those changes do not get overwritten or changed or removed.</p><p><strong>3a. <em>Unable to merge android manifests. See the Console for more details.</em></strong></p><p>So the build is commencing peacefully and all looks good and suddenly you get this dreaded message. Arghh…</p><p>This means that in your project under <em>Assets/Plugins/Android</em> there are multiple AndroidManifest.xml files, probably from the different plugins that you use.</p><p><strong>Solution :</strong> This is a nasty one as there is no quick fix for this. Unfortunately this means you have to go through them all and sort out the conflicts so that only one xml file has the correct attributes. Going through the console log gives you the idea what exactly is the conflict so that part becomes easy.</p><p>For instance I had a plugin that had <em>“android:icon=”@drawable/app_icon” android:label=”@string/app_name”” </em>in its android manifest while I also had them in my main AndroidManifest.xml with the values changed. So I had to remove the attributes from the plugin xml and kept them only in my main xml.</p><p><strong>3b. <em>Unable to merge android manifests. See the Console for more details.</em></strong></p><p>Again? Yes you might have resolved all conflicts in the visible android manifest xml or you may not have been able to find the conflicts and you run the build again and you receive this message again! Well there are some ‘hidden’ xmls as well. There are several ways a plugin can be provided in Unity. The plugin can be a Android Library project which is a folder with a special structure and an AndroidManifest.xml in its base and a <em>project.properties</em> file which contains the string <em>android.library=true</em>. This xml is visible and can be easily changed by us. However the plugin can also be an Android Archive (aar) which is a zip file with all the resources. There is a manifest xml within this aar as well and that gets merged as well and if there is a conflict in there, then it needs to resolved as well.</p><p><strong>Solution : </strong>If the conflict can be resolved by changing the main AndroidManifest.xml then good enough. But if that does not help, then you have to change the xml within the jar as well. Copy the aar file somewhere. Change its extension to zip file. Unzip it and make the necessary changes to the AndroidManifest.xml inside it. Now we have to recreate the aar file. We should just zip the folder and change the extension to jar, right? Well no. That doesn’t work. You have to recreate the jar by using the java ‘jar’ command.</p><p>jar cvf plugin.aar -C PluginFolder/ .</p><p>Once done, make sure that the jar opens correctly and there is an AndroidManifest.xml in the root. Ensure that there are no extra files such as hidden .meta files.</p><p>Replace the plugin’s aar file in your project with the new aar file just created. This should resolve the conflicts.</p><p>Helpful Link : <a href="http://stackoverflow.com/questions/38860912/modifying-contents-of-android-aar-file-converting-to-and-from-zip-format"><em>http://stackoverflow.com/questions/38860912/modifying-contents-of-android-aar-file-converting-to-and-from-zip-format</em></a></p><p><strong>4. <em>Error building Player: IOException: android-support-v4.jar already exists</em></strong></p><p>The jar name might change but the error would remain the same. All the plugins would require some jars especially the ones from the android sdk. It is very likely that the same jar would be provided by multiple plugins resulting in a build error pointing out the duplicate jar.</p><p><strong>Solution : </strong>The solution is pretty straightforward. The duplicate jar name is present in the build error. Using that you need to search the <em>Assets/Plugins/Android </em>folder for the similarly named jars. Keep only one copy and remove the unnecessary ones. If you are using Google Play Games plugin which uses the PlayServicesResolver (or any other plugin that uses it), then you will find that there is an AssetPostProcessor which automatically adds android sdk jars which are required. They are added back even if you delete them. So it is better to delete the jars in the other locations such as the Facebook plugin folder etc. These jars are usually versioned so make sure to keep the correct or the higher version of the jar.</p><p><strong>5. <em>Multiple PlayServicesResolver provided by various plugins</em></strong></p><p>PlayServicesResolver is a google provided solution for play services jar management to ensure correct jars of the correct version are present in your project. However this can cause a problem if several plugins provide it PlayServicesResolver in the unity package leading to an import at the same location and resulting in compile errors.</p><p><strong>Solution : </strong>I solved this problem by importing the plugins separately in different projects and then merging the DependencyResolver manually. There is usually a file in the package which defines which which jars are needed to maintained and resolved. I usually keep the Google Play plugin’s resolver and there is a file called <em>GPGSDependencies.cs</em> which defines the jars needed for Google Play Games plugin. I just append the jars needed by other plugins in this file itself. I do have to careful when updating the plugins so that the changes are not lost on an update. But this works for now. I only faced this issue once and should be a rare occurrence for many.</p><p><strong><em>6. Dex limit error : Too many field references: 131000; max is 65536.</em></strong></p><p>If you are using several plugins, Google Play Game Services, have some ad sdks added (which is very likely these days), then you are very likely to run into this error. This error basically means that your app uses more than 64K java methods which is an upper limit and the build fails. There is a whole lot of stuff on the internet explaining what the dex limit is and why it happens, so I won’t be going into any of that stuff. The problem is that you have too many methods and the build is complaining about that.</p><p><strong>Solution :</strong></p><p><strong>a) </strong>First check if you can reduce the method count by removing any unused plugins which you don’t need. This is unlikely to happen or even solve the issue but is worth a try.</p><p><strong>b)</strong> If that doesn’t work, then the next recommended option is to use Progaurd. Proguard is a tool used to obfuscate and trim unused classes and methods. It is not enabled by default in Unity. So you have to make certain changes to make it happen. It can not be enabled using the ‘Internal (default)’ build option provided by Unity. You will have to use the new ‘Gradle Build’ option. This build works using gradle build file which Unity provides by default. We will have to override this build file and add some options to it to enable Progaurd. This can be done easily. There is a template file in the following location : <em>&lt;Unity Location&gt;/PlaybackEngines/AndroidPlayer/Tools/GradleTemplates/mainTemplate.gradle. </em>Copy this template file and paste it in your project <em>Assets/Plugins/Android</em> folder. This step overrides the default gradle template (see <a href="https://docs.unity3d.com/Manual/android-gradle-overview.html"><em>https://docs.unity3d.com/Manual/android-gradle-overview.html</em></a>). In the new template file, just change the <em>minifyEnabled</em> option to <em>true</em>.</p><p><em>buildTypes {</em></p><p><em>debug {</em></p><p><em>jniDebuggable true</em></p><p><em>}</em></p><p><em>release {</em></p><p><em>// Set minifyEnabled to true if you want to run ProGuard on your project</em></p><p><em>minifyEnabled </em><strong><em>true</em></strong></p><p><em>proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-unity.txt’</em></p><p><em>**SIGNCONFIG**</em></p><p><em>}</em></p><p><em>}</em></p><p>Now Progaurd may strip out the code which you actually need leading to ClassDefinitionNotFound errors or random crashes or just that functionality doesn’t work as intended. This is solved by providing progaurdFiles (see above in the build file just below the minifyEnabled option). These files provide configuration regarding the class files we need to keep. See <a href="https://www.guardsquare.com/en/proguard/manual/usage"><em>https://www.guardsquare.com/en/proguard/manual/usage</em></a> for more information on how to provide this information in the config file. The android sdk and unity classes already have predefined config files which are automatically added in the build file as seen above. But the additional plugins that you add need to be protected by you. You can start by checking the documentation of the plugins you use to check if they provide any progaurd files. If they do, then copy them over to you project and add it to the list of progaurdFiles in the build file (comma seperated list).</p><p>So how do we ensure that everything works correctly and nothing important has been stripped off? Well, the honest answer is I don’t know. I tried really hard but failed to get Progaurd working on my project. Progaurd not only strips but also obfuscates the code i.e. it changes the names of methods and classes for protection. However this leads to some problems in native calls to methods in some plugins. I tried many options in the config files, went through the Progaurd documentation, quite a bit of stuff on the stack-overflow but I couldn’t figure out a definitive way of solving my problem. It also generates some logs showing which files have been stripped and which have been included etc. but the sheer size of the logs is overwhelming. My app kept crashing and I never could figure out why. After several tries, I gave up. especially since the other method (multidex option) looked much simpler and much more robust.</p><p><strong>c) </strong>Use the Multidex option — <a href="https://developer.android.com/studio/build/multidex.html"><em>https://developer.android.com/studio/build/multidex.html</em></a><em> </em>. If you are targeting Android 4.0 and above, then this option can be used.</p><p>Again it is not enabled by default in Unity. So you have to make certain changes to make it happen. It can not be enabled using the ‘Internal (default)’ build option provided by Unity. You will have to use the new ‘Gradle Build’ option. This build works using gradle build file which Unity provides by default. We will have to override this build file and add some options to it to enable multidex. This can be done easily. There is a template file in the following location : <em>&lt;Unity Location&gt;/PlaybackEngines/AndroidPlayer/Tools/GradleTemplates/mainTemplate.gradle. </em>Copy this template file and paste it in your project Assets/Plugins/Android folder. This step overrides the default gradle template (see <a href="https://docs.unity3d.com/Manual/android-gradle-overview.html"><em>https://docs.unity3d.com/Manual/android-gradle-overview.html</em></a>). In the new build file just add the <em>multiDexEnabled true </em>in the defaultConfig section:</p><p><em>defaultConfig {</em></p><p><em>minSdkVersion 15</em></p><p><em>targetSdkVersion **TARGETSDKVERSION**</em></p><p><strong><em>multiDexEnabled true</em></strong></p><p><em>}</em></p><p>If the minimum SDK version that you are targeting is 21 or higher, then this is all that you have to do!</p><p>If your target SDK version is lower, then a couple of extra steps needed to be done. Add <em>compile ‘com.android.support:multidex:1.0.1’ </em>to the dependencies section like shown below.</p><p><em>dependencies {</em></p><p><em>compile fileTree(dir: ‘libs’, include: [‘*.jar’])</em></p><p><strong><em>compile ‘com.android.support:multidex:1.0.1’</em></strong></p><p><em>**DEPS**}</em></p><p>Then in the main AndroidManifest.xml in Assets/Plugins/Android location, make the following change</p><p><em>&lt;?xml version=”1.0&quot; encoding=”utf-8&quot;?&gt;</em></p><p><em>&lt;manifest xmlns:android=”http://schemas.android.com/apk/res/android&quot;</em></p><p><em>package=”com.example.myapp”&gt;</em></p><p><em>&lt;application</em></p><p><strong><em>android:name=”android.support.multidex.MultiDexApplication”</em></strong><em> &gt;</em></p><p><em>…</em></p><p><em>&lt;/application&gt;</em></p><p><em>&lt;/manifest&gt;</em></p><p>This step can be a bit of a problem if you are using a custom Android Application class already or some plugin that you use, uses a custom Application class. If the class is a custom class which you have created, then a simple solution is to extend it from MultiDexApplication instead of just Application.</p><p><em>public class MyApplication extends MultiDexApplication { … }</em></p><p>and use it in manifest <em>android:name=“com.samaria.multidex.MyApplication” &gt;</em></p><p>If the class is a third party plugin class then you cannot extend it directly. So you have to take a longer route.</p><p>* Open a new project in Android Studio.</p><p>* Add a new Android Archive Module.</p><p>* The plugin which has the application class would have provided a jar which contains the .class file either as a jar itself or within an jar. Find which jar it is.</p><p>* Create a folder ‘Libraries’ in your android project. Paste the jar in that folder (or copy all of them if you can’t pinpoint the correct one).</p><p>* Right click on the jar(s) and select the option ‘Add as Library’ and select the module in the next dropdown. <em>(</em><a href="https://stackoverflow.com/questions/25610727/adding-external-library-in-android-studio"><em>https://stackoverflow.com/questions/25610727/adding-external-library-in-android-studio</em></a><em>)</em></p><p>* Right click on the module and select ‘Open Module Settings’. In the dialog box that appears, select the dependencies tab. Locate all the jars that you have added and change their scope to ‘Provided’. This is important as you don’t want to have multiple copies of these jars included in your final build.</p><p>* In dependencies tab, click on the ‘+” sign at the bottom and select ‘Library Dependency’. In the next popup, add the <em>com.android.support:multidex:1.0.1 </em>dependency. Click OK and close the module settings.</p><p>* Create a new java class inside the module — MyApplication</p><p>* Extend this class from the plugin’s Application class and add the following piece of code to the class</p><p><em>public class MyApplication extends SomeOtherApplication {</em></p><p><em>@Override</em></p><p><em>protected void attachBaseContext(Context base) {</em></p><p><em>super.attachBaseContext(base);</em></p><p><em>MultiDex.install(this);</em></p><p><em>}</em></p><p><em>}</em></p><p>* Save the class and build the module. You will find the built aar file in the build/output folder.</p><p>* Copy the jar file into your unity projects Assets/Plugins/Android folder.</p><p>* Change your manifest xml and add <em>android:name=“com.samaria.multidex.MyApplication” &gt;</em></p><p><em>* </em>This enables multidex on your android build!</p><p>Go ahead and build the project and run it on a device. Chances are that your troubles aren’t over as yet! The game would probably crash before starting. The problem here is that in an multidex environment, there are multiple dex files but the primary dex file should contain the classes that are needed at the startup.</p><p>So how do we define which classes to keep in the primary dex file? There are two options — add multiDexKeepFile or the multiDexKeepProguard property in your build file. multiDexKeepFile option lets you define a config file in which you can list out individual files that need to be put in the primary dex file. On the other hand multiDexKeepProguard lets you define a config file in which you can define which classes to keep using the Progaurd keep rules <em>(</em><a href="https://www.guardsquare.com/en/proguard/manual/usage#keepoptions"><em>https://www.guardsquare.com/en/proguard/manual/usage#keepoptions</em></a><em>)</em> which are far more powerful than defining all the individual classes. So create a new text file <em>multidexKeepConfig.txt</em> and add the following lines to the new cradle build template file:</p><p><em>buildTypes {</em></p><p><em>debug {</em></p><p><em>jniDebuggable true</em></p><p><em>}</em></p><p><em>release {</em></p><p><em>// Set minifyEnabled to true if you want to run ProGuard on your project</em></p><p><em>minifyEnabled false</em></p><p><strong><em>multiDexKeepProguard file(‘multidexKeepConfig.txt’)</em></strong></p><p><em>**SIGNCONFIG**</em></p><p><em>}</em></p><p><em>}</em></p><p>In the <em>multidexKeepConfig.txt, </em>you will have to define which files to keep. I assumed all the unity classes should be needed upfront. I have used Fabric and it uses a custom Android Application class which I have extended to add multidex support as shown above. Also just going through my manifest.xml, I found a few classes being used in it and based on all this information I added the following lines to my config file:</p><p><em>-keep public class com.crashlytics.** {</em></p><p><em>public *;</em></p><p><em>}</em></p><p><em>-keep public class io.fabric.** {</em></p><p><em>public *;</em></p><p><em>}</em></p><p><em>-keep class com.unity3d.* { *; }</em></p><p><em>-keep class com.shobhitsamaria.** {*;}</em></p><p>Remember that Gradle reads paths relative to the build.gradle file, so the above example works if <em>multidexKeepConfig.txt</em> is in the same directory as the build.gradle file. Now when I build and run the game on android device, it works perfectly! There are some limitations to multidex — read more about it at — <a href="https://developer.android.com/studio/build/multidex.html"><em>https://developer.android.com/studio/build/multidex.html</em></a> and then decide whether this option is suitable for you.</p><p>Also when using the progaurd or the multidex option, you are very likely to run into gradle and android gradle plugin versioning. See the problem number 9 below for an explanation and the solution. Basically you won’t be able to export an app directly but will have to export the build as an Android Project and then use Android Studio to generate an apk.</p><p><strong>7. <em>Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/android/vending/billing/BuildConfig</em></strong></p><p>The path to the BuildConfig file may change in the exception but the error remains the same. The problem is that if a plugin is provided as an Android Library Project i.e it has an AndroidManifest.xml, jars and <em>project.properties</em> with <em>android.library=true</em>, then it is compiled into a aar file during the build process. The build process creates a BuildConfig.class file in the location specified by the manifest xml’s ‘package’ property. Sometimes the jar files themselves contain a BuildConfig.class file at the same location which results in multiple files at the same location leading to a build error.</p><p><strong>Solution : </strong>There is one easy solution and one that requires a bit more hard work. The easy solution is to change the package name in the AndroidManifest.xml of the plugin! That should fix it but I have no idea what other problems this could bring. The second solution is to remove the BuildConfig files from the jar itself. Removing these files causes no problems as they are just build related and stripping them off is not an issue. The java jar files are actually just zip files, therefore the powerful ‘zip’ console command can be used to remove the BuildConfig files easily. See the link below.</p><p>Helpful Link : <a href="https://stackoverflow.com/questions/4520822/is-there-a-quick-way-to-delete-a-file-from-a-jar-war-without-having-to-extract"><em>https://stackoverflow.com/questions/4520822/is-there-a-quick-way-to-delete-a-file-from-a-jar-war-without-having-to-extract</em></a></p><p><a href="https://forum.unity3d.com/threads/android-project-multiple-dex-files-define-lcom-android-vending-billing-buildconfig.408823/"><em>https://forum.unity3d.com/threads/android-project-multiple-dex-files-define-lcom-android-vending-billing-buildconfig.408823/</em></a></p><p><strong>8. <em>No resource found that matches the given name (at ‘value’ with value ‘@integer/google_play_services_version’)</em></strong></p><p>If you are developing a game for Android, you very likely would be using Google Play Services for leaderboards, achievements etc. And for that you might be using Google’s Play Services plugin for Unity <em>(</em><a href="https://github.com/playgameservices/play-games-plugin-for-unity"><em>https://github.com/playgameservices/play-games-plugin-for-unity</em></a><em>)</em> which uses Unity’s Social API for easier cross platform development. This plugin puts in Android Library Project named MainLibProject which has an AndroidManifest.xml which has the following line:</p><p><em>&lt;meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version” /&gt;</em></p><p>The <em>google_play_services_version </em>is a placeholder which expects a value to be put in during the build process. You don’t have to explicitly supply the value but it needs to be available in some other xml. So where can this value be found? This value is found in the play-services-basement aar which include a values.xml which defines the value.</p><p><em>&lt;integer name=”google_play_services_version”&gt;10298000&lt;/integer&gt;</em></p><p>This basement aar gets included as part of Google Play Services Plugin but when we build we get the above mentioned error.</p><p><strong>Solution : </strong>The easiest solution is to comment out or delete the <em>&lt;meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version” /&gt; </em>line from the mainLibProject’s xml. I tried that. The project worked just fine. No issues at all! Going through the documentation : <a href="https://developers.google.com/android/guides/setup"><em>https://developers.google.com/android/guides/setup</em></a><em> </em>— it says that this line needs to be included when we are using the play services lib located at <em>&lt;android-sdk&gt;/extras/google/google_play_services/libproject/google-play-services_lib/</em>. Now this lib is no longer available and we have to use the split up library components and the docs do not mention that we need to add the version number in the manifest xml.</p><p>But it is always better to be safe than sorry. So the second method which solves the problem and also keeps the version value is : Remove or comment out the version value line from the MainLibProject’s AndroidManifest.xml and move it one level above into your project’s main AndroidManifest.xml (Assets/Plugins/Android/AndroidManifest.xml). Here’s what I think happens. The MainLibProject during the build process is converted into an aar. During the compilation, it fails to find the <em>google_play_services_version </em>value as the play-services-basement aar is outside of this library project! The build process fails with the above given error. So moving the line out of this xml into the main project’s xml works just fine as the main project build has the access to the basement bar and is able to correctly populate the value in the manifest xml.</p><p>This solution worked for me but if there is any fault in this, then I would gladly like to be corrected.</p><p><strong>9.<em> Gradle Build error : could not find method multiDexKeepProguard() with argument [file]</em></strong></p><p>I am just writing this error out of memory but it would be somewhat similar. If you see something like this, the issue is likely to be a versioning issue with the Android Gradle Build plugin (<a href="https://developer.android.com/studio/releases/gradle-plugin.html"><em>https://developer.android.com/studio/releases/gradle-plugin.html</em></a>) and Gradle version being used. The unity installation package comes with Gradle installation and a gradle build file template which has a specific android gradle plugin version defined. The versions are 2.10 for the android gradle plugin and 2.14 for Gradle itself.</p><p>If you are using multidex option with <em>multiDexKeepProguard </em>file, then it won’t work with these versions and throw up the above kind of error.</p><p><strong>Solution : </strong>You can not and should not change anything that comes with the Unity installation. So the only thing you can do is to change stuff manually by exporting the build as a project and not exporting directly as an apk. On the build settings popup, chose the new ‘Gradle build’ option with the ‘Export as Project’ checkbox checked. The Unity gradle build file defines the version of Android Gradle plugin to use. Something like:</p><p><em>dependencies {</em></p><p><em>classpath ‘com.android.tools.build:gradle:2.1.0’</em></p><p><em>}</em></p><p>To use a different version of the plugin, we need to create a new gradle build file and override the existing one. This can be done easily. There is a template file in the following location : <em>&lt;Unity Location&gt;/PlaybackEngines/AndroidPlayer/Tools/GradleTemplates/mainTemplate.gradle. </em>Copy this template file and paste it in your project <em>Assets/Plugins/Android </em>folder. This step overrides the default gradle template. More about it — <a href="https://docs.unity3d.com/Manual/android-gradle-overview.html"><em>https://docs.unity3d.com/Manual/android-gradle-overview.html</em></a>. Change the dependency version in the newly created file:</p><p><em>dependencies {</em></p><p><em>classpath ‘com.android.tools.build:gradle:2.3.2’</em></p><p><em>}</em></p><p>The build process downloads the dependencies if it does not exist. Also the Android Gradle plugin works with specific Gradle versions only. So you might have to install a different gradle version as well. You can check which version is needed by going through the change log — <a href="https://developer.android.com/studio/releases/gradle-plugin.html"><em>https://developer.android.com/studio/releases/gradle-plugin.html</em></a></p><p>The steps to install cradle can be found at : <a href="https://gradle.org/install/"><em>https://gradle.org/install/</em></a> and setup the gradle path in the Android Studio. When you open a project in Android Studio, it itself tells you to use latest Cradle and offers to change the required stuff for you.</p><p><strong>10.<em> Gradle Build failed : java.lang.OutOfMemoryError: Java heap space</em></strong></p><p>So near! and you get this awful error. Everything is setup perfectly, all above build errors have been resolved. In the Android Studio, you hit the ‘Generate Signed APK’ button and everything is building and suddenly you get this Out of Memory error. Well, it turns out you have to define how much memory the gradle build process can use up and sometimes it is not enough. The build process just breaks down when memory is exhausted.</p><p><strong>Solution : </strong>You have to explicitly increase the amount of memory Gradle build can use. For this you have to create a <em>gradle.properties</em> file in the same folder where your <em>build.gradle</em> file lies. Add the following line to the properties file.</p><p><em>org.gradle.jvmargs=-Xmx1536M</em></p><p>That’s it! Now try to generate the app again and this time everything should build perfectly! Congratulations! You have successfully generated the apk for the Android Platform.</p><p><strong>11. <em>Google App Signing Issue with Play Game Services</em></strong></p><p>Now a typical workflow for configuring and testing the Google Play Services leaderboards, achievements etc would be to first setup the plugin and make the code related changes. Next up you would create the local keystore and keys to sign the apk. Using the SHA1 fingerprint from the keystone, you will create a linked Android App in the Game Services console. The linked app id would be put in the android manifest. Generate the signed app and deploy it onto a test device and it would work perfectly.</p><p>Now you would want to alpha/beta test your app or deploy to production. For that, you need to upload the app to Google Play Console. During this process you agree for Google App Signing, whereby Google keeps track of your upload keys and strips them out of the app and then signs the apk with another key. Now you open up the deployed app for alpha/beta testing. You download the app from the play store and you find that the app either hangs or crashes or works but the Google Play Services are not working. The problem is that the SHA1 fingerprint used to create the linked Android app should be from the keystore used to sign the Unity application. Unfortunately when using the Google App Signing, the uploaded key is removed and Google uses another key to sign the application. This leads to a mismatch which results in this error.</p><p><strong>Solution : </strong>The problem lies in the created Linked App which uses the wrong SHA1 fingerprint. I solved the problem by taking a longer route. Go to the Google developer console. Under Credentials, you will find the OAuth client id for your Linked App. (<a href="https://console.developers.google.com/apis/credentials"><em>https://console.developers.google.com/apis/credentials</em></a>) Delete it. Go to the Game Services console and delete the linked app. (<a href="https://play.google.com/apps/publish/"><em>https://play.google.com/apps/publish/</em></a>) Recreate the linked app and this time give the SHA1 fingerprint of the Google signing key which is available on the release dashboard of the play console. Google generates the same app id as before so no changes have to be made code wise. (atlas that’s what happened in my case).</p><p>However, a simpler solution would be to just edit the OAuth client id and provide the new SHA1 there. So go to the Google developer console and under Credentials, find the OAuth Client Id for the linked app and instead of deleting it, edit it. Change the SHA1 to that of the new signing key and save. This should work the same way as above although I haven’t tested it out.</p><p>That’s it! Thats all the issues I remember which I came across while trying to build for Android. I hope I have been able to create a handy little troubleshooting guide for building for Android platform on Unity.</p><p>If you liked this article and found it useful, then do take some time out and try out my games Mr. Mustachio (<a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161">iOS</a>) and Mr. Mustachio 2 (<a href="https://itunes.apple.com/us/app/mr-mustachio-2/id1229343195?mt=8">iOS</a>, <a href="https://play.google.com/store/apps/details?id=com.Samaria.MrMustachio2">Android</a>) and don’t forget to provide your honest rating and review! Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17b16049f491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Holidays v1.4 release — featuring Mr. Mustachio as Santa and other updates!]]></title>
            <link>https://medium.com/@samzgamz/holidays-v1-4-release-featuring-mr-mustachio-as-santa-and-other-updates-22f63c846785?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f63c846785</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[brain-training]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 07:21:04 GMT</pubDate>
            <atom:updated>2017-02-13T07:30:42.279Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="http://shobhitsamaria.com/happy-holidays-v1-4-release-featuring-mr-mustachio-santa-updates/"><em>shobhitsamaria</em></a><em>.com on December 25, 2016.</em></p><blockquote>A Big Thank You for voting Mr. Mustachio into the SlideDB Top 50 Apps of the Year! Hope the game continues to entertain people in the coming year as well.</blockquote><p>As for the updates on the game, managed to push out the Holiday Update of Mr. Mustachio just in time before the App Store window closed :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*Pdhp5TY1QomIl_eu.png" /></figure><p>Its not only the App Icon that has changed for the holidays. Mr. Mustachio is also in super holiday mood and we have decked him up as Santa in this update. Wouldn’t it be nice if you could customize Mr. Mustachio? Well as a precursor to that, Mr. Mustachio is featured in a Santa avatar in the latest update!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/0*yEpGLh_iNCO4fZpd.gif" /></figure><p>There are quite a few more updates in this release as well! — Some fundamental changes in how the game plays. Instead of providing 2 units of Aids per game, we are providing a fixed number of aids upfront for one time use. So now you have to work for your diamonds so that you can get more aids to use. — Some game difficulty balancing is also being done. It is now harder to earn diamonds on the easier difficulty modes. So take up the challenge at the ‘Hard’ mode! — The bonuses will be rarer now, so grab the opportunity when you see one! — Some minor UI changes to make your life easier. — And squashed some bugs.</p><p>Also, from this release on, we are going to keep a Graphical Track Record of your scores and performance! We have a super-duper secret formula which calculates your proficiency in the game and presents a graphical chart of it! How Sweet! (only from this release onwards)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*gmp-ZcKjFgmNCg6a.gif" /></figure><p>That’s all the updates for now!Wishing everyone a Merry Christmas and very Happy New Year!Happy Holidays!</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/1*LEEy6XZmZOJkmm0MN1cY3w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f63c846785" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr. Mustachio — Update v1.3 released on the iOS App Store, now includes iMessage Stickers!]]></title>
            <link>https://medium.com/@samzgamz/update-1-3-released-on-the-ios-app-store-now-includes-imessage-stickers-b0671e64d250?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0671e64d250</guid>
            <category><![CDATA[brain-training]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[brain-booster]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 07:16:49 GMT</pubDate>
            <atom:updated>2017-02-13T07:50:58.296Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="http://shobhitsamaria.com/update-1-3-released-ios-app-store-now-includes-imessage-stickers/"><em>shobhitsamaria</em></a><em>.com on October 23, 2016.</em></p><p>Mr. Mustachio game updates have been released on the iOS App Store. They bring in more features such as In-App Purchases and iMessage stickers to the game.</p><p>Mr. Mustachio got nice coverage on the Puzzle and Education Category Pages of the Indian App Store. This helped the game get good number of downloads. It also provided a good opportunity to improve the game.</p><p>The game has now got a couple of updates since then.</p><p><strong>Version 1.2</strong> was released on 5th November and focussed on bringing the <strong>In-App Purchases</strong> to the game. The players can now get rid of ads and also buy packs of the in-game currency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*E2vAHczPRLCXotlQ.PNG" /></figure><p><strong>Version 1.3</strong> was released on 18th November and it was aimed at adding the <strong>Mr. Mustachio iMessage Stickers</strong>! The new iMessage Stickers seem to be everyone’s favourite at the moment and it was a good time to give the players more than just the game. The wide range of Mr. Mustachio’s expressions can serve as good emoticons :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*wqY9fPeP8Vt9clg-.gif" /></figure><p>These are the two versions released so far since the initial launch. Plenty of work in the pipeline. Do download and try out the game!</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/0*3428S3bjZfSa1MwZ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0671e64d250" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr. Mustachio is available for download on iOS!]]></title>
            <link>https://medium.com/@samzgamz/mr-mustachio-is-available-for-download-on-ios-e6b0cd50ecad?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6b0cd50ecad</guid>
            <category><![CDATA[brain-training]]></category>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[mr-mustachio]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 07:08:14 GMT</pubDate>
            <atom:updated>2017-02-13T07:28:33.240Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="http://shobhitsamaria.com/mr-mustachio-now-available-download-ios/"><em>shobhitsamaria</em></a><em>.com on October 15, 2016.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*PFFclZJSJOcHG297.jpg" /></figure><blockquote>Mr. Mustachio has arrived on the iOS App store!</blockquote><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/0*UXYkvmBc2PHAj2wr.png" /></a></figure><p>The incredible feeling you get when your game is finally released on the App Store!</p><p>The game was released on the store and on the <strong>first day</strong> itself over <strong>1500+</strong> grids were played by the players. This has given me tremendous encouragement and belief that it is step in the right direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/0*ej7fk581wnRm6eQX.png" /></figure><p>But the work is from far over and I am really looking forward to hear from the community on how to further improve the game. I am working on some updates as it is but actual <strong>feedback from the players</strong> is utmost important. I do hope you all try out the game and provide a <strong>review</strong>.</p><p>Mr. Mustachio is now also on <a href="http://bit.ly/2egKN9j"><strong>ProductHunt</strong></a>. If you like the game and feel it is worthy, then do give it an <strong>upvote</strong>!</p><p>‘Mr. Mustachio’ at its heart, is a small and simple game. I have just used the basic addition subtraction concepts, put them in a grid, thrown in a few colors and somehow managed to relate it all to a moustache :D :D. Hopefully it has come out as a fun and challenging game.</p><p>It can serve for <strong>educational</strong> purposes as well as for <strong>brain training exercises</strong>. While the <strong>young ones</strong> might appreciate it more, the game does offer <strong>4 different difficulty levels</strong>, so it can be enjoyed by <strong>people of all ages</strong>!</p><p>Currently more people seem to be playing at the easier modes. I hope more people take up the challenge at the Hard difficulty level :)</p><p>There is also a small <strong>Presskit</strong> that I put together which is available on the <a href="http://shobhitsamaria.com/games/mr-mustachio/">website</a>.</p><p>I can always be reached at through this <a href="http://shobhitsamaria.com/contact/"><strong>link</strong></a>. Or directly mail me at <a href="/service/mailto:contact@shobhitsamaria.com.">contact@shobhitsamaria.com.</a> Or you can hit me up on twitter — <a href="https://twitter.com/samzgamz"><strong>@samzgamz</strong></a>. Looking forward to hearing from you all.</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/0*uEuQ9W9XhB-JooB6.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6b0cd50ecad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr. Mustachio Update — v1.5 Now available on the App Store!]]></title>
            <link>https://medium.com/@samzgamz/mr-mustachio-update-v1-5-now-available-on-the-app-store-9af1a26a1114?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af1a26a1114</guid>
            <category><![CDATA[brain-training]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Sun, 15 Jan 2017 08:00:17 GMT</pubDate>
            <atom:updated>2017-02-13T07:31:21.099Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="http://shobhitsamaria.com/update-v1-5-now-available-app-store/"><em>shobhitsamaria.com</em></a><em> on January 15, 2017.</em></p><p>Version 1.5 has released on the App Store, the first of 2017!!</p><p>Mr. Mustachio is back to being his usual self and dropped his Santa avatar (which he donned on in v1.4).</p><p>– In the last update, in trying to make the game more balanced, it became quite hard to earn diamonds in game. That has been fixed and restored to previous levels. Sorry for that 🙁</p><p>– We also bring you a new personal <strong>News Ticker</strong> bringing you the top news from around the globe! No. Not really. But there is a ticker and it does show some info. Hopefully it will show something important some day. Sigh!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Sfkj_4HqFx9-FInd.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*eIita5c31Koo1MsY.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*ZF_xINFI35a_SY7h.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*yPYQAQnaEZC9wmWn.jpg" /></figure><p>– Apart from the standard playing rule, there are some variations which the regular players would have found out. Now to offer better gameplay, these variations would be discovered by players one by one. So keep playing to uncover all of them. Also whenever you encounter it in the game, we will give you a count of how many rules you have discovered and how successful you have been in tackling them. Also we gave them some silly titles. They show up when you discover a new rule!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*qmYcmUwFfRJDGLnw.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*reIm6VMvo9VN2042.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*mQqHSW5EME4SIArI.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*HytSEZpGvYxsLSUB.jpg" /></figure><p>– Also tried fixing some bugs! Fingers crossed!</p><p>That’s it! Keep playing! Keep Enjoying!</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/1*LEEy6XZmZOJkmm0MN1cY3w.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9af1a26a1114" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr. Mustachio — And some love from Apple!]]></title>
            <link>https://medium.com/@samzgamz/and-some-love-from-apple-a5a4485f6788?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5a4485f6788</guid>
            <category><![CDATA[brain-booster]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[brain-training]]></category>
            <category><![CDATA[brain-teaser]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Sat, 22 Oct 2016 19:57:15 GMT</pubDate>
            <atom:updated>2017-02-13T07:46:04.469Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="http://shobhitsamaria.com/and-some-love-from-apple/"><em>shobhitsamaria.com</em></a><em> on October 22, 2016.</em></p><p>Wow! It has been a pretty decent week so far for the game since its release. The download numbers aren’t sky high but moderate and better than expected considering that right now there is no considerable marketing effort made.</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/0*fW6KjCSp_t72py6B.png" /></a></figure><p>The good part was the amount of time being played by the people and on an average people were playing 400+ seconds. That is close to 7 mins which is pretty good so far. The game has got a couple of 5 star reviews too. Always nice to see that.</p><p>But the biggest win probably has come today. The game hasn’t been featured in the iTunes Home Page, but it is <strong>#1 in the New Educational Games</strong> and <strong>#2 in the New Puzzle Games (iPad)</strong>; and <strong>#4 in the New Educational Games</strong> and <strong>#2 in the New Puzzle Games(iPhone)</strong> on the <strong>Indian App Store!</strong>!</p><p>I happened to check AppAnnie and was pleasantly surprised to find this data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*RFtAmTHZ5A1ws5z3SnDyjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*k-vZHkEVnJhhzOvWb3qhjw.png" /></figure><p>What it does is that I get to see the game right there on the iTunes main section instead of in a list somewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*asR3z5WqIDfgLDGkIJnC9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*u4xmgPQGuC1mG0br2tdURw.png" /></figure><p>Incredibly exciting. So clearly on the right path here. Working on some updates now. Hopefully the game should be on the iTunes Home Page soon!</p><figure><a href="https://itunes.apple.com/us/app/mr.-mustachio/id1143957161"><img alt="" src="https://cdn-images-1.medium.com/max/135/0*KRx923YehiMAHbP3.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5a4485f6788" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Programmer’s Art : Making of Mr. Mustachio!]]></title>
            <link>https://medium.com/@samzgamz/programmers-art-making-of-mr-mustachio-db07f8887a12?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/db07f8887a12</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[gamedev]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Wed, 03 Aug 2016 10:17:22 GMT</pubDate>
            <atom:updated>2016-08-03T10:17:22.494Z</atom:updated>
            <content:encoded><![CDATA[<p>I am a programmer. I am not an artist. Or at least not as good as a professional artist. But there is nothing stopping me from trying. From learning. As a solo developer, I don’t have much of a choice. I have to be the artist myself for my games for I can’t afford to hire a professional one and I am not too sure whether a collaboration/partnership would work out for I am not an established game developer as such.</p><p>But that I suppose is the story of a lot of indie developers out there. A lot of programmers who could write an entire game engine from scratch but come up a cropper when it comes to art. And art does play a huge role in a game.</p><p>Discouraging as I sound, I did make the character of <a href="http://shobhitsamaria.com/category/mr-mustachio/">Mr. Mustachio</a> all by myself including the animations. And I believe it hasn’t come out bad at all. Sure, an established artist would have done a better job. But I don’t think anybody could say it is just <a href="https://en.wikipedia.org/wiki/Programmer_art">‘programmer art’</a>. So, things aren’t that bad after all.</p><p>So I thought I would pen down how the character of <a href="http://shobhitsamaria.com/mr-mustachio-first-look/">Mr. Mustachio</a> came about. I won’t be writing a drawing tutorial, so there won’t be any ‘steps to follow’, but more about how I became an amateur artist.</p><h3><em>Learning the basics of a Graphics Editing Software</em></h3><p>Digital art requires one to learn a digital software package. There are lots of them out there. Choose the best one suited to you. I realised that I don’t have to become an expert. I just need to learn enough to do the basic stuff without much help. Rest all can be figured out by searching on the internet.</p><p>I went with Inkscape. It is free, open source and best of all a vector graphics editing software. So basically I can export my creations to any size without any loss. It also supports layers which was wonderful. All the parts of Mr. Mustachio are created separately in layers and imported into Unity. This helped me to animate different parts through code very easily. A google search for Inkscape tutorials brings back a lot of results. I used a few of them. <a href="http://www.2dgameartguru.com/">‘2D Game Art for Programmers’</a> was very nice. When I got stuck on how to draw the moustache, I found this gem on <a href="http://goinkscape.com/how-to-draw-a-mustache-in-inkscape/">‘GoInkscape’</a>.</p><p>I have mastered very little of Inkscape as yet, but sometimes that is a boon. The less you know, the less things you have to worry about, and you can always figure out a solution within the stuff you know. And in case you can’t figure it out, there is always ‘Google’!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*o4_5GqnfM9IMn2yP.png" /></figure><h3>Doodle</h3><p>Yep, the age old doodling. I just take a piece of paper and draw anything. Absolutely anything. I draw lines, basic shapes, draw boxes, spirals, connect them, shade them, just play around. You never know when a pattern might just look good!</p><p>I find it really tough to straight away draw on a computer. So I try to draw a very rough sketch on the paper first. I never worry about the dimensions or stuff like that. Just get the idea out of my head and start building on it.</p><p>Whenever I am need of a design, I just quickly look at my doodles and see if there is some little pattern or drawing that I can use and build upon. If nothing else, it can give me a new and better idea.</p><p>Here’s an example of my crazy doodles. See how terrible they are! 😀 😀 😀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*rdP20AhEDurX6ZW5.gif" /></figure><h3>Search for Inspiration</h3><p>I have never practised art so my creativity levels will always be a bit low. So I always search for inspiration on the internet. The next idea could be found anywhere, maybe the cover of a book, a print on a cloth, an advertisement maybe. Internet searches for images always gives some good results especially abstract images.</p><p>The key is not to just copy whatever I find, but instead make it my own. Small changes can make a big difference. I have to make it fit into my game.</p><p>For my previous game — <a href="http://shobhitsamaria.com/games/piddly-pursuits/">‘Piddly Pursuits’</a>, I wrote an article on <a href="http://shobhitsamaria.com/piddly-pursuits-inspiration-for-art-style/">how I created the abstract worlds in the game using desktop wallpapers as inspiration for art!</a></p><p>Similarly, when trying to create a character for the game, I looked around the internet, found a few ideas and drew very rough sketches for it before coming to the idea of a egg shaped character with a long moustache after finding something like it on the internet!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*N6nAYs84zSh3cru6.gif" /></figure><h3>Basic Shapes</h3><p>I have found basic shapes to be my best friends. Take a rectangle, square, circle, triangle and I already have a few friends. Round their corners, I have more friends. Split the circle into arcs and I get even more friends. Outline them, fill them with colours — even more friends. Start combining them and I have an unlimited number of friends!</p><p>Standard shapes are the easiest to work with for programmers and considering the minimalistic look that is in vogue these days, it is well worth using them.</p><p>It just takes a bit of patience to mix and match stuff but eventually you get something decent looking. Shapes are especially useful for the UI part where sometimes fancy graphics are not required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*AlgmRjA4nvWL3VRW.jpg" /></figure><h3>Color Schemes</h3><p>This is really a tough part, mixing colours so that they look good. All the art can come undone if you don’t get a decent colour combination in place. Well thanks to internet, there are good solutions for this as well!</p><p>My favourite is this blog post from <a href="https://www.canva.com/">Canva</a> (a brilliant online designing app) — <a href="https://designschool.canva.com/blog/100-color-combinations/">100 Brilliant colour Combinations</a>. I usually find a colour combination to use from here.</p><p>Of course a quick google search will reveal a lot of palette generators. A lot of people have uploaded their colour palettes which can be used.</p><p>Another of my favourites for generating colour palettes is this great tool — <a href="http://tools.medialab.sciences-po.fr/iwanthue/index.php">‘I want Hue’</a>. It is a great place to learn a bit about colour theory and the different colour spaces as well.</p><h3>Fall back to Programming</h3><p>Well, I had to animate the character as well. I found that there are quite a few softwares available for 2D animation, some free, some paid. But unfortunately, they don’t deal with svg file formats. So if I had to use them, I would have had to export to images and then get the animation back in sprite-sheets as well.</p><p>This is not necessarily bad, but I was looking for more randomised kind of animation that I couldn’t have gotten through these softwares (or so I believe, could be completely wrong). I decided to fall back on something that I know decently well.</p><p><a href="http://shobhitsamaria.com/some-really-useful-unity-plugins/">I was already using DOTween tweening</a> in my project. So I decided to use it to give <a href="http://shobhitsamaria.com/category/mr-mustachio/">Mr. Mustachio</a> some face expression animations. Since all the facial parts were already separated out, I could easily manipulate them through code and a few days of coding and some amount of trial and error later, I had decent enough expressions for <a href="http://shobhitsamaria.com/category/mr-mustachio/">Mr. Mustachio</a>! I think they are funny enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*n0sdVsLVSyWpaS_0.gif" /></figure><h3>Keep at it!</h3><p>It is never going to come through in the very first try. I usually have to iterate a lot before getting to the final stage which is close to the idea that I had in the head and the one which I started out to build.</p><p>But I stuck it out. And in the end Mr. Mustachio was finally created!<br>This is my story of becoming an artist, hopefully doing a bit better than just ‘programmer art’.</p><p>The first few drafts of the character are ugly and down right depressing :D. Now when I look back at them, I wonder how did I ever manage to get to the final image! Have a look at the evolution yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*uXRrbLpgOP1gbTOg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db07f8887a12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity Plugins that I found really useful!]]></title>
            <link>https://medium.com/@samzgamz/unity-plugins-that-i-found-really-useful-dcf212583f60?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcf212583f60</guid>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Sun, 24 Jul 2016 20:19:37 GMT</pubDate>
            <atom:updated>2016-07-29T13:29:28.135Z</atom:updated>
            <content:encoded><![CDATA[<p>I have really admired the tremendous community support that Unity enjoys, which reflects in the huge number of plugins available for the Game Engine.</p><p>There are a lot of them which are free and/or open sourced as well, which allows you to get any kind of simple or complex functionality up and running in your game in a matter of minutes.</p><p>There are quite a few ones for which you have to pay as well, but once you look at the functionality those plugins provide, you realise that they are well worth the money. The same functionality if implemented by yourself, could take weeks or months of development and not to mention, you would be reinventing the wheel.</p><p>The paid plugins sometimes also offer you free versions as well with some striped down functionality. It is worth checking them out or the free alternatives available on the asset store as you may not need all the complex functionality. Could save you some money ;).</p><p>Anyways, here are the plugins that I use:</p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/45320"><strong>VSCode</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*C2ciKi8s3vxKKNG0.png" /></figure><p>Unity ships with MonoDevelop as the IDE for scripting. It is a decent enough IDE but as a developer you are always looking for more. I looked up on the internet and saw that a lot of developers were using Visual Studio and were pretty happy with it. But it is unfortunately windows only. For mac, there is Visual Studio Code which is a light weight free and open source version. But it won’t run out of the box. There are some changes that you need to make. Thankfully there is a plugin for it! Just download the plugin, put it into the Assets folder, follow the instructions and boom! You have Visual Studio Code up and running.</p><p>Using the c# extension of the VSC, makes the development process much better. and yes, you can debug the code as well!</p><p>VSC is continuously being updated and new features being pushed in frequently. They lately added Tab support. So all in all, a great IDE and a great plugin to make your work easier. Oh and it is completely free and auto updates!</p><p><a href="https://bitbucket.org/ddreaper/unity-ui-extensions"><strong>Unity UI Extensions</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*52KjwI4usqeRzCTl.png" /></figure><p>This is again a free and open source project maintained by Simon Jackson. It is a wonderful initiative and have to thank Simon for his hard efforts. The project is a bunch hand-curated scripts which he has scourged from the Unity forums and the internet and neatly packaged for us to use. Just the uGUI scripts which allow you to ‘Set corners to anchors’ and ‘Set anchors to corners’ are immense time savers and are worth even paying money for. The project has a lot of stuff in it and it is regularly updated. Simon has even done the effort of making <a href="https://www.youtube.com/channel/UCG3gZOkmL-2rmZat4ufv28Q">youtube tutorials</a> for the scripts in the extensions project. Hats off to him!</p><p>This extensions project is also special for me because I was able to go through the code of some of the stuff and learnt quite a lot from it. I learnt how to make meshes on the fly by going through the code for the UI Primitives provided in the project. Hopefully, one day I will be able to make a contribution in this project.</p><p>But if you are using Unity UI in your project, then you should definitely get this extensions project.</p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/27676"><strong>DOTween</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*MrI-U8-X6G68EmoV.png" /></figure><p>Another wonderful free and open source plugin! This is a tweening framework which allows you to tween literally any property in your code. It is really comprehensive as it allows you to run tweens in parallel or in sequence. Lets you control the ease of your tween via in-built easing functions or you can provide custom ones. It provides helper extension methods for a lot of unity objects out of the box. Also provides you with a lot of hooks during the run duration of the tween which allows you to run your custom code at certain points during the duration of tween. Allows you to set callback at any duration of the tween. This is such a powerful and easy to use tool. An immense time saver again and best of all it provides a programmatic way of doing animations, thus allowing full control over every aspect of the animation, How cool!</p><p>Before I came across DOTween, I was using the mecanim tool by Unity. Mecanim isn’t bad either, but I found it to be a bit cumbersome if I had to change some values afterwards or change the names of the GameObjects. DOTween was a wonderful substitute and I am in the process of replacing my mecanim animations with DOTween tweens.</p><p><a href="http://shobhitsamaria.com/mr-mustachios-growing-moustache/">Mr. Mustachio’s growing moustache animation</a> is also using DOTween!</p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/18479"><strong>Mobile Native PopUps</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/0*hp0tfjoUpF4swMS4.png" /></figure><p>If you are developing for the mobile platform, chances are that you will need some kind of native alerts for that platform. This free asset does the job for you on iOS, Android and Windows platform. A really easy and simple to use plugin and also has examples on how to use it.</p><p>Best of all, it provides a ‘Rate App’ popup out of the box on all the above platforms! All app developers know the importance of user ratings for their app and this plugin makes it easier to push in that functionality in your game.</p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/17662"><strong>Text Mesh Pro</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*bUe_WCT8Q-RI-2TZ.png" /></figure><p>This is a paid plugin but is worth every penny. You don’t have to look any further for your in-game text needs. The functionalities provided by the plugin are too many to count here. New features are added regularly and the developer — Stephan Bouchard — listens to the developers through the Unity forums and the TextMeshPro Plugin forums and is willing to add updates based on the user feedback.</p><p>I haven’t used the full extent of this plugin as yet, as the my game doesn’t require much. But for me, just the ability to get SmallCaps text or multi-colored text so easily, was well worth it. It also has a powerful auto-sizing feature which is better than the default one.<br>There are probably thousands of developers using this plugin. In any search for some text solution for unity, you will see Text Mesh Pro crop up.</p><p>So if you have money to spend, and are need for a comprehensive text solution, then do go ahead and buy this plugin. You won’t regret it.</p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/38258"><strong>SVG Importer</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*it4XBdewqwVVVccZ.png" /></figure><p>This is again a paid plugin developed by the developer behind the game — <a href="http://www.mimpi-dreams.com/">‘Mimpi Dreams’</a>. And the plugin itself is used in the game too. This plugin brings vector graphics to Unity which basically means that you can now directly use svg files in your project instead of exporting jpg’s or png’s of different sizes. This allows you to make a game that looks good on all resolutions and you don’t have to worry about the size of your build becoming too large. This plugin was presented at the Unite Europe 2015 and has seen quite a bit of traction.</p><p>The plugin works seamlessly as expected. It also provides an antialiasing feature while importing the svg files which helps to remove any jarred edges effect.</p><p>The plugin was really useful to me as I am a sole developer working on the game and I really don’t have a artist workflow. So it is the best thing for me to create the artwork in svg and import the asset into Unity and after that, never worry about multi-resolution support.</p><p><a href="https://docs.fabric.io/unity/crashlytics/installation.html"><strong>Crashlytics (For iOS and Android)</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*7IhcZnFbpMxcIJHX.png" /></figure><p>We all need a crash reporting tool that can tell us when and where our game crashed, and with that a comprehensive stack trace that can help us fix the issue. If you are developing for iOS or Android, then Crashlytics is a great choice. I have used it before on a SpriteKit game and it worked great.</p><p>The dashboard provided by it looks fantastic and provides a lot of drill-down views. Of course, the main advantage is the complete stack trace of what was happening in your game at the time of the crash, including multiple threads. Such information was extremely useful for me to diagnose several issues that were happening on different devices.</p><p>The dashboard also collects the same issues occurring at different places under one roof and also provides the ability to mark an issue as resolved/unresolved, thereby allowing it to be used as an issue tracker as well.</p><p>I have just added this plugin and hopefully it will work out as good as it was for native iOS apps.</p><p>Well these are the plugins that I am currently using. They have made my life simpler. Hope they help others in their game development as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcf212583f60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Up and Running using the Unity Game Engine]]></title>
            <link>https://medium.com/@samzgamz/up-and-running-using-the-unity-game-engine-b8bba2cdcaea?source=rss-c4aef9746bdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8bba2cdcaea</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[indie-game]]></category>
            <dc:creator><![CDATA[Shobhit Samaria]]></dc:creator>
            <pubDate>Sat, 23 Jul 2016 14:15:49 GMT</pubDate>
            <atom:updated>2016-07-23T14:15:49.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*fHjg2RMZrz0LkHGxiAq92w.png" /></figure><p>So, I have started using Unity to develop my next game — <a href="http://shobhitsamaria.com/mr-mustachio-first-look/">‘Mr. Mustachio’</a>. The progress has been great so far. I have really liked using the game engine. It has helped to speed up the development process many fold and it is quite exciting to see your changes so quickly in the editor, which really helps in making some choices easier.</p><p>The biggest plus so far has been the excellent community support available on the internet. Since a lot of people are using the engine, a lot of information is available. Every time I have run into a problem, a simple google search has led me to a solution. A simple scripting solution or even a plugin is never far away.</p><p>The plugin support for Unity is excellent. Some paid, some free, but there is no dearth of them. I have already started using quite a few of them in my first project itself. I have even ventured out to but some plugins which from my internet searches are pretty popular. And till date, I haven’t regretted any purchase.</p><p>Some of the plugins I have used so far are:</p><p><a href="https://bitbucket.org/ddreaper/unity-ui-extensions">Unity UI Extensions</a></p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/17662">Text Mesh Pro</a></p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/38258">SVG Importer</a></p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/27676">DOTween</a></p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/18479">Mobile Native PopUps</a></p><p><a href="https://www.assetstore.unity3d.com/en/#!/content/45320">VSCode</a></p><p>All of the above plugins are excellent and work the way you want them to!</p><p>After having done literally everything through code when using SpriteKit, using a mix of GUI tool and scripting is a welcome change. I can already see the benefit of it in speeding up development. Hopefully, my new game should be ready in a month’s time!</p><p>It has also provided an opportunity to work with C# language. Pretty used to OO languages having worked with Java, Obj-C etc, so transition was pretty easy. The one thing I haven’t been able to get used to is naming convention for functions in C#. unlike the other languages that I am used to which use the lower CamelCase convention, C# uses upper CamelCase (PascalCase) for function names. Having been used to the other for so long, I am having a hard time shifting. Instead of making a mess, I have decided to stick with the lower CamelCase convention :).</p><p>(I will become used to the C# convention, just need some time ;))</p><p>The scripting API is wonderful and gives you full programmatic access, so you don’t just have to depend on the GUI drag and drop. You can change literally everything by writing scripts. That’s just what a programmer needs!</p><p>The performance has also been good. I have been testing out my builds on older iOS devices and the game works decently well. It even runs on an old iPhone 4 running iOS 7! How wonderful!</p><p>All in all, it has been great working with the Unity engine, which has now given me the option of publishing my game to more than platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8bba2cdcaea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>