I hereby claim:
- I am menny on github.
- I am menny (https://keybase.io/menny) on keybase.
- I have a public key ASAMK-AR6-FswpVJ2DALxjQcOVy8zcaT3xndSDjXSI5KHgo
To claim this, I am signing this object:
| function verify_app_store_in_app($receipt, $is_sandbox) | |
| { | |
| //$sandbox should be TRUE if you want to test against itunes sandbox servers | |
| if ($is_sandbox) | |
| $verify_host = "ssl://sandbox.itunes.apple.com"; | |
| else | |
| $verify_host = "ssl://buy.itunes.apple.com"; | |
| $json='{"receipt-data" : "'.$receipt.'" }'; | |
| //opening socket to itunes |
| package net.evendanan.android.hacks; | |
| import android.content.Context; | |
| import android.graphics.drawable.Drawable; | |
| import android.util.AttributeSet; | |
| /**** | |
| *Note, this ImageView hack will ALWAYS scale the image (up or down) to fit the available | |
| *space, while keeping the image aspect ratio. | |
| */ |
| File extFolder = Environment.getExternalStorageDirectory(); | |
| File target = new File(extFolder, "ask_mem_dump.hprof"); | |
| Debug.dumpHprofData(target.getAbsolutePath()); |
| public class AnySoftKeyboard extends InputMethodService { | |
| private static final class KeyboardUIStateHanlder extends Handler { | |
| //This will NOT be counted as a reference! | |
| private final WeakReference<AnySoftKeyboard> mKeyboard; | |
| public KeyboardUIStateHanlder(AnySoftKeyboard keyboard) { | |
| mKeyboard = new WeakReference<AnySoftKeyboard>(keyboard); | |
| } | |
| private static void unbindDrawable(Drawable d) { | |
| if (d != null) | |
| d.setCallback(null); | |
| } |
| public EdgeEffect(Context context) { | |
| final Resources res = context.getResources(); | |
| mEdge = res.getDrawable(R.drawable.overscroll_edge); | |
| mGlow = res.getDrawable(R.drawable.overscroll_glow); |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.menny.android.anysoftkeyboard" | |
| android:versionCode="112" | |
| android:versionName="20131030"> | |
| <uses-sdk | |
| android:minSdkVersion="3" | |
| android:targetSdkVersion="3" | |
| android:maxSdkVersion="3"> | |
| </uses-sdk> |
I hereby claim:
To claim this, I am signing this object:
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.9.+' | |
| classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+' | |
| } | |
| } |
| public class CustomGradleTestRunner extends RobolectricGradleTestRunner { | |
| private static final int MAX_SDK_LEVEL = 21; | |
| public CustomGradleTestRunner(Class<?> klass) throws InitializationError { | |
| super(klass); | |
| } | |
| @Override | |
| public Config getConfig(Method method) { | |
| Config config = super.getConfig(method); |