This file contains hidden or 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
package de.greenrobot.util; | |
import java.util.concurrent.Executor; | |
import android.os.AsyncTask; | |
import android.os.Build; | |
/** | |
* Uses level 11 APIs when possible to use parallel/serial executors and falls back to standard execution if API level | |
* is below 11. |
This file contains hidden or 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
import org.gradle.api.DefaultTask | |
import org.gradle.api.Project | |
import org.gradle.api.plugins.BasePlugin | |
/** | |
* apply this plugin after doing all dependency and repo stuff. It will create two idea 'libraries' per subproject | |
* and add them to your .iml files | |
* | |
* Forked from https://gist.github.com/360092 | |
* |
This file contains hidden or 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
/bin | |
/gen |
This file contains hidden or 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
#!/bin/bash | |
#Requires ImageMagick to be installed. | |
#Some builds of ImageMagick on OSX have problems generating the images correctly. | |
#This script scales and creates images at the correct dpi level for Android. | |
#It gets placed in a folder called res/drawable/source_images/ in your #Android project along with all your svg files. | |
#When creating svg files set the image size to the size that you want your hdpi images to be. | |
#To use simply run the create_images script from its folder and it will generate images for all the svg files. |
This file contains hidden or 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
#include <stdio.h> | |
#include <android/log.h> | |
#include "calvals.h" | |
#define EXPORT __attribute__((visibility("default"))) | |
#define LOG_TAG "native" | |
#define log_info(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) | |
#define log_error(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
NewerOlder