Skip to content

Instantly share code, notes, and snippets.

@henrybluecats
henrybluecats / BCLogManager
Last active August 24, 2016 01:58
Example of BCLogManager
Map<String, String> options = new HashMap<String, String>();
options.put(BlueCatsSDK.BC_OPTION_CROWD_SOURCE_BEACON_UPDATES, "false");
options.put(BlueCatsSDK.BC_OPTION_CACHE_ALL_BEACONS_FOR_APP, "true");
//add any of your own options
/*
set options to SDK
*/
BlueCatsSDK.setOptions(options);
@henrybluecats
henrybluecats / Good Practices for Git in team.md
Last active August 2, 2016 01:11
Good Practices for Git in team

To smooth the development in a team, here are some good practices:


  • Reduce conflict during pushing code. For example, you want to add a new feature to dev branch, you could follow the steps below as development process:
  1. git reset --hard head #to get a clear base, assuming you are now on dev.
  2. git pull origin dev #to get the latest dev
  3. git checkout -b xxx-fearure #create a local branch
  4. git add .
  5. git commit -m "xxxxxxx" # repeat add and commit commands if necessary
@henrybluecats
henrybluecats / how-to-integrate-aar-file-to-eclipse.md
Last active March 9, 2021 10:00
How to integrate .aar file to Eclipse

How to integrate .aar file to Eclipse

  • Download .aar file from bintray, you will get an .aar file: bluecats-android-sdk-${version}.aar
  • Change the extension to .zip from .aar, and unzip it into bluecats-android-sdk folder, for example.
  • In the folder bluecats-android-sdk, you will see a .jar file: classes.jar, change the name to a meaningful name, like bluecats-android-sdk.jar, copy it to your Eclipse project's "libs" folder.
  • In the folder bluecats-android-sdk/jni, you will see several ABI folders, copy all the folders into your Eclipse project's "libs" folder.
  • Your "libs" folder of eclipse project looks like this:
libs/