Skip to content

Instantly share code, notes, and snippets.

@zplesac
zplesac / gist:f8b76240c1c0476e4ee2
Created October 19, 2015 09:14
Example response for dynamic UI generation
{
"countryId": "0",
"fields": [
{
"name": "title",
"type": "list",
"label": "Title",
"required": true
},
{
Parallel execution with configuration on demand is an incubating feature.
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19-1' (Expected '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19')
Already observed package id 'add-ons;addon-google_apis-google-19' in '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19'. Skipping duplicate at '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19-1'
Incremental java compilation is an incubating feature.
:app:clean
:app:checkstyle
:app:preBuild UP-TO-DATE
:app:preCanadasWonderlandStagingBuild
:app:checkCanadasWonderlandStagingManifest
:app:preCanadasWonderlandDebugBuild
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Parallel execution with configuration on demand is an incubating feature.
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19-1' (Expected '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19')
Already observed package id 'add-ons;addon-google_apis-google-19' in '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19'. Skipping duplicate at '/Users/zeljkoplesac/Library/Android/sdk/add-ons/addon-google_apis-google-19-1'
Incremental java compilation is an incubating feature.
:app:clean
:app:checkstyle
:app:preBuild UP-TO-DATE
:app:preCanadasWonderlandStagingBuild
:app:checkCanadasWonderlandStagingManifest
{
"BetSlip": {
"Action": 1,
"AllowChanged": false,
"IgnoreBetSlipLimits": false,
"LanguageCode": "en",
"Odds": [{
"Id": 862486498,
"OddFactor": 6.0,
"BetGroupTypeId": 14,
{
"BetSlip": {
"Action": 1,
"AllowChanged": true,
"IgnoreBetSlipLimits": false,
"LanguageCode": "en",
"Odds": [{
"Id": 862486498,
"OddFactor": 5.0,
"BetGroupTypeId": 14,
{
"BetSlip": {
"TaxRules": [],
"IsMultiSystem": true,
"Odds": [{
"Id": 862512414,
"BetTypeId": 126,
"OddFactor": 2.3,
"BetGroupTypeId": 379,
"BetGroupTypeTitle": "1:2",
{
"BetSlip": {
"Action": 1,
"AllowChanged": true,
"IgnoreBetSlipLimits": false,
"LanguageCode": "en",
"Odds": [{
"Id": 862512414,
"OddFactor": 2.3,
"BetGroupTypeId": 379,
try {
RecognizerCompatibilityStatus status = RecognizerCompatibility.getRecognizerCompatibilityStatus(this);
if (status == RecognizerCompatibilityStatus.RECOGNIZER_SUPPORTED) {
RecognitionSettings settings = new RecognitionSettings();
settings.setRecognizerSettingsArray((RecognizerSettings[]) object);
if (!RecognizerCompatibility.cameraHasAutofocus(CameraType.CAMERA_BACKFACE, this)) {
RecognizerSettings[] recognizerSettings = settings.getRecognizerSettingsArray();
recognizerSettings = RecognizerSettingsUtils.filterOutRecognizersThatRequireAutofocus(recognizerSettings);
{
"Id": 862173348,
"SportId": 66,
"LeagueId": 33836,
"EventId": 2060754,
"EventCode": "6008",
"EventType": 0,
"HomeId": 545502,
"GuestId": 545909,
"HomeName": "Hull City",