-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Illustration of a side effect when using string variable/constant for map's key | |
def PROP_NAME = "property name" | |
def myMap = [PROP_NAME: "a Value"] | |
//assert myMap.keySet().iterator().next() == "property name" | |
// fails at runtime but it compiles. | |
// I was expecting the value of the variable to be the key, but it is in fact a String with the name of the variable |
Package Manager provides a way for developers to easily extend cocos2d-x with plugins
Core Features:
- Modularize coocs2d-x enable developers to customize the engine for their own game
- Developers can search, manage and install plugins
- Update project for the developers when install, remove or update the plugin
- Developers can share their plugin with others
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**** #### Problem This Solves #### ****/ | |
// Sometimes libraries added with "compile" will include their own dependencies. | |
// This can conflict with specific versions in your project or cause automatic upgrades | |
// overriding your specified versions as gradle resolves the highest value. | |
// A simpile workaround is to use the `force` flag on compile to override specific modules | |
// however this can be a pain to hunt down and define if there are multipile modules and groups. | |
/**** 1. How to use *****/ | |
// 1.1 Place this your app's buidle.gradle and it will force override | |
// all Google Play services (GMS) and Android Support Libraries versions. |
git stash -k
https://stackoverflow.com/a/14506564/1244574
- Pop our 1st commit
git stash pop
- Make a temp commit, will undo at step 4.
git add . && git commit -am 'WIP'
- Pop our 2nd commit