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
{ | |
"AuthParameters" : { | |
"USERNAME" : "[email protected]", | |
"PASSWORD" : "mysecret" | |
}, | |
"AuthFlow" : "USER_PASSWORD_AUTH", | |
"ClientId" : "9..............." | |
} |
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
afterEvaluate { | |
// Create tasks for creating fat frameworks and fat dsyms for sim and device | |
def binaryKinds = [ | |
// config, sim task, device task | |
new Tuple('Debug', linkDebugFrameworkIosSim, linkDebugFrameworkIosDevice), | |
new Tuple('Release', linkReleaseFrameworkIosSim, linkReleaseFrameworkIosDevice), | |
] |
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
package com.your.package; | |
import android.content.Context; | |
import android.preference.ListPreference; | |
import android.util.AttributeSet; | |
/** | |
* Created by Rafa Vázquez on 29/06/13. | |
* | |
* ListPreference item that shows its selected value as summary. |
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
/* | |
* This will convert DateTime (.NET) object serialized as JSON by WCF to a NSDate object. | |
*/ | |
// Input string is something like: "/Date(1292851800000+0100)/" where | |
// 1292851800000 is milliseconds since 1970 and +0100 is the timezone | |
NSString *inputString = [item objectForKey:@"DateTimeSession"]; | |
// This will tell number of seconds to add according to your default timezone | |
// Note: if you don't care about timezone changes, just delete/comment it out |