- Depend on external libraries without including them in resulting .aar http://stackoverflow.com/a/16721167/571227
- dex2jar tool https://github.com/pxb1988/dex2jar
- apktool https://github.com/iBotPeaches/Apktool
- add extrac information to push notification, let activity check at startup http://stackoverflow.com/questions/7358591/how-to-determine-if-android-app-open-from-notification-message/7358692#7358692
- intent flag, single task http://stackoverflow.com/a/23125638/571227
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
// call engine rule to get a list of rule info | |
// to get to know reward to get from executing such action on Engine api | |
EngineApi.RuleInfoList(Playbasis.Instance, "comment", "jontestuser", | |
delegate(List<RuleInfoVariant2> result, HttpError error) { | |
if (error == null) { | |
if (result != null) { | |
// loop through all rule | |
foreach (RuleInfoVariant2 ruleInfo in result) | |
{ |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Override point for customization after application launch. | |
CGRect screenRect = [UIScreen mainScreen].bounds; | |
self.window = [[UIWindow alloc] initWithFrame:screenRect]; | |
GLView *glView = [[GLView alloc] initWithFrame:screenRect]; | |
UIViewController *rootVc = [[UIViewController alloc] init]; | |
[rootVc.view addSubview:glView]; |
Host this on any box which is running PHP and has direct outbound web access and it will be able to validate iOS IAP receipts for you (Sandbox or Production environment configurable).
Feel free to use this code in anything you make, with the standard disclaimer that if it doesn't work / blows up the universe, you're on your own.
Alternatively, the latest version is hosted at: http://www.chrismaddern.com/validate-itunes-receipt/
This points to production.
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
$ git rm -r --cached . | |
$ git add . | |
$ git commit -m "Clean up ignored 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 <SDL2/SDL.h> | |
#include <iostream> | |
// screen dimension constants | |
const int SCREEN_WIDTH = 640; | |
const int SCREEN_HEIGHT = 480; | |
SDL_Window* gWindow = NULL; | |
SDL_Renderer* gRenderer = NULL; |
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
/** | |
* Simple SDL2 program using OpenGL as rendering pipeline. | |
*/ | |
#include <iostream> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
#include <OpenGL/GLU.h> | |
#define SCREEN_WIDTH 640 |
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
8d7 | |
< | |
15a15,21 | |
> 7AA484D8671B4F4FAD2BEFAA /* CDVLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F92630E181141039AA090FB /* CDVLogger.m */; }; | |
> C09B4047D1DF43B88E365E5C /* CDVDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = E64DC7260FBA48608D8FD2FE /* CDVDevice.m */; }; | |
> E3ADD04642B74603A7EE2AB0 /* NativeStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = AB9742C2704E405482736609 /* NativeStorage.m */; }; | |
> FBD7F35D70D548328D3BC273 /* CDVSplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 2991DB23B4884D6792BDC50F /* CDVSplashScreen.m */; }; | |
> 4B80DF741B8148C1AC120FEC /* CDVViewController+SplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 5276D82FEB1341EB88B0BD64 /* CDVViewController+SplashScreen.m */; }; | |
> BC93ABE0255D4DB28AECFD03 /* CDVStatusBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 14593FC73F464F68B07F8DC4 /* CDVStatusBar.m */; }; | |
> 8F517527A4C446EB947AE5B2 /* IonicKeyboard.m in Sources */ = {isa = PBXBuildFile; fileRef = C406194DB33C4C679 |
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
// Ionic Starter App | |
// angular.module is a global place for creating, registering and retrieving Angular modules | |
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) | |
// the 2nd parameter is an array of 'requires' | |
// 'starter.controllers' is found in controllers.js | |
angular.module('starter', ['ionic', 'starter.controllers', 'starter.openUrl']) | |
.run(function($ionicPlatform) { | |
$ionicPlatform.ready(function() { |