You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by mr...@apache.org on 2016/09/02 17:39:42 UTC
[01/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Repository: usergrid
Updated Branches:
refs/heads/master 9943e4bcb -> 867060fa7
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/core/collection.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/core/collection.rb b/sdks/ruby/lib/usergrid/core/collection.rb
deleted file mode 100644
index 02ac9fd..0000000
--- a/sdks/ruby/lib/usergrid/core/collection.rb
+++ /dev/null
@@ -1,121 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-module Usergrid
- class Collection < Entity
- include Enumerable
-
- attr_accessor :iterator_follows_cursor
-
- def initialize(url, api_url, options={}, response=nil)
- super url, api_url, options, response
- @iterator_follows_cursor = false
- end
-
- def collection
- self
- end
-
- def entities
- get unless response
- response.entities
- end
-
- def [](k)
- entities[k]
- end
-
- def []=(k,v)
- raise "unsupported operation"
- end
-
- # does not save entities! just fields (eg. 'name')
- def save
- super save
- end
-
- def each(&block)
- entities.each &block
- while cursor
- next_page
- entities.each &block
- end if iterator_follows_cursor
- end
-
- # use in conjunction with each() like: collection.follow_cursor.each {|e| }
- def follow_cursor
- my_clone = self.clone
- my_clone.iterator_follows_cursor = true
- my_clone
- end
-
- def create_entity(data)
- self.post data
- end
- alias_method :create_entities, :create_entity
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def update_query(updates, query=nil, options={})
- options = options.symbolize_keys
- query_params = query ? options.merge({ql: query}) : options
- self.put(updates, {params: query_params })
- self
- end
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def delete_query(query=nil, options={})
- options = options.symbolize_keys
- query_params = query ? options.merge({ql: query}) : options
- self.delete({params: query_params })
- self
- end
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def query(query=nil, options={})
- options = options.symbolize_keys
- query_params = query ? options.merge({ql: query}) : options
- self.get({params: query_params })
- self
- end
-
- def size
- entities.size
- end
-
- def empty?
- entities.empty?
- end
-
- def cursor
- response.data['cursor']
- end
-
- def next_page
- query(nil, query_params.merge({cursor: cursor}))
- end
-
- protected
-
- def query_params
- params = {}
- if response.data['params']
- response.data['params'].each do |k,v|
- params[k] = v[0]
- end
- end
- params
- end
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/core/entity.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/core/entity.rb b/sdks/ruby/lib/usergrid/core/entity.rb
deleted file mode 100644
index 1539b58..0000000
--- a/sdks/ruby/lib/usergrid/core/entity.rb
+++ /dev/null
@@ -1,80 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# also allows hash or dot notation for entity properties
-module Usergrid
- class Entity < Resource
-
- def initialize(url, api_url, options={}, response=nil, index=nil)
- super url, api_url, options, response
- @index = index
- end
-
- def data
- get unless response
- @index ? response.entities_data[@index] : response.entity_data
- end
-
- def data?
- !!response
- end
-
- def resource
- Resource.new url, api_url, options
- end
-
- def [](k)
- data[k]
- end
-
- def []=(k,v)
- data[k] = v
- end
-
- def collection
- Collection.new url[0..url[0..-2].rindex('/')-1], api_url, options
- end
-
- def save
- self.put data
- end
-
- def to_s
- "resource: #{url}\ndata: #{data}"
- end
-
- def to_json(*args)
- data.except(RESERVED).to_json *args
- end
- alias :encode :to_json
- alias :dump :to_json
-
- private
-
- def method_missing(method, *args, &block)
- if data.respond_to?(method)
- data.send(method, *args, &block)
- elsif method[-1] == '=' && args.size == 1
- data[method[0..-2]] = args[0]
- else
- super method, args, block
- end
- end
-
- def respond_to?(method)
- super.respond_to?(method) || data.respond_to?(method)
- end
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/core/management.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/core/management.rb b/sdks/ruby/lib/usergrid/core/management.rb
deleted file mode 100644
index b8f3e06..0000000
--- a/sdks/ruby/lib/usergrid/core/management.rb
+++ /dev/null
@@ -1,57 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-module Usergrid
- class Management < Resource
-
- def initialize(url, options={})
- management = url.split('/')[-1]
- if management == 'management'
- api_url = url[0..url.index(management)-2]
- else
- api_url = url
- url = concat_urls(api_url, 'management')
- end
- super url, api_url, options
- end
-
- def create_organization(organization, username, name, email, password)
- data = { organization: organization,
- username: username,
- name: name,
- email: email,
- password: password }
- self['organizations'].post data
- end
-
- def organizations
- self[__method__].get
- end
-
- def organization(organization)
- url = self["organizations/#{organization}"].url
- Organization.new url, options
- end
-
- def users
- self['users'].get
- end
-
- def user(name_or_uuid)
- self["users/#{name_or_uuid}"].get
- end
-
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/core/organization.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/core/organization.rb b/sdks/ruby/lib/usergrid/core/organization.rb
deleted file mode 100644
index 9df485a..0000000
--- a/sdks/ruby/lib/usergrid/core/organization.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-require 'uri'
-module Usergrid
- class Organization < Resource
-
- def initialize(url, options={})
- org_name = url.split('/')[-1]
- api_url = url[0..url.index('management')-2]
- super url, api_url, options
- end
-
- def name
- URI(url).path.split('/').last
- end
-
- def create_application(name)
- self['applications'].post({ name: name })
- application name
- end
-
- def applications(query=nil)
- resource = self[__method__]
- response = query ? resource.query(query) : resource.get
- response.data['data'].collect do |k|
- application concat_urls(api_url, k)
- end
- end
-
- def application(name_or_uuid)
- Usergrid::Application.new concat_urls(api_url, "#{name}/#{name_or_uuid}"), options
- end
-
- def users(query=nil)
- self[__method__].query(query)
- end
-
- def user(user)
- management.user(user)
- end
-
- def feed(query=nil)
- self[__method__].query(query)
- end
-
- def credentials
- self[__method__].get
- end
-
- def generate_credentials
- self['credentials'].post nil
- end
-
- def login_credentials(client_id, client_secret)
- resource = api_resource 'management'
- response = resource['token'].post grant_type: 'client_credentials', client_id: client_id, client_secret: client_secret
- self.auth_token = response.data['access_token']
- end
-
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/core/resource.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/core/resource.rb b/sdks/ruby/lib/usergrid/core/resource.rb
deleted file mode 100644
index 1f96f90..0000000
--- a/sdks/ruby/lib/usergrid/core/resource.rb
+++ /dev/null
@@ -1,157 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-require 'rest_client'
-
-module Usergrid
- class Resource < RestClient::Resource
-
- RESERVED = %w( created modified metadata uri )
- DEFAULT_API_URL = 'https://api.usergrid.com'
- TYPE_HEADERS = { content_type: :json, accept: :json }
-
- attr_reader :current_user, :api_url, :response
-
- def initialize(resource_url=DEFAULT_API_URL, api_url=nil, options={}, response=nil)
- options[:headers] = TYPE_HEADERS.merge options[:headers] || {}
- @api_url = api_url || resource_url
- self.response = response
- super resource_url, options, &method(:handle_response)
- end
-
- # gets user token and automatically set auth header for future requests
- # precondition: resource must already be set to the correct context (application or management)
- def login(username, password)
- response = self['token'].post grant_type: 'password', username: username, password: password
- self.auth_token = response.data['access_token']
- user_uuid = response.data['user']['uuid']
- @current_user = self["/users/#{user_uuid}"].get.entity
- response
- end
-
- # remove auth header for future requests
- # only affects self and derivative resources
- def logout
- self.auth_token = nil
- @current_user = nil
- end
-
- def logged_in?
- !!auth_token
- end
-
- def management
- Usergrid::Management.new api_url, options
- end
-
- # application defaults to sandbox if none provided
- def application(organization, application='sandbox')
- Usergrid::Application.new concat_urls(api_url, "#{organization}/#{application}"), options
- end
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def query(query=nil, options={})
- options = options.merge({ql: query}) if query
- get({params: options})
- end
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def update_query(updates, query=nil, options={})
- options = options.merge({ql: query}) if query
- put(updates, {params: options})
- end
-
- # options: 'reversed', 'start', 'cursor', 'limit', 'permission'
- def delete_query(query=nil, options={})
- options = options.merge({ql: query}) if query
- delete({params: options})
- end
-
- def entity
- get unless response
- response.entity
- end
-
- def entities
- get unless response
- response.entities
- end
-
- def collection
- get unless response
- Collection.new url, api_url, options, response
- end
-
- # overridden to ensure sub resources are instances of this class
- def [](suburl, &new_block)
- case
- when block_given? then Resource.new(concat_urls(url, suburl), api_url, options, &new_block)
- when block then Resource.new(concat_urls(url, suburl), api_url, options, &block)
- else
- Resource.new(concat_urls(url, suburl), api_url, options)
- end
- end
-
- def api_resource(suburl)
- Resource.new(concat_urls(api_url, suburl), api_url, options)
- end
-
- def get(additional_headers={}, &block)
- self.response = super additional_headers, &block
- end
-
- def post(payload, additional_headers={}, &block)
- payload = MultiJson.dump(payload) unless payload.is_a? String
- self.response = super payload, additional_headers, &block
- end
-
- def put(payload, additional_headers={}, &block)
- payload = MultiJson.dump(payload) unless payload.is_a? String
- self.response = super payload, additional_headers, &block
- end
-
- def auth_token=(auth_token)
- if auth_token
- @options[:headers].merge!({ Authorization: "Bearer #{auth_token}" })
- else
- @options[:headers].delete :Authorization if @options
- end
- end
-
- def auth_token
- begin
- @options[:headers][:Authorization].gsub 'Bearer ', ''
- rescue
- nil
- end
- end
-
- protected
-
- def response=(response)
- @response = response
- end
-
- # add verbose debugging of response body
- def handle_response(response, request, result, &block)
- LOG.debug "response.body = #{response}"
- response = response.return!(request, result, &block)
- response.resource = self
- self.response = response
- response
- end
-
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/extensions/hash.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/extensions/hash.rb b/sdks/ruby/lib/usergrid/extensions/hash.rb
deleted file mode 100644
index 5a1cd30..0000000
--- a/sdks/ruby/lib/usergrid/extensions/hash.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-class Hash
-
- # not recursive
- def symbolize_keys
- inject({}) do |options, (key, value)|
- options[(key.to_sym rescue key) || key] = value
- options
- end
- end
-
- def except(*keys)
- dup.except! *keys
- end
-
- def except!(*keys)
- keys.each { |key| key.is_a?(Array) ? except!(*key) : delete(key) }
- self
- end
-
- # recursive
- def add_dot_notation!(_hash=self)
- _hash.each do |k,v|
- getter = k.to_sym; setter = "#{k}=".to_sym
- _hash.define_singleton_method getter, lambda { _hash[k] } unless _hash.respond_to? getter
- _hash.define_singleton_method setter, lambda { |v| _hash[k] = v } unless _hash.respond_to? setter
- add_dot_notation!(v) if v.is_a? Hash
- v.each { |e| add_dot_notation!(e) if e.is_a? Hash } if v.is_a? Array
- end
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/extensions/response.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/extensions/response.rb b/sdks/ruby/lib/usergrid/extensions/response.rb
deleted file mode 100644
index ee2ffbf..0000000
--- a/sdks/ruby/lib/usergrid/extensions/response.rb
+++ /dev/null
@@ -1,96 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-module RestClient
- module Response
-
- def resource=(resource)
- @resource = resource
- end
-
- def resource
- @resource
- end
-
- def data
- @data = MultiJson.load(self).add_dot_notation! unless @data
- @data
- end
-
- def collection
- resource.collection
- end
-
- def multiple_entities?
- entities_data = data['entities'] || data['data'] || data['messages'] || data['list']
- entities_data.is_a? Array
- end
-
- def entities_data
- return @entities_data if @entities_data
- entities_data = data['entities'] || data['data'] || data['messages'] || data['list']
- raise "unable to determine entities from: #{data}" unless entities_data.is_a?(Array)
- entities_data.each do |e|
- e['uri'] = concat_urls(data['uri'], e['uuid']) if e.is_a?(Hash) && e['uuid']
- end
- @entities_data = entities_data
- end
-
- def entities
- return @entities if @entities
- index = -1
- @entities = entities_data.collect do |e|
- if e.is_a? Array
- e
- else
- Usergrid::Entity.new e['uri'], resource.api_url, resource.options, self, index+=1
- end
- end
- end
-
- def entity_data
- if multiple_entities?
- entities_data.first
- elsif data['data']
- d = data['data']
- d['uri'] = @resource.url
- d
- elsif data['organization']
- d = data['organization']
- d['uri'] = @resource.url
- d
- else
- entities_data.first
- end
- end
-
- def entity
- Usergrid::Entity.new(entity_data['uri'], resource.api_url, resource.options, self) if entity_data
- end
-
- protected
-
- def concat_urls(url, suburl) # :nodoc:
- url = url.to_s
- suburl = suburl.to_s
- if url.slice(-1, 1) == '/' or suburl.slice(0, 1) == '/'
- url + suburl
- else
- "#{url}/#{suburl}"
- end
- end
-
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid/version.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid/version.rb b/sdks/ruby/lib/usergrid/version.rb
deleted file mode 100644
index 951b017..0000000
--- a/sdks/ruby/lib/usergrid/version.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-module Usergrid
- VERSION = '0.9.2'
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/lib/usergrid_iron.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/lib/usergrid_iron.rb b/sdks/ruby/lib/usergrid_iron.rb
deleted file mode 100644
index 7bd209c..0000000
--- a/sdks/ruby/lib/usergrid_iron.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-require 'logger'
-require 'multi_json'
-
-
-module Usergrid
-
- LOG = Logger.new(STDOUT)
-
- USERGRID_PATH = File.join File.dirname(__FILE__), 'usergrid'
-
- def self.usergrid_path *path
- File.join USERGRID_PATH, *path
- end
-
- require usergrid_path('version')
-
- require usergrid_path('extensions', 'hash')
- require usergrid_path('extensions', 'response')
-
- require usergrid_path('core', 'resource')
- require usergrid_path('core', 'management')
- require usergrid_path('core', 'organization')
- require usergrid_path('core', 'application')
- require usergrid_path('core', 'entity')
- require usergrid_path('core', 'collection')
-
- #autoload :Management, usergrid_path('core', 'management')
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/spec_helper.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/spec_helper.rb b/sdks/ruby/spec/spec_helper.rb
deleted file mode 100644
index 88f5b43..0000000
--- a/sdks/ruby/spec/spec_helper.rb
+++ /dev/null
@@ -1,89 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-require 'simplecov'
-
-require 'rspec'
-require 'yaml'
-require 'securerandom'
-require_relative '../lib/usergrid_iron'
-
-LOG = Logger.new(STDOUT)
-RestClient.log=LOG
-
-SimpleCov.at_exit do
- SimpleCov.result.format!
- #index = File.join(SimpleCov.coverage_path, 'index.html')
- #`open #{index}` if File.exists?(index)
-end
-SimpleCov.start
-
-SPEC_SETTINGS = YAML::load_file(File.join File.dirname(__FILE__), 'spec_settings.yaml')
-
-def login_management
- management = Usergrid::Resource.new(SPEC_SETTINGS[:api_url]).management
- management.login SPEC_SETTINGS[:organization][:username], SPEC_SETTINGS[:organization][:password]
- management
-end
-
-# ensure we are correctly setup (management login & organization)
-management = login_management
-
-begin
- management.create_organization(SPEC_SETTINGS[:organization][:name],
- SPEC_SETTINGS[:organization][:username],
- SPEC_SETTINGS[:organization][:username],
- "#{SPEC_SETTINGS[:organization][:username]}@email.com",
- SPEC_SETTINGS[:organization][:password])
- LOG.info "created organization with user #{SPEC_SETTINGS[:organization][:username]}@email.com"
-rescue
- if MultiJson.load($!.response)['error'] == "duplicate_unique_property_exists"
- LOG.debug "test organization exists"
- else
- raise $!
- end
-end
-
-def create_random_application
- management = login_management
- organization = management.organization SPEC_SETTINGS[:organization][:name]
-
- app_name = "_test_app_#{SecureRandom.hex}"
- organization.create_application app_name
- management.application SPEC_SETTINGS[:organization][:name], app_name
-end
-
-def delete_application(application)
- management = login_management
- application.auth_token = management.auth_token
- # application.delete rescue nil # not implemented on server yet
-end
-
-def create_random_user(application, login=false)
- random = SecureRandom.hex
- user_hash = {username: "username_#{random}",
- password: random,
- email: "#{random}@email.com",
- name: "#{random} name" }
- entity = application['users'].post(user_hash).entity
- application.login user_hash[:username], user_hash[:password] if login
- entity
-end
-
-RSpec.configure do |config|
- config.filter_run focus: true
- config.run_all_when_everything_filtered = true
- config.treat_symbols_as_metadata_keys_with_true_values = true
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/spec_settings.yaml
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/spec_settings.yaml b/sdks/ruby/spec/spec_settings.yaml
deleted file mode 100644
index 7f82f40..0000000
--- a/sdks/ruby/spec/spec_settings.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-:api_url: http://localhost:8080
-:management:
- :username: test
- :password: test
-:organization:
- :name: test-organization
- :username: test
- :password: test
-:application:
- :name: test-app
- :username: test-app-user
- :password: test
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/application_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/application_spec.rb b/sdks/ruby/spec/usergrid/core/application_spec.rb
deleted file mode 100644
index f2b479e..0000000
--- a/sdks/ruby/spec/usergrid/core/application_spec.rb
+++ /dev/null
@@ -1,342 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Application do
-
- before :all do
- @application = create_random_application
- @user = create_random_user @application, true
- end
-
- after :all do
- @user.delete
- delete_application @application
- end
-
- it "should be able to create a user using deprecated syntax" do
- random = SecureRandom.hex
- response = @application.create_user "username_#{random}", 'password'
- response.entity.uuid.should_not be_nil
- end
-
- it "should be able to create, login, and delete a user" do
- random = SecureRandom.hex
- application = Usergrid::Application.new @application.url # create application resource that's not logged in
- response = application.create_user username: "username_#{random}", password: 'password'
- entity = response.entity
- application.login "username_#{random}", 'password'
- begin
- response.code.should eq 200
- response.entities.size.should eq 1
- entity.uuid.should_not be_nil
- response = application["users/#{entity.uuid}"].get
- response.code.should eq 200
- ensure
- entity.delete
- # deleted user shouldn't be able to access anything now
- expect { application["users/#{entity.uuid}"].get }.to raise_error(RestClient::Unauthorized)
- # use original application - logged in under existing user
- expect { @application["users/#{entity.uuid}"].get }.to raise_error(RestClient::ResourceNotFound)
- end
- end
-
- it "should be able to retrieve users" do
- entity1 = create_random_user @application
- entity2 = create_random_user @application
- begin
- response = @application.users
- response.entities.size.should be >= 2
- match1 = match2 = false
- response.entities.each do |e|
- match1 ||= e.username == entity1.username
- match2 ||= e.username == entity2.username
- end
- match1.should be_true
- match2.should be_true
- ensure
- entity1.delete
- entity2.delete
- end
- response = @application.users
- response.code.should eq 200
- response.entities.should be_an Array
- end
-
- it "should be able to query users" do
- entity1 = create_random_user @application
- entity2 = create_random_user @application
- begin
- response = @application.users "select * where username = \'#{entity1.username}\'"
- response.entities.size.should eq 1
- response.entity.username.should eq entity1.username
- ensure
- entity1.delete
- entity2.delete
- end
- end
-
- it "should be able to update a user" do
- entity = create_random_user @application
- begin
- updates = { email: 'testuser6@email.com', city: 'santa clarita' }
- response = @application.put updates
- updates.each {|k,v| response.entity[k.to_s].should eq v }
- ensure
- entity.delete
- end
- end
-
- it "should be able to retrieve the logged in user" do
- user = @application.current_user
- user.uuid.should_not be_nil
- end
-
- it "should be able to add and retrieve activities" do
- user = @application.current_user
- activity = {
- verb: "post",
- content: "testy, testy",
- actor: {
- uuid: user.uuid,
- email: user.email,
- username: user.username,
- displayName: user.username,
- image: {
- height: 80,
- width: 80,
- url: user.picture
- }}}
- response = @application['activities'].post activity
- activity_path = response.entity['metadata']['path']
- response.code.should eq 200
-
- begin
- entity = @application.activities.entity
- activity.add_dot_notation!
- entity.verb.should eq activity.verb
- entity.content.should eq activity.content
- entity.actor.uuid.should eq activity.actor.uuid
- ensure
- @application[activity_path].delete
- end
- end
-
- it "should be able to retrieve a user's feed" do
- response = @application.current_user.resource['feed'].get
- response.code.should eq 200
- response.entities.should be_an Array
- end
-
- it "should be able to follow a user" do
- follower = create_random_user @application
- begin
- me = @application.current_user
- @application["users/#{follower.uuid}/following/users/#{me.uuid}"].post "{}"
-
- response = @application["users/#{follower.uuid}/following"].get
- response.entities.size.should == 1
- response.entity.uuid.should eq me.uuid
-
- response = @application.current_user.resource['followers'].get
- response.entities.size.should be > 0
- ensure
- follower.delete
- end
- end
-
- it "should be able to create and retrieve groups" do
- response = @application.groups
- size = response.entities.size
- random = SecureRandom.hex
- @application.create_entity :groups, path: "test-#{random}"
- response = @application.groups
- response.entities.size.should eq size+1
- end
-
- it "should be able to create and retrieve devices" do
- response = @application.devices
- size = response.entities.size
- random = SecureRandom.hex
- @application.create_entity :devices, path: "test-#{random}"
- response = @application.devices
- response.entities.size.should eq size+1
- end
-
- it "should be able to create and retrieve assets" do
- response = @application.assets
- size = response.entities.size
- random = SecureRandom.hex
- @application.create_entity :assets, path: "test-#{random}", owner: @application.current_user.uuid
- response = @application.assets
- response.entities.size.should eq size+1
- end
-
- it "should be able to create and retrieve folders" do
- response = @application.folders
- size = response.entities.size
- random = SecureRandom.hex
- @application.create_entity :folders, path: "test-#{random}", owner: @application.current_user.uuid
- response = @application.folders
- response.entities.size.should eq size+1
- end
-
- # can't reliably test this - counters are batched on server
- #it "should be able to create and retrieve events and retrieve counters" do
- # # clear events
- # {} while @application.events.entities.size > 0
- #
- # events_in = []
- # events_in << {timestamp: 0, category: 'test', counters: { test: 1 }}
- # events_in << {timestamp: 0, category: 'testme', counters: { testme: 1 }}
- # events_in << {timestamp: 0, counters: { test: 1 }}
- # events_in.each {|e| @application.create_entity :events, e }
- #
- # events_out = []
- # events_out << @application.events.entity
- # events_out << @application.events.entity
- # events_out << @application.events.entity
- #
- # (0..2).each do |i|
- # events_in[i][:category].should eq events_out[i]['category']
- # end
- #
- # response = @application.events
- # response.entities.size.should eq 0
- #
- # # get and test counters
- # counter_names = @application.counter_names
- # counter_names.should include 'test'
- # counter_names.should include 'testme'
- #
- # response = @application.counter 'test'
- # counter = response.data.counters.first
- # counter.name.should eq 'test'
- # counter.values.last.first.value.should be > 0
- #end
-
- it "should be able to create, retrieve, and delete roles" do
- size = @application.roles.collection.size
-
- role_name = "test-#{SecureRandom.hex}"
- @application.create_entity :role, name: role_name, title: 'title', inactivity: 0
- roles = @application.roles.collection
- roles.size.should eq size+1
- role = roles.detect {|r| r.name == role_name }
- role.should_not be_nil
-
- role.delete
- @application.roles.collection.size.should eq size
- end
-
- it "should be able to add/remove permissions from a user" do
- user = create_random_user @application
- permission = 'post:/users/*'
- user.resource['permissions'].post permission: permission
-
- permissions = user.resource['permissions'].get.data.data
- permissions.size.should eq 1
- permissions.first.should eq permission
-
- user.resource['permissions'].delete({params: { permission: permission }})
-
- permissions = user.resource['permissions'].get.collection.entities
- permissions.size.should eq 0
- end
-
- it "should be able to add/remove a user from a roles" do
- user = create_random_user @application
-
- roles = user.resource['roles'].get.entities
- size = roles.size
-
- @application["roles/admin/users/#{user.uuid}"].post nil
-
- roles = user.resource['roles'].get.entities
- roles.size.should == size+1
-
- @application["roles/admin/users/#{user.uuid}"].delete
-
- roles = user.resource['roles'].get.entities
- roles.size.should == size
- end
-
- it "should be able to create a new collection and access it" do
- entities = (1..4).collect { |i| { name: "test_#{i}" } }
- @application.create_entities 'tests', entities
- response = @application['tests'].get
- collection = response.collection
- collection.size.should eq 4
- end
-
- it "should be able to create a new collection via create_ method and access it" do
- entities = (1..4).collect { |i| { name: "test_#{i}" } }
- @application.create_moretests entities
- response = @application['tests'].get
- collection = response.collection
- collection.size.should eq 4
- end
-
- it "should be able to access a collection without calling get" do
- entities = (1..4).collect { |i| { name: "test_#{i}" } }
- @application.create_entities 'tests', entities
- collection = @application['tests'].collection
- collection.size.should eq 4
- end
-
- it "should be able to access entities without calling get" do
- entities = (1..4).collect { |i| { name: "test_#{i}" } }
- @application.create_entities 'tests', entities
- entities = @application['tests'].entities
- entities.size.should eq 4
- end
-
- it "should be able to query using dot notation" do
- entities = (1..4).collect { |i| { name: "test_#{i}" } }
- @application.create_btests entities
- entities = @application.btests("name = 'test_1'").entities
- entities.size.should eq 1
- end
-
- describe "grant_type: client_credentials" do
-
- before(:each) do
- @app = create_random_application
- end
-
- context "invalid credentials" do
- it "should not be able to get access token with invalid credentials" do
- expect { @app.login_credentials "invalid_client_id", "invalid_client_secret" }.to raise_exception RestClient::BadRequest
- end
-
- it "should not be able to get access token with empty credentials" do
- expect { @app.login_credentials "", "" }.to raise_exception RestClient::BadRequest
- end
- end
-
- context "valid credentials" do
- it "should be able to get access token with valid credentials" do
- app_info = JSON.parse @app.get
-
- management = login_management
- app = management.application app_info["organization"], app_info["applicationName"]
- app_credentials = JSON.parse app.credentials
- app.login_credentials app_credentials["credentials"]["client_id"], app_credentials["credentials"]["client_secret"]
-
- expect(app.auth_token).to_not be_empty
- expect(app.auth_token).to be_instance_of String
- end
- end
- end
-end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/collection_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/collection_spec.rb b/sdks/ruby/spec/usergrid/core/collection_spec.rb
deleted file mode 100644
index 9ab07c3..0000000
--- a/sdks/ruby/spec/usergrid/core/collection_spec.rb
+++ /dev/null
@@ -1,125 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Collection do
-
- before :all do
- @application = create_random_application
- @user = create_random_user @application, true
-
- @collection = @application['tests'].collection
- @entity_data = (1..25).collect do |i|
- { name: "name_#{i}", value: "value_#{i+1}" }
- end
- (1..3).each {|i| @entity_data[i]['three'] = 3}
- @collection.create_entities @entity_data
- end
-
- after :all do
- @user.delete
- delete_application @application
- end
-
- it "should be able to do a simple query" do
- @collection.query "select * where name = \'#{@entity_data[0][:name]}\'"
- @collection.size.should eq 1
- end
-
- it "should be able to select data elements" do
- @collection.query "select name, value where name = \'#{@entity_data[0][:name]}\'"
- @collection.size.should eq 1
- # note: not Usergrid::Entity objects: it is an Array for this kind of query
- values = @collection.entities.first
- values[0].should eq @entity_data[0][:name]
- values[1].should eq @entity_data[0][:value]
- end
-
- it "should be able to select redefined data elements" do
- @collection.query "select { test1: name, test2 : value } where name = \'#{@entity_data[0][:name]}\'"
- @collection.size.should eq 1
- # note: not Usergrid::Entity objects: it is a Hash for this kind of query
- values = @collection.entities.first
- values.test1.should eq @entity_data[0][:name]
- values.test2.should eq @entity_data[0][:value]
- end
-
- it "should be able to find an entity" do
- @collection.query
- entity = @collection.detect { |e| e.name == @entity_data[5][:name] }
- entity.should_not be_nil
- entity.name.should eq @entity_data[5][:name]
- end
-
- it "should be able to respect query reversal and limits" do
- @collection.query nil, reversed: true, start: 5, cursor: nil, limit: 2, permission: nil
- @collection.size.should eq 2
- @collection[0].name.should eq @entity_data[@entity_data.size-1][:name]
- @collection[1].name.should eq @entity_data[@entity_data.size-2][:name]
- end
-
- it "should be able to select the start by uuid" do
- @collection.query
- uuid = @collection[4].uuid
- @collection.query nil, reversed: false, start: uuid, cursor: nil, limit: 3, permission: nil
- @collection.size.should eq 3
- @collection.first.uuid.should eq uuid
- @collection[2].name.should eq @entity_data[6][:name]
- end
-
- it "should be able to page forward by cursor" do
- @collection.query 'select * where three = 3', limit: 2
- @collection.next_page
- @collection.size.should eq 1
- @collection[0].name.should eq @entity_data[3][:name]
- end
-
- it "should be able to update based on a query" do
- @collection.update_query({new_field: 'new_value'}, "select * where name = \'#{@entity_data[4][:name]}\'")
- @collection.query
- entity = @collection.detect { |e| e['new_field'] == 'new_value' }
- entity.should_not be_nil
- entity.name.should eq @entity_data[4][:name]
- end
-
- it "should be able to delete based on a query" do
- @collection.delete_query "select * where name = \'#{@entity_data[5][:name]}\'"
- @collection.query
- entity = @collection.detect { |e| e['name'] == "#{@entity_data[5][:name]}" }
- entity.should be_nil
- @entity_data.delete @entity_data[5]
- end
-
- it "should be able to iterate within the page" do
- @collection.query
- @collection.cursor.should_not be_nil
- count = 0
- page_size = @collection.count
- @collection.each {|e| count += 1 }
- count.should eq page_size
- end
-
- it "should be able to iterate over pages" do
- @collection.query
- @collection.cursor.should_not be_nil
- count = 0
- seen = Set.new
- @collection.follow_cursor.each do |e|
- seen.add?(e.uuid).should_not be_nil
- count += 1
- end
- count.should eq @entity_data.size
- end
-
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/entity_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/entity_spec.rb b/sdks/ruby/spec/usergrid/core/entity_spec.rb
deleted file mode 100644
index 887fa91..0000000
--- a/sdks/ruby/spec/usergrid/core/entity_spec.rb
+++ /dev/null
@@ -1,91 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Entity do
-
- before :all do
- @application = create_random_application
- @user = create_random_user @application, true
- end
-
- after :all do
- @user.delete
- delete_application @application
- end
-
- it "should be able to retrieve its collection" do
- collection = @user.collection
- collection.should_not be_nil
- u = collection.detect {|u| u.uuid == @user.uuid }
- u.uuid.should eq @user.uuid
- end
-
- it "should be able to reload its data" do
- old_name = @user.name
- @user.name = 'new name'
- @user.name.should eq 'new name'
- @user.get
- @user.name.should eq old_name
- end
-
- it "should be able to save" do
- @user.name = 'new name'
- @user.save
- @user.name.should eq 'new name'
- end
-
- it "should be able to print itself" do
- p = @user.to_s
- p.start_with?('resource').should be_true
- end
-
- it "should know if it has data" do
- @user.data?.should be_true
- empty = Usergrid::Entity.new 'url', 'url'
- empty.data?.should be_false
- end
-
- it "should return nil if empty result" do
- @application['foobars'].get.entity.should be_nil
- end
-
- it "should not serialize reserved attributes" do
- dump = MultiJson.dump @user
- hash = MultiJson.load dump
- Usergrid::Resource::RESERVED.each { |a| hash.should_not have_key(a) }
- end
-
- it "should be able to delete itself" do
- user = create_random_user @application
- name = user.name
- user.delete
- u = @application['users'].entities.detect {|e| e.name == "#{name}"}
- u.should be_nil
- end
-
- it "should be able to update and delete by query" do
- dog = (@application.create_dog name: 'Vex').entity
-
- @application['dogs'].update_query({foo: 'bar'}, "select * where name = \'#{dog.name}\'")
- dog.get
- dog.foo.should eq('bar')
-
- @application['dogs'].delete_query "select * where name = \'#{dog.name}\'"
-
- dog = @application['dogs'].entities.detect {|e| e.name == "#{dog.name}"}
- dog.should be_nil
- end
-
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/management_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/management_spec.rb b/sdks/ruby/spec/usergrid/core/management_spec.rb
deleted file mode 100644
index f53d572..0000000
--- a/sdks/ruby/spec/usergrid/core/management_spec.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Management do
-
- before :all do
- @base_resource = Usergrid::Resource.new(SPEC_SETTINGS[:api_url])
- @management = @base_resource.management
- @management.login SPEC_SETTINGS[:management][:username], SPEC_SETTINGS[:management][:password]
- end
-
- it "should be able to create an organization" do
- # can't delete an org or a user, so we create new random ones and leave them
- random = SecureRandom.hex
- org_name = "test_org_#{random}"
- user_name = "test_admin_#{random}"
- response = @management.create_organization("#{org_name}",
- "#{user_name}",
- "#{user_name}",
- "#{user_name}@email.com",
- "#{random}")
- response.code.should eq 200
- #@base_resource["users/#{user_name}"].delete
- end
-
- # this is broken on the server
- #it "should be able to get organizations" do
- # response = @management.organizations
- #end
-
- it "should be able to get an organization" do
- organization = @management.organization SPEC_SETTINGS[:organization][:name]
- organization.should be_a Usergrid::Organization
- org_ent = organization.get.entity
- org_ent.uuid.should_not be_nil
- org_ent.name.should eq SPEC_SETTINGS[:organization][:name]
- end
-
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/organization_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/organization_spec.rb b/sdks/ruby/spec/usergrid/core/organization_spec.rb
deleted file mode 100644
index 93092fc..0000000
--- a/sdks/ruby/spec/usergrid/core/organization_spec.rb
+++ /dev/null
@@ -1,113 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Organization do
-
- before :each do
- @management = Usergrid::Resource.new(SPEC_SETTINGS[:api_url]).management
- @management.login SPEC_SETTINGS[:organization][:username], SPEC_SETTINGS[:organization][:password]
- @organization = @management.organization SPEC_SETTINGS[:organization][:name]
- end
-
- it "should be able to create (and delete) an application" do
- app_name = "test_app_#{SecureRandom.hex}"
- app = @organization.create_application app_name
- app.should be_an Usergrid::Application
-
- response = @organization["applications/#{app_name}"].delete
- response.code.should eq 200
- end
-
- it "should be able to get applications" do
- response = @organization.applications
- response.should be_an Array
- if response.size > 0
- app = response.first
- app.should be_an Usergrid::Application
- end
- end
-
- it "should be able to get users" do
- response = @organization.users
- response.code.should eq 200
- response.entities.should be_an Array
- response.entities[0].uuid.should_not be_nil
- end
-
- it "should be able to get a user" do
- response = @organization.user(SPEC_SETTINGS[:organization][:username])
- response.code.should eq 200
- response.entity.uuid.should_not be_nil
- end
-
- it "should be able to get an application" do
- app_name = "test_app_#{SecureRandom.hex}"
- @organization.create_application app_name
- begin
- app = @organization.application app_name
- app.should be_an Usergrid::Application
- ensure
- @organization["applications/#{app_name}"].delete
- end
- end
-
- it "should be able to get feed" do
- response = @organization.feed
- entities = response.entities
- entities.size.should be > 0
- entities.first.uuid.should_not be_nil
- end
-
- it "should be able to get credentials" do
- response = @organization.credentials
- response.code.should eq 200
- response.data.credentials.client_id.should_not be_nil
- response.data.credentials.client_secret.should_not be_nil
- end
-
- it "should be able to generate credentials" do
- response = @organization.generate_credentials
- response.code.should eq 200
- response.data.credentials.client_id.should_not be_nil
- response.data.credentials.client_secret.should_not be_nil
- end
-
- describe "grant_type: client_credentials" do
- context "invalid credentials" do
- before :each do
- @organization.logout
- end
-
- it "should not be able to get access token with invalid credentials" do
- expect { @organization.login_credentials "invalid_client_id", "invalid_client_secret" }.to raise_exception RestClient::BadRequest
- end
-
- it "should not be able to get access token with empty credentials" do
- expect { @organization.login_credentials "", "" }.to raise_exception RestClient::BadRequest
- end
- end
-
- context "valid crendentials" do
- it "should be able to get access token with valid credentials" do
- org_credentials = JSON.parse @organization.credentials
- @organization.logout
- @organization.login_credentials org_credentials["credentials"]["client_id"], org_credentials["credentials"]["client_secret"]
-
- expect(@organization.auth_token).to_not be_empty
- expect(@organization.auth_token).to be_instance_of String
- end
- end
- end
-end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/core/resource_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/core/resource_spec.rb b/sdks/ruby/spec/usergrid/core/resource_spec.rb
deleted file mode 100644
index 82a1ace..0000000
--- a/sdks/ruby/spec/usergrid/core/resource_spec.rb
+++ /dev/null
@@ -1,63 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-describe Usergrid::Resource do
-
- before :all do
- @resource = Usergrid::Resource.new SPEC_SETTINGS[:api_url]
- end
-
- it "should succeed on status check" do
- response = @resource['/status'].get
-
- response.code.should eq 200
- response.data.should be_a Hash
- end
-
- it "should fail with a 400 when no auth given" do
- expect { @resource['management'].get }.to raise_error(RestClient::BadRequest) { |exception|
- exception.response.code.should eq 400
- }
- end
-
- it "should fail with a 401 when lacking auth" do
- app_endpoint = "#{SPEC_SETTINGS[:organization][:name]}/#{SPEC_SETTINGS[:application][:name]}"
- expect { @resource[app_endpoint].get }.to raise_error(RestClient::Unauthorized) { |exception|
- exception.response.code.should eq 401
- }
- end
-
- it "should be able to login" do
- resource = @resource['management']
- response = resource.login SPEC_SETTINGS[:management][:username], SPEC_SETTINGS[:management][:password]
-
- response.code.should eq 200
- resource.auth_token.should_not be_nil
- response.data['access_token'].should eq resource.auth_token
- resource.options[:headers][:Authorization].should eq "Bearer #{resource.auth_token}"
- resource.logged_in?.should be_true
- end
-
- it "should be able to log out" do
- resource = @resource['management']
- resource.login SPEC_SETTINGS[:management][:username], SPEC_SETTINGS[:management][:password]
- resource.logged_in?.should be_true
-
- resource.logout
- resource.options[:headers][:Authorization].should be_nil
- resource.logged_in?.should be_false
- end
-
-end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/spec/usergrid/extensions/hash_spec.rb
----------------------------------------------------------------------
diff --git a/sdks/ruby/spec/usergrid/extensions/hash_spec.rb b/sdks/ruby/spec/usergrid/extensions/hash_spec.rb
deleted file mode 100644
index 9dbecdb..0000000
--- a/sdks/ruby/spec/usergrid/extensions/hash_spec.rb
+++ /dev/null
@@ -1,40 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-require_relative '../../../lib/usergrid/extensions/hash'
-
-describe Hash do
-
- it "should add dot notation recursively" do
- h = { test1: 'test1', test2: { test2a: 'test2a' }, test3: [ { test3a: 'test3a' }] }
- expect { h.test1 }.to raise_error
- h.add_dot_notation!
- h.test1.should eq 'test1'
- h.test2.test2a.should eq 'test2a'
- h.test3.first.test3a.should eq 'test3a'
- h.test1 = 'testx'
- h.test1.should eq 'testx'
- end
-
- it "should symbolize keys at top level" do
- h = { 'test1' => 'test1', 'test2' => { 'test2a' => 'test2a' }, 'test3' => [ { 'test3a' => 'test3a' }] }
- h['test1'].should eq 'test1'
- h = h.symbolize_keys
- h['test1'].should be_nil
- h[:test1].should eq 'test1'
- h[:test2][:test2a].should be_nil
- h[:test3].first['test3a'].should eq 'test3a'
- end
-end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ruby/usergrid_iron.gemspec
----------------------------------------------------------------------
diff --git a/sdks/ruby/usergrid_iron.gemspec b/sdks/ruby/usergrid_iron.gemspec
deleted file mode 100644
index f9bc46e..0000000
--- a/sdks/ruby/usergrid_iron.gemspec
+++ /dev/null
@@ -1,41 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/usergrid/version', __FILE__)
-
-Gem::Specification.new do |gem|
- gem.authors = ["Scott Ganyo"]
- gem.email = ["scott@ganyo.com"]
- gem.description = %q{Low-level gem to access Usergrid / Apigee App Services}
- gem.summary = %q{Usergrid_iron enables simple, low-level Ruby access to Apigee's App Services
- (aka Usergrid) REST API with minimal dependencies.}
- gem.homepage = "https://github.com/scottganyo/usergrid_iron"
-
- gem.files = `git ls-files`.split($\)
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
- gem.test_files = gem.files.grep(%r{^(spec|spec|features)/})
- gem.name = "usergrid_iron"
- gem.require_paths = ["lib"]
- gem.version = Usergrid::VERSION
-
- gem.add_dependency 'rest-client'
- gem.add_dependency 'multi_json'
-
- gem.add_development_dependency 'rake'
- gem.add_development_dependency 'rspec'
- gem.add_development_dependency 'simplecov'
-end
[39/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/AddBookViewController.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/AddBookViewController.m b/sdks/ios/samples/Books/books/AddBookViewController.m
deleted file mode 100644
index 85afa77..0000000
--- a/sdks/ios/samples/Books/books/AddBookViewController.m
+++ /dev/null
@@ -1,169 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// AddBookViewController.m
-// books
-//
-
-#import "AddBookViewController.h"
-#import "UGConnection.h"
-#import "UGHTTPClient.h"
-#import "UGHTTPResult.h"
-
-@interface FormTableViewCell : UITableViewCell <UITextFieldDelegate>
-@property (nonatomic, strong) UILabel *label;
-@property (nonatomic, strong) UITextField *textField;
-@property (nonatomic, strong) NSString *key;
-@property (nonatomic, weak) id binding;
-@end
-
-@implementation FormTableViewCell
-
-- (id) initWithTitle:(NSString *)title key:(NSString *) key binding:(id) binding
-{
- if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]) {
- self.label = [[UILabel alloc] initWithFrame:CGRectMake(10,0,90,14)];
- self.label.backgroundColor = [UIColor clearColor];
- self.label.font = [UIFont systemFontOfSize:10];
- self.label.textColor = [UIColor grayColor];
- self.label.textAlignment = NSTextAlignmentLeft;
- [self.contentView addSubview:self.label];
- self.textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 14, 100, 30)];
- self.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
- self.textField.font = [UIFont systemFontOfSize:18];
- self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
- self.textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
- self.textField.delegate = self;
- if ([key isEqualToString:@"password"]) {
- self.textField.secureTextEntry = YES;
- }
- [self.contentView addSubview:self.textField];
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- // individual cell properties
- self.label.text = title;
- self.key = key;
- self.binding = binding;
- }
- return self;
-}
-
-- (void) layoutSubviews
-{
- [super layoutSubviews];
- CGRect textFieldFrame = self.textField.frame;
- textFieldFrame.size.width = self.textField.superview.bounds.size.width - textFieldFrame.origin.x - 5;
- self.textField.frame = textFieldFrame;
-}
-
-- (void) textFieldDidEndEditing:(UITextField *)textField
-{
- [self.binding setObject:textField.text forKey:self.key];
-}
-
-@end
-
-@interface AddBookViewController ()
-@property (nonatomic, strong) NSMutableDictionary *values;
-@property (nonatomic, strong) NSArray *cells;
-@end
-
-@implementation AddBookViewController
-
-- (id)init {
- if (self = [super initWithStyle:UITableViewStyleGrouped]) {
- self.values = [[[NSUserDefaults standardUserDefaults] objectForKey:@"usergrid"] mutableCopy];
- if (!self.values) {
- self.values = [NSMutableDictionary dictionary];
- }
- self.cells =
- @[[[FormTableViewCell alloc] initWithTitle:@"Title" key:@"title" binding:self.values],
- [[FormTableViewCell alloc] initWithTitle:@"Author" key:@"author" binding:self.values]];
- }
- return self;
-}
-
-- (void) loadView
-{
- [super loadView];
- self.title = @"Connection";
- self.tableView.backgroundView = nil;
- self.tableView.backgroundColor = [UIColor darkGrayColor];
- self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Cancel"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(cancel:)];
- self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Save"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(save:)];
-}
-
-#pragma mark - Table view data source
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
-{
- return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- return [self.cells count];
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
- return [self.cells objectAtIndex:[indexPath row]];
-}
-
-#pragma mark - Table view delegate
-
-- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
-{
- FormTableViewCell *formCell = (FormTableViewCell *) cell;
- formCell.textField.text = [formCell.binding objectForKey:formCell.key];
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
-{
- FormTableViewCell *formCell = (FormTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
- [formCell.textField becomeFirstResponder];
-}
-
-#pragma mark - Sign In
-
-- (void) cancel:(id) sender
-{
- [self dismissViewControllerAnimated:YES completion:nil];
-}
-
-- (void) save:(id) sender
-{
- for (FormTableViewCell *cell in self.cells) {
- [cell.textField resignFirstResponder];
- }
- UGConnection *connection = [UGConnection sharedConnection];
- [[[UGHTTPClient alloc] initWithRequest:
- [connection createEntityInCollection:@"books" withValues:self.values]]
- connectWithCompletionHandler:^(UGHTTPResult *result) {
- [self dismissViewControllerAnimated:YES completion:nil];
- }];
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/AppDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/AppDelegate.h b/sdks/ios/samples/Books/books/AppDelegate.h
deleted file mode 100644
index 185592e..0000000
--- a/sdks/ios/samples/Books/books/AppDelegate.h
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// AppDelegate.h
-// books
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#import <UIKit/UIKit.h>
-
-@interface AppDelegate : UIResponder <UIApplicationDelegate>
-
-@property (strong, nonatomic) UIWindow *window;
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/AppDelegate.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/AppDelegate.m b/sdks/ios/samples/Books/books/AppDelegate.m
deleted file mode 100644
index f1082ef..0000000
--- a/sdks/ios/samples/Books/books/AppDelegate.m
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// AppDelegate.m
-// books
-//
-
-#import "AppDelegate.h"
-#import "BooksViewController.h"
-
-@implementation AppDelegate
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- UINavigationController *navigationController = [[UINavigationController alloc]
- initWithRootViewController:[[BooksViewController alloc] init]];
- navigationController.navigationBar.tintColor = [UIColor colorWithRed:100.0/255.0
- green:150.0/255.0
- blue:200.0/255.0
- alpha:1];
- self.window.rootViewController = navigationController;
- self.window.backgroundColor = [UIColor whiteColor];
- [self.window makeKeyAndVisible];
- return YES;
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/BooksViewController.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/BooksViewController.h b/sdks/ios/samples/Books/books/BooksViewController.h
deleted file mode 100644
index b286c29..0000000
--- a/sdks/ios/samples/Books/books/BooksViewController.h
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// BooksViewController.h
-// books
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#import <UIKit/UIKit.h>
-
-@interface BooksViewController : UITableViewController
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/BooksViewController.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/BooksViewController.m b/sdks/ios/samples/Books/books/BooksViewController.m
deleted file mode 100644
index 44be61c..0000000
--- a/sdks/ios/samples/Books/books/BooksViewController.m
+++ /dev/null
@@ -1,154 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// BooksViewController.m
-// books
-//
-
-#import "BooksViewController.h"
-#import "UGSignInViewController.h"
-#import "UGConnection.h"
-#import "UGHTTPClient.h"
-#import "UGHTTPResult.h"
-#import "AddBookViewController.h"
-
-@interface BooksViewController ()
-@property (nonatomic, strong) NSDictionary *content;
-@end
-
-@implementation BooksViewController
-
-- (id)initWithStyle:(UITableViewStyle)style
-{
- self = [super initWithStyle:style];
- if (self) {
- // Custom initialization
- }
- return self;
-}
-
-- (void)loadView
-{
- [super loadView];
- self.navigationItem.title = @"My Books";
- self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Add Book"
- style:UIBarButtonItemStyleBordered target:self action:@selector(addbook:)];
- self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Connection"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(connect:)];
-}
-
-- (void) connect:(id) sender
-{
- UGSignInViewController *signinViewController = [[UGSignInViewController alloc] init];
- UINavigationController *signinNavigationController =
- [[UINavigationController alloc] initWithRootViewController:signinViewController];
- signinNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
- signinNavigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
- [self presentViewController:signinNavigationController animated:YES completion:nil];
-}
-
-- (void) addbook:(id) sender
-{
- AddBookViewController *addBookViewController = [[AddBookViewController alloc] init];
- UINavigationController *navigationController =
- [[UINavigationController alloc] initWithRootViewController:addBookViewController];
- navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
- navigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
- [self presentViewController:navigationController animated:YES completion:nil];
-}
-
-- (void) viewWillAppear:(BOOL)animated
-{
- [self reload];
-}
-
-- (void) reload {
- UGConnection *usergrid = [UGConnection sharedConnection];
- if ([usergrid isAuthenticated]) {
- NSLog(@"loading...");
- UGHTTPClient *client = [[UGHTTPClient alloc] initWithRequest:
- [usergrid getEntitiesInCollection:@"books" limit:100]];
- [client connectWithCompletionHandler:^(UGHTTPResult *result) {
- NSLog(@"%@", result.object);
- self.content = result.object;
- [self.tableView reloadData];
- }];
- }
-}
-
-#pragma mark - Table view data source
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
-{
- // Return the number of sections.
- return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- // Return the number of rows in the section.
- return self.content ? [self.content[@"entities"] count] : 1;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
- return [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
-}
-
-#pragma mark - Table view delegate
-
-- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
-{
- if (!self.content) {
- cell.textLabel.text = @"Please sign in.";
- } else {
- id entity = self.content[@"entities"][[indexPath row]];
- cell.textLabel.text = entity[@"title"];
- cell.detailTextLabel.text = entity[@"author"];
- UIButton *deleteButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
- cell.accessoryView = deleteButton;
- [deleteButton setTitle:@"X" forState:UIControlStateNormal];
- deleteButton.tag = [indexPath row];
- [deleteButton addTarget:self action:@selector(deleteItem:) forControlEvents:UIControlEventTouchUpInside];
- [deleteButton sizeToFit];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
-}
-
-- (void) deleteItem:(UIButton *) sender {
- int row = [sender tag];
- id entity = self.content[@"entities"][row];
- NSString *uuid = [entity objectForKey:@"uuid"];
- UGHTTPClient *client = [[UGHTTPClient alloc] initWithRequest:
- [[UGConnection sharedConnection] deleteEntity:uuid inCollection:@"books"]];
- [client connectWithCompletionHandler:^(UGHTTPResult *result) {
- [self reload];
- }];
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
-{
- if (!self.content) {
- [self connect:nil];
- }
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/Default-568h@2x.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/Default-568h@2x.png b/sdks/ios/samples/Books/books/Default-568h@2x.png
deleted file mode 100644
index 0891b7a..0000000
Binary files a/sdks/ios/samples/Books/books/Default-568h@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/Default.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/Default.png b/sdks/ios/samples/Books/books/Default.png
deleted file mode 100644
index 4c8ca6f..0000000
Binary files a/sdks/ios/samples/Books/books/Default.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/Default@2x.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/Default@2x.png b/sdks/ios/samples/Books/books/Default@2x.png
deleted file mode 100644
index 35b84cf..0000000
Binary files a/sdks/ios/samples/Books/books/Default@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/UGSignInViewController.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/UGSignInViewController.h b/sdks/ios/samples/Books/books/UGSignInViewController.h
deleted file mode 100644
index b831869..0000000
--- a/sdks/ios/samples/Books/books/UGSignInViewController.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// UGSignInViewController.h
-// books
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-@class UGAppViewController;
-
-@interface UGSignInViewController : UITableViewController
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/UGSignInViewController.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/UGSignInViewController.m b/sdks/ios/samples/Books/books/UGSignInViewController.m
deleted file mode 100644
index 6cccb77..0000000
--- a/sdks/ios/samples/Books/books/UGSignInViewController.m
+++ /dev/null
@@ -1,184 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// UGSignInViewController.m
-// books
-//
-
-
-#import "UGHTTPClient.h"
-#import "UGConnection.h"
-#import "UGSignInViewController.h"
-
-#define SERVER @"http://api.usergrid.com"
-
-@interface UGFormTableViewCell : UITableViewCell <UITextFieldDelegate>
-@property (nonatomic, strong) UILabel *label;
-@property (nonatomic, strong) UITextField *textField;
-@property (nonatomic, strong) NSString *key;
-@property (nonatomic, weak) id binding;
-@end
-
-@implementation UGFormTableViewCell
-
-- (id) initWithTitle:(NSString *)title key:(NSString *) key binding:(id) binding
-{
- if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]) {
- self.label = [[UILabel alloc] initWithFrame:CGRectMake(10,0,90,14)];
- self.label.backgroundColor = [UIColor clearColor];
- self.label.font = [UIFont systemFontOfSize:10];
- self.label.textColor = [UIColor grayColor];
- self.label.textAlignment = NSTextAlignmentLeft;
- [self.contentView addSubview:self.label];
- self.textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 14, 100, 30)];
- self.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
- self.textField.font = [UIFont systemFontOfSize:18];
- self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
- self.textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
- self.textField.delegate = self;
- if ([key isEqualToString:@"password"]) {
- self.textField.secureTextEntry = YES;
- }
- [self.contentView addSubview:self.textField];
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- // individual cell properties
- self.label.text = title;
- self.key = key;
- self.binding = binding;
- }
- return self;
-}
-
-- (void) layoutSubviews
-{
- [super layoutSubviews];
- CGRect textFieldFrame = self.textField.frame;
- textFieldFrame.size.width = self.textField.superview.bounds.size.width - textFieldFrame.origin.x - 5;
- self.textField.frame = textFieldFrame;
-}
-
-- (void) textFieldDidEndEditing:(UITextField *)textField
-{
- [self.binding setObject:textField.text forKey:self.key];
-}
-
-@end
-
-@interface UGSignInViewController ()
-@property (nonatomic, strong) NSMutableDictionary *values;
-@property (nonatomic, strong) NSArray *cells;
-@end
-
-@implementation UGSignInViewController
-
-- (id)init {
- if (self = [super initWithStyle:UITableViewStyleGrouped]) {
- self.values = [[[NSUserDefaults standardUserDefaults] objectForKey:@"usergrid"] mutableCopy];
- if (!self.values) {
- self.values = [NSMutableDictionary dictionary];
- [self.values setObject:SERVER forKey:@"server"];
- }
- self.cells =
- @[[[UGFormTableViewCell alloc] initWithTitle:@"Server" key:@"server" binding:self.values],
- [[UGFormTableViewCell alloc] initWithTitle:@"Organization" key:@"organization" binding:self.values],
- [[UGFormTableViewCell alloc] initWithTitle:@"Application" key:@"application" binding:self.values],
- [[UGFormTableViewCell alloc] initWithTitle:@"Username" key:@"username" binding:self.values],
- [[UGFormTableViewCell alloc] initWithTitle:@"Password" key:@"password" binding:self.values]];
- }
- return self;
-}
-
-- (void) loadView
-{
- [super loadView];
- self.title = @"Connection";
- self.tableView.backgroundView = nil;
- self.tableView.backgroundColor = [UIColor darkGrayColor];
- self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Cancel"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(cancel:)];
- self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Sign In"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(signin:)];
-}
-
-#pragma mark - Table view data source
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
-{
- return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- return [self.cells count];
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
- return [self.cells objectAtIndex:[indexPath row]];
-}
-
-#pragma mark - Table view delegate
-
-- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
-{
- UGFormTableViewCell *formCell = (UGFormTableViewCell *) cell;
- formCell.textField.text = [formCell.binding objectForKey:formCell.key];
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
-{
- UGFormTableViewCell *formCell = (UGFormTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
- [formCell.textField becomeFirstResponder];
-}
-
-#pragma mark - Sign In
-
-- (void) cancel:(id) sender
-{
- [self dismissViewControllerAnimated:YES completion:nil];
-}
-
-- (void) signin:(id) sender
-{
- for (UGFormTableViewCell *cell in self.cells) {
- [cell.textField resignFirstResponder];
- }
- [[NSUserDefaults standardUserDefaults] setObject:self.values forKey:@"usergrid"];
- [[NSUserDefaults standardUserDefaults] synchronize];
-
- UGConnection *connection = [UGConnection sharedConnection];
- connection.server = [self.values objectForKey:@"server"];
- connection.organization = [self.values objectForKey:@"organization"];
- connection.application = [self.values objectForKey:@"application"];
-
- [[[UGHTTPClient alloc] initWithRequest:
- [connection getAccessTokenForApplicationWithUsername:[self.values objectForKey:@"username"]
- password:[self.values objectForKey:@"password"]]]
- connectWithCompletionHandler:^(UGHTTPResult *result) {
- [connection authenticateWithResult:result];
- [self dismissViewControllerAnimated:YES completion:nil];
- }];
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/books-Info.plist
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/books-Info.plist b/sdks/ios/samples/Books/books/books-Info.plist
deleted file mode 100644
index f394f12..0000000
--- a/sdks/ios/samples/Books/books/books-Info.plist
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
--->
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>en</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIdentifier</key>
- <string>com.apigee.${PRODUCT_NAME:rfc1034identifier}</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>UIRequiredDeviceCapabilities</key>
- <array>
- <string>armv7</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/books-Prefix.pch
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/books-Prefix.pch b/sdks/ios/samples/Books/books/books-Prefix.pch
deleted file mode 100644
index 42d6379..0000000
--- a/sdks/ios/samples/Books/books/books-Prefix.pch
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// Prefix header for all source files of the 'books' target in the 'books' project
-//
-
-#import <Availability.h>
-
-#ifndef __IPHONE_3_0
-#warning "This project uses features only available in iOS SDK 3.0 and later."
-#endif
-
-#ifdef __OBJC__
- #import <UIKit/UIKit.h>
- #import <Foundation/Foundation.h>
-#endif
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/en.lproj/InfoPlist.strings
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/en.lproj/InfoPlist.strings b/sdks/ios/samples/Books/books/en.lproj/InfoPlist.strings
deleted file mode 100644
index 7004264..0000000
--- a/sdks/ios/samples/Books/books/en.lproj/InfoPlist.strings
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-*/
-
-/* Localized versions of Info.plist keys */
-
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Books/books/main.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Books/books/main.m b/sdks/ios/samples/Books/books/main.m
deleted file mode 100644
index a3b2f01..0000000
--- a/sdks/ios/samples/Books/books/main.m
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// main.m
-// books
-//
-
-#import <UIKit/UIKit.h>
-
-#import "AppDelegate.h"
-
-int main(int argc, char *argv[])
-{
- @autoreleasepool {
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
- }
-}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser.xcodeproj/project.pbxproj b/sdks/ios/samples/Browser/browser.xcodeproj/project.pbxproj
deleted file mode 100644
index 63320fd..0000000
--- a/sdks/ios/samples/Browser/browser.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,487 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 22FC709C1730595C00153630 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709B1730595C00153630 /* UIKit.framework */; };
- 22FC709E1730595C00153630 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709D1730595C00153630 /* Foundation.framework */; };
- 22FC70A01730595C00153630 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709F1730595C00153630 /* CoreGraphics.framework */; };
- 22FC70A61730595C00153630 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70A41730595C00153630 /* InfoPlist.strings */; };
- 22FC70A81730595C00153630 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70A71730595C00153630 /* main.m */; };
- 22FC70AE1730595C00153630 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70AD1730595C00153630 /* Default.png */; };
- 22FC70B01730595C00153630 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70AF1730595C00153630 /* Default@2x.png */; };
- 22FC70B21730595C00153630 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70B11730595C00153630 /* Default-568h@2x.png */; };
- 22FC70C41730639600153630 /* UGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70B91730639600153630 /* UGAppDelegate.m */; };
- 22FC70C51730639600153630 /* UGAppViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BB1730639600153630 /* UGAppViewController.m */; };
- 22FC70C61730639600153630 /* UGCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BD1730639600153630 /* UGCollectionViewController.m */; };
- 22FC70C71730639600153630 /* UGEntityViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BF1730639600153630 /* UGEntityViewController.m */; };
- 22FC70C81730639600153630 /* UGSignInViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70C11730639600153630 /* UGSignInViewController.m */; };
- 22FC70C91730639600153630 /* UGTextViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70C31730639600153630 /* UGTextViewController.m */; };
- 22FC70FD173063AF00153630 /* NSObject+SBJson.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70CD173063AF00153630 /* NSObject+SBJson.m */; };
- 22FC70FE173063AF00153630 /* SBJsonParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D0173063AF00153630 /* SBJsonParser.m */; };
- 22FC70FF173063AF00153630 /* SBJsonStreamParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */; };
- 22FC7100173063AF00153630 /* SBJsonStreamParserAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */; };
- 22FC7101173063AF00153630 /* SBJsonStreamParserAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */; };
- 22FC7102173063AF00153630 /* SBJsonStreamParserState.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */; };
- 22FC7103173063AF00153630 /* SBJsonStreamWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */; };
- 22FC7104173063AF00153630 /* SBJsonStreamWriterAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */; };
- 22FC7105173063AF00153630 /* SBJsonStreamWriterState.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */; };
- 22FC7106173063AF00153630 /* SBJsonTokeniser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */; };
- 22FC7107173063AF00153630 /* SBJsonUTF8Stream.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */; };
- 22FC7108173063AF00153630 /* SBJsonWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E4173063AF00153630 /* SBJsonWriter.m */; };
- 22FC7109173063AF00153630 /* UGActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E6173063AF00153630 /* UGActivity.m */; };
- 22FC710A173063AF00153630 /* UGClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E8173063AF00153630 /* UGClient.m */; };
- 22FC710B173063AF00153630 /* UGClientResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70EB173063AF00153630 /* UGClientResponse.m */; };
- 22FC710C173063AF00153630 /* UGHTTPManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70ED173063AF00153630 /* UGHTTPManager.m */; };
- 22FC710D173063AF00153630 /* UGMultiStepAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70EF173063AF00153630 /* UGMultiStepAction.m */; };
- 22FC710E173063AF00153630 /* UGQuery.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F1173063AF00153630 /* UGQuery.m */; };
- 22FC710F173063AF00153630 /* UGUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F3173063AF00153630 /* UGUser.m */; };
- 22FC7110173063AF00153630 /* UGConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F6173063AF00153630 /* UGConnection.m */; };
- 22FC7111173063AF00153630 /* UGHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F8173063AF00153630 /* UGHTTPClient.m */; };
- 22FC7112173063AF00153630 /* UGHTTPHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */; };
- 22FC7113173063AF00153630 /* UGHTTPResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70FC173063AF00153630 /* UGHTTPResult.m */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 22FC70981730595C00153630 /* browser.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = browser.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 22FC709B1730595C00153630 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 22FC709D1730595C00153630 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 22FC709F1730595C00153630 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 22FC70A31730595C00153630 /* browser-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "browser-Info.plist"; sourceTree = "<group>"; };
- 22FC70A51730595C00153630 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 22FC70A71730595C00153630 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 22FC70A91730595C00153630 /* browser-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "browser-Prefix.pch"; sourceTree = "<group>"; };
- 22FC70AD1730595C00153630 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
- 22FC70AF1730595C00153630 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
- 22FC70B11730595C00153630 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
- 22FC70B81730639600153630 /* UGAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGAppDelegate.h; sourceTree = "<group>"; };
- 22FC70B91730639600153630 /* UGAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGAppDelegate.m; sourceTree = "<group>"; };
- 22FC70BA1730639600153630 /* UGAppViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGAppViewController.h; sourceTree = "<group>"; };
- 22FC70BB1730639600153630 /* UGAppViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGAppViewController.m; sourceTree = "<group>"; };
- 22FC70BC1730639600153630 /* UGCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGCollectionViewController.h; sourceTree = "<group>"; };
- 22FC70BD1730639600153630 /* UGCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGCollectionViewController.m; sourceTree = "<group>"; };
- 22FC70BE1730639600153630 /* UGEntityViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGEntityViewController.h; sourceTree = "<group>"; };
- 22FC70BF1730639600153630 /* UGEntityViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGEntityViewController.m; sourceTree = "<group>"; };
- 22FC70C01730639600153630 /* UGSignInViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGSignInViewController.h; sourceTree = "<group>"; };
- 22FC70C11730639600153630 /* UGSignInViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGSignInViewController.m; sourceTree = "<group>"; };
- 22FC70C21730639600153630 /* UGTextViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGTextViewController.h; sourceTree = "<group>"; };
- 22FC70C31730639600153630 /* UGTextViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGTextViewController.m; sourceTree = "<group>"; };
- 22FC70CC173063AF00153630 /* NSObject+SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+SBJson.h"; sourceTree = "<group>"; };
- 22FC70CD173063AF00153630 /* NSObject+SBJson.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+SBJson.m"; sourceTree = "<group>"; };
- 22FC70CE173063AF00153630 /* SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJson.h; sourceTree = "<group>"; };
- 22FC70CF173063AF00153630 /* SBJsonParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonParser.h; sourceTree = "<group>"; };
- 22FC70D0173063AF00153630 /* SBJsonParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonParser.m; sourceTree = "<group>"; };
- 22FC70D1173063AF00153630 /* SBJsonStreamParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParser.h; sourceTree = "<group>"; };
- 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParser.m; sourceTree = "<group>"; };
- 22FC70D3173063AF00153630 /* SBJsonStreamParserAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAccumulator.h; sourceTree = "<group>"; };
- 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAccumulator.m; sourceTree = "<group>"; };
- 22FC70D5173063AF00153630 /* SBJsonStreamParserAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAdapter.h; sourceTree = "<group>"; };
- 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAdapter.m; sourceTree = "<group>"; };
- 22FC70D7173063AF00153630 /* SBJsonStreamParserState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserState.h; sourceTree = "<group>"; };
- 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserState.m; sourceTree = "<group>"; };
- 22FC70D9173063AF00153630 /* SBJsonStreamWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriter.h; sourceTree = "<group>"; };
- 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriter.m; sourceTree = "<group>"; };
- 22FC70DB173063AF00153630 /* SBJsonStreamWriterAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterAccumulator.h; sourceTree = "<group>"; };
- 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterAccumulator.m; sourceTree = "<group>"; };
- 22FC70DD173063AF00153630 /* SBJsonStreamWriterState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterState.h; sourceTree = "<group>"; };
- 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterState.m; sourceTree = "<group>"; };
- 22FC70DF173063AF00153630 /* SBJsonTokeniser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonTokeniser.h; sourceTree = "<group>"; };
- 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonTokeniser.m; sourceTree = "<group>"; };
- 22FC70E1173063AF00153630 /* SBJsonUTF8Stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonUTF8Stream.h; sourceTree = "<group>"; };
- 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonUTF8Stream.m; sourceTree = "<group>"; };
- 22FC70E3173063AF00153630 /* SBJsonWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonWriter.h; sourceTree = "<group>"; };
- 22FC70E4173063AF00153630 /* SBJsonWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonWriter.m; sourceTree = "<group>"; };
- 22FC70E5173063AF00153630 /* UGActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGActivity.h; sourceTree = "<group>"; };
- 22FC70E6173063AF00153630 /* UGActivity.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGActivity.m; sourceTree = "<group>"; };
- 22FC70E7173063AF00153630 /* UGClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClient.h; sourceTree = "<group>"; };
- 22FC70E8173063AF00153630 /* UGClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClient.m; sourceTree = "<group>"; };
- 22FC70E9173063AF00153630 /* UGClientDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClientDelegate.h; sourceTree = "<group>"; };
- 22FC70EA173063AF00153630 /* UGClientResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClientResponse.h; sourceTree = "<group>"; };
- 22FC70EB173063AF00153630 /* UGClientResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClientResponse.m; sourceTree = "<group>"; };
- 22FC70EC173063AF00153630 /* UGHTTPManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPManager.h; sourceTree = "<group>"; };
- 22FC70ED173063AF00153630 /* UGHTTPManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPManager.m; sourceTree = "<group>"; };
- 22FC70EE173063AF00153630 /* UGMultiStepAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGMultiStepAction.h; sourceTree = "<group>"; };
- 22FC70EF173063AF00153630 /* UGMultiStepAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGMultiStepAction.m; sourceTree = "<group>"; };
- 22FC70F0173063AF00153630 /* UGQuery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGQuery.h; sourceTree = "<group>"; };
- 22FC70F1173063AF00153630 /* UGQuery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGQuery.m; sourceTree = "<group>"; };
- 22FC70F2173063AF00153630 /* UGUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGUser.h; sourceTree = "<group>"; };
- 22FC70F3173063AF00153630 /* UGUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGUser.m; sourceTree = "<group>"; };
- 22FC70F5173063AF00153630 /* UGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGConnection.h; sourceTree = "<group>"; };
- 22FC70F6173063AF00153630 /* UGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGConnection.m; sourceTree = "<group>"; };
- 22FC70F7173063AF00153630 /* UGHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPClient.h; sourceTree = "<group>"; };
- 22FC70F8173063AF00153630 /* UGHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPClient.m; sourceTree = "<group>"; };
- 22FC70F9173063AF00153630 /* UGHTTPHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPHelpers.h; sourceTree = "<group>"; };
- 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPHelpers.m; sourceTree = "<group>"; };
- 22FC70FB173063AF00153630 /* UGHTTPResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPResult.h; sourceTree = "<group>"; };
- 22FC70FC173063AF00153630 /* UGHTTPResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPResult.m; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 22FC70951730595C00153630 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 22FC709C1730595C00153630 /* UIKit.framework in Frameworks */,
- 22FC709E1730595C00153630 /* Foundation.framework in Frameworks */,
- 22FC70A01730595C00153630 /* CoreGraphics.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 22FC708F1730595C00153630 = {
- isa = PBXGroup;
- children = (
- 22FC70CA173063AF00153630 /* UGAPI */,
- 22FC70A11730595C00153630 /* browser */,
- 22FC709A1730595C00153630 /* Frameworks */,
- 22FC70991730595C00153630 /* Products */,
- );
- sourceTree = "<group>";
- };
- 22FC70991730595C00153630 /* Products */ = {
- isa = PBXGroup;
- children = (
- 22FC70981730595C00153630 /* browser.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 22FC709A1730595C00153630 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 22FC709B1730595C00153630 /* UIKit.framework */,
- 22FC709D1730595C00153630 /* Foundation.framework */,
- 22FC709F1730595C00153630 /* CoreGraphics.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 22FC70A11730595C00153630 /* browser */ = {
- isa = PBXGroup;
- children = (
- 22FC70B81730639600153630 /* UGAppDelegate.h */,
- 22FC70B91730639600153630 /* UGAppDelegate.m */,
- 22FC70BA1730639600153630 /* UGAppViewController.h */,
- 22FC70BB1730639600153630 /* UGAppViewController.m */,
- 22FC70BC1730639600153630 /* UGCollectionViewController.h */,
- 22FC70BD1730639600153630 /* UGCollectionViewController.m */,
- 22FC70BE1730639600153630 /* UGEntityViewController.h */,
- 22FC70BF1730639600153630 /* UGEntityViewController.m */,
- 22FC70C01730639600153630 /* UGSignInViewController.h */,
- 22FC70C11730639600153630 /* UGSignInViewController.m */,
- 22FC70C21730639600153630 /* UGTextViewController.h */,
- 22FC70C31730639600153630 /* UGTextViewController.m */,
- 22FC70A21730595C00153630 /* Supporting Files */,
- );
- path = browser;
- sourceTree = "<group>";
- };
- 22FC70A21730595C00153630 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 22FC70A31730595C00153630 /* browser-Info.plist */,
- 22FC70A41730595C00153630 /* InfoPlist.strings */,
- 22FC70A71730595C00153630 /* main.m */,
- 22FC70A91730595C00153630 /* browser-Prefix.pch */,
- 22FC70AD1730595C00153630 /* Default.png */,
- 22FC70AF1730595C00153630 /* Default@2x.png */,
- 22FC70B11730595C00153630 /* Default-568h@2x.png */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
- 22FC70CA173063AF00153630 /* UGAPI */ = {
- isa = PBXGroup;
- children = (
- 22FC70CB173063AF00153630 /* SBJson */,
- 22FC70E5173063AF00153630 /* UGActivity.h */,
- 22FC70E6173063AF00153630 /* UGActivity.m */,
- 22FC70E7173063AF00153630 /* UGClient.h */,
- 22FC70E8173063AF00153630 /* UGClient.m */,
- 22FC70E9173063AF00153630 /* UGClientDelegate.h */,
- 22FC70EA173063AF00153630 /* UGClientResponse.h */,
- 22FC70EB173063AF00153630 /* UGClientResponse.m */,
- 22FC70EC173063AF00153630 /* UGHTTPManager.h */,
- 22FC70ED173063AF00153630 /* UGHTTPManager.m */,
- 22FC70EE173063AF00153630 /* UGMultiStepAction.h */,
- 22FC70EF173063AF00153630 /* UGMultiStepAction.m */,
- 22FC70F0173063AF00153630 /* UGQuery.h */,
- 22FC70F1173063AF00153630 /* UGQuery.m */,
- 22FC70F2173063AF00153630 /* UGUser.h */,
- 22FC70F3173063AF00153630 /* UGUser.m */,
- 22FC70F4173063AF00153630 /* v2 */,
- );
- name = UGAPI;
- path = ../../UGAPI;
- sourceTree = "<group>";
- };
- 22FC70CB173063AF00153630 /* SBJson */ = {
- isa = PBXGroup;
- children = (
- 22FC70CC173063AF00153630 /* NSObject+SBJson.h */,
- 22FC70CD173063AF00153630 /* NSObject+SBJson.m */,
- 22FC70CE173063AF00153630 /* SBJson.h */,
- 22FC70CF173063AF00153630 /* SBJsonParser.h */,
- 22FC70D0173063AF00153630 /* SBJsonParser.m */,
- 22FC70D1173063AF00153630 /* SBJsonStreamParser.h */,
- 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */,
- 22FC70D3173063AF00153630 /* SBJsonStreamParserAccumulator.h */,
- 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */,
- 22FC70D5173063AF00153630 /* SBJsonStreamParserAdapter.h */,
- 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */,
- 22FC70D7173063AF00153630 /* SBJsonStreamParserState.h */,
- 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */,
- 22FC70D9173063AF00153630 /* SBJsonStreamWriter.h */,
- 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */,
- 22FC70DB173063AF00153630 /* SBJsonStreamWriterAccumulator.h */,
- 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */,
- 22FC70DD173063AF00153630 /* SBJsonStreamWriterState.h */,
- 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */,
- 22FC70DF173063AF00153630 /* SBJsonTokeniser.h */,
- 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */,
- 22FC70E1173063AF00153630 /* SBJsonUTF8Stream.h */,
- 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */,
- 22FC70E3173063AF00153630 /* SBJsonWriter.h */,
- 22FC70E4173063AF00153630 /* SBJsonWriter.m */,
- );
- path = SBJson;
- sourceTree = "<group>";
- };
- 22FC70F4173063AF00153630 /* v2 */ = {
- isa = PBXGroup;
- children = (
- 22FC70F5173063AF00153630 /* UGConnection.h */,
- 22FC70F6173063AF00153630 /* UGConnection.m */,
- 22FC70F7173063AF00153630 /* UGHTTPClient.h */,
- 22FC70F8173063AF00153630 /* UGHTTPClient.m */,
- 22FC70F9173063AF00153630 /* UGHTTPHelpers.h */,
- 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */,
- 22FC70FB173063AF00153630 /* UGHTTPResult.h */,
- 22FC70FC173063AF00153630 /* UGHTTPResult.m */,
- );
- path = v2;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 22FC70971730595C00153630 /* browser */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 22FC70B51730595C00153630 /* Build configuration list for PBXNativeTarget "browser" */;
- buildPhases = (
- 22FC70941730595C00153630 /* Sources */,
- 22FC70951730595C00153630 /* Frameworks */,
- 22FC70961730595C00153630 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = browser;
- productName = browser;
- productReference = 22FC70981730595C00153630 /* browser.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 22FC70901730595C00153630 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0460;
- ORGANIZATIONNAME = "Radtastical Inc.";
- };
- buildConfigurationList = 22FC70931730595C00153630 /* Build configuration list for PBXProject "browser" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- );
- mainGroup = 22FC708F1730595C00153630;
- productRefGroup = 22FC70991730595C00153630 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 22FC70971730595C00153630 /* browser */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 22FC70961730595C00153630 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 22FC70A61730595C00153630 /* InfoPlist.strings in Resources */,
- 22FC70AE1730595C00153630 /* Default.png in Resources */,
- 22FC70B01730595C00153630 /* Default@2x.png in Resources */,
- 22FC70B21730595C00153630 /* Default-568h@2x.png in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 22FC70941730595C00153630 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 22FC70A81730595C00153630 /* main.m in Sources */,
- 22FC70C41730639600153630 /* UGAppDelegate.m in Sources */,
- 22FC70C51730639600153630 /* UGAppViewController.m in Sources */,
- 22FC70C61730639600153630 /* UGCollectionViewController.m in Sources */,
- 22FC70C71730639600153630 /* UGEntityViewController.m in Sources */,
- 22FC70C81730639600153630 /* UGSignInViewController.m in Sources */,
- 22FC70C91730639600153630 /* UGTextViewController.m in Sources */,
- 22FC70FD173063AF00153630 /* NSObject+SBJson.m in Sources */,
- 22FC70FE173063AF00153630 /* SBJsonParser.m in Sources */,
- 22FC70FF173063AF00153630 /* SBJsonStreamParser.m in Sources */,
- 22FC7100173063AF00153630 /* SBJsonStreamParserAccumulator.m in Sources */,
- 22FC7101173063AF00153630 /* SBJsonStreamParserAdapter.m in Sources */,
- 22FC7102173063AF00153630 /* SBJsonStreamParserState.m in Sources */,
- 22FC7103173063AF00153630 /* SBJsonStreamWriter.m in Sources */,
- 22FC7104173063AF00153630 /* SBJsonStreamWriterAccumulator.m in Sources */,
- 22FC7105173063AF00153630 /* SBJsonStreamWriterState.m in Sources */,
- 22FC7106173063AF00153630 /* SBJsonTokeniser.m in Sources */,
- 22FC7107173063AF00153630 /* SBJsonUTF8Stream.m in Sources */,
- 22FC7108173063AF00153630 /* SBJsonWriter.m in Sources */,
- 22FC7109173063AF00153630 /* UGActivity.m in Sources */,
- 22FC710A173063AF00153630 /* UGClient.m in Sources */,
- 22FC710B173063AF00153630 /* UGClientResponse.m in Sources */,
- 22FC710C173063AF00153630 /* UGHTTPManager.m in Sources */,
- 22FC710D173063AF00153630 /* UGMultiStepAction.m in Sources */,
- 22FC710E173063AF00153630 /* UGQuery.m in Sources */,
- 22FC710F173063AF00153630 /* UGUser.m in Sources */,
- 22FC7110173063AF00153630 /* UGConnection.m in Sources */,
- 22FC7111173063AF00153630 /* UGHTTPClient.m in Sources */,
- 22FC7112173063AF00153630 /* UGHTTPHelpers.m in Sources */,
- 22FC7113173063AF00153630 /* UGHTTPResult.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 22FC70A41730595C00153630 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 22FC70A51730595C00153630 /* en */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 22FC70B31730595C00153630 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 6.1;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 22FC70B41730595C00153630 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 6.1;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 22FC70B61730595C00153630 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "browser/browser-Prefix.pch";
- INFOPLIST_FILE = "browser/browser-Info.plist";
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 22FC70B71730595C00153630 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "browser/browser-Prefix.pch";
- INFOPLIST_FILE = "browser/browser-Info.plist";
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 22FC70931730595C00153630 /* Build configuration list for PBXProject "browser" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 22FC70B31730595C00153630 /* Debug */,
- 22FC70B41730595C00153630 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 22FC70B51730595C00153630 /* Build configuration list for PBXNativeTarget "browser" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 22FC70B61730595C00153630 /* Debug */,
- 22FC70B71730595C00153630 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 22FC70901730595C00153630 /* Project object */;
-}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/Default-568h@2x.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/Default-568h@2x.png b/sdks/ios/samples/Browser/browser/Default-568h@2x.png
deleted file mode 100644
index 0891b7a..0000000
Binary files a/sdks/ios/samples/Browser/browser/Default-568h@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/Default.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/Default.png b/sdks/ios/samples/Browser/browser/Default.png
deleted file mode 100644
index 4c8ca6f..0000000
Binary files a/sdks/ios/samples/Browser/browser/Default.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/Default@2x.png
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/Default@2x.png b/sdks/ios/samples/Browser/browser/Default@2x.png
deleted file mode 100644
index 35b84cf..0000000
Binary files a/sdks/ios/samples/Browser/browser/Default@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGAppDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGAppDelegate.h b/sdks/ios/samples/Browser/browser/UGAppDelegate.h
deleted file mode 100644
index fb1453f..0000000
--- a/sdks/ios/samples/Browser/browser/UGAppDelegate.h
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// UGAppDelegate.h
-// Browser
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-@interface UGAppDelegate : UIResponder <UIApplicationDelegate>
-
-@property (strong, nonatomic) UIWindow *window;
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGAppDelegate.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGAppDelegate.m b/sdks/ios/samples/Browser/browser/UGAppDelegate.m
deleted file mode 100644
index 246a860..0000000
--- a/sdks/ios/samples/Browser/browser/UGAppDelegate.m
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// UGAppDelegate.m
-// Browser
-//
-
-#import "UGAppDelegate.h"
-#import "UGAppViewController.h"
-
-@implementation UGAppDelegate
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- UINavigationController *navigationController = [[UINavigationController alloc]
- initWithRootViewController:[[UGAppViewController alloc] init]];
- navigationController.navigationBar.tintColor = [UIColor darkGrayColor];
- self.window.rootViewController = navigationController;
- [self.window makeKeyAndVisible];
- return YES;
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGAppViewController.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGAppViewController.h b/sdks/ios/samples/Browser/browser/UGAppViewController.h
deleted file mode 100644
index 7f26de9..0000000
--- a/sdks/ios/samples/Browser/browser/UGAppViewController.h
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// UGAppViewController.h
-// Browser
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-@interface UGAppViewController : UITableViewController
-@property (nonatomic, strong) NSDictionary *application;
-
-
-- (void) downloadApplicationDescription;
-
-@end
-
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGAppViewController.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGAppViewController.m b/sdks/ios/samples/Browser/browser/UGAppViewController.m
deleted file mode 100644
index b298fe1..0000000
--- a/sdks/ios/samples/Browser/browser/UGAppViewController.m
+++ /dev/null
@@ -1,143 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// UGAppViewController.m
-// Browser
-//
-
-#import "UGHTTPClient.h"
-#import "UGHTTPResult.h"
-#import "UGConnection.h"
-#import "UGAppViewController.h"
-#import "UGSignInViewController.h"
-#import "UGCollectionViewController.h"
-
-@interface UGAppViewController ()
-
-@end
-
-@implementation UGAppViewController
-
-- (void) loadView
-{
- [super loadView];
- self.navigationItem.title = @"Usergrid";
- self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
- initWithTitle:@"Connection"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(connect:)];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
- return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
- } else {
- return YES;
- }
-}
-
-- (void) connect:(id) sender
-{
- UGSignInViewController *signinViewController = [[UGSignInViewController alloc] init];
- signinViewController.appViewController = self;
- UINavigationController *signinNavigationController =
- [[UINavigationController alloc] initWithRootViewController:signinViewController];
- signinNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
- signinNavigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
- [self presentModalViewController:signinNavigationController animated:YES];
-}
-
-- (void) downloadApplicationDescription
-{
- UGConnection *usergrid = [UGConnection sharedConnection];
- [[[UGHTTPClient alloc]
- initWithRequest:[usergrid getApplication:usergrid.application inOrganization:usergrid.organization]]
- connectWithCompletionHandler:^(UGHTTPResult *result) {
- self.application = result.object[@"entities"][0];
- [self.tableView reloadData];
- }];
-}
-
-- (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView
-{
- return self.application ? 2 : 0;
-}
-
-- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- if (section == 0) {
- return self.application ? 1 : 0;
- } else if (section == 1) {
- return self.application ? [self.application[@"metadata"][@"collections"] count] : 0;
- } else {
- return 0;
- }
-}
-
-- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
- UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
- cell.backgroundColor = [UIColor whiteColor];
- return cell;
-}
-
-- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
-{
- if ([indexPath section] == 0) {
- cell.textLabel.text = self.application[@"name"];
- cell.accessoryType = UITableViewCellAccessoryNone;
- } else {
- NSDictionary *collections = self.application[@"metadata"][@"collections"];
- NSString *key = [[[collections allKeys] sortedArrayUsingSelector:@selector(compare:)] objectAtIndex:[indexPath row]];
- NSDictionary *object = collections[key];
- cell.textLabel.text = [NSString stringWithFormat:@"%@",
- object[@"title"]];
- cell.detailTextLabel.text = [NSString stringWithFormat:@"name:%@ type:%@",
- object[@"name"],
- object[@"type"]];
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- }
- cell.backgroundColor = [UIColor whiteColor];
- cell.selectionStyle = UITableViewCellSelectionStyleGray;
-}
-
-- (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
-{
- if (section == 0) {
- return @"Application";
- } else {
- return @"Collections";
- }
-}
-
-- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
-{
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- if ([indexPath section] == 1) {
- NSDictionary *collections = self.application[@"metadata"][@"collections"];
- NSString *key = [[[collections allKeys] sortedArrayUsingSelector:@selector(compare:)] objectAtIndex:[indexPath row]];
- NSDictionary *collection = collections[key];
- UGCollectionViewController *collectionViewController = [[UGCollectionViewController alloc] init];
- collectionViewController.collection = collection;
- [self.navigationController pushViewController:collectionViewController animated:YES];
- }
-}
-
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGCollectionViewController.h
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGCollectionViewController.h b/sdks/ios/samples/Browser/browser/UGCollectionViewController.h
deleted file mode 100644
index 1b0074b..0000000
--- a/sdks/ios/samples/Browser/browser/UGCollectionViewController.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// UGCollectionViewController.h
-// Browser
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-@interface UGCollectionViewController : UITableViewController
-@property (nonatomic, strong) NSDictionary *collection;
-@property (nonatomic, strong) NSDictionary *collectionDetail;
-@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/Browser/browser/UGCollectionViewController.m
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/Browser/browser/UGCollectionViewController.m b/sdks/ios/samples/Browser/browser/UGCollectionViewController.m
deleted file mode 100644
index 720bd09..0000000
--- a/sdks/ios/samples/Browser/browser/UGCollectionViewController.m
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-//
-// UGCollectionViewController.m
-// Browser
-//
-
-#import "UGHTTPClient.h"
-#import "UGHTTPResult.h"
-#import "UGConnection.h"
-#import "UGCollectionViewController.h"
-#import "UGEntityViewController.h"
-
-@interface UGCollectionViewController ()
-
-@end
-
-@implementation UGCollectionViewController
-
-- (id)initWithStyle:(UITableViewStyle)style
-{
- self = [super initWithStyle:style];
- if (self) {
- // Custom initialization
- }
- return self;
-}
-
-- (void) loadView
-{
- [super loadView];
-}
-
-- (void)didReceiveMemoryWarning
-{
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
-}
-
-- (void) getCollection
-{
- [[[UGHTTPClient alloc] initWithRequest:[[UGConnection sharedConnection]
- getEntitiesInCollection:self.collection[@"name"]
- limit:200]]
- connectWithCompletionHandler:^(UGHTTPResult *result) {
- self.collectionDetail = result.object;
- [self.tableView reloadData];
- self.navigationItem.title = result.object[@"path"];
- }];
-}
-
-- (void) viewWillAppear:(BOOL)animated
-{
- [self getCollection];
-}
-
-#pragma mark - Table view data source
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
-{
- return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- if (!self.collectionDetail) {
- return 0;
- } else {
- return [self.collectionDetail[@"count"] intValue];
- }
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
- UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
- cell.textLabel.font = [UIFont boldSystemFontOfSize:14];
- return cell;
-}
-
-- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
-{
- int row = [indexPath row];
- NSDictionary *entity = self.collectionDetail[@"entities"][row];
- cell.textLabel.text = entity[@"name"];
- cell.detailTextLabel.text = entity[@"uuid"];
-}
-
-
-
-#pragma mark - Table view delegate
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
-{
- UGEntityViewController *entityViewController = [[UGEntityViewController alloc] init];
- int row = [indexPath row];
- entityViewController.entity = self.collectionDetail[@"entities"][row];
- [self.navigationController pushViewController:entityViewController animated:YES];
-}
-
-@end
[33/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGClient.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGClient.h b/sdks/other/ios/UGAPI/UGClient.h
new file mode 100755
index 0000000..4e6a31f
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGClient.h
@@ -0,0 +1,328 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "UGClientResponse.h"
+#import "UGQuery.h"
+#import "UGActivity.h"
+#import "UGUser.h"
+
+/******************** A WORD ON NETWORK COMMUNICATION CALLS ****************
+Some calls require network communication with UserGrid. Therefore,
+they all have the option of being synchronous (blocking) or asynchronous.
+
+You may specify an asynchronous delegate with the call setDelegate. If you
+do, all calls will be asynchronous and responses will be sent to that delegate.
+The immediate return value (a UGClientResponse *) from any call will have its
+transactionState set to kUGClientResponsePending, and the transactionID will be
+properly set (allowing you to identify the specific call in your callback if you
+wish.)
+
+The delegate must support the following message:
+-(void)ugClientResponse:(UGClientResponse *)response
+
+If you do not set a delegate, all functions will run synchronously, blocking
+until a response has been received or an error detected.
+****************************************************************************/
+
+
+/**************************** A WORD ON UGQUERY *****************************
+Some calls take a UGQuery *. These are functions that return a lot of data, as
+opposed to a simple answer. You may use the UGQuery to control the data with filters
+and response limits. See UGQuery.h for more information.
+
+In all cases, where a UGQuery is one of the parameters, you may send nil. If you
+do, the query will be completely unfiltered, and you will receive back *all* the data
+associated with the operation, up to the response limit, which is 10. You can
+set the response limit in UGQuery as well.
+****************************************************************************/
+
+
+@interface UGClient : NSObject
+
++(NSString *) version;
+
+/********************* INIT AND SETUP *********************/
+// init with an app ID
+-(id) initWithOrganizationId: (NSString *)organizationID withApplicationID:(NSString *)applicationID;
+
+// init with an app ID and a base UserGrid URL. This is useful if you
+// are running a local UG server or your company has its own public
+// UG server. The default URL is http://api.usergrid.com. The base URL
+// must be a fully formated http link, including the "http://" at the
+// beginning.
+-(id) initWithOrganizationId: (NSString *)organizationID withApplicationID:(NSString *)applicationID baseURL:(NSString *)baseURL;
+
+// set the delegate. See "A WORD ON NETWORK COMMUNICATION CALLS"
+// at the top of the file for a detailed explanation. The function
+// will return NO if the delegate is rejected. This means the delegate
+// does not support the required delegation function "ugClientResponse".
+//
+// This is the formal declaration of ugClientResponse:
+// -(void)ugClientResponse:(UGClientResponse *)response
+//
+// You may change the delegate at any time, but be forewarned that any
+// pending transactions in progress will be abandoned. Changing the delegate
+// (especially setting it to nil) ensures that hte previous delegate will
+// receive no further messages from this instance of UGClient.
+//
+// Setting the delegate to nil puts the API in to synchronous mode.
+-(BOOL) setDelegate:(id)delegate;
+
+
+/********************* LOGIN / LOGOUT *********************/
+// log in with the given username and password
+-(UGClientResponse *)logInUser: (NSString *)userName password:(NSString *)password;
+
+// log in with the given username and PIN value
+-(UGClientResponse *)logInUserWithPin: (NSString *)userName pin:(NSString *)pin;
+
+// log in user with Facebook token
+//
+// //sample usage:
+// NSString * facebookToken = @"your-facebook-token";
+// UGClientResponse *response = [usergridClient logInUserWithFacebook:facebookToken];
+// user = [usergridClient getLoggedInUser];
+// if (user.username){
+// return true;
+// } else {
+// return false;
+// }
+//
+-(UGClientResponse *)logInUserWithFacebook: (NSString *)facebookToken;
+
+// log in as the administrator of the application. Generally used for applications
+// that have an "administrator" feature. Not the sort of thing you want normal
+// users doing.
+-(UGClientResponse *)logInAdmin: (NSString *)adminUserName secret:(NSString *)adminSecret;
+
+// log out the current user. The Client only supports one user logged in at a time.
+// You can have multiple instances of UGClient if you want multiple
+// users doing transactions simultaneously. This does not require network communication,
+// so it has no return. It doesn't actually "log out" from the server. It simply clears
+// the locally stored auth information
+-(void)logOut;
+
+
+
+/********************* USER MANAGEMENT *********************/
+//adds a new user
+-(UGClientResponse *)addUser:(NSString *)username email:(NSString *)email name:(NSString *)name password:(NSString *)password;
+
+// updates a user's password
+-(UGClientResponse *)updateUserPassword:(NSString *)usernameOrEmail oldPassword:(NSString *)oldPassword newPassword:(NSString *)newPassword;
+
+// get all the groups this user is in
+-(UGClientResponse *)getGroupsForUser: (NSString *)userID;
+
+// get users in this app. Definitely want to consider sending a Query along
+// with this call
+-(UGClientResponse *)getUsers: (UGQuery *)query;
+
+/********************* ACTIVITY MANAGEMENT *********************/
+// create a new activity.
+// Note that there is a class, UGActivity, which can help
+// you create and validate an Activity, and will generate the needed
+// NSDictionary for you.
+-(UGClientResponse *)createActivity: (NSDictionary *)activity;
+
+// create an activity and post it to a user in a single step. See comment
+// above createActivity for information on making Activity creation easier
+-(UGClientResponse *)postUserActivity: (NSString *)userID activity:(NSDictionary *)activity;
+
+// post an already-created activity to a user
+-(UGClientResponse *)postUserActivityByUUID: (NSString *)userID activity:(NSString *)activityUUID;
+
+// create an activity and post it to a group in a single step. See comment
+// above createActivity for information on making Activity creation easier
+-(UGClientResponse *)postGroupActivity: (NSString *)groupID activity:(NSDictionary *)activity;
+
+// post an already-created activity to a group
+-(UGClientResponse *)postGroupActivityByUUID: (NSString *)groupID activity:(NSString *)activityUUID;
+
+// get the activities this user is in
+-(UGClientResponse *)getActivitiesForUser: (NSString *)userID query:(UGQuery *)query;
+
+// get the activities this group is in
+-(UGClientResponse *)getActivitiesForGroup: (NSString *)groupID query:(UGQuery *)query;
+
+// get the activity feed for a user
+-(UGClientResponse *)getActivityFeedForUser: (NSString *)userID query:(UGQuery *)query;
+
+// get the activity feed for a group
+-(UGClientResponse *)getActivityFeedForGroup: (NSString *)groupID query:(UGQuery *)query;
+
+// remove an activity
+-(UGClientResponse *)removeActivity:(NSString *)activityUUID;
+
+/********************* GROUP MANAGEMENT *********************/
+// create a new group. The groupPath can be a path with slashes to make for
+// a hierarchical structure of your own design (if you want). groupTitle is
+// optional, you can send nil if you don't want to provide one.
+-(UGClientResponse *)createGroup:(NSString *)groupPath groupTitle:(NSString *)groupTitle;
+
+// add a user to a group
+-(UGClientResponse *)addUserToGroup:(NSString *)userID group:(NSString *)groupID;
+
+// remove a user from a group
+-(UGClientResponse *)removeUserFromGroup:(NSString *)userID group:(NSString *)groupID;
+
+// get all the users in this group
+-(UGClientResponse *)getUsersForGroup:(NSString *)groupID query:(UGQuery *)query;
+
+
+
+/******************** ENTITY MANAGEMENT ********************/
+// adds an entity to the specified collection.
+-(UGClientResponse *)createEntity: (NSDictionary *)newEntity;
+
+// get a list of entities that meet the specified query.
+-(UGClientResponse *)getEntities: (NSString *)type query:(UGQuery *)query;
+
+// updates an entity (it knows the type from the entity data)
+-(UGClientResponse *)updateEntity: (NSString *)entityID entity:(NSDictionary *)updatedEntity;
+
+// removes an entity of the specified type
+-(UGClientResponse *)removeEntity: (NSString *)type entityID:(NSString *)entityID;
+
+// Directionally connect two entities. For instance, user "Bob" might like Lyons Restaurant.
+// connectorType would be "users" (because Bob is a user)
+// connectorID would be Bob's userID
+// connectionType would be "like"
+// connecteeID would be the UUID of Lyons Restaurant
+-(UGClientResponse *)connectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID type:(NSString *)connectionType connecteeID:(NSString *)connecteeID;
+
+// Directionally connect two entities. For instance, user "Bob" might follow user "Mary".
+// connectorType would be "users" (because Bob is a user)
+// connectorID would be Bob's userID
+// connectionType would be "like"
+// connecteeType would be "users" (because Mary is a user)
+// connecteeID would be Mary's userID
+-(UGClientResponse *)connectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID connectionType:(NSString *)connectionType connecteeType:(NSString *)connecteeType connecteeID:(NSString *)connecteeID;
+
+// disconnect two entities. It uses the same parameters and calling rules as connectEntities
+-(UGClientResponse *)disconnectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID type:(NSString *)connectionType connecteeID:(NSString *)connecteeID;
+
+// get entity connections
+-(UGClientResponse *)getEntityConnections: (NSString *)connectorType connectorID:(NSString *)connectorID connectionType:(NSString *)connectionType query:(UGQuery *)query;
+
+
+
+/********************* MESSAGE MANAGEMENT *********************/
+// post a message to a given queue
+-(UGClientResponse *)postMessage: (NSString *)queuePath message:(NSDictionary *)message;
+
+// get all messages from the queue path
+-(UGClientResponse *)getMessages: (NSString *)queuePath query:(UGQuery *)query;
+
+// add a subscriber to a queue
+-(UGClientResponse *)addSubscriber: (NSString *)queuePath subscriberPath:(NSString *)subscriberPath;
+
+// remove a subscriber from a queue
+-(UGClientResponse *)removeSubscriber: (NSString *)queuePath subscriberPath:(NSString *)subscriberPath;
+
+
+/********************* SERVER-SIDE STORAGE *********************/
+// these functions refer to data that can be put in a special place
+// specific to this device. Every call to remoteStorage replaces whatever
+// was there before
+
+// put the data in to the remote storage
+-(UGClientResponse *)setRemoteStorage: (NSDictionary *)data;
+
+// get the data from remote storage
+-(UGClientResponse *)getRemoteStorage;
+
+// a class function that returns a uuid for this
+// device. It will be globally unique, and will always
+// return the same value for the same handset.
+// NOTE - This value will change if the operating
+// system is reinstalled. This function is used internally, but
+// is also handy for clients, so it is part of the interface.
++(NSString *)getUniqueDeviceID;
+
+/***************** REMOTE PUSH NOTIFICATIONS *****************/
+
+// call from application:didRegisterForRemoteNotificationsWithDeviceToken: callback
+// will automatically register the passed deviceToken with the usergrid system
+// using the getUniqueDeviceID method to associate this device on the server
+- (UGClientResponse *)setDevicePushToken:(NSData *)newDeviceToken forNotifier:(NSString *)notifier;
+
+// push an "alert" type notification to the remote group, user, or device specified
+// in the path argument. the notifer may be a name or UUID of an apns notifier
+// that has been set up on the usergrid server.
+- (UGClientResponse *)pushAlert:(NSString *)message
+ withSound:(NSString *)sound
+ to:(NSString *)path
+ usingNotifier:(NSString *)notifier;
+
+/*********************** ACCESSORS ************************/
+// if a user is logged in, this returns the OAuth token for this session.
+// UGClient manages this internally, so you never really need it. But if you
+// want it for other reasons, this accessor gives it to you. If you have not
+// successfully logged in, this will return nil
+-(NSString *)getAccessToken;
+
+// returns information about the logged in user
+-(UGUser *)getLoggedInUser;
+
+// returns the delegate that is currently being used for asynch
+// calls. Returns nil if there is no delegate (synch mode)
+-(id) getDelegate;
+
+/*********************** OBLIQUE USAGE ************************/
+// This is a general purpose function for directly accessing the
+// UserGrid service. This is useful if the service has new features
+// that the API has not yet supported, or if you are using an older
+// version of the API and don't want to upgrade.
+//
+// url: The full URL that you are accessing. You are responsible for
+// assembling it, including the appID and all sub-sections down the line
+//
+// op: The HttpMethod being invoked. Examples: @"POST", @"PUT", etc. You may
+// send nil. If you do, the operation is GET. There is one specially supported
+// method called "POSTFORM". This will post with the data type set to
+// application/x-www-form-urlencoded instead of the more likely needed
+// application/json. This is necessary if you are doing authentication
+// or if you are sending form data up.
+//
+// opData: The data sent along with the operation. You may send nil. If the
+// operation is GET, this value is ignored. Usually, this would be
+// expected to be in json format. With this oblique approach, it is
+// your responsibility to format the data correctly for whatever you're
+// doing. Bear in mind that this api comes with SBJson, which provides
+// some very simple ways to assemble json formatted strings. See SBJsonWriter.
+//
+// NOTE - This function will be synchronous or asynchronous the same as any
+// other function in the API. It is based on the value sent to setDelegate.
+-(UGClientResponse *)apiRequest: (NSString *)url operation:(NSString *)op data:(NSString *)opData;
+
+/*********************** DEBUGGING ASSISTANCE ************************/
+// when logging is on, all outgoing URLs are logged via NSLog, and all
+// incoming data from the service is also logged. Additionally, any errors
+// encountered internally are logged. This can be helpful to see the actual
+// service communication in progress and help debug problems you may be having.
+-(void)setLogging: (BOOL)loggingState;
+
+/*********************** VERSION CHECKING ************************/
+#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
+#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
+#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
+#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
+#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGClient.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGClient.m b/sdks/other/ios/UGAPI/UGClient.m
new file mode 100755
index 0000000..9d6407a
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGClient.m
@@ -0,0 +1,1252 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGClient.h"
+#import "UGHTTPManager.h"
+#import "SBJson.h"
+#import "UGMultiStepAction.h"
+#import "SSKeychain.h"
+
+NSString *g_deviceUUID = nil;
+
+@implementation UGClient
+{
+ // the delegate for asynch callbacks
+ id m_delegate;
+
+ // the mutex to protect the delegate variable
+ NSRecursiveLock *m_delegateLock;
+
+ // a growing array of UGHTTPManager instances. See
+ // "HTTPMANAGER POOLING" further down in this file.
+ NSMutableArray *m_httpManagerPool;
+
+ // the base URL for the service
+ NSString *m_baseURL;
+
+ // the appID for the specific app
+ NSString *m_appID;
+
+ // the appID for the specific app
+ NSString *m_orgID;
+
+ // the cached auth token
+ UGUser *m_loggedInUser;
+
+ // the auth code
+ NSString *m_auth;
+
+ // the list of currently pending multi-step actions
+ NSMutableArray *m_pendingMultiStepActions;
+
+ // logging state
+ BOOL m_bLogging;
+}
+
+/************************** ACCESSORS *******************************/
+/************************** ACCESSORS *******************************/
+/************************** ACCESSORS *******************************/
++(NSString *) version
+{
+ return @"0.1.1";
+}
+
+-(NSString *)getAccessToken
+{
+ return m_auth;
+}
+
+-(UGUser *)getLoggedInUser
+{
+ return m_loggedInUser;
+}
+
+-(id) getDelegate
+{
+ return m_delegate;
+}
+
+/******************************* INIT *************************************/
+/******************************* INIT *************************************/
+/******************************* INIT *************************************/
+-(id)init
+{
+ // you are not allowed to init without an organization id and application id
+ // you can't init with [UGClient new]. You must call
+ // [[UGClient alloc] initWithOrganizationId: <your UG org id> withApplicationId:<your UG app id>]
+ assert(0);
+ return nil;
+}
+
+-(id) initWithOrganizationId: (NSString *)organizationID withApplicationID:(NSString *)applicationID
+{
+ self = [super init];
+ if ( self )
+ {
+ m_delegate = nil;
+ m_httpManagerPool = [NSMutableArray new];
+ m_delegateLock = [NSRecursiveLock new];
+ m_appID = applicationID;
+ m_orgID = organizationID;
+ m_baseURL = @"http://api.usergrid.com";
+ m_pendingMultiStepActions = [NSMutableArray new];
+ m_loggedInUser = nil;
+ m_bLogging = NO;
+ }
+ return self;
+}
+
+-(id) initWithOrganizationId: (NSString *)organizationID withApplicationID:(NSString *)applicationID baseURL:(NSString *)baseURL
+{
+ self = [super init];
+ if ( self )
+ {
+ m_delegate = nil;
+ m_httpManagerPool = [NSMutableArray new];
+ m_delegateLock = [NSRecursiveLock new];
+ m_appID = applicationID;
+ m_orgID = organizationID;
+ m_baseURL = baseURL;
+ }
+ return self;
+}
+
+-(BOOL) setDelegate:(id)delegate
+{
+ // first off, clear any pending transactions
+ for ( int i=0 ; i<[m_httpManagerPool count] ; i++ )
+ {
+ UGHTTPManager *mgr = [m_httpManagerPool objectAtIndex:i];
+
+ // it's safe to call cancel at all times.
+ [mgr cancel];
+ }
+
+ // nil is a valid answer. It means we're synchronous now.
+ if ( delegate == nil )
+ {
+ [m_delegateLock lock];
+ m_delegate = nil;
+ [m_delegateLock unlock];
+ return YES;
+ }
+
+ // if it's not nil, it has to have the delegation function
+ if ( ![delegate respondsToSelector:@selector(ugClientResponse:)] )
+ {
+ return NO;
+ }
+
+ // if we're here, it means the delegate is valid
+ [m_delegateLock lock];
+ m_delegate = delegate;
+ [m_delegateLock unlock];
+ return YES;
+}
+
+/************************* HTTPMANAGER POOLING *******************************/
+/************************* HTTPMANAGER POOLING *******************************/
+/************************* HTTPMANAGER POOLING *******************************/
+
+// any given instance of UGHTTPManager can only manage one transaction at a time,
+// but we want the client to be able to have as many going at once as he likes.
+// so we have a pool of UGHTTPManagers as needed.
+-(UGHTTPManager *)getHTTPManager;
+{
+ // find the first unused HTTPManager
+ for ( int i=0 ; i<[m_httpManagerPool count] ; i++ )
+ {
+ UGHTTPManager *mgr = [m_httpManagerPool objectAtIndex:i];
+ if ( [mgr isAvailable] )
+ {
+ // tag this guy as available
+ [mgr setAvailable:NO];
+
+ // return him
+ return mgr;
+ }
+ }
+
+ // if we're here, we didn't find any available managers
+ // so we'll need to make a new one
+ UGHTTPManager *newMgr = [UGHTTPManager new];
+
+ // mark it as in-use (we're about to return it)
+ [newMgr setAvailable:NO];
+
+ // tell it the auth to use
+ [newMgr setAuth:m_auth];
+
+ // add it to the array
+ [m_httpManagerPool addObject:newMgr];
+
+ // return it
+ return newMgr;
+}
+
+-(void)releaseHTTPManager:(UGHTTPManager *)toRelease
+{
+ [toRelease setAvailable:YES];
+}
+
+-(void)setAuth:(NSString *)auth
+{
+ // note the auth for ourselves
+ m_auth = auth;
+
+ // update all our managers
+ for ( int i=0 ; i<[m_httpManagerPool count] ; i++ )
+ {
+ UGHTTPManager *mgr = [m_httpManagerPool objectAtIndex:i];
+ [mgr setAuth:m_auth];
+ }
+}
+
+/************************* GENERAL WORKHORSES *******************************/
+/************************* GENERAL WORKHORSES *******************************/
+/************************* GENERAL WORKHORSES *******************************/
+// url: the URL to hit
+// op: a kUGHTTP constant. Example: kUGHTTPPost
+// opData: The data to send along with the operation. Can be nil
+-(UGClientResponse *)httpTransaction:(NSString *)url op:(int)op opData:(NSString *)opData
+{
+ // get an http manager to do this transaction
+ UGHTTPManager *mgr = [self getHTTPManager];
+
+ if ( m_delegate )
+ {
+ if ( m_bLogging )
+ {
+ NSLog(@">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
+ NSLog(@"Asynch outgoing call: '%@'", url);
+ }
+
+ // asynch transaction
+ int transactionID = [mgr asyncTransaction:url operation:op operationData:opData delegate:self];
+
+ if ( m_bLogging )
+ {
+ NSLog(@"Transaction ID:%d", transactionID);
+ NSLog(@">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n");
+ }
+
+ if ( transactionID == -1 )
+ {
+ if ( m_bLogging )
+ {
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
+ NSLog(@"Response: ERROR: %@", [mgr getLastError]);
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
+ }
+
+ // there was an immediate failure in the transaction
+ UGClientResponse *response = [UGClientResponse new];
+ [response setTransactionID:-1];
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:[mgr getLastError]];
+ [response setRawResponse:nil];
+ return response;
+ }
+ else
+ {
+ // the transaction is in progress and pending
+ UGClientResponse *response = [UGClientResponse new];
+ [response setTransactionID:transactionID];
+ [response setTransactionState:kUGClientResponsePending];
+ [response setResponse:nil];
+ [response setRawResponse:nil];
+ return response;
+ }
+ }
+ else
+ {
+ if ( m_bLogging )
+ {
+ NSLog(@">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
+ NSLog(@"Synch outgoing call: '%@'", url);
+ NSLog(@">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n");
+ }
+
+ // synch transaction
+ NSString *result = [mgr syncTransaction:url operation:op operationData:opData];
+
+ if ( m_bLogging )
+ {
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
+ if ( result )
+ {
+ NSLog(@"Response:\n%@", result);
+ }
+ else
+ {
+ NSLog(@"Response: ERROR: %@", [mgr getLastError]);
+ }
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
+ }
+
+ // since we're doing a synch transaction, we are now done with this manager.
+ [self releaseHTTPManager:mgr];
+
+ if ( result )
+ {
+ // got a valid result
+ UGClientResponse *response = [self createResponse:-1 jsonStr:result];
+ return response;
+ }
+ else
+ {
+ // there was an error. Note the failure state, set the response to
+ // be the error string
+ UGClientResponse *response = [UGClientResponse new];
+ [response setTransactionID:-1];
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:[mgr getLastError]];
+ [response setRawResponse:nil];
+ return response;
+ }
+ }
+}
+
+-(UGClientResponse *)createResponse:(int)transactionID jsonStr:(NSString *)jsonStr
+{
+ UGClientResponse *response = [UGClientResponse new];
+
+ // set the raw response and transaction id
+ [response setRawResponse:jsonStr];
+ [response setTransactionID:transactionID];
+
+ // parse the json
+ SBJsonParser *parser = [SBJsonParser new];
+ NSError *error;
+ id result = [parser objectWithString:jsonStr error:&error];
+
+ if ( result )
+ {
+ // first off, if the result is NOT an NSDictionary, something went wrong.
+ // there should never be an array response
+ if ( ![result isKindOfClass:[NSDictionary class]] )
+ {
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:@"Internal error: Response parsed to something other than NSDictionary"];
+ return response;
+ }
+
+ // it successfully parsed. Though the result might still be an error.
+ // it could be the server returning an error in perfectly formated json.
+ NSString *err = [result valueForKey:@"error"];
+ if ( err )
+ {
+ // there was an error. See if there's a more detailed description.
+ // if there is, we'll use that. If not, we'll use the error value
+ // itself.
+ NSString *errDesc = [result valueForKey:@"error_description"];
+ NSString *toReport = errDesc;
+ if ( !toReport ) toReport = err;
+
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:toReport];
+ return response;
+ }
+
+ // if we're here we have a good auth. make note of it
+ NSString *auth = [result valueForKey:@"access_token"];
+ if ( auth )
+ {
+ [self setAuth: auth];
+
+ // if there's an access token, there might be a user
+ NSDictionary *dict = [result objectForKey:@"user"];
+ if ( dict )
+ {
+ // get the fields for the user
+ m_loggedInUser = [UGUser new];
+ [m_loggedInUser setUsername:[dict valueForKey:@"username"]];
+ [m_loggedInUser setUuid:[dict valueForKey:@"uuid"]];
+ [m_loggedInUser setEmail:[dict valueForKey:@"email"]];
+ [m_loggedInUser setPicture:[dict valueForKey:@"picture"]];
+ }
+ }
+
+ [response setTransactionState:kUGClientResponseSuccess];
+ [response setResponse:result];
+ return response;
+ }
+ else
+ {
+ // there was an error during json parsing.
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:[error localizedDescription]];
+ return response;
+ }
+}
+
+// basic URL assembly functions. For convenience
+-(NSMutableString *)createURL:(NSString *)append1
+{
+ NSMutableString *ret = [NSMutableString new];
+ [ret appendFormat:@"%@/%@/%@/%@", m_baseURL, m_orgID, m_appID, append1];
+ return ret;
+}
+
+-(NSMutableString *)createURL:(NSString *)append1 append2:(NSString *)append2
+{
+ NSMutableString *ret = [NSMutableString new];
+ [ret appendFormat:@"%@/%@/%@/%@/%@", m_baseURL, m_orgID, m_appID, append1, append2];
+ return ret;
+}
+
+-(NSMutableString *)createURL:(NSString *)append1 append2:(NSString *)append2 append3:(NSString *)append3
+{
+ NSMutableString *ret = [NSMutableString new];
+ [ret appendFormat:@"%@/%@/%@/%@/%@/%@", m_baseURL, m_orgID, m_appID, append1, append2, append3];
+ return ret;
+}
+
+-(NSMutableString *)createURL:(NSString *)append1 append2:(NSString *)append2 append3:(NSString *)append3 append4:(NSString *)append4
+{
+ NSMutableString *ret = [NSMutableString new];
+ [ret appendFormat:@"%@/%@/%@/%@/%@/%@/%@", m_baseURL, m_orgID, m_appID, append1, append2, append3, append4];
+ return ret;
+}
+
+-(NSMutableString *)createURL:(NSString *)append1 append2:(NSString *)append2 append3:(NSString *)append3 append4:(NSString *)append4 append5:(NSString *)append5
+{
+ NSMutableString *ret = [NSMutableString new];
+ [ret appendFormat:@"%@/%@/%@/%@/%@/%@/%@/%@", m_baseURL, m_orgID, m_appID, append1, append2, append3, append4, append5];
+ return ret;
+}
+
+-(void)appendQueryToURL:(NSMutableString *)url query:(UGQuery *)query
+{
+ if ( query )
+ {
+ [url appendFormat:@"%@", [query getURLAppend]];
+ }
+}
+
+-(NSString *)createJSON:(NSDictionary *)data
+{
+ NSString *ret = [self createJSON:data error:nil];
+
+ // the only way for ret to be nil here is for an internal
+ // function to have a bug.
+ assert(ret);
+ return ret;
+}
+
+-(NSString *)createJSON:(NSDictionary *)data error:(NSString **)error
+{
+ SBJsonWriter *writer = [SBJsonWriter new];
+ NSError *jsonError;
+ NSString *jsonStr = [writer stringWithObject:data error:&jsonError];
+
+ if ( jsonStr )
+ {
+ return jsonStr;
+ }
+
+ // if we're here, there was an assembly error
+ if ( error )
+ {
+ *error = [jsonError localizedDescription];
+ }
+ return nil;
+}
+
+/************************** UGHTTPMANAGER DELEGATES *******************************/
+/************************** UGHTTPMANAGER DELEGATES *******************************/
+/************************** UGHTTPMANAGER DELEGATES *******************************/
+-(void)httpManagerError:(UGHTTPManager *)manager error:(NSString *)error
+{
+ // prep an error response
+ UGClientResponse *response = [UGClientResponse new];
+ [response setTransactionID:[manager getTransactionID]];
+ [response setTransactionState:kUGClientResponseFailure];
+ [response setResponse:error];
+ [response setRawResponse:nil];
+
+ if ( m_bLogging )
+ {
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
+ NSLog(@"Response: ERROR: %@", error);
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
+ }
+
+ // fire it off. Wrap in mutex locks to ensure we don't get
+ // race conditions that cause us to fire it off to Mr. Nil.
+ [m_delegateLock lock];
+ if ( m_delegate )
+ {
+ [m_delegate performSelector:@selector(ugClientResponse:) withObject:response];
+ }
+ [m_delegateLock unlock];
+
+ // now that the callback is complete, it's safe to release this manager
+ [self releaseHTTPManager:manager];
+}
+
+-(void)httpManagerResponse:(UGHTTPManager *)manager response:(NSString *)response
+{
+ if ( m_bLogging )
+ {
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
+ NSLog(@"Response (Transaction ID %d):\n%@", [manager getTransactionID], response);
+ NSLog(@"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
+ }
+
+ // form up the response
+ UGClientResponse *ugResponse = [self createResponse:[manager getTransactionID] jsonStr:response];
+
+ // if this is part of a multi-step call, we press on.
+ for ( int i=0 ; i<[m_pendingMultiStepActions count] ; i++ )
+ {
+ UGMultiStepAction *action = [m_pendingMultiStepActions objectAtIndex:i];
+ if ( [action transactionID] == [ugResponse transactionID] )
+ {
+ // multi-step call. Fire off the action.
+ ugResponse = [self doMultiStepAction:action mostRecentResponse:ugResponse];
+ if ( ![action reportToClient] )
+ {
+ // the action is still pending. We do not report this
+ // to the user. We're done with the httpmanager we were using,
+ // though.
+ [self releaseHTTPManager:manager];
+ return;
+ }
+
+ // when the action is complete, we want to immediately break
+ // from this loop, then fall through to the normal reporting
+ // to the user.
+ break;
+ }
+ }
+
+ // fire it off
+ [m_delegateLock lock];
+ if ( m_delegate )
+ {
+ [m_delegate performSelector:@selector(ugClientResponse:) withObject:ugResponse];
+ }
+ [m_delegateLock unlock];
+
+ // now that the callback is complete, it's safe to release this manager
+ [self releaseHTTPManager:manager];
+}
+
+// multi-step follow-up function
+-(UGClientResponse *)multiStepAction: (UGMultiStepAction *)action
+{
+ // different behavior if synch or asynch
+ if ( m_delegate )
+ {
+ // asynch. Fire it off and we're done
+ return [self doMultiStepAction:action mostRecentResponse:nil];
+ }
+ else
+ {
+ // synchronous. keep calling until it finished or fails
+ UGClientResponse *response = nil;
+ do
+ {
+ response = [self doMultiStepAction:action mostRecentResponse:response];
+ if ( [action reportToClient] )
+ {
+ // done
+ return response;
+ }
+ } while ([response transactionState] == kUGClientResponseSuccess);
+
+ // if we're here, there was an error
+ return response;
+ }
+}
+
+-(UGClientResponse *)doMultiStepAction: (UGMultiStepAction *)action mostRecentResponse:(UGClientResponse *)mostRecentResponse
+{
+ // clear the pending array of this object
+ [m_pendingMultiStepActions removeObject:action];
+
+ // assume we aren't reporting to the client
+ [action setReportToClient:NO];
+
+ if ( mostRecentResponse )
+ {
+ // we don't care about pending responses
+ if ( [mostRecentResponse transactionState] == kUGClientResponsePending )
+ {
+ // put ourselves back in the list
+ [m_pendingMultiStepActions addObject:action];
+ return mostRecentResponse;
+ }
+
+ // any failure is an immediate game ender
+ if ( [mostRecentResponse transactionState] == kUGClientResponseFailure )
+ {
+ [mostRecentResponse setTransactionID:[action transactionID]];
+ return mostRecentResponse;
+ }
+ }
+
+ // if mostRecentRespons is nil, that means it's the first call to initiate
+ // the chain. So we continue on with processing.
+
+ // so either we are reacting to a success or we are starting off the chain
+ UGClientResponse *result = nil;
+ if ( [action nextAction] == kMultiStepCreateActivity )
+ {
+ // create the activity
+ result = [self createActivity:[action activity]];
+
+ // advance ourselves to the next step
+ [action setNextAction:kMultiStepPostActivity];
+ }
+ else if ( [action nextAction] == kMultiStepCreateGroupActivity )
+ {
+ // create the activity
+ result = [self createActivity:[action activity]];
+
+ // advance ourselves to the next step
+ [action setNextAction:kMultiStepPostGroupActivity];
+ }
+ else if ( [action nextAction] == kMultiStepPostActivity )
+ {
+ // we just created an activity, now we need to associate it with a user.
+ // first, we'll need the activity's uuid
+ NSDictionary *dict = [mostRecentResponse response]; // dictionary for the response
+ NSArray *entities = [dict objectForKey:@"entities"]; // array for the entities
+ NSDictionary *activity = [entities objectAtIndex:0]; // dict for the activity
+ NSString *activityUUID = [activity valueForKey:@"uuid"]; // and finally the uuid string
+
+ // fire off the next step
+ result = [self postUserActivityByUUID:[action userID] activity:activityUUID];
+
+ // advance the action
+ [action setNextAction:kMultiStepCleanup];
+ }
+ else if ( [action nextAction] == kMultiStepPostGroupActivity )
+ {
+ // we just created an activity, now we need to associate it with a user.
+ // first, we'll need the activity's uuid
+ NSDictionary *dict = [mostRecentResponse response]; // dictionary for the response
+ NSArray *entities = [dict objectForKey:@"entities"]; // array for the entities
+ NSDictionary *activity = [entities objectAtIndex:0]; // dict for the activity
+ NSString *activityUUID = [activity valueForKey:@"uuid"]; // and finally the uuid string
+
+ // fire off the next step
+ result = [self postGroupActivityByUUID:[action groupID] activity:activityUUID];
+
+ // advance the action
+ [action setNextAction:kMultiStepCleanup];
+ }
+ else if ( [action nextAction] == kMultiStepCleanup )
+ {
+ // all we do in cleanup is update the transaction ID of the
+ // response that was sent in. We do this to ensure that the transaction
+ // id is constant across the entire transaction
+ result = mostRecentResponse;
+ [result setTransactionID:[action outwardTransactionID]];
+ [action setReportToClient:YES];
+ }
+
+ if ( !mostRecentResponse )
+ {
+ // if mostRecentResponse is nil, it means we're on the first step. That means
+ // we need to adopt a unique outward transaction ID. We'll simply use
+ // the ID given back by the first transaction in the chain. This also means
+ // we can simply return the first transaction pending response without modification.
+ [action setOutwardTransactionID:[result transactionID]];
+ }
+
+ // wherever we landed, if it's a pending transaction, the action needs to
+ // know that transaction ID. Also, we need to go in to the pending array
+ if ( [result transactionState] == kUGClientResponsePending )
+ {
+ [action setTransactionID:[result transactionID]];
+ [m_pendingMultiStepActions addObject:action];
+ }
+
+ // result is now properly set up and ready to be handed to the user.
+ return result;
+}
+
+/*************************** LOGIN / LOGOUT ****************************/
+/*************************** LOGIN / LOGOUT ****************************/
+/*************************** LOGIN / LOGOUT ****************************/
+-(UGClientResponse *)logInUser: (NSString *)userName password:(NSString *)password
+{
+ return [self logIn:@"password" userKey:@"username" userValue:userName pwdKey:@"password" pwdValue:password];
+}
+
+-(UGClientResponse *)logInUserWithPin: (NSString *)userName pin:(NSString *)pin
+{
+ return [self logIn:@"pin" userKey:@"username" userValue:userName pwdKey:@"pin" pwdValue:pin];
+}
+
+-(UGClientResponse *)logInUserWithFacebook: (NSString *)facebookToken
+{
+ NSMutableString *url = [self createURL:@"auth/facebook"];
+ UGQuery *query = [[UGQuery alloc] init];
+ [query addURLTerm:@"fb_access_token" equals:facebookToken];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)logInAdmin: (NSString *)adminUserName secret:(NSString *)adminSecret
+{
+ return [self logIn:@"client_credentials" userKey:@"client_id" userValue:adminUserName pwdKey:@"client_secret" pwdValue:adminSecret];
+}
+
+-(void)logOut
+{
+ // clear out auth
+ [self setAuth: nil];
+}
+
+// general workhorse for auth logins
+-(UGClientResponse *)logIn:(NSString *)grantType userKey:(NSString *)userKey userValue:(NSString *)userValue pwdKey:(NSString *)pwdKey pwdValue:(NSString *)pwdValue
+{
+ // create the URL
+ NSString *url = [self createURL:@"token"];
+
+ // because it's read as form data, we need to escape special characters.
+ NSString *escapedUserValue = [UGHTTPManager escapeSpecials:userValue];
+ NSString *escapedPwdValue = [UGHTTPManager escapeSpecials:pwdValue];
+
+ // create the post data. For auth functions, we don't use json,
+ // but instead use web form style data
+ NSMutableString *postData = [NSMutableString new];
+ [postData appendFormat:@"grant_type=%@&%@=%@&%@=%@", grantType, userKey, escapedUserValue, pwdKey, escapedPwdValue];
+
+ // fire off the request
+ return [self httpTransaction:url op:kUGHTTPPostAuth opData:postData];
+}
+/*************************** USER MANAGEMENT ***************************/
+/*************************** USER MANAGEMENT ***************************/
+/*************************** USER MANAGEMENT ***************************/
+-(UGClientResponse *)addUser:(NSString *)username email:(NSString *)email name:(NSString *)name password:(NSString *)password
+{
+ // make the URL we'll be posting to
+ NSString *url = [self createURL:@"users"];
+
+ // make the post data we'll be sending along with it.
+ NSMutableDictionary *toPost = [NSMutableDictionary new];
+ [toPost setObject:username forKey:@"username"];
+ [toPost setObject:name forKey:@"name"];
+ [toPost setObject:email forKey:@"email"];
+ [toPost setObject:password forKey:@"password"];
+ NSString *toPostStr = [self createJSON:toPost];
+
+ // fire it off
+ return [self httpTransaction:url op:kUGHTTPPost opData:toPostStr];
+}
+
+// updates a user's password
+-(UGClientResponse *)updateUserPassword:(NSString *)usernameOrEmail oldPassword:(NSString *)oldPassword newPassword:(NSString *)newPassword
+{
+ // make the URL we'll be posting to
+ NSString *url = [self createURL:@"users" append2:usernameOrEmail append3:@"password"];
+
+ // make the post data we'll be sending along with it.
+ NSMutableDictionary *toPost = [NSMutableDictionary new];
+ [toPost setObject:oldPassword forKey:@"oldpassword"];
+ [toPost setObject:newPassword forKey:@"newpassword"];
+ NSString *toPostStr = [self createJSON:toPost];
+
+ // fire it off
+ return [self httpTransaction:url op:kUGHTTPPost opData:toPostStr];
+}
+
+-(UGClientResponse *)getGroupsForUser: (NSString *)userID;
+{
+ // make the URL, and fire off the get
+ NSString *url = [self createURL:@"users" append2:userID append3:@"groups"];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)getUsers: (UGQuery *)query
+{
+ // create the URL
+ NSMutableString *url = [self createURL:@"users"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+/************************** ACTIVITY MANAGEMENT **************************/
+/************************** ACTIVITY MANAGEMENT **************************/
+/************************** ACTIVITY MANAGEMENT **************************/
+-(UGClientResponse *)createActivity: (NSDictionary *)activity
+{
+ // make the URL
+ NSString *url = [self createURL:@"activity"];
+
+ // get the json to send.
+ // we have to json-ify a dictionary that was sent
+ // in by the client. So naturally, we can't just trust it
+ // to work. Therefore we can't use our internal convenience
+ // function for making the json. We go straight to SBJson, so
+ // we can identify and report any errors.
+ SBJsonWriter *writer = [SBJsonWriter new];
+ NSError *jsonError;
+ NSString *toPostStr = [writer stringWithObject:activity error:&jsonError];
+
+ if ( !toPostStr )
+ {
+ // error during json assembly
+ UGClientResponse *ret = [UGClientResponse new];
+ [ret setTransactionState:kUGClientResponseFailure];
+ [ret setTransactionID:-1];
+ [ret setResponse:[jsonError localizedDescription]];
+ [ret setRawResponse:nil];
+ return ret;
+ }
+
+ // fire it off
+ return [self httpTransaction:url op:kUGHTTPPost opData:toPostStr];
+}
+
+// create an activity and post it to a user in a single step
+-(UGClientResponse *)postUserActivity: (NSString *)userID activity:(NSDictionary *)activity
+{
+ // prep a multi-step action
+ UGMultiStepAction *action = [UGMultiStepAction new];
+
+ // set it up to start the create activity / post to user chain
+ [action setNextAction:kMultiStepCreateActivity];
+ [action setUserID:userID];
+ [action setActivity:activity];
+
+ // fire it off
+ return [self multiStepAction:action];
+}
+
+-(UGClientResponse *)postUserActivityByUUID: (NSString *)userID activity:(NSString *)activityUUID
+{
+ // make the URL and fire off the post. there is no data
+ NSString *url = [self createURL:@"users" append2:userID append3:@"activities" append4:activityUUID];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)postGroupActivity:(NSString *)groupID activity:(NSDictionary *)activity
+{
+ // prep a multi-step action
+ UGMultiStepAction *action = [UGMultiStepAction new];
+
+ // set it up to start the create activity / post to user chain
+ [action setNextAction:kMultiStepCreateGroupActivity];
+ [action setGroupID:groupID];
+ [action setActivity:activity];
+
+ // fire it off
+ return [self multiStepAction:action];
+}
+
+-(UGClientResponse *)postGroupActivityByUUID: (NSString *)groupID activity:(NSString *)activityUUID
+{
+ // make the URL and fire off the post. there is no data
+ NSString *url = [self createURL:@"groups" append2:groupID append3:@"activities" append4:activityUUID];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)getActivitiesForUser: (NSString *)userID query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:@"users" append2:userID append3:@"activities"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)getActivityFeedForUser: (NSString *)userID query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:@"users" append2:userID append3:@"feed"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)getActivitiesForGroup: (NSString *)groupID query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:@"groups" append2:groupID append3:@"activities"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)getActivityFeedForGroup: (NSString *)groupID query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:@"groups" append2:groupID append3:@"feed"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)removeActivity:(NSString *)activityUUID
+{
+ NSString *url = [self createURL:@"activities" append2:activityUUID];
+ return [self httpTransaction:url op:kUGHTTPDelete opData:nil];
+}
+
+/************************** GROUP MANAGEMENT **************************/
+/************************** GROUP MANAGEMENT **************************/
+/************************** GROUP MANAGEMENT **************************/
+-(UGClientResponse *)createGroup:(NSString *)groupPath groupTitle:(NSString *)groupTitle
+{
+ // make the URL
+ NSString *url = [self createURL:@"groups"];
+
+ // make the post data we'll be sending along with it.
+ NSMutableDictionary *toPost = [NSMutableDictionary new];
+ [toPost setObject:groupPath forKey:@"path"];
+ if ( groupTitle )
+ {
+ [toPost setObject:groupTitle forKey:@"title"];
+ }
+ NSString *toPostStr = [self createJSON:toPost];
+
+ // fire it off
+ return [self httpTransaction:url op:kUGHTTPPost opData:toPostStr];
+}
+
+-(UGClientResponse *)addUserToGroup:(NSString *)userID group:(NSString *)groupID
+{
+ // make the URL
+ NSString *url = [self createURL:@"groups" append2:groupID append3:@"users" append4:userID];
+
+ // fire it off. This is a data-less POST
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)removeUserFromGroup:(NSString *)userID group:(NSString *)groupID
+{
+ // this is identical to addUserToGroup, except we use the DELETE method instead of POST
+ // make the URL
+ NSString *url = [self createURL:@"groups" append2:groupID append3:@"users" append4:userID];
+
+ // fire it off. This is a data-less POST
+ return [self httpTransaction:url op:kUGHTTPDelete opData:nil];}
+
+-(UGClientResponse *)getUsersForGroup:(NSString *)groupID query:(UGQuery *)query
+{
+ // create the URL
+ NSMutableString *url = [self createURL:@"groups" append2:groupID append3:@"users"];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+/************************** ENTITY MANAGEMENT **************************/
+/************************** ENTITY MANAGEMENT **************************/
+/************************** ENTITY MANAGEMENT **************************/
+// jsonify the entity. If there's an error, it creates a UGClientResponse and
+// returns it. If there's no error, it returns nil, and the outJson field and
+// the type field will be set correctly.
+// yes, it's odd to have a function return nil on success, but it's internal.
+-(UGClientResponse *)validateEntity:(NSDictionary *)newEntity outJson:(NSString **)jsonStr outType:(NSString **)type
+{
+ // validation
+ NSString *error = nil;
+
+ // the entity must exist
+ if ( !newEntity )
+ {
+ error =@"entity is nil";
+ }
+
+ // the entity must have a "type" field
+ *type = [newEntity valueForKey:@"type"];
+ if ( !*type )
+ {
+ error = @"entity is missing a type field";
+ }
+
+ // make sure it can parse to a json
+ SBJsonWriter *writer = [SBJsonWriter new];
+ NSError *jsonError;
+ *jsonStr = [writer stringWithObject:newEntity error:&jsonError];
+ if ( !*jsonStr )
+ {
+ error = [jsonError localizedDescription];
+ }
+
+ // if error got set to anything, it means we failed
+ if ( error )
+ {
+ UGClientResponse *ret = [UGClientResponse new];
+ [ret setTransactionState:kUGClientResponseFailure];
+ [ret setTransactionID:-1];
+ [ret setResponse:error];
+ [ret setRawResponse:nil];
+ return ret;
+ }
+
+ // if we're here, it's a good json and we're done
+ return nil;
+}
+
+-(UGClientResponse *)createEntity:(NSDictionary *)newEntity
+{
+ NSString *jsonStr;
+ NSString *type;
+ UGClientResponse *errorRet = [self validateEntity:newEntity outJson:&jsonStr outType:&type];
+ if ( errorRet ) return errorRet;
+
+ // we have a valid entity, ready to post. Make the URL
+ NSString *url = [self createURL:type];
+
+ // post it
+ return [self httpTransaction:url op:kUGHTTPPost opData:jsonStr];
+}
+
+-(UGClientResponse *)getEntities: (NSString *)type query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:type];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)updateEntity: (NSString *)entityID entity:(NSDictionary *)updatedEntity
+{
+ NSString *jsonStr;
+ NSString *type;
+ UGClientResponse *errorRet = [self validateEntity:updatedEntity outJson:&jsonStr outType:&type];
+ if ( errorRet ) return errorRet;
+
+ // we have a valid entity, ready to post. Make the URL
+ NSString *url = [self createURL:type append2:entityID];
+
+ // post it
+ return [self httpTransaction:url op:kUGHTTPPut opData:jsonStr];
+}
+
+-(UGClientResponse *)removeEntity: (NSString *)type entityID:(NSString *)entityID
+{
+ // Make the URL, then fire off the delete
+ NSString *url = [self createURL:type append2:entityID];
+ return [self httpTransaction:url op:kUGHTTPDelete opData:nil];
+}
+
+
+-(UGClientResponse *)connectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID connectionType:(NSString *)connectionType connecteeType:(NSString *)connecteeType connecteeID:(NSString *)connecteeID
+{
+ NSString *url = [self createURL:connectorType append2:connectorID append3:connectionType append4:connecteeType append5:connecteeID];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)connectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID type:(NSString *)connectionType connecteeID:(NSString *)connecteeID
+{
+ NSString *url = [self createURL:connectorType append2:connectorID append3:connectionType append4:connecteeID];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)disconnectEntities: (NSString *)connectorType connectorID:(NSString *)connectorID type:(NSString *)connectionType connecteeID:(NSString *)connecteeID
+{
+ NSString *url = [self createURL:connectorType append2:connectorID append3:connectionType append4:connecteeID];
+ return [self httpTransaction:url op:kUGHTTPDelete opData:nil];
+}
+
+-(UGClientResponse *)getEntityConnections: (NSString *)connectorType connectorID:(NSString *)connectorID connectionType:(NSString *)connectionType query:(UGQuery *)query
+{
+ NSMutableString *url = [self createURL:connectorType append2:connectorID append3:connectionType];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+/************************** MESSAGE MANAGEMENT **************************/
+/************************** MESSAGE MANAGEMENT **************************/
+/************************** MESSAGE MANAGEMENT **************************/
+-(UGClientResponse *)postMessage: (NSString *)queuePath message:(NSDictionary *)message
+{
+ // because the NSDictionary is from the client, we can't trust it. We need
+ // to go through full error checking
+ NSString *error;
+ NSString *jsonStr = [self createJSON:message error:&error];
+
+ if ( !jsonStr )
+ {
+ // report the error
+ UGClientResponse *ret = [UGClientResponse new];
+ [ret setTransactionID:-1];
+ [ret setTransactionState:kUGClientResponseFailure];
+ [ret setResponse:error];
+ [ret setRawResponse:nil];
+ return ret;
+ }
+
+ // make the path and fire it off
+ NSString *url = [self createURL:@"queues" append2:queuePath];
+ return [self httpTransaction:url op:kUGHTTPPost opData:jsonStr];
+}
+
+-(UGClientResponse *)getMessages: (NSString *)queuePath query:(UGQuery *)query;
+{
+ NSMutableString *url = [self createURL:@"queues" append2:queuePath];
+ [self appendQueryToURL:url query:query];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+-(UGClientResponse *)addSubscriber: (NSString *)queuePath subscriberPath:(NSString *)subscriberPath
+{
+ NSString *url = [self createURL:@"queues" append2:queuePath append3:@"subscribers" append4:subscriberPath];
+ return [self httpTransaction:url op:kUGHTTPPost opData:nil];
+}
+
+-(UGClientResponse *)removeSubscriber: (NSString *)queuePath subscriberPath:(NSString *)subscriberPath
+{
+ NSString *url = [self createURL:@"queues" append2:queuePath append3:@"subscribers" append4:subscriberPath];
+ return [self httpTransaction:url op:kUGHTTPDelete opData:nil];
+}
+
+/*************************** REMOTE PUSH NOTIFICATIONS ***************************/
+/*************************** REMOTE PUSH NOTIFICATIONS ***************************/
+/*************************** REMOTE PUSH NOTIFICATIONS ***************************/
+
+- (UGClientResponse *)setDevicePushToken:(NSData *)newDeviceToken forNotifier:(NSString *)notifier
+{
+ // Pull the push token string out of the device token data
+ NSString *tokenString = [[[newDeviceToken description]
+ stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]]
+ stringByReplacingOccurrencesOfString:@" " withString:@""];
+
+ // Register device and push token to App Services
+ NSString *deviceId = [UGClient getUniqueDeviceID];
+
+ // create/update device - use deviceId for App Services entity UUID
+ NSMutableDictionary *entity = [[NSMutableDictionary alloc] init];
+ [entity setObject: @"device" forKey: @"type"];
+ [entity setObject: deviceId forKey: @"uuid"];
+
+ NSString *notifierKey = [notifier stringByAppendingString: @".notifier.id"];
+ [entity setObject: tokenString forKey: notifierKey];
+
+ return [self updateEntity: deviceId entity: entity];
+}
+
+- (UGClientResponse *)pushAlert:(NSString *)message
+ withSound:(NSString *)sound
+ to:(NSString *)path
+ usingNotifier:(NSString *)notifier
+{
+ NSDictionary *apsDict = [NSDictionary dictionaryWithObjectsAndKeys:
+ message, @"alert",
+ sound, @"sound",
+ nil];
+
+ NSDictionary *notifierDict = [NSDictionary dictionaryWithObjectsAndKeys:
+ apsDict, @"aps",
+ nil];
+
+ NSDictionary *payloadsDict = [NSDictionary dictionaryWithObjectsAndKeys:
+ notifierDict, notifier,
+ nil];
+
+ NSString *notificationsPath = [path stringByAppendingString: @"/notifications"];
+
+ NSMutableDictionary *entity = [[NSMutableDictionary alloc] init];
+ [entity setObject: notificationsPath forKey: @"type"];
+ [entity setObject: payloadsDict forKey: @"payloads"];
+
+ return [self createEntity: entity];
+}
+
+
+/*************************** SERVER-SIDE STORAGE ***************************/
+/*************************** SERVER-SIDE STORAGE ***************************/
+/*************************** SERVER-SIDE STORAGE ***************************/
++(NSString *)getUniqueDeviceID
+{
+ // cached?
+ if (g_deviceUUID) return g_deviceUUID;
+
+ // in our keychain?
+ g_deviceUUID = [SSKeychain passwordForService:@"Usergrid" account:@"DeviceUUID"];
+ if (g_deviceUUID) return g_deviceUUID;
+
+ // in the (legacy) app defaults?
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+ g_deviceUUID = [defaults valueForKey:@"UGClientDeviceUUID"];
+
+ // if none found in storage, generate one
+ if (!g_deviceUUID) {
+
+ if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")) {
+ // use identifierForVendor where possible
+ g_deviceUUID = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
+ }
+ else {
+ // otherwise, create a UUID (legacy method)
+ CFUUIDRef uuidRef = CFUUIDCreate(nil);
+ CFStringRef uuidStringRef = CFUUIDCreateString(nil, uuidRef);
+ CFRelease(uuidRef);
+ g_deviceUUID = [NSString stringWithString:(__bridge NSString *)uuidStringRef];
+ }
+ }
+
+ // store in keychain for future reference
+ [SSKeychain setPassword:g_deviceUUID forService:@"Usergrid" account:@"DeviceUUID"];
+
+ return g_deviceUUID;
+}
+
+-(UGClientResponse *)setRemoteStorage: (NSDictionary *)data
+{
+ // prep and validate the sent-in dict
+ NSString *error;
+ NSString *jsonStr = [self createJSON:data error:&error];
+ if ( !jsonStr )
+ {
+ // report the error
+ UGClientResponse *ret = [UGClientResponse new];
+ [ret setTransactionID:-1];
+ [ret setTransactionState:kUGClientResponseFailure];
+ [ret setResponse:error];
+ [ret setRawResponse:nil];
+ return ret;
+ }
+
+ NSString *handsetUUID = [UGClient getUniqueDeviceID];
+ NSString *url = [self createURL:@"devices" append2:handsetUUID];
+
+ // this is a put. We replace whatever was there before
+ return [self httpTransaction:url op:kUGHTTPPut opData:jsonStr];
+}
+
+-(UGClientResponse *)getRemoteStorage
+{
+ NSString *handsetUUID = [UGClient getUniqueDeviceID];
+ NSString *url = [self createURL:@"devices" append2:handsetUUID];
+ return [self httpTransaction:url op:kUGHTTPGet opData:nil];
+}
+
+/***************************** OBLIQUE USAGE ******************************/
+-(UGClientResponse *)apiRequest: (NSString *)url operation:(NSString *)op data:(NSString *)opData
+{
+ // work out the op to use
+ int opID = kUGHTTPGet;
+ if ( [op isEqualToString:@"GET"] ) opID = kUGHTTPGet;
+ if ( [op isEqualToString:@"POST"] ) opID = kUGHTTPPost;
+ if ( [op isEqualToString:@"POSTFORM"] ) opID = kUGHTTPPostAuth;
+ if ( [op isEqualToString:@"PUT"] ) opID = kUGHTTPPut;
+ if ( [op isEqualToString:@"DELETE"] ) opID = kUGHTTPDelete;
+
+ // fire it off. The data, formatting, etc. is all the client's problem.
+ // That's the way oblique functionality is.
+ return [self httpTransaction:url op:opID opData:opData];
+}
+
+/**************************** LOGGING ************************************/
+-(void)setLogging: (BOOL)loggingState
+{
+ m_bLogging = loggingState;
+}
+
+@end
+
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGClientDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGClientDelegate.h b/sdks/other/ios/UGAPI/UGClientDelegate.h
new file mode 100644
index 0000000..28bc996
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGClientDelegate.h
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "UGClientResponse.h"
+
+/******************************A NOTE ON THIS DELEGATE********************************
+Objects conform to this protocol to take advantage of the Asynchronus SDK functionality.
+The setDelegate method needs to be called on the current UGClient for this function to
+be called on an implemented delegate.
+
+If you do not set a delegate, all functions will run synchronously, blocking
+until a response has been received or an error detected.
+*************************************************************************************/
+@protocol UGClientDelegate <NSObject>
+
+//This method is called after every request to the UserGrid API.
+//It passes in the response to the API request, and returns nothing.
+-(void)ugClientResponse:(UGClientResponse *)response;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGClientResponse.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGClientResponse.h b/sdks/other/ios/UGAPI/UGClientResponse.h
new file mode 100755
index 0000000..01bc5a1
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGClientResponse.h
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+// response states
+enum
+{
+ kUGClientResponseSuccess = 0,
+ kUGClientResponseFailure = 1,
+ kUGClientResponsePending = 2
+};
+
+
+@interface UGClientResponse : NSObject
+
+// this will be a unique ID for this transaction. If you have
+// multiple transactions in progress, you can keep track of them
+// with this value. Note: The transaction ID of a synchronous
+// call response is always -1.
+@property int transactionID;
+
+// this will be one of three possible valuse:
+// kUGClientResponseSuccess: The operation is complete and was successful. response will
+// be valid, as will rawResponse
+//
+// kUGClientResponseFailure: There was an error with the operation. No further
+// processing will be done. response will be an NSString with
+// a plain-text description of what went wrong. rawResponse
+// will be valid if the error occurred after receiving data from
+// the service. If it occurred before, rawResponse will be nil.
+//
+// kUGClientResponsePending: The call is being handled asynchronously and not yet complete.
+// response will be nil. rawResponse will also be nil
+@property int transactionState;
+
+// This is the response. The type of this variable is dependant on the call that caused
+// this response.
+@property id response;
+
+// This is the raw text that was returned by the server.
+@property NSString *rawResponse;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGClientResponse.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGClientResponse.m b/sdks/other/ios/UGAPI/UGClientResponse.m
new file mode 100755
index 0000000..dc49fb4
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGClientResponse.m
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGClientResponse.h"
+
+@implementation UGClientResponse
+
+@synthesize transactionID;
+@synthesize transactionState;
+@synthesize response;
+@synthesize rawResponse;
+
+-(id)init
+{
+ self = [super init];
+ if ( self )
+ {
+ transactionID = -1;
+ transactionState = -1;
+ response = nil;
+ rawResponse = nil;
+ }
+ return self;
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGHTTPManager.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGHTTPManager.h b/sdks/other/ios/UGAPI/UGHTTPManager.h
new file mode 100755
index 0000000..d6c1822
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGHTTPManager.h
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+enum
+{
+ kUGHTTPGet = 0,
+ kUGHTTPPost = 1,
+ kUGHTTPPostAuth = 2,
+ kUGHTTPPut = 3,
+ kUGHTTPDelete = 4
+};
+
+@interface UGHTTPManager : NSObject
+
+// blocks until a response is received, or until there's an error.
+// in the event of a response, it's returned. If there's an error,
+// the funciton returns nil and you can call getLastError to see what
+// went wrong.
+-(NSString *)syncTransaction:(NSString *)url operation:(int)op operationData:(NSString *)opData;
+
+// sets up the transaction asynchronously. The delegate that's sent in
+// must have the following functions:
+//
+// -(void)httpManagerError:(UGHTTPManager *)manager error:(NSString *)error
+// -(void)httpManagerResponse:(UGHTTPManager *)manager response:(NSString *)response
+//
+// In all cases, it returns a transaction ID. A return value
+// of -1 means there was an error.
+// You can call getLastError to find out what went wrong.
+-(int)asyncTransaction:(NSString *)url operation:(int)op operationData:(NSString *)opData delegate:(id)delegate;
+
+// get the current transactionID
+-(int)getTransactionID;
+
+// sets the auth key
+-(void)setAuth: (NSString *)auth;
+
+// cancel a pending transaction. The delegate will not be called and the results
+// will be ignored. Though the server side will still have happened.
+-(void)cancel;
+
+// returns YES if this instance is available. NO if this instance is currently
+// in use as part of an asynchronous transaction.
+-(BOOL)isAvailable;
+
+// sets the availability flag of this instance. This is done by UGClient
+-(void)setAvailable:(BOOL)available;
+
+// a helpful utility function to make a string comform to URL
+// rules. It will escape all the special characters.
++(NSString *)escapeSpecials:(NSString *)raw;
+
+// At all times, this will return the plain-text explanation of the last
+// thing that went wrong. It is cleared to "No Error" at the beginnign of
+// each new transaction.
+-(NSString *)getLastError;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGHTTPManager.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGHTTPManager.m b/sdks/other/ios/UGAPI/UGHTTPManager.m
new file mode 100755
index 0000000..5d62fe9
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGHTTPManager.m
@@ -0,0 +1,328 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGHTTPManager.h"
+
+// all transaction IDs are unique across all UGHTTPManagers.
+// this global increases every time there's an asynchronous
+// transaction.
+static int g_nextTransactionID = 1;
+
+// a mutex to protect against multiple threads getting
+// IDs at the same time, and possibly getting the same ID
+// because of it
+NSRecursiveLock *g_transactionIDLock = nil;
+
+@implementation UGHTTPManager
+{
+ // data management for collecting incoming HTTP data
+ // during asynch transactions
+ NSMutableData *m_receivedData;
+
+ // a general error string
+ NSString *m_lastError;
+
+ // the delegate sent in to the asynch method
+ id m_delegate;
+
+ // the transaction ID of the current (or most recent) transaction
+ int m_transactionID;
+
+ // availability of this instance. Managed by UGClient
+ BOOL m_bAvailable;
+
+ // mutex used to ensure the delegate is not changed
+ // in a way that would cause a race condition.
+ NSRecursiveLock *m_delegateLock;
+
+ // the auth key to send along to requests
+ NSString *m_auth;
+}
+
+-(id)init
+{
+ self = [super init];
+ if ( self )
+ {
+ m_lastError = @"No error";
+ m_receivedData = [NSMutableData data];
+ m_bAvailable = YES;
+ m_delegateLock = [NSRecursiveLock new];
+ m_transactionID = -1;
+ m_auth = nil;
+
+ // lazy-init the transaction lock
+ if ( !g_transactionIDLock )
+ {
+ g_transactionIDLock = [NSRecursiveLock new];
+ }
+ }
+ return self;
+}
+
+-(void)setAuth: (NSString *)auth
+{
+ m_auth = auth;
+}
+
+-(NSString *)getLastError
+{
+ return m_lastError;
+}
+
+-(int)getNextTransactionID
+{
+ // make sure we can use this lock
+ assert(g_transactionIDLock);
+
+ [g_transactionIDLock lock];
+ int ret = g_nextTransactionID++;
+ [g_transactionIDLock unlock];
+
+ return ret;
+}
+
+-(int)getTransactionID
+{
+ return m_transactionID;
+}
+
+
+//----------------------- SYNCHRONOUS CALLING ------------------------
+-(NSString *)syncTransaction:(NSString *)url operation:(int)op operationData:(NSString *)opData;
+{
+ // clear the transaction ID
+ m_transactionID = -1;
+
+ // use the synchronous funcitonality of NSURLConnection
+ // clear the error
+ m_lastError = @"No error";
+
+ // formulate the request
+ NSURLRequest *req = [self getRequest:url operation:op operationData:opData];
+
+ NSURLResponse *response;
+ NSError *error;
+ NSData *resultData = [NSURLConnection sendSynchronousRequest:req returningResponse:&response error:&error];
+
+ if ( resultData )
+ {
+ // we got results
+ NSString *resultString = [[NSString alloc] initWithData:resultData encoding:NSUTF8StringEncoding];
+ return resultString;
+ }
+
+ // if we're here, it means we got nil as the result
+ m_lastError = [error localizedDescription];
+ return nil;
+}
+
+//----------------------- ASYNCHRONOUS CALLING ------------------------
+-(int)asyncTransaction:(NSString *)url operation:(int)op operationData:(NSString *)opData delegate:(id)delegate;
+{
+ // clear the transaction ID
+ m_transactionID = -1;
+
+ // clear the error
+ m_lastError = @"No error";
+
+ if ( !delegate )
+ {
+ // an asynch transaction with no delegate has no meaning
+ m_lastError = @"Delegate was nil";
+ return -1;
+ }
+
+ // make sure the delegate responds to the various messages that
+ // are required
+ if ( ![delegate respondsToSelector:@selector(httpManagerError:error:)] )
+ {
+ m_lastError = @"Delegate does not have httpManagerError:error: method";
+ return -1;
+ }
+ if ( ![delegate respondsToSelector:@selector(httpManagerResponse:response:)] )
+ {
+ m_lastError = @"Delegate does not have httpManagerResponse:response: method";
+ return -1;
+ }
+
+ // only once we're assured everything is right do we set the internal value
+ [m_delegateLock lock];
+ m_delegate = delegate;
+ [m_delegateLock unlock];
+
+ // prep a transaction ID for this transaction
+ m_transactionID = [self getNextTransactionID];
+
+ // formulate the request
+ NSURLRequest *req = [self getRequest:url operation:op operationData:opData];
+
+ // fire it off
+ NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:req delegate:self];
+
+ // Note failure
+ if ( !conn )
+ {
+ // failed to connect
+ m_lastError = @"Unable to initiate connection.";
+ return -1;
+ }
+
+ // success
+ return m_transactionID;
+}
+
+-(BOOL)isAvailable
+{
+ return m_bAvailable;
+}
+
+-(void)setAvailable:(BOOL)available
+{
+ m_bAvailable = available;
+}
+
+-(void)cancel
+{
+ // we wrap this in a lock to ensure that the client can
+ // call it at any time. It will not cause a race condition in
+ // any callback thread.
+ [m_delegateLock lock];
+ m_delegate = nil;
+ [m_delegateLock unlock];
+
+ // note that we do not modify the "in use" flag. If we werei n use,
+ // we remain in use until we receive a response or error. This ensures
+ // no confusion on any subsequent transaction. We don't want the case
+ // where a transaction is started, then cancelled, then a new transaction begun
+ // before the first transaction's result comes in. That would lead to the second
+ // transaction being answered with the first's reply. We avoid that possibility by
+ // simply remaining "in use" until we get the reply or error.
+}
+
+// general helper function form aking escaped-strings
++(NSString *)escapeSpecials:(NSString *)raw;
+{
+ NSString *converted = (__bridge NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (__bridge CFStringRef)raw, nil, CFSTR(";/?:@&=$+{}<>"), kCFStringEncodingUTF8);
+ return converted;
+}
+
+// INTERNAL function for forming the request
+-(NSURLRequest *)getRequest:(NSString *)url operation:(int)op operationData:(NSString *)opStr;
+{
+ // make the url
+ NSURL *nsurl = [NSURL URLWithString:url];
+
+ NSMutableURLRequest *req = [NSMutableURLRequest new];
+ [req setURL:nsurl];
+
+ switch ( op )
+ {
+ case kUGHTTPGet: [req setHTTPMethod:@"GET"]; break;
+ case kUGHTTPPost: [req setHTTPMethod:@"POST"]; break;
+ case kUGHTTPPostAuth: [req setHTTPMethod:@"POST"]; break;
+ case kUGHTTPPut: [req setHTTPMethod:@"PUT"]; break;
+ case kUGHTTPDelete: [req setHTTPMethod:@"DELETE"]; break;
+ }
+
+ // set the auth, if any is available
+ if ( m_auth )
+ {
+ NSMutableString *authStr = [NSMutableString new];
+ [authStr appendFormat:@"Bearer %@", m_auth];
+ [req setValue:authStr forHTTPHeaderField:@"Authorization"];
+ }
+
+ // if they sent an opStr, we make that the content
+ if ( opStr )
+ {
+ // prep the post data
+ NSData *opData = [opStr dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
+
+ // make a string that tells the length of the post data. We'll need that for the HTTP header setup
+ NSString *opLength = [NSString stringWithFormat:@"%d", [opData length]];
+
+ [req setValue:opLength forHTTPHeaderField:@"Content-Length"];
+
+ // PostAuth uses form encoding. All other operations use json
+ if ( op == kUGHTTPPostAuth )
+ {
+ [req setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
+ }
+ else
+ {
+ [req setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+ }
+
+ [req setHTTPBody:opData];
+ }
+
+ // all set up and ready for use
+ return req;
+
+}
+
+//------------------------------------------------------------------------------------------
+//-------------------------- NSURLCONNECTION DELEGATE METHODS ------------------------------
+//------------------------------------------------------------------------------------------
+-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
+{
+ // got a response. clear out the data
+ [m_receivedData setLength:0];
+}
+
+-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
+{
+ // got some data. Append it.
+ [m_receivedData appendData:data];
+}
+
+-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
+{
+ // connection failed. Note the error
+ m_lastError = [error localizedDescription];
+
+ // send the error to the delegate. We wrap this in
+ // send the result to the delegate.
+ // wrap this in mutex locks, then check for validity of m_delegate inside.
+ // this ensures no race conditions and allows arbitrary cancellation of callbacks
+ [m_delegateLock lock];
+ if ( m_delegate )
+ {
+ [m_delegate performSelector:@selector(httpManagerError:error:) withObject:self withObject:m_lastError];
+ }
+ m_delegate = nil;
+ [m_delegateLock unlock];
+}
+
+-(void)connectionDidFinishLoading:(NSURLConnection*)connection
+{
+ // all done. Let's turn it in to a string
+ NSString *resultString = [[NSString alloc] initWithData:m_receivedData encoding:NSUTF8StringEncoding];
+
+ // send it to the delegate. See connection:didFailWithError: for an explanation
+ // of the mutex locks
+ [m_delegateLock lock];
+ if ( m_delegate )
+ {
+ [m_delegate performSelector:@selector(httpManagerResponse:response:) withObject:self withObject:resultString];
+ }
+ m_delegate = nil;
+ [m_delegateLock unlock];
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGMultiStepAction.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGMultiStepAction.h b/sdks/other/ios/UGAPI/UGMultiStepAction.h
new file mode 100755
index 0000000..fbc1259
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGMultiStepAction.h
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+// an enumeration for multi-step processes.
+enum
+{
+ kMultiStepNone = 0,
+ kMultiStepCreateActivity = 1, // create an activity
+ kMultiStepPostActivity = 2, // after creating an activity, post it to the user
+ kMultiStepCreateGroupActivity = 3, // create an activity
+ kMultiStepPostGroupActivity = 4, // after creating an activity, post it to the user
+ kMultiStepCleanup = 5 // the final step of all multi-step transactions
+};
+
+// UGMultiStepAction is used internally for client actions that
+// require multiple transactions with the service. It is simple data
+// storage, used by UGClient in abstracting out multi-step transactions
+@interface UGMultiStepAction : NSObject
+
+// the transaction ID that this multistep is associated
+// with. When a transaction of this ID is complete, this is the
+// UGMultiStepAction instance ot ask what to do next
+@property int transactionID;
+
+// the next action this transaction should take
+@property int nextAction;
+
+// data necessary for subsequent steps
+@property NSString *userID;
+@property NSString *groupID;
+@property NSDictionary *activity;
+
+// the transactionID that will be sent to the user.
+// This is distinct from normal transaction IDs,
+// which we use internally at each step.
+@property int outwardTransactionID;
+
+// YES if this action should be reported to the
+// caller .No if not.
+@property BOOL reportToClient;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGMultiStepAction.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGMultiStepAction.m b/sdks/other/ios/UGAPI/UGMultiStepAction.m
new file mode 100755
index 0000000..6a1b7c7
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGMultiStepAction.m
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGMultiStepAction.h"
+
+@implementation UGMultiStepAction
+
+@synthesize transactionID;
+@synthesize nextAction;
+@synthesize userID;
+@synthesize groupID;
+@synthesize activity;
+@synthesize outwardTransactionID;
+@synthesize reportToClient;
+
+
+-(id)init
+{
+ self = [super init];
+ if ( self )
+ {
+ reportToClient = NO;
+ }
+ return self;
+}
+@end
[10/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/composer.lock
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/composer.lock b/sdks/php5/apache-usergrid/composer.lock
deleted file mode 100644
index 3060421..0000000
--- a/sdks/php5/apache-usergrid/composer.lock
+++ /dev/null
@@ -1,1225 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
- "This file is @generated automatically"
- ],
- "hash": "f77c404fc8b03f21424d391e5451af8a",
- "packages": [
- {
- "name": "guzzle/guzzle",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle3.git",
- "reference": "5e6fb7097efac7180bd75006079144025255eb63"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/5e6fb7097efac7180bd75006079144025255eb63",
- "reference": "5e6fb7097efac7180bd75006079144025255eb63",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": "~2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "~1.3",
- "monolog/monolog": "~1.0",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "~1.0",
- "symfony/class-loader": "~2.1",
- "zendframework/zend-cache": "2.*,<2.3",
- "zendframework/zend-log": "2.*,<2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "time": "2014-10-29 23:08:23"
- },
- {
- "name": "illuminate/support",
- "version": "4.2.x-dev",
- "target-dir": "Illuminate/Support",
- "source": {
- "type": "git",
- "url": "https://github.com/illuminate/support.git",
- "reference": "4831699d6bcddd766e3cebbd8279976854d37027"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/illuminate/support/zipball/4831699d6bcddd766e3cebbd8279976854d37027",
- "reference": "4831699d6bcddd766e3cebbd8279976854d37027",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0"
- },
- "require-dev": {
- "jeremeamia/superclosure": "~1.0.1",
- "patchwork/utf8": "1.1.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Illuminate\\Support": ""
- },
- "files": [
- "Illuminate/Support/helpers.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Taylor Otwell",
- "email": "taylorotwell@gmail.com"
- }
- ],
- "time": "2014-09-27 01:17:10"
- },
- {
- "name": "nesbot/carbon",
- "version": "1.13.0",
- "source": {
- "type": "git",
- "url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "5cb6e71055f7b0b57956b73d324cc4de31278f42"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/5cb6e71055f7b0b57956b73d324cc4de31278f42",
- "reference": "5cb6e71055f7b0b57956b73d324cc4de31278f42",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Carbon": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Brian Nesbitt",
- "email": "brian@nesbot.com",
- "homepage": "http://nesbot.com"
- }
- ],
- "description": "A simple API extension for DateTime.",
- "homepage": "https://github.com/briannesbitt/Carbon",
- "keywords": [
- "date",
- "datetime",
- "time"
- ],
- "time": "2014-09-26 02:52:02"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "2.7.x-dev",
- "target-dir": "Symfony/Component/EventDispatcher",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/EventDispatcher.git",
- "reference": "8e5829263631e686bf4d1254b02411263b8fa228"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/8e5829263631e686bf4d1254b02411263b8fa228",
- "reference": "8e5829263631e686bf4d1254b02411263b8fa228",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.0",
- "symfony/dependency-injection": "~2.6",
- "symfony/expression-language": "~2.6",
- "symfony/stopwatch": "~2.2"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.7-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\EventDispatcher\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "http://symfony.com",
- "time": "2014-11-10 18:00:54"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f976e5de371104877ebc89bd8fecb0019ed9c119",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "2.0.*@ALPHA"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Instantiator\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2014-10-13 12:58:55"
- },
- {
- "name": "mockery/mockery",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/padraic/mockery.git",
- "reference": "30eb319efcf2ebe6b4529be51f60df78340bdbb5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/padraic/mockery/zipball/30eb319efcf2ebe6b4529be51f60df78340bdbb5",
- "reference": "30eb319efcf2ebe6b4529be51f60df78340bdbb5",
- "shasum": ""
- },
- "require": {
- "lib-pcre": ">=7.0",
- "php": ">=5.3.2"
- },
- "require-dev": {
- "hamcrest/hamcrest-php": "~1.1",
- "phpunit/phpunit": "~4.0",
- "satooshi/php-coveralls": "~0.7@dev"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.9.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Mockery": "library/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "P�draic Brady",
- "email": "padraic.brady@gmail.com",
- "homepage": "http://blog.astrumfutura.com"
- },
- {
- "name": "Dave Marshall",
- "email": "dave.marshall@atstsolutions.co.uk",
- "homepage": "http://davedevelopment.co.uk"
- }
- ],
- "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.",
- "homepage": "http://github.com/padraic/mockery",
- "keywords": [
- "BDD",
- "TDD",
- "library",
- "mock",
- "mock objects",
- "mockery",
- "stub",
- "test",
- "test double",
- "testing"
- ],
- "time": "2014-11-10 08:31:38"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "fd0ac2007401505fb596fdfb859ec4e103d69e55"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/fd0ac2007401505fb596fdfb859ec4e103d69e55",
- "reference": "fd0ac2007401505fb596fdfb859ec4e103d69e55",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2014-09-02 14:26:20"
- },
- {
- "name": "phpspec/prophecy",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "2bbc78d0b4b1ce8049479395ba950d4b13f21d94"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/2bbc78d0b4b1ce8049479395ba950d4b13f21d94",
- "reference": "2bbc78d0b4b1ce8049479395ba950d4b13f21d94",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "~1.0,>=1.0.2",
- "phpdocumentor/reflection-docblock": "~2.0"
- },
- "require-dev": {
- "phpspec/phpspec": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "http://phpspec.org",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2014-10-05 19:43:51"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "21b9006b7ceb7e1cb0b705615af31f67c8cd1692"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/21b9006b7ceb7e1cb0b705615af31f67c8cd1692",
- "reference": "21b9006b7ceb7e1cb0b705615af31f67c8cd1692",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "~1.0",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "dev-master"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2014-11-11 14:18:30"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.3.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "File/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2013-10-10 15:34:57"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "Text/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2014-01-30 17:20:04"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "PHP/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2013-08-02 07:42:54"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "f8d5d08c56de5cfd592b3340424a81733259a876"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/f8d5d08c56de5cfd592b3340424a81733259a876",
- "reference": "f8d5d08c56de5cfd592b3340424a81733259a876",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2014-08-31 06:12:13"
- },
- {
- "name": "phpunit/phpunit",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "247756f342dfb0a319f8985ef06f21a00d98b59c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/247756f342dfb0a319f8985ef06f21a00d98b59c",
- "reference": "247756f342dfb0a319f8985ef06f21a00d98b59c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "~1.2",
- "phpunit/php-code-coverage": "3.0.*@dev",
- "phpunit/php-file-iterator": "~1.3.2",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "~1.0.2",
- "phpunit/phpunit-mock-objects": "2.4.*@dev",
- "sebastian/comparator": "1.1.*@dev",
- "sebastian/diff": "~1.1",
- "sebastian/environment": "~1.2",
- "sebastian/exporter": "~1.0",
- "sebastian/global-state": "1.0.*@dev",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2014-11-06 08:43:29"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "96c5b81f9842f38fe6c73ad0020306cc4862a9e3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/96c5b81f9842f38fe6c73ad0020306cc4862a9e3",
- "reference": "96c5b81f9842f38fe6c73ad0020306cc4862a9e3",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "~1.0,>=1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "4.4.*@dev"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2014-10-04 10:04:20"
- },
- {
- "name": "sebastian/comparator",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "6f67d2ae044ba17ba30573941f4ac96c4777be97"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/6f67d2ae044ba17ba30573941f4ac96c4777be97",
- "reference": "6f67d2ae044ba17ba30573941f4ac96c4777be97",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.1",
- "sebastian/exporter": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2014-10-21 10:04:18"
- },
- {
- "name": "sebastian/diff",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "3e22c89be2e1cddf7db89699cb23a9159df12e0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3e22c89be2e1cddf7db89699cb23a9159df12e0c",
- "reference": "3e22c89be2e1cddf7db89699cb23a9159df12e0c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "http://www.github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2014-11-05 15:28:21"
- },
- {
- "name": "sebastian/environment",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "6e6c71d918088c251b181ba8b3088af4ac336dd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6e6c71d918088c251b181ba8b3088af4ac336dd7",
- "reference": "6e6c71d918088c251b181ba8b3088af4ac336dd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2014-10-25 08:00:45"
- },
- {
- "name": "sebastian/exporter",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "c7d59948d6e82818e1bdff7cadb6c34710eb7dc0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c7d59948d6e82818e1bdff7cadb6c34710eb7dc0",
- "reference": "c7d59948d6e82818e1bdff7cadb6c34710eb7dc0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2014-09-10 00:51:36"
- },
- {
- "name": "sebastian/global-state",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "231d48620efde984fd077ee92916099a3ece9a59"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/231d48620efde984fd077ee92916099a3ece9a59",
- "reference": "231d48620efde984fd077ee92916099a3ece9a59",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2014-10-06 09:49:11"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43",
- "reference": "b6e1f0cf6b9e1ec409a0d3e2f2a5fb0998e36b43",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2014-03-07 15:35:33"
- },
- {
- "name": "symfony/yaml",
- "version": "2.7.x-dev",
- "target-dir": "Symfony/Component/Yaml",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Yaml.git",
- "reference": "6165f4b5224c22de2873deb6a3a4e622044f0705"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Yaml/zipball/6165f4b5224c22de2873deb6a3a4e622044f0705",
- "reference": "6165f4b5224c22de2873deb6a3a4e622044f0705",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.7-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Yaml\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "http://symfony.com",
- "time": "2014-11-10 18:00:54"
- }
- ],
- "aliases": [],
- "minimum-stability": "dev",
- "stability-flags": [],
- "prefer-stable": false,
- "platform": [],
- "platform-dev": []
-}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/phpunit.xml
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/phpunit.xml b/sdks/php5/apache-usergrid/phpunit.xml
deleted file mode 100644
index ce3af97..0000000
--- a/sdks/php5/apache-usergrid/phpunit.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="tests/bootstrap.php"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- >
- <testsuites>
- <testsuite name="Apache Usergrid PHP SDK Test Suite">
- <directory>./tests</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist>
- <directory suffix=".php">./src/</directory>
- <exclude>
- <file>./src/Laravel/ApacheUsergridServiceProvider.php</file>
- </exclude>
- </whitelist>
- </filter>
- <logging>
- <log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
- </logging>
-</phpunit>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/BadRequestException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/BadRequestException.php b/sdks/php5/apache-usergrid/src/Api/Exception/BadRequestException.php
deleted file mode 100644
index 1e63c40..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/BadRequestException.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-
-namespace Apache\Usergrid\Api\Exception;
-
-
-/**
- * Class BadRequestException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class BadRequestException extends UsergridException
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/InvalidIdException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/InvalidIdException.php b/sdks/php5/apache-usergrid/src/Api/Exception/InvalidIdException.php
deleted file mode 100644
index c59a683..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/InvalidIdException.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Exception;
-
-
-/**
- * Class InvalidIdException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class InvalidIdException extends UsergridException
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/NotFoundException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/NotFoundException.php b/sdks/php5/apache-usergrid/src/Api/Exception/NotFoundException.php
deleted file mode 100644
index c371538..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/NotFoundException.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Exception;
-
-
-/**
- * Class NotFoundException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class NotFoundException extends UsergridException
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/ServerErrorException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/ServerErrorException.php b/sdks/php5/apache-usergrid/src/Api/Exception/ServerErrorException.php
deleted file mode 100644
index 2286133..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/ServerErrorException.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Exception;
-
-
-/**
- * Class ServerErrorException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class ServerErrorException extends UsergridException
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/UnauthorizedException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/UnauthorizedException.php b/sdks/php5/apache-usergrid/src/Api/Exception/UnauthorizedException.php
deleted file mode 100644
index 3e3ae41..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/UnauthorizedException.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-
-namespace Apache\Usergrid\Api\Exception;
-
-
-/**
- * Class UnauthorizedException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class UnauthorizedException extends UsergridException
-{
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Exception/UsergridException.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Exception/UsergridException.php b/sdks/php5/apache-usergrid/src/Api/Exception/UsergridException.php
deleted file mode 100644
index 8aedb03..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Exception/UsergridException.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-namespace Apache\Usergrid\Api\Exception;
-
-
-use Exception;
-use Guzzle\Http\Message\Request;
-use Guzzle\Http\Message\Response;
-use Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface;
-use Guzzle\Service\Command\CommandInterface;
-
-/**
- * Class UsergridException
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class UsergridException extends Exception implements ErrorResponseExceptionInterface
-{
- /**
- * The Guzzle request.
- *
- * @var \Guzzle\Http\Message\Request
- */
- protected $request;
-
- /**
- * The Guzzle response.
- *
- * @var \Guzzle\Http\Message\Response
- */
- protected $response;
-
- /**
- * The error type returned by Usergrid.
- *
- * @var string
- */
- protected $errorType;
-
- /**
- * {@inheritDoc}
- */
- public static function fromCommand(CommandInterface $command, Response $response)
- {
- $errors = json_decode($response->getBody(true), true);
-
- $type = array_get($errors, 'error.type', null);
-
- $code = array_get($errors, 'error.code', null);
-
- $message = array_get($errors, 'error.message', null);
-
- $class = '\\Apache\\Usergrid\\Api\\Exception\\' . studly_case($type) . 'Exception';
-
- if (class_exists($class)) {
- $exception = new $class($message, $response->getStatusCode());
- } else {
- $exception = new static($message, $response->getStatusCode());
- }
-
- $exception->setErrorType($type);
-
- $exception->setResponse($response);
-
- $exception->setRequest($command->getRequest());
-
- return $exception;
- }
-
- /**
- * Returns the Guzzle request.
- *
- * @return \Guzzle\Http\Message\Request
- */
- public function getRequest()
- {
- return $this->request;
- }
-
- /**
- * Sets the Guzzle request.
- *
- * @param \Guzzle\Http\Message\Request $request
- * @return void
- */
- public function setRequest(Request $request)
- {
- $this->request = $request;
- }
-
- /**
- * Returns the Guzzle response.
- *
- * @return \Guzzle\Http\Message\Response
- */
- public function getResponse()
- {
- return $this->response;
- }
-
- /**
- * Sets the Guzzle response.
- *
- * @param \Guzzle\Http\Message\Response $response
- * @return void
- */
- public function setResponse(Response $response)
- {
- $this->response = $response;
- }
-
- /**
- * Returns the error type returned by Usergrid.
- *
- * @return string
- */
- public function getErrorType()
- {
- return $this->errorType;
- }
-
- /**
- * Sets the error type returned by Usergrid.
- *
- * @param string $errorType
- * @return void
- */
- public function setErrorType($errorType)
- {
- $this->errorType = $errorType;
- }
-
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Filters/Boolean.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Filters/Boolean.php b/sdks/php5/apache-usergrid/src/Api/Filters/Boolean.php
deleted file mode 100644
index 021f2fd..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Filters/Boolean.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Filters;
-
-
-/**
- * Class Boolean
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Boolean
-{
-
- /**
- * Converts a boolean into its string representation.
- *
- * @param bool $boolean
- * @return string
- */
- public static function convert($boolean)
- {
- return $boolean ? 'true' : 'false';
- }
-
-}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Filters/Date.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Filters/Date.php b/sdks/php5/apache-usergrid/src/Api/Filters/Date.php
deleted file mode 100644
index 8b3c5c6..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Filters/Date.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Filters;
-
-use Carbon\Carbon;
-
-/**
- * Class Date
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Date
-{
-
- /**
- * @param $date
- * @return static
- */
- public static function convert($date)
- {
- $date2 = (int)($date / 1000);
- $date_string = Carbon::createFromTimestampUTC($date2)->toDayDateTimeString();
- return $date_string;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Filters/Number.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Filters/Number.php b/sdks/php5/apache-usergrid/src/Api/Filters/Number.php
deleted file mode 100644
index 41047d3..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Filters/Number.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Filters;
-
-
-/**
- * Class Number
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Number
-{
-
- /**
- * Converts a number into an integer.
- *
- * @param mixed $number
- * @return int
- */
- public static function convert($number)
- {
- if (is_string($number) || is_float($number)) {
- return (int)($number * 100);
- }
-
- return $number;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/GuzzleClient.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/GuzzleClient.php b/sdks/php5/apache-usergrid/src/Api/GuzzleClient.php
deleted file mode 100644
index 6ef9d8a..0000000
--- a/sdks/php5/apache-usergrid/src/Api/GuzzleClient.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api;
-
-
-use Guzzle\Service\Client;
-
-/**
- * Class GuzzleClient
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class GuzzleClient extends Client
-{
-
- /**
- * The Usergrid API client instance.
- *
- * @var \Apache\Usergrid\Api\Usergrid
- */
- protected $apiClient;
-
- /**
- * Returns the Usergrid API client instance.
- *
- * @return \Apache\Usergrid\Api\Usergrid
- */
- public function getApiClient()
- {
- return $this->apiClient;
- }
-
- /**
- * Sets the Usergrid API client instance.
- *
- * @param \Apache\Usergrid\Api\Usergrid $client
- * @return void
- */
- public function setApiClient(Usergrid $client)
- {
- $this->apiClient = $client;
- }
-
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Application.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Application.php b/sdks/php5/apache-usergrid/src/Api/Models/Application.php
deleted file mode 100644
index 336d6d9..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Application.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Application
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Application extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/BaseCollection.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/BaseCollection.php b/sdks/php5/apache-usergrid/src/Api/Models/BaseCollection.php
deleted file mode 100644
index 4cc7d67..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/BaseCollection.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Apache\Usergrid\Api\Usergrid;
-use Illuminate\Support\Collection;
-
-/**
- * Class BaseCollection
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class BaseCollection extends Collection
-{
- /**
- * List of API response properties that'll be
- * automatically converted into collections.
- *
- * @var array
- */
- protected $collections = ['entities'];
-
- /**
- * The Usergrid API client instance.
- *
- * @var /Apache\Usergrid\Api\Usergrid
- */
- protected $apiClient;
-
- /**
- * Returns the given key value from the collection.
- *
- * @param mixed $key
- * @return mixed
- */
- public function __get($key)
- {
- if (in_array($key, $this->collections) || array_key_exists($key, $this->collections)) {
- if ($mappedKey = array_get($this->collections, $key, [])) {
- $key = strstr($mappedKey, '.', true);
-
- $query = ltrim(strstr($mappedKey, '.'), '.');
-
- $data = array_get($this->get($key), $query, []);
- } else {
- $data = $this->get($key, []);
- }
- // create a new class of self so subclasses get new collection from entities of the correct model
- // eg: before when asking the User Model for its entities returned a collection of the BaseCollection class not the user class..
- $class = self::instance($data);
- //set the api client on collection so api attribute properties can make api calls to get related models
- $class->setApiClient($this->getApiClient());
- // return class.
- return $class;
-
- }
- // check to see if the property you asked for is a attribute method
- if (method_exists($this, $method = "{$key}Attribute")) {
- return $this->{$method}($this->get($key));
- }
-
- //else return key
- return $this->get($key, null);
- }
-
- /**
- * @param $data
- * @return static
- */
- private static function instance($data)
- {
- return new static($data);
- }
-
- /**
- * Returns the Usergrid API client instance.
- *
- * @return /Apache\Usergrid\Api\Usergrid /Apache\Usergrid\Api\Usergrid
- */
- public function getApiClient()
- {
- return $this->apiClient;
- }
-
- /**
- * Sets the Usergrid API client instance.
- *
- * @param Usergrid $client
- * @internal param $ /Apache\Usergrid\Api\Usergrid $client
- * @return void
- */
- public function setApiClient(Usergrid $client)
- {
- $this->apiClient = $client;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Collection.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Collection.php b/sdks/php5/apache-usergrid/src/Api/Models/Collection.php
deleted file mode 100644
index 9fb6d5b..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Collection.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Collection
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Collection extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Device.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Device.php b/sdks/php5/apache-usergrid/src/Api/Models/Device.php
deleted file mode 100644
index 403ff8d..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Device.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Device
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Device extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-
- public function userAttribute()
- {
- return $this->getApiClient()->application()->GetRelationship([
- 'collection' => 'devices',
- 'entity_id' => $this->entities->fetch('uuid')->first(),
- 'relationship' => 'users'
- ])->toArray();
- }
-
- public function notifierAttribute()
- {
-
- }
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Entity.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Entity.php b/sdks/php5/apache-usergrid/src/Api/Models/Entity.php
deleted file mode 100644
index 5063fd0..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Entity.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Entity
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Entity extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Event.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Event.php b/sdks/php5/apache-usergrid/src/Api/Models/Event.php
deleted file mode 100644
index 2e04595..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Event.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Event
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Event extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Group.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Group.php b/sdks/php5/apache-usergrid/src/Api/Models/Group.php
deleted file mode 100644
index 6b034ca..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Group.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Group
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Group extends BaseCollection implements ResponseClassInterface
-{
-
- use GuzzleCommandTrait;
-
- public function usersAttribute()
- {
- return $this->getApiClient()->application()->GetRelationship([
- 'collection' => 'groups',
- 'entity_id' => $this->entities->fetch('uuid')->first(),
- 'relationship' => 'users'
- ])->toArray();
- }
-
- public function rolesAttribute()
- {
- return $this->getApiClient()->application()->GetRelationship([
- 'collection' => 'groups',
- 'entity_id' => $this->entities->fetch('uuid')->first(),
- 'relationship' => 'roles'
- ])->toArray();
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/GuzzleCommandTrait.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/GuzzleCommandTrait.php b/sdks/php5/apache-usergrid/src/Api/Models/GuzzleCommandTrait.php
deleted file mode 100644
index e6ccb68..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/GuzzleCommandTrait.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-use Guzzle\Service\Command\OperationCommand;
-
-/**
- * Class GuzzleCommandTrait
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-trait GuzzleCommandTrait
-{
- /**
- * Create a response model object from a completed command.
- *
- * @param OperationCommand $command That serialized the request
- * @return \Illuminate\Support\Collection
- */
- public static function fromCommand(OperationCommand $command)
- {
- // Initialize the collection
- $collection = new self($command->getResponse()->json());
-
- // Set the Usergrid API client on the collection
- $collection->setApiClient($command->getClient()->getApiClient());
-
- // Return the collection
- return $collection;
- }
-
- /**
- * Returns true if there is a cursor or false if there is not
- * @return bool
- */
- public function hasNextPage()
- {
- return $this->has('cursor');
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Notifier.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Notifier.php b/sdks/php5/apache-usergrid/src/Api/Models/Notifier.php
deleted file mode 100644
index a4c21c8..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Notifier.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Application
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Notifier extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Organization.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Organization.php b/sdks/php5/apache-usergrid/src/Api/Models/Organization.php
deleted file mode 100644
index d58d3d4..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Organization.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Organization
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Organization extends BaseCollection implements ResponseClassInterface
-{
-
- use GuzzleCommandTrait;
-
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Receipt.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Receipt.php b/sdks/php5/apache-usergrid/src/Api/Models/Receipt.php
deleted file mode 100644
index bc09235..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Receipt.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Application
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Receipt extends BaseCollection implements ResponseClassInterface
-{
- use GuzzleCommandTrait;
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/php5/apache-usergrid/src/Api/Models/Role.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/Models/Role.php b/sdks/php5/apache-usergrid/src/Api/Models/Role.php
deleted file mode 100644
index 3e93465..0000000
--- a/sdks/php5/apache-usergrid/src/Api/Models/Role.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Copyright 2010-2014 baas-platform.com, Pty Ltd. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Apache\Usergrid\Api\Models;
-
-
-use Guzzle\Service\Command\ResponseClassInterface;
-
-/**
- * Class Role
- *
- * @package Apache/Usergrid
- * @version 1.0.0
- * @author Jason Kristian <ja...@gmail.com>
- * @license Apache License, Version 2.0
- * @copyright (c) 2008-2014, Baas Platform Pty. Ltd
- * @link http://baas-platform.com
- */
-class Role extends BaseCollection implements ResponseClassInterface
-{
-
- use GuzzleCommandTrait;
-
- public function usersAttribute()
- {
- return $this->getApiClient()->application()->GetRelationship([
- 'collection' => 'roles',
- 'entity_id' => $this->entities->fetch('uuid')->first(),
- 'relationship' => 'users'
- ])->toArray();
- }
-
- public function groupsAttribute()
- {
- return $this->getApiClient()->application()->GetRelationship([
- 'collection' => 'roles',
- 'entity_id' => $this->entities->fetch('uuid')->first(),
- 'relationship' => 'groups'
- ])->toArray();
- }
-}
\ No newline at end of file
[30/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/AddBookViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/AddBookViewController.m b/sdks/other/ios/samples/Books/books/AddBookViewController.m
new file mode 100644
index 0000000..85afa77
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/AddBookViewController.m
@@ -0,0 +1,169 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// AddBookViewController.m
+// books
+//
+
+#import "AddBookViewController.h"
+#import "UGConnection.h"
+#import "UGHTTPClient.h"
+#import "UGHTTPResult.h"
+
+@interface FormTableViewCell : UITableViewCell <UITextFieldDelegate>
+@property (nonatomic, strong) UILabel *label;
+@property (nonatomic, strong) UITextField *textField;
+@property (nonatomic, strong) NSString *key;
+@property (nonatomic, weak) id binding;
+@end
+
+@implementation FormTableViewCell
+
+- (id) initWithTitle:(NSString *)title key:(NSString *) key binding:(id) binding
+{
+ if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]) {
+ self.label = [[UILabel alloc] initWithFrame:CGRectMake(10,0,90,14)];
+ self.label.backgroundColor = [UIColor clearColor];
+ self.label.font = [UIFont systemFontOfSize:10];
+ self.label.textColor = [UIColor grayColor];
+ self.label.textAlignment = NSTextAlignmentLeft;
+ [self.contentView addSubview:self.label];
+ self.textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 14, 100, 30)];
+ self.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
+ self.textField.font = [UIFont systemFontOfSize:18];
+ self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
+ self.textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
+ self.textField.delegate = self;
+ if ([key isEqualToString:@"password"]) {
+ self.textField.secureTextEntry = YES;
+ }
+ [self.contentView addSubview:self.textField];
+ self.selectionStyle = UITableViewCellSelectionStyleNone;
+ // individual cell properties
+ self.label.text = title;
+ self.key = key;
+ self.binding = binding;
+ }
+ return self;
+}
+
+- (void) layoutSubviews
+{
+ [super layoutSubviews];
+ CGRect textFieldFrame = self.textField.frame;
+ textFieldFrame.size.width = self.textField.superview.bounds.size.width - textFieldFrame.origin.x - 5;
+ self.textField.frame = textFieldFrame;
+}
+
+- (void) textFieldDidEndEditing:(UITextField *)textField
+{
+ [self.binding setObject:textField.text forKey:self.key];
+}
+
+@end
+
+@interface AddBookViewController ()
+@property (nonatomic, strong) NSMutableDictionary *values;
+@property (nonatomic, strong) NSArray *cells;
+@end
+
+@implementation AddBookViewController
+
+- (id)init {
+ if (self = [super initWithStyle:UITableViewStyleGrouped]) {
+ self.values = [[[NSUserDefaults standardUserDefaults] objectForKey:@"usergrid"] mutableCopy];
+ if (!self.values) {
+ self.values = [NSMutableDictionary dictionary];
+ }
+ self.cells =
+ @[[[FormTableViewCell alloc] initWithTitle:@"Title" key:@"title" binding:self.values],
+ [[FormTableViewCell alloc] initWithTitle:@"Author" key:@"author" binding:self.values]];
+ }
+ return self;
+}
+
+- (void) loadView
+{
+ [super loadView];
+ self.title = @"Connection";
+ self.tableView.backgroundView = nil;
+ self.tableView.backgroundColor = [UIColor darkGrayColor];
+ self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Cancel"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(cancel:)];
+ self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Save"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(save:)];
+}
+
+#pragma mark - Table view data source
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ return [self.cells count];
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ return [self.cells objectAtIndex:[indexPath row]];
+}
+
+#pragma mark - Table view delegate
+
+- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ FormTableViewCell *formCell = (FormTableViewCell *) cell;
+ formCell.textField.text = [formCell.binding objectForKey:formCell.key];
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ FormTableViewCell *formCell = (FormTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
+ [formCell.textField becomeFirstResponder];
+}
+
+#pragma mark - Sign In
+
+- (void) cancel:(id) sender
+{
+ [self dismissViewControllerAnimated:YES completion:nil];
+}
+
+- (void) save:(id) sender
+{
+ for (FormTableViewCell *cell in self.cells) {
+ [cell.textField resignFirstResponder];
+ }
+ UGConnection *connection = [UGConnection sharedConnection];
+ [[[UGHTTPClient alloc] initWithRequest:
+ [connection createEntityInCollection:@"books" withValues:self.values]]
+ connectWithCompletionHandler:^(UGHTTPResult *result) {
+ [self dismissViewControllerAnimated:YES completion:nil];
+ }];
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/AppDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/AppDelegate.h b/sdks/other/ios/samples/Books/books/AppDelegate.h
new file mode 100644
index 0000000..185592e
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/AppDelegate.h
@@ -0,0 +1,43 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// AppDelegate.h
+// books
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/AppDelegate.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/AppDelegate.m b/sdks/other/ios/samples/Books/books/AppDelegate.m
new file mode 100644
index 0000000..f1082ef
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/AppDelegate.m
@@ -0,0 +1,43 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// AppDelegate.m
+// books
+//
+
+#import "AppDelegate.h"
+#import "BooksViewController.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ UINavigationController *navigationController = [[UINavigationController alloc]
+ initWithRootViewController:[[BooksViewController alloc] init]];
+ navigationController.navigationBar.tintColor = [UIColor colorWithRed:100.0/255.0
+ green:150.0/255.0
+ blue:200.0/255.0
+ alpha:1];
+ self.window.rootViewController = navigationController;
+ self.window.backgroundColor = [UIColor whiteColor];
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/BooksViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/BooksViewController.h b/sdks/other/ios/samples/Books/books/BooksViewController.h
new file mode 100644
index 0000000..b286c29
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/BooksViewController.h
@@ -0,0 +1,41 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// BooksViewController.h
+// books
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#import <UIKit/UIKit.h>
+
+@interface BooksViewController : UITableViewController
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/BooksViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/BooksViewController.m b/sdks/other/ios/samples/Books/books/BooksViewController.m
new file mode 100644
index 0000000..44be61c
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/BooksViewController.m
@@ -0,0 +1,154 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// BooksViewController.m
+// books
+//
+
+#import "BooksViewController.h"
+#import "UGSignInViewController.h"
+#import "UGConnection.h"
+#import "UGHTTPClient.h"
+#import "UGHTTPResult.h"
+#import "AddBookViewController.h"
+
+@interface BooksViewController ()
+@property (nonatomic, strong) NSDictionary *content;
+@end
+
+@implementation BooksViewController
+
+- (id)initWithStyle:(UITableViewStyle)style
+{
+ self = [super initWithStyle:style];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void)loadView
+{
+ [super loadView];
+ self.navigationItem.title = @"My Books";
+ self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Add Book"
+ style:UIBarButtonItemStyleBordered target:self action:@selector(addbook:)];
+ self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Connection"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(connect:)];
+}
+
+- (void) connect:(id) sender
+{
+ UGSignInViewController *signinViewController = [[UGSignInViewController alloc] init];
+ UINavigationController *signinNavigationController =
+ [[UINavigationController alloc] initWithRootViewController:signinViewController];
+ signinNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
+ signinNavigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
+ [self presentViewController:signinNavigationController animated:YES completion:nil];
+}
+
+- (void) addbook:(id) sender
+{
+ AddBookViewController *addBookViewController = [[AddBookViewController alloc] init];
+ UINavigationController *navigationController =
+ [[UINavigationController alloc] initWithRootViewController:addBookViewController];
+ navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
+ navigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
+ [self presentViewController:navigationController animated:YES completion:nil];
+}
+
+- (void) viewWillAppear:(BOOL)animated
+{
+ [self reload];
+}
+
+- (void) reload {
+ UGConnection *usergrid = [UGConnection sharedConnection];
+ if ([usergrid isAuthenticated]) {
+ NSLog(@"loading...");
+ UGHTTPClient *client = [[UGHTTPClient alloc] initWithRequest:
+ [usergrid getEntitiesInCollection:@"books" limit:100]];
+ [client connectWithCompletionHandler:^(UGHTTPResult *result) {
+ NSLog(@"%@", result.object);
+ self.content = result.object;
+ [self.tableView reloadData];
+ }];
+ }
+}
+
+#pragma mark - Table view data source
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ // Return the number of sections.
+ return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ // Return the number of rows in the section.
+ return self.content ? [self.content[@"entities"] count] : 1;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ return [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
+}
+
+#pragma mark - Table view delegate
+
+- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ if (!self.content) {
+ cell.textLabel.text = @"Please sign in.";
+ } else {
+ id entity = self.content[@"entities"][[indexPath row]];
+ cell.textLabel.text = entity[@"title"];
+ cell.detailTextLabel.text = entity[@"author"];
+ UIButton *deleteButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
+ cell.accessoryView = deleteButton;
+ [deleteButton setTitle:@"X" forState:UIControlStateNormal];
+ deleteButton.tag = [indexPath row];
+ [deleteButton addTarget:self action:@selector(deleteItem:) forControlEvents:UIControlEventTouchUpInside];
+ [deleteButton sizeToFit];
+ }
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
+}
+
+- (void) deleteItem:(UIButton *) sender {
+ int row = [sender tag];
+ id entity = self.content[@"entities"][row];
+ NSString *uuid = [entity objectForKey:@"uuid"];
+ UGHTTPClient *client = [[UGHTTPClient alloc] initWithRequest:
+ [[UGConnection sharedConnection] deleteEntity:uuid inCollection:@"books"]];
+ [client connectWithCompletionHandler:^(UGHTTPResult *result) {
+ [self reload];
+ }];
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ if (!self.content) {
+ [self connect:nil];
+ }
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/Default-568h@2x.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/Default-568h@2x.png b/sdks/other/ios/samples/Books/books/Default-568h@2x.png
new file mode 100644
index 0000000..0891b7a
Binary files /dev/null and b/sdks/other/ios/samples/Books/books/Default-568h@2x.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/Default.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/Default.png b/sdks/other/ios/samples/Books/books/Default.png
new file mode 100644
index 0000000..4c8ca6f
Binary files /dev/null and b/sdks/other/ios/samples/Books/books/Default.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/Default@2x.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/Default@2x.png b/sdks/other/ios/samples/Books/books/Default@2x.png
new file mode 100644
index 0000000..35b84cf
Binary files /dev/null and b/sdks/other/ios/samples/Books/books/Default@2x.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/UGSignInViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/UGSignInViewController.h b/sdks/other/ios/samples/Books/books/UGSignInViewController.h
new file mode 100644
index 0000000..b831869
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/UGSignInViewController.h
@@ -0,0 +1,23 @@
+//
+// UGSignInViewController.h
+// books
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+@class UGAppViewController;
+
+@interface UGSignInViewController : UITableViewController
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/UGSignInViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/UGSignInViewController.m b/sdks/other/ios/samples/Books/books/UGSignInViewController.m
new file mode 100644
index 0000000..6cccb77
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/UGSignInViewController.m
@@ -0,0 +1,184 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// UGSignInViewController.m
+// books
+//
+
+
+#import "UGHTTPClient.h"
+#import "UGConnection.h"
+#import "UGSignInViewController.h"
+
+#define SERVER @"http://api.usergrid.com"
+
+@interface UGFormTableViewCell : UITableViewCell <UITextFieldDelegate>
+@property (nonatomic, strong) UILabel *label;
+@property (nonatomic, strong) UITextField *textField;
+@property (nonatomic, strong) NSString *key;
+@property (nonatomic, weak) id binding;
+@end
+
+@implementation UGFormTableViewCell
+
+- (id) initWithTitle:(NSString *)title key:(NSString *) key binding:(id) binding
+{
+ if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]) {
+ self.label = [[UILabel alloc] initWithFrame:CGRectMake(10,0,90,14)];
+ self.label.backgroundColor = [UIColor clearColor];
+ self.label.font = [UIFont systemFontOfSize:10];
+ self.label.textColor = [UIColor grayColor];
+ self.label.textAlignment = NSTextAlignmentLeft;
+ [self.contentView addSubview:self.label];
+ self.textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 14, 100, 30)];
+ self.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
+ self.textField.font = [UIFont systemFontOfSize:18];
+ self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
+ self.textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
+ self.textField.delegate = self;
+ if ([key isEqualToString:@"password"]) {
+ self.textField.secureTextEntry = YES;
+ }
+ [self.contentView addSubview:self.textField];
+ self.selectionStyle = UITableViewCellSelectionStyleNone;
+ // individual cell properties
+ self.label.text = title;
+ self.key = key;
+ self.binding = binding;
+ }
+ return self;
+}
+
+- (void) layoutSubviews
+{
+ [super layoutSubviews];
+ CGRect textFieldFrame = self.textField.frame;
+ textFieldFrame.size.width = self.textField.superview.bounds.size.width - textFieldFrame.origin.x - 5;
+ self.textField.frame = textFieldFrame;
+}
+
+- (void) textFieldDidEndEditing:(UITextField *)textField
+{
+ [self.binding setObject:textField.text forKey:self.key];
+}
+
+@end
+
+@interface UGSignInViewController ()
+@property (nonatomic, strong) NSMutableDictionary *values;
+@property (nonatomic, strong) NSArray *cells;
+@end
+
+@implementation UGSignInViewController
+
+- (id)init {
+ if (self = [super initWithStyle:UITableViewStyleGrouped]) {
+ self.values = [[[NSUserDefaults standardUserDefaults] objectForKey:@"usergrid"] mutableCopy];
+ if (!self.values) {
+ self.values = [NSMutableDictionary dictionary];
+ [self.values setObject:SERVER forKey:@"server"];
+ }
+ self.cells =
+ @[[[UGFormTableViewCell alloc] initWithTitle:@"Server" key:@"server" binding:self.values],
+ [[UGFormTableViewCell alloc] initWithTitle:@"Organization" key:@"organization" binding:self.values],
+ [[UGFormTableViewCell alloc] initWithTitle:@"Application" key:@"application" binding:self.values],
+ [[UGFormTableViewCell alloc] initWithTitle:@"Username" key:@"username" binding:self.values],
+ [[UGFormTableViewCell alloc] initWithTitle:@"Password" key:@"password" binding:self.values]];
+ }
+ return self;
+}
+
+- (void) loadView
+{
+ [super loadView];
+ self.title = @"Connection";
+ self.tableView.backgroundView = nil;
+ self.tableView.backgroundColor = [UIColor darkGrayColor];
+ self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Cancel"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(cancel:)];
+ self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Sign In"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(signin:)];
+}
+
+#pragma mark - Table view data source
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ return [self.cells count];
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ return [self.cells objectAtIndex:[indexPath row]];
+}
+
+#pragma mark - Table view delegate
+
+- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UGFormTableViewCell *formCell = (UGFormTableViewCell *) cell;
+ formCell.textField.text = [formCell.binding objectForKey:formCell.key];
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UGFormTableViewCell *formCell = (UGFormTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
+ [formCell.textField becomeFirstResponder];
+}
+
+#pragma mark - Sign In
+
+- (void) cancel:(id) sender
+{
+ [self dismissViewControllerAnimated:YES completion:nil];
+}
+
+- (void) signin:(id) sender
+{
+ for (UGFormTableViewCell *cell in self.cells) {
+ [cell.textField resignFirstResponder];
+ }
+ [[NSUserDefaults standardUserDefaults] setObject:self.values forKey:@"usergrid"];
+ [[NSUserDefaults standardUserDefaults] synchronize];
+
+ UGConnection *connection = [UGConnection sharedConnection];
+ connection.server = [self.values objectForKey:@"server"];
+ connection.organization = [self.values objectForKey:@"organization"];
+ connection.application = [self.values objectForKey:@"application"];
+
+ [[[UGHTTPClient alloc] initWithRequest:
+ [connection getAccessTokenForApplicationWithUsername:[self.values objectForKey:@"username"]
+ password:[self.values objectForKey:@"password"]]]
+ connectWithCompletionHandler:^(UGHTTPResult *result) {
+ [connection authenticateWithResult:result];
+ [self dismissViewControllerAnimated:YES completion:nil];
+ }];
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/books-Info.plist
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/books-Info.plist b/sdks/other/ios/samples/Books/books/books-Info.plist
new file mode 100644
index 0000000..f394f12
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/books-Info.plist
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+-->
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apigee.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/books-Prefix.pch
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/books-Prefix.pch b/sdks/other/ios/samples/Books/books/books-Prefix.pch
new file mode 100644
index 0000000..42d6379
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/books-Prefix.pch
@@ -0,0 +1,31 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// Prefix header for all source files of the 'books' target in the 'books' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_3_0
+#warning "This project uses features only available in iOS SDK 3.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/en.lproj/InfoPlist.strings
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/en.lproj/InfoPlist.strings b/sdks/other/ios/samples/Books/books/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..7004264
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/en.lproj/InfoPlist.strings
@@ -0,0 +1,21 @@
+/*
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+*/
+
+/* Localized versions of Info.plist keys */
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/main.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/main.m b/sdks/other/ios/samples/Books/books/main.m
new file mode 100644
index 0000000..a3b2f01
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/main.m
@@ -0,0 +1,32 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// main.m
+// books
+//
+
+#import <UIKit/UIKit.h>
+
+#import "AppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser.xcodeproj/project.pbxproj b/sdks/other/ios/samples/Browser/browser.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..63320fd
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser.xcodeproj/project.pbxproj
@@ -0,0 +1,487 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 22FC709C1730595C00153630 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709B1730595C00153630 /* UIKit.framework */; };
+ 22FC709E1730595C00153630 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709D1730595C00153630 /* Foundation.framework */; };
+ 22FC70A01730595C00153630 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC709F1730595C00153630 /* CoreGraphics.framework */; };
+ 22FC70A61730595C00153630 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70A41730595C00153630 /* InfoPlist.strings */; };
+ 22FC70A81730595C00153630 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70A71730595C00153630 /* main.m */; };
+ 22FC70AE1730595C00153630 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70AD1730595C00153630 /* Default.png */; };
+ 22FC70B01730595C00153630 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70AF1730595C00153630 /* Default@2x.png */; };
+ 22FC70B21730595C00153630 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22FC70B11730595C00153630 /* Default-568h@2x.png */; };
+ 22FC70C41730639600153630 /* UGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70B91730639600153630 /* UGAppDelegate.m */; };
+ 22FC70C51730639600153630 /* UGAppViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BB1730639600153630 /* UGAppViewController.m */; };
+ 22FC70C61730639600153630 /* UGCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BD1730639600153630 /* UGCollectionViewController.m */; };
+ 22FC70C71730639600153630 /* UGEntityViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70BF1730639600153630 /* UGEntityViewController.m */; };
+ 22FC70C81730639600153630 /* UGSignInViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70C11730639600153630 /* UGSignInViewController.m */; };
+ 22FC70C91730639600153630 /* UGTextViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70C31730639600153630 /* UGTextViewController.m */; };
+ 22FC70FD173063AF00153630 /* NSObject+SBJson.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70CD173063AF00153630 /* NSObject+SBJson.m */; };
+ 22FC70FE173063AF00153630 /* SBJsonParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D0173063AF00153630 /* SBJsonParser.m */; };
+ 22FC70FF173063AF00153630 /* SBJsonStreamParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */; };
+ 22FC7100173063AF00153630 /* SBJsonStreamParserAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */; };
+ 22FC7101173063AF00153630 /* SBJsonStreamParserAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */; };
+ 22FC7102173063AF00153630 /* SBJsonStreamParserState.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */; };
+ 22FC7103173063AF00153630 /* SBJsonStreamWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */; };
+ 22FC7104173063AF00153630 /* SBJsonStreamWriterAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */; };
+ 22FC7105173063AF00153630 /* SBJsonStreamWriterState.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */; };
+ 22FC7106173063AF00153630 /* SBJsonTokeniser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */; };
+ 22FC7107173063AF00153630 /* SBJsonUTF8Stream.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */; };
+ 22FC7108173063AF00153630 /* SBJsonWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E4173063AF00153630 /* SBJsonWriter.m */; };
+ 22FC7109173063AF00153630 /* UGActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E6173063AF00153630 /* UGActivity.m */; };
+ 22FC710A173063AF00153630 /* UGClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70E8173063AF00153630 /* UGClient.m */; };
+ 22FC710B173063AF00153630 /* UGClientResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70EB173063AF00153630 /* UGClientResponse.m */; };
+ 22FC710C173063AF00153630 /* UGHTTPManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70ED173063AF00153630 /* UGHTTPManager.m */; };
+ 22FC710D173063AF00153630 /* UGMultiStepAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70EF173063AF00153630 /* UGMultiStepAction.m */; };
+ 22FC710E173063AF00153630 /* UGQuery.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F1173063AF00153630 /* UGQuery.m */; };
+ 22FC710F173063AF00153630 /* UGUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F3173063AF00153630 /* UGUser.m */; };
+ 22FC7110173063AF00153630 /* UGConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F6173063AF00153630 /* UGConnection.m */; };
+ 22FC7111173063AF00153630 /* UGHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70F8173063AF00153630 /* UGHTTPClient.m */; };
+ 22FC7112173063AF00153630 /* UGHTTPHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */; };
+ 22FC7113173063AF00153630 /* UGHTTPResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 22FC70FC173063AF00153630 /* UGHTTPResult.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 22FC70981730595C00153630 /* browser.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = browser.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 22FC709B1730595C00153630 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 22FC709D1730595C00153630 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 22FC709F1730595C00153630 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 22FC70A31730595C00153630 /* browser-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "browser-Info.plist"; sourceTree = "<group>"; };
+ 22FC70A51730595C00153630 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 22FC70A71730595C00153630 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 22FC70A91730595C00153630 /* browser-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "browser-Prefix.pch"; sourceTree = "<group>"; };
+ 22FC70AD1730595C00153630 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ 22FC70AF1730595C00153630 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ 22FC70B11730595C00153630 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ 22FC70B81730639600153630 /* UGAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGAppDelegate.h; sourceTree = "<group>"; };
+ 22FC70B91730639600153630 /* UGAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGAppDelegate.m; sourceTree = "<group>"; };
+ 22FC70BA1730639600153630 /* UGAppViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGAppViewController.h; sourceTree = "<group>"; };
+ 22FC70BB1730639600153630 /* UGAppViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGAppViewController.m; sourceTree = "<group>"; };
+ 22FC70BC1730639600153630 /* UGCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGCollectionViewController.h; sourceTree = "<group>"; };
+ 22FC70BD1730639600153630 /* UGCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGCollectionViewController.m; sourceTree = "<group>"; };
+ 22FC70BE1730639600153630 /* UGEntityViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGEntityViewController.h; sourceTree = "<group>"; };
+ 22FC70BF1730639600153630 /* UGEntityViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGEntityViewController.m; sourceTree = "<group>"; };
+ 22FC70C01730639600153630 /* UGSignInViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGSignInViewController.h; sourceTree = "<group>"; };
+ 22FC70C11730639600153630 /* UGSignInViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGSignInViewController.m; sourceTree = "<group>"; };
+ 22FC70C21730639600153630 /* UGTextViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGTextViewController.h; sourceTree = "<group>"; };
+ 22FC70C31730639600153630 /* UGTextViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGTextViewController.m; sourceTree = "<group>"; };
+ 22FC70CC173063AF00153630 /* NSObject+SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+SBJson.h"; sourceTree = "<group>"; };
+ 22FC70CD173063AF00153630 /* NSObject+SBJson.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+SBJson.m"; sourceTree = "<group>"; };
+ 22FC70CE173063AF00153630 /* SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJson.h; sourceTree = "<group>"; };
+ 22FC70CF173063AF00153630 /* SBJsonParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonParser.h; sourceTree = "<group>"; };
+ 22FC70D0173063AF00153630 /* SBJsonParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonParser.m; sourceTree = "<group>"; };
+ 22FC70D1173063AF00153630 /* SBJsonStreamParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParser.h; sourceTree = "<group>"; };
+ 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParser.m; sourceTree = "<group>"; };
+ 22FC70D3173063AF00153630 /* SBJsonStreamParserAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAccumulator.h; sourceTree = "<group>"; };
+ 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAccumulator.m; sourceTree = "<group>"; };
+ 22FC70D5173063AF00153630 /* SBJsonStreamParserAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAdapter.h; sourceTree = "<group>"; };
+ 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAdapter.m; sourceTree = "<group>"; };
+ 22FC70D7173063AF00153630 /* SBJsonStreamParserState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserState.h; sourceTree = "<group>"; };
+ 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserState.m; sourceTree = "<group>"; };
+ 22FC70D9173063AF00153630 /* SBJsonStreamWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriter.h; sourceTree = "<group>"; };
+ 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriter.m; sourceTree = "<group>"; };
+ 22FC70DB173063AF00153630 /* SBJsonStreamWriterAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterAccumulator.h; sourceTree = "<group>"; };
+ 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterAccumulator.m; sourceTree = "<group>"; };
+ 22FC70DD173063AF00153630 /* SBJsonStreamWriterState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterState.h; sourceTree = "<group>"; };
+ 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterState.m; sourceTree = "<group>"; };
+ 22FC70DF173063AF00153630 /* SBJsonTokeniser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonTokeniser.h; sourceTree = "<group>"; };
+ 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonTokeniser.m; sourceTree = "<group>"; };
+ 22FC70E1173063AF00153630 /* SBJsonUTF8Stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonUTF8Stream.h; sourceTree = "<group>"; };
+ 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonUTF8Stream.m; sourceTree = "<group>"; };
+ 22FC70E3173063AF00153630 /* SBJsonWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonWriter.h; sourceTree = "<group>"; };
+ 22FC70E4173063AF00153630 /* SBJsonWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonWriter.m; sourceTree = "<group>"; };
+ 22FC70E5173063AF00153630 /* UGActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGActivity.h; sourceTree = "<group>"; };
+ 22FC70E6173063AF00153630 /* UGActivity.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGActivity.m; sourceTree = "<group>"; };
+ 22FC70E7173063AF00153630 /* UGClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClient.h; sourceTree = "<group>"; };
+ 22FC70E8173063AF00153630 /* UGClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClient.m; sourceTree = "<group>"; };
+ 22FC70E9173063AF00153630 /* UGClientDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClientDelegate.h; sourceTree = "<group>"; };
+ 22FC70EA173063AF00153630 /* UGClientResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClientResponse.h; sourceTree = "<group>"; };
+ 22FC70EB173063AF00153630 /* UGClientResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClientResponse.m; sourceTree = "<group>"; };
+ 22FC70EC173063AF00153630 /* UGHTTPManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPManager.h; sourceTree = "<group>"; };
+ 22FC70ED173063AF00153630 /* UGHTTPManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPManager.m; sourceTree = "<group>"; };
+ 22FC70EE173063AF00153630 /* UGMultiStepAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGMultiStepAction.h; sourceTree = "<group>"; };
+ 22FC70EF173063AF00153630 /* UGMultiStepAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGMultiStepAction.m; sourceTree = "<group>"; };
+ 22FC70F0173063AF00153630 /* UGQuery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGQuery.h; sourceTree = "<group>"; };
+ 22FC70F1173063AF00153630 /* UGQuery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGQuery.m; sourceTree = "<group>"; };
+ 22FC70F2173063AF00153630 /* UGUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGUser.h; sourceTree = "<group>"; };
+ 22FC70F3173063AF00153630 /* UGUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGUser.m; sourceTree = "<group>"; };
+ 22FC70F5173063AF00153630 /* UGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGConnection.h; sourceTree = "<group>"; };
+ 22FC70F6173063AF00153630 /* UGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGConnection.m; sourceTree = "<group>"; };
+ 22FC70F7173063AF00153630 /* UGHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPClient.h; sourceTree = "<group>"; };
+ 22FC70F8173063AF00153630 /* UGHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPClient.m; sourceTree = "<group>"; };
+ 22FC70F9173063AF00153630 /* UGHTTPHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPHelpers.h; sourceTree = "<group>"; };
+ 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPHelpers.m; sourceTree = "<group>"; };
+ 22FC70FB173063AF00153630 /* UGHTTPResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPResult.h; sourceTree = "<group>"; };
+ 22FC70FC173063AF00153630 /* UGHTTPResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPResult.m; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 22FC70951730595C00153630 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22FC709C1730595C00153630 /* UIKit.framework in Frameworks */,
+ 22FC709E1730595C00153630 /* Foundation.framework in Frameworks */,
+ 22FC70A01730595C00153630 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 22FC708F1730595C00153630 = {
+ isa = PBXGroup;
+ children = (
+ 22FC70CA173063AF00153630 /* UGAPI */,
+ 22FC70A11730595C00153630 /* browser */,
+ 22FC709A1730595C00153630 /* Frameworks */,
+ 22FC70991730595C00153630 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 22FC70991730595C00153630 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70981730595C00153630 /* browser.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 22FC709A1730595C00153630 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC709B1730595C00153630 /* UIKit.framework */,
+ 22FC709D1730595C00153630 /* Foundation.framework */,
+ 22FC709F1730595C00153630 /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 22FC70A11730595C00153630 /* browser */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70B81730639600153630 /* UGAppDelegate.h */,
+ 22FC70B91730639600153630 /* UGAppDelegate.m */,
+ 22FC70BA1730639600153630 /* UGAppViewController.h */,
+ 22FC70BB1730639600153630 /* UGAppViewController.m */,
+ 22FC70BC1730639600153630 /* UGCollectionViewController.h */,
+ 22FC70BD1730639600153630 /* UGCollectionViewController.m */,
+ 22FC70BE1730639600153630 /* UGEntityViewController.h */,
+ 22FC70BF1730639600153630 /* UGEntityViewController.m */,
+ 22FC70C01730639600153630 /* UGSignInViewController.h */,
+ 22FC70C11730639600153630 /* UGSignInViewController.m */,
+ 22FC70C21730639600153630 /* UGTextViewController.h */,
+ 22FC70C31730639600153630 /* UGTextViewController.m */,
+ 22FC70A21730595C00153630 /* Supporting Files */,
+ );
+ path = browser;
+ sourceTree = "<group>";
+ };
+ 22FC70A21730595C00153630 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70A31730595C00153630 /* browser-Info.plist */,
+ 22FC70A41730595C00153630 /* InfoPlist.strings */,
+ 22FC70A71730595C00153630 /* main.m */,
+ 22FC70A91730595C00153630 /* browser-Prefix.pch */,
+ 22FC70AD1730595C00153630 /* Default.png */,
+ 22FC70AF1730595C00153630 /* Default@2x.png */,
+ 22FC70B11730595C00153630 /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 22FC70CA173063AF00153630 /* UGAPI */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70CB173063AF00153630 /* SBJson */,
+ 22FC70E5173063AF00153630 /* UGActivity.h */,
+ 22FC70E6173063AF00153630 /* UGActivity.m */,
+ 22FC70E7173063AF00153630 /* UGClient.h */,
+ 22FC70E8173063AF00153630 /* UGClient.m */,
+ 22FC70E9173063AF00153630 /* UGClientDelegate.h */,
+ 22FC70EA173063AF00153630 /* UGClientResponse.h */,
+ 22FC70EB173063AF00153630 /* UGClientResponse.m */,
+ 22FC70EC173063AF00153630 /* UGHTTPManager.h */,
+ 22FC70ED173063AF00153630 /* UGHTTPManager.m */,
+ 22FC70EE173063AF00153630 /* UGMultiStepAction.h */,
+ 22FC70EF173063AF00153630 /* UGMultiStepAction.m */,
+ 22FC70F0173063AF00153630 /* UGQuery.h */,
+ 22FC70F1173063AF00153630 /* UGQuery.m */,
+ 22FC70F2173063AF00153630 /* UGUser.h */,
+ 22FC70F3173063AF00153630 /* UGUser.m */,
+ 22FC70F4173063AF00153630 /* v2 */,
+ );
+ name = UGAPI;
+ path = ../../UGAPI;
+ sourceTree = "<group>";
+ };
+ 22FC70CB173063AF00153630 /* SBJson */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70CC173063AF00153630 /* NSObject+SBJson.h */,
+ 22FC70CD173063AF00153630 /* NSObject+SBJson.m */,
+ 22FC70CE173063AF00153630 /* SBJson.h */,
+ 22FC70CF173063AF00153630 /* SBJsonParser.h */,
+ 22FC70D0173063AF00153630 /* SBJsonParser.m */,
+ 22FC70D1173063AF00153630 /* SBJsonStreamParser.h */,
+ 22FC70D2173063AF00153630 /* SBJsonStreamParser.m */,
+ 22FC70D3173063AF00153630 /* SBJsonStreamParserAccumulator.h */,
+ 22FC70D4173063AF00153630 /* SBJsonStreamParserAccumulator.m */,
+ 22FC70D5173063AF00153630 /* SBJsonStreamParserAdapter.h */,
+ 22FC70D6173063AF00153630 /* SBJsonStreamParserAdapter.m */,
+ 22FC70D7173063AF00153630 /* SBJsonStreamParserState.h */,
+ 22FC70D8173063AF00153630 /* SBJsonStreamParserState.m */,
+ 22FC70D9173063AF00153630 /* SBJsonStreamWriter.h */,
+ 22FC70DA173063AF00153630 /* SBJsonStreamWriter.m */,
+ 22FC70DB173063AF00153630 /* SBJsonStreamWriterAccumulator.h */,
+ 22FC70DC173063AF00153630 /* SBJsonStreamWriterAccumulator.m */,
+ 22FC70DD173063AF00153630 /* SBJsonStreamWriterState.h */,
+ 22FC70DE173063AF00153630 /* SBJsonStreamWriterState.m */,
+ 22FC70DF173063AF00153630 /* SBJsonTokeniser.h */,
+ 22FC70E0173063AF00153630 /* SBJsonTokeniser.m */,
+ 22FC70E1173063AF00153630 /* SBJsonUTF8Stream.h */,
+ 22FC70E2173063AF00153630 /* SBJsonUTF8Stream.m */,
+ 22FC70E3173063AF00153630 /* SBJsonWriter.h */,
+ 22FC70E4173063AF00153630 /* SBJsonWriter.m */,
+ );
+ path = SBJson;
+ sourceTree = "<group>";
+ };
+ 22FC70F4173063AF00153630 /* v2 */ = {
+ isa = PBXGroup;
+ children = (
+ 22FC70F5173063AF00153630 /* UGConnection.h */,
+ 22FC70F6173063AF00153630 /* UGConnection.m */,
+ 22FC70F7173063AF00153630 /* UGHTTPClient.h */,
+ 22FC70F8173063AF00153630 /* UGHTTPClient.m */,
+ 22FC70F9173063AF00153630 /* UGHTTPHelpers.h */,
+ 22FC70FA173063AF00153630 /* UGHTTPHelpers.m */,
+ 22FC70FB173063AF00153630 /* UGHTTPResult.h */,
+ 22FC70FC173063AF00153630 /* UGHTTPResult.m */,
+ );
+ path = v2;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 22FC70971730595C00153630 /* browser */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 22FC70B51730595C00153630 /* Build configuration list for PBXNativeTarget "browser" */;
+ buildPhases = (
+ 22FC70941730595C00153630 /* Sources */,
+ 22FC70951730595C00153630 /* Frameworks */,
+ 22FC70961730595C00153630 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = browser;
+ productName = browser;
+ productReference = 22FC70981730595C00153630 /* browser.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 22FC70901730595C00153630 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0460;
+ ORGANIZATIONNAME = "Radtastical Inc.";
+ };
+ buildConfigurationList = 22FC70931730595C00153630 /* Build configuration list for PBXProject "browser" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 22FC708F1730595C00153630;
+ productRefGroup = 22FC70991730595C00153630 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 22FC70971730595C00153630 /* browser */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 22FC70961730595C00153630 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22FC70A61730595C00153630 /* InfoPlist.strings in Resources */,
+ 22FC70AE1730595C00153630 /* Default.png in Resources */,
+ 22FC70B01730595C00153630 /* Default@2x.png in Resources */,
+ 22FC70B21730595C00153630 /* Default-568h@2x.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 22FC70941730595C00153630 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 22FC70A81730595C00153630 /* main.m in Sources */,
+ 22FC70C41730639600153630 /* UGAppDelegate.m in Sources */,
+ 22FC70C51730639600153630 /* UGAppViewController.m in Sources */,
+ 22FC70C61730639600153630 /* UGCollectionViewController.m in Sources */,
+ 22FC70C71730639600153630 /* UGEntityViewController.m in Sources */,
+ 22FC70C81730639600153630 /* UGSignInViewController.m in Sources */,
+ 22FC70C91730639600153630 /* UGTextViewController.m in Sources */,
+ 22FC70FD173063AF00153630 /* NSObject+SBJson.m in Sources */,
+ 22FC70FE173063AF00153630 /* SBJsonParser.m in Sources */,
+ 22FC70FF173063AF00153630 /* SBJsonStreamParser.m in Sources */,
+ 22FC7100173063AF00153630 /* SBJsonStreamParserAccumulator.m in Sources */,
+ 22FC7101173063AF00153630 /* SBJsonStreamParserAdapter.m in Sources */,
+ 22FC7102173063AF00153630 /* SBJsonStreamParserState.m in Sources */,
+ 22FC7103173063AF00153630 /* SBJsonStreamWriter.m in Sources */,
+ 22FC7104173063AF00153630 /* SBJsonStreamWriterAccumulator.m in Sources */,
+ 22FC7105173063AF00153630 /* SBJsonStreamWriterState.m in Sources */,
+ 22FC7106173063AF00153630 /* SBJsonTokeniser.m in Sources */,
+ 22FC7107173063AF00153630 /* SBJsonUTF8Stream.m in Sources */,
+ 22FC7108173063AF00153630 /* SBJsonWriter.m in Sources */,
+ 22FC7109173063AF00153630 /* UGActivity.m in Sources */,
+ 22FC710A173063AF00153630 /* UGClient.m in Sources */,
+ 22FC710B173063AF00153630 /* UGClientResponse.m in Sources */,
+ 22FC710C173063AF00153630 /* UGHTTPManager.m in Sources */,
+ 22FC710D173063AF00153630 /* UGMultiStepAction.m in Sources */,
+ 22FC710E173063AF00153630 /* UGQuery.m in Sources */,
+ 22FC710F173063AF00153630 /* UGUser.m in Sources */,
+ 22FC7110173063AF00153630 /* UGConnection.m in Sources */,
+ 22FC7111173063AF00153630 /* UGHTTPClient.m in Sources */,
+ 22FC7112173063AF00153630 /* UGHTTPHelpers.m in Sources */,
+ 22FC7113173063AF00153630 /* UGHTTPResult.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 22FC70A41730595C00153630 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 22FC70A51730595C00153630 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 22FC70B31730595C00153630 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 22FC70B41730595C00153630 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 22FC70B61730595C00153630 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "browser/browser-Prefix.pch";
+ INFOPLIST_FILE = "browser/browser-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 22FC70B71730595C00153630 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "browser/browser-Prefix.pch";
+ INFOPLIST_FILE = "browser/browser-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 22FC70931730595C00153630 /* Build configuration list for PBXProject "browser" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 22FC70B31730595C00153630 /* Debug */,
+ 22FC70B41730595C00153630 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 22FC70B51730595C00153630 /* Build configuration list for PBXNativeTarget "browser" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 22FC70B61730595C00153630 /* Debug */,
+ 22FC70B71730595C00153630 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 22FC70901730595C00153630 /* Project object */;
+}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/Default-568h@2x.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/Default-568h@2x.png b/sdks/other/ios/samples/Browser/browser/Default-568h@2x.png
new file mode 100644
index 0000000..0891b7a
Binary files /dev/null and b/sdks/other/ios/samples/Browser/browser/Default-568h@2x.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/Default.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/Default.png b/sdks/other/ios/samples/Browser/browser/Default.png
new file mode 100644
index 0000000..4c8ca6f
Binary files /dev/null and b/sdks/other/ios/samples/Browser/browser/Default.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/Default@2x.png
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/Default@2x.png b/sdks/other/ios/samples/Browser/browser/Default@2x.png
new file mode 100644
index 0000000..35b84cf
Binary files /dev/null and b/sdks/other/ios/samples/Browser/browser/Default@2x.png differ
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGAppDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGAppDelegate.h b/sdks/other/ios/samples/Browser/browser/UGAppDelegate.h
new file mode 100644
index 0000000..fb1453f
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGAppDelegate.h
@@ -0,0 +1,24 @@
+//
+// UGAppDelegate.h
+// Browser
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+@interface UGAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGAppDelegate.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGAppDelegate.m b/sdks/other/ios/samples/Browser/browser/UGAppDelegate.m
new file mode 100644
index 0000000..246a860
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGAppDelegate.m
@@ -0,0 +1,39 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// UGAppDelegate.m
+// Browser
+//
+
+#import "UGAppDelegate.h"
+#import "UGAppViewController.h"
+
+@implementation UGAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ UINavigationController *navigationController = [[UINavigationController alloc]
+ initWithRootViewController:[[UGAppViewController alloc] init]];
+ navigationController.navigationBar.tintColor = [UIColor darkGrayColor];
+ self.window.rootViewController = navigationController;
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGAppViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGAppViewController.h b/sdks/other/ios/samples/Browser/browser/UGAppViewController.h
new file mode 100644
index 0000000..7f26de9
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGAppViewController.h
@@ -0,0 +1,27 @@
+//
+// UGAppViewController.h
+// Browser
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+@interface UGAppViewController : UITableViewController
+@property (nonatomic, strong) NSDictionary *application;
+
+
+- (void) downloadApplicationDescription;
+
+@end
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGAppViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGAppViewController.m b/sdks/other/ios/samples/Browser/browser/UGAppViewController.m
new file mode 100644
index 0000000..b298fe1
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGAppViewController.m
@@ -0,0 +1,143 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// UGAppViewController.m
+// Browser
+//
+
+#import "UGHTTPClient.h"
+#import "UGHTTPResult.h"
+#import "UGConnection.h"
+#import "UGAppViewController.h"
+#import "UGSignInViewController.h"
+#import "UGCollectionViewController.h"
+
+@interface UGAppViewController ()
+
+@end
+
+@implementation UGAppViewController
+
+- (void) loadView
+{
+ [super loadView];
+ self.navigationItem.title = @"Usergrid";
+ self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
+ initWithTitle:@"Connection"
+ style:UIBarButtonItemStyleBordered
+ target:self
+ action:@selector(connect:)];
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
+ return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
+ } else {
+ return YES;
+ }
+}
+
+- (void) connect:(id) sender
+{
+ UGSignInViewController *signinViewController = [[UGSignInViewController alloc] init];
+ signinViewController.appViewController = self;
+ UINavigationController *signinNavigationController =
+ [[UINavigationController alloc] initWithRootViewController:signinViewController];
+ signinNavigationController.modalPresentationStyle = UIModalPresentationFormSheet;
+ signinNavigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
+ [self presentModalViewController:signinNavigationController animated:YES];
+}
+
+- (void) downloadApplicationDescription
+{
+ UGConnection *usergrid = [UGConnection sharedConnection];
+ [[[UGHTTPClient alloc]
+ initWithRequest:[usergrid getApplication:usergrid.application inOrganization:usergrid.organization]]
+ connectWithCompletionHandler:^(UGHTTPResult *result) {
+ self.application = result.object[@"entities"][0];
+ [self.tableView reloadData];
+ }];
+}
+
+- (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return self.application ? 2 : 0;
+}
+
+- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ if (section == 0) {
+ return self.application ? 1 : 0;
+ } else if (section == 1) {
+ return self.application ? [self.application[@"metadata"][@"collections"] count] : 0;
+ } else {
+ return 0;
+ }
+}
+
+- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
+ cell.backgroundColor = [UIColor whiteColor];
+ return cell;
+}
+
+- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ if ([indexPath section] == 0) {
+ cell.textLabel.text = self.application[@"name"];
+ cell.accessoryType = UITableViewCellAccessoryNone;
+ } else {
+ NSDictionary *collections = self.application[@"metadata"][@"collections"];
+ NSString *key = [[[collections allKeys] sortedArrayUsingSelector:@selector(compare:)] objectAtIndex:[indexPath row]];
+ NSDictionary *object = collections[key];
+ cell.textLabel.text = [NSString stringWithFormat:@"%@",
+ object[@"title"]];
+ cell.detailTextLabel.text = [NSString stringWithFormat:@"name:%@ type:%@",
+ object[@"name"],
+ object[@"type"]];
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ }
+ cell.backgroundColor = [UIColor whiteColor];
+ cell.selectionStyle = UITableViewCellSelectionStyleGray;
+}
+
+- (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
+{
+ if (section == 0) {
+ return @"Application";
+ } else {
+ return @"Collections";
+ }
+}
+
+- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ [tableView deselectRowAtIndexPath:indexPath animated:YES];
+ if ([indexPath section] == 1) {
+ NSDictionary *collections = self.application[@"metadata"][@"collections"];
+ NSString *key = [[[collections allKeys] sortedArrayUsingSelector:@selector(compare:)] objectAtIndex:[indexPath row]];
+ NSDictionary *collection = collections[key];
+ UGCollectionViewController *collectionViewController = [[UGCollectionViewController alloc] init];
+ collectionViewController.collection = collection;
+ [self.navigationController pushViewController:collectionViewController animated:YES];
+ }
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.h b/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.h
new file mode 100644
index 0000000..1b0074b
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.h
@@ -0,0 +1,23 @@
+//
+// UGCollectionViewController.h
+// Browser
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+@interface UGCollectionViewController : UITableViewController
+@property (nonatomic, strong) NSDictionary *collection;
+@property (nonatomic, strong) NSDictionary *collectionDetail;
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.m b/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.m
new file mode 100644
index 0000000..720bd09
--- /dev/null
+++ b/sdks/other/ios/samples/Browser/browser/UGCollectionViewController.m
@@ -0,0 +1,115 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// UGCollectionViewController.m
+// Browser
+//
+
+#import "UGHTTPClient.h"
+#import "UGHTTPResult.h"
+#import "UGConnection.h"
+#import "UGCollectionViewController.h"
+#import "UGEntityViewController.h"
+
+@interface UGCollectionViewController ()
+
+@end
+
+@implementation UGCollectionViewController
+
+- (id)initWithStyle:(UITableViewStyle)style
+{
+ self = [super initWithStyle:style];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void) loadView
+{
+ [super loadView];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+- (void) getCollection
+{
+ [[[UGHTTPClient alloc] initWithRequest:[[UGConnection sharedConnection]
+ getEntitiesInCollection:self.collection[@"name"]
+ limit:200]]
+ connectWithCompletionHandler:^(UGHTTPResult *result) {
+ self.collectionDetail = result.object;
+ [self.tableView reloadData];
+ self.navigationItem.title = result.object[@"path"];
+ }];
+}
+
+- (void) viewWillAppear:(BOOL)animated
+{
+ [self getCollection];
+}
+
+#pragma mark - Table view data source
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ if (!self.collectionDetail) {
+ return 0;
+ } else {
+ return [self.collectionDetail[@"count"] intValue];
+ }
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
+ cell.textLabel.font = [UIFont boldSystemFontOfSize:14];
+ return cell;
+}
+
+- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ int row = [indexPath row];
+ NSDictionary *entity = self.collectionDetail[@"entities"][row];
+ cell.textLabel.text = entity[@"name"];
+ cell.detailTextLabel.text = entity[@"uuid"];
+}
+
+
+
+#pragma mark - Table view delegate
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UGEntityViewController *entityViewController = [[UGEntityViewController alloc] init];
+ int row = [indexPath row];
+ entityViewController.entity = self.collectionDetail[@"entities"][row];
+ [self.navigationController pushViewController:entityViewController animated:YES];
+}
+
+@end
[31/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp.xcodeproj/project.pbxproj b/sdks/other/ios/UGAPIApp.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..029a356
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp.xcodeproj/project.pbxproj
@@ -0,0 +1,653 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 22CA67241732087600C03C70 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22CA67231732087600C03C70 /* Default-568h@2x.png */; };
+ 22D61E75171CBBF100E9CD17 /* UGConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D61E6E171CBBF100E9CD17 /* UGConnection.m */; };
+ 22D61E76171CBBF100E9CD17 /* UGHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D61E70171CBBF100E9CD17 /* UGHTTPClient.m */; };
+ 22D61E77171CBBF100E9CD17 /* UGHTTPHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D61E72171CBBF100E9CD17 /* UGHTTPHelpers.m */; };
+ 22D61E78171CBBF100E9CD17 /* UGHTTPResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D61E74171CBBF100E9CD17 /* UGHTTPResult.m */; };
+ C96E782F1782349C004DD244 /* SSKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = C96E782E1782349C004DD244 /* SSKeychain.m */; };
+ C96E783717824711004DD244 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C96E783617824711004DD244 /* Security.framework */; };
+ E89D6CA1150E5B2E005F5FB9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CA0150E5B2E005F5FB9 /* UIKit.framework */; };
+ E89D6CA3150E5B2E005F5FB9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CA2150E5B2E005F5FB9 /* Foundation.framework */; };
+ E89D6CA5150E5B2E005F5FB9 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CA4150E5B2E005F5FB9 /* CoreGraphics.framework */; };
+ E89D6CAB150E5B2E005F5FB9 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E89D6CA9150E5B2E005F5FB9 /* InfoPlist.strings */; };
+ E89D6CAD150E5B2E005F5FB9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CAC150E5B2E005F5FB9 /* main.m */; };
+ E89D6CB1150E5B2E005F5FB9 /* UGAppAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CB0150E5B2E005F5FB9 /* UGAppAppDelegate.m */; };
+ E89D6CB4150E5B2E005F5FB9 /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E89D6CB2150E5B2E005F5FB9 /* MainStoryboard_iPhone.storyboard */; };
+ E89D6CB7150E5B2E005F5FB9 /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E89D6CB5150E5B2E005F5FB9 /* MainStoryboard_iPad.storyboard */; };
+ E89D6CBA150E5B2E005F5FB9 /* UGAppViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CB9150E5B2E005F5FB9 /* UGAppViewController.m */; };
+ E89D6CC2150E5B2E005F5FB9 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CC1150E5B2E005F5FB9 /* SenTestingKit.framework */; };
+ E89D6CC3150E5B2E005F5FB9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CA0150E5B2E005F5FB9 /* UIKit.framework */; };
+ E89D6CC4150E5B2E005F5FB9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6CA2150E5B2E005F5FB9 /* Foundation.framework */; };
+ E89D6CCC150E5B2E005F5FB9 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E89D6CCA150E5B2E005F5FB9 /* InfoPlist.strings */; };
+ E89D6CCF150E5B2E005F5FB9 /* UGAPIAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CCE150E5B2E005F5FB9 /* UGAPIAppTests.m */; };
+ E89D6D05150E5B99005F5FB9 /* NSObject+SBJson.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CDF150E5B99005F5FB9 /* NSObject+SBJson.m */; };
+ E89D6D06150E5B99005F5FB9 /* SBJsonParser.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CE2150E5B99005F5FB9 /* SBJsonParser.m */; };
+ E89D6D07150E5B99005F5FB9 /* SBJsonStreamParser.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CE4150E5B99005F5FB9 /* SBJsonStreamParser.m */; };
+ E89D6D08150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CE6150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.m */; };
+ E89D6D09150E5B99005F5FB9 /* SBJsonStreamParserAdapter.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CE8150E5B99005F5FB9 /* SBJsonStreamParserAdapter.m */; };
+ E89D6D0A150E5B99005F5FB9 /* SBJsonStreamParserState.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CEA150E5B99005F5FB9 /* SBJsonStreamParserState.m */; };
+ E89D6D0B150E5B99005F5FB9 /* SBJsonStreamWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CEC150E5B99005F5FB9 /* SBJsonStreamWriter.m */; };
+ E89D6D0C150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CEE150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.m */; };
+ E89D6D0D150E5B99005F5FB9 /* SBJsonStreamWriterState.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CF0150E5B99005F5FB9 /* SBJsonStreamWriterState.m */; };
+ E89D6D0E150E5B99005F5FB9 /* SBJsonTokeniser.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CF2150E5B99005F5FB9 /* SBJsonTokeniser.m */; };
+ E89D6D0F150E5B99005F5FB9 /* SBJsonUTF8Stream.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CF4150E5B99005F5FB9 /* SBJsonUTF8Stream.m */; };
+ E89D6D10150E5B99005F5FB9 /* SBJsonWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CF6150E5B99005F5FB9 /* SBJsonWriter.m */; };
+ E89D6D11150E5B99005F5FB9 /* UGActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CF8150E5B99005F5FB9 /* UGActivity.m */; };
+ E89D6D12150E5B99005F5FB9 /* UGClient.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CFA150E5B99005F5FB9 /* UGClient.m */; };
+ E89D6D13150E5B99005F5FB9 /* UGClientResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CFC150E5B99005F5FB9 /* UGClientResponse.m */; };
+ E89D6D14150E5B99005F5FB9 /* UGHTTPManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6CFE150E5B99005F5FB9 /* UGHTTPManager.m */; };
+ E89D6D15150E5B99005F5FB9 /* UGMultiStepAction.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6D00150E5B99005F5FB9 /* UGMultiStepAction.m */; };
+ E89D6D16150E5B99005F5FB9 /* UGQuery.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6D02150E5B99005F5FB9 /* UGQuery.m */; };
+ E89D6D17150E5B99005F5FB9 /* UGUser.m in Sources */ = {isa = PBXBuildFile; fileRef = E89D6D04150E5B99005F5FB9 /* UGUser.m */; };
+ E89D6D19150E5C54005F5FB9 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E89D6D18150E5C54005F5FB9 /* CoreLocation.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ E89D6CC5150E5B2E005F5FB9 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = E89D6C93150E5B2E005F5FB9 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = E89D6C9B150E5B2E005F5FB9;
+ remoteInfo = UGAPIApp;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ 22CA67231732087600C03C70 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ 22D61E6D171CBBF100E9CD17 /* UGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGConnection.h; sourceTree = "<group>"; };
+ 22D61E6E171CBBF100E9CD17 /* UGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGConnection.m; sourceTree = "<group>"; };
+ 22D61E6F171CBBF100E9CD17 /* UGHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPClient.h; sourceTree = "<group>"; };
+ 22D61E70171CBBF100E9CD17 /* UGHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPClient.m; sourceTree = "<group>"; };
+ 22D61E71171CBBF100E9CD17 /* UGHTTPHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPHelpers.h; sourceTree = "<group>"; };
+ 22D61E72171CBBF100E9CD17 /* UGHTTPHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPHelpers.m; sourceTree = "<group>"; };
+ 22D61E73171CBBF100E9CD17 /* UGHTTPResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPResult.h; sourceTree = "<group>"; };
+ 22D61E74171CBBF100E9CD17 /* UGHTTPResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPResult.m; sourceTree = "<group>"; };
+ 638F675816EF875F002BD513 /* UGClientDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UGClientDelegate.h; sourceTree = "<group>"; };
+ C96E782D1782349C004DD244 /* SSKeychain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSKeychain.h; sourceTree = "<group>"; };
+ C96E782E1782349C004DD244 /* SSKeychain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSKeychain.m; sourceTree = "<group>"; };
+ C96E783617824711004DD244 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
+ E89D6C9C150E5B2E005F5FB9 /* UGAPIApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UGAPIApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ E89D6CA0150E5B2E005F5FB9 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ E89D6CA2150E5B2E005F5FB9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ E89D6CA4150E5B2E005F5FB9 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ E89D6CA8150E5B2E005F5FB9 /* UGAPIApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UGAPIApp-Info.plist"; sourceTree = "<group>"; };
+ E89D6CAA150E5B2E005F5FB9 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ E89D6CAC150E5B2E005F5FB9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ E89D6CAE150E5B2E005F5FB9 /* UGAPIApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UGAPIApp-Prefix.pch"; sourceTree = "<group>"; };
+ E89D6CAF150E5B2E005F5FB9 /* UGAppAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UGAppAppDelegate.h; sourceTree = "<group>"; };
+ E89D6CB0150E5B2E005F5FB9 /* UGAppAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UGAppAppDelegate.m; sourceTree = "<group>"; };
+ E89D6CB3150E5B2E005F5FB9 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = "<group>"; };
+ E89D6CB6150E5B2E005F5FB9 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
+ E89D6CB8150E5B2E005F5FB9 /* UGAppViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UGAppViewController.h; sourceTree = "<group>"; };
+ E89D6CB9150E5B2E005F5FB9 /* UGAppViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UGAppViewController.m; sourceTree = "<group>"; };
+ E89D6CC0150E5B2E005F5FB9 /* UGAPIAppTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UGAPIAppTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
+ E89D6CC1150E5B2E005F5FB9 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
+ E89D6CC9150E5B2E005F5FB9 /* UGAPIAppTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UGAPIAppTests-Info.plist"; sourceTree = "<group>"; };
+ E89D6CCB150E5B2E005F5FB9 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ E89D6CCD150E5B2E005F5FB9 /* UGAPIAppTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UGAPIAppTests.h; sourceTree = "<group>"; };
+ E89D6CCE150E5B2E005F5FB9 /* UGAPIAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UGAPIAppTests.m; sourceTree = "<group>"; };
+ E89D6CDE150E5B99005F5FB9 /* NSObject+SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+SBJson.h"; sourceTree = "<group>"; };
+ E89D6CDF150E5B99005F5FB9 /* NSObject+SBJson.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+SBJson.m"; sourceTree = "<group>"; };
+ E89D6CE0150E5B99005F5FB9 /* SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJson.h; sourceTree = "<group>"; };
+ E89D6CE1150E5B99005F5FB9 /* SBJsonParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonParser.h; sourceTree = "<group>"; };
+ E89D6CE2150E5B99005F5FB9 /* SBJsonParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonParser.m; sourceTree = "<group>"; };
+ E89D6CE3150E5B99005F5FB9 /* SBJsonStreamParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParser.h; sourceTree = "<group>"; };
+ E89D6CE4150E5B99005F5FB9 /* SBJsonStreamParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParser.m; sourceTree = "<group>"; };
+ E89D6CE5150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAccumulator.h; sourceTree = "<group>"; };
+ E89D6CE6150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAccumulator.m; sourceTree = "<group>"; };
+ E89D6CE7150E5B99005F5FB9 /* SBJsonStreamParserAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserAdapter.h; sourceTree = "<group>"; };
+ E89D6CE8150E5B99005F5FB9 /* SBJsonStreamParserAdapter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserAdapter.m; sourceTree = "<group>"; };
+ E89D6CE9150E5B99005F5FB9 /* SBJsonStreamParserState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamParserState.h; sourceTree = "<group>"; };
+ E89D6CEA150E5B99005F5FB9 /* SBJsonStreamParserState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamParserState.m; sourceTree = "<group>"; };
+ E89D6CEB150E5B99005F5FB9 /* SBJsonStreamWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriter.h; sourceTree = "<group>"; };
+ E89D6CEC150E5B99005F5FB9 /* SBJsonStreamWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriter.m; sourceTree = "<group>"; };
+ E89D6CED150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterAccumulator.h; sourceTree = "<group>"; };
+ E89D6CEE150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterAccumulator.m; sourceTree = "<group>"; };
+ E89D6CEF150E5B99005F5FB9 /* SBJsonStreamWriterState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonStreamWriterState.h; sourceTree = "<group>"; };
+ E89D6CF0150E5B99005F5FB9 /* SBJsonStreamWriterState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonStreamWriterState.m; sourceTree = "<group>"; };
+ E89D6CF1150E5B99005F5FB9 /* SBJsonTokeniser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonTokeniser.h; sourceTree = "<group>"; };
+ E89D6CF2150E5B99005F5FB9 /* SBJsonTokeniser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonTokeniser.m; sourceTree = "<group>"; };
+ E89D6CF3150E5B99005F5FB9 /* SBJsonUTF8Stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonUTF8Stream.h; sourceTree = "<group>"; };
+ E89D6CF4150E5B99005F5FB9 /* SBJsonUTF8Stream.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonUTF8Stream.m; sourceTree = "<group>"; };
+ E89D6CF5150E5B99005F5FB9 /* SBJsonWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBJsonWriter.h; sourceTree = "<group>"; };
+ E89D6CF6150E5B99005F5FB9 /* SBJsonWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonWriter.m; sourceTree = "<group>"; };
+ E89D6CF7150E5B99005F5FB9 /* UGActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGActivity.h; sourceTree = "<group>"; };
+ E89D6CF8150E5B99005F5FB9 /* UGActivity.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGActivity.m; sourceTree = "<group>"; };
+ E89D6CF9150E5B99005F5FB9 /* UGClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClient.h; sourceTree = "<group>"; };
+ E89D6CFA150E5B99005F5FB9 /* UGClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClient.m; sourceTree = "<group>"; };
+ E89D6CFB150E5B99005F5FB9 /* UGClientResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGClientResponse.h; sourceTree = "<group>"; };
+ E89D6CFC150E5B99005F5FB9 /* UGClientResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGClientResponse.m; sourceTree = "<group>"; };
+ E89D6CFD150E5B99005F5FB9 /* UGHTTPManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPManager.h; sourceTree = "<group>"; };
+ E89D6CFE150E5B99005F5FB9 /* UGHTTPManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPManager.m; sourceTree = "<group>"; };
+ E89D6CFF150E5B99005F5FB9 /* UGMultiStepAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGMultiStepAction.h; sourceTree = "<group>"; };
+ E89D6D00150E5B99005F5FB9 /* UGMultiStepAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGMultiStepAction.m; sourceTree = "<group>"; };
+ E89D6D01150E5B99005F5FB9 /* UGQuery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGQuery.h; sourceTree = "<group>"; };
+ E89D6D02150E5B99005F5FB9 /* UGQuery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGQuery.m; sourceTree = "<group>"; };
+ E89D6D03150E5B99005F5FB9 /* UGUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGUser.h; sourceTree = "<group>"; };
+ E89D6D04150E5B99005F5FB9 /* UGUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGUser.m; sourceTree = "<group>"; };
+ E89D6D18150E5C54005F5FB9 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ E89D6C99150E5B2E005F5FB9 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C96E783717824711004DD244 /* Security.framework in Frameworks */,
+ E89D6D19150E5C54005F5FB9 /* CoreLocation.framework in Frameworks */,
+ E89D6CA1150E5B2E005F5FB9 /* UIKit.framework in Frameworks */,
+ E89D6CA3150E5B2E005F5FB9 /* Foundation.framework in Frameworks */,
+ E89D6CA5150E5B2E005F5FB9 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E89D6CBC150E5B2E005F5FB9 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E89D6CC2150E5B2E005F5FB9 /* SenTestingKit.framework in Frameworks */,
+ E89D6CC3150E5B2E005F5FB9 /* UIKit.framework in Frameworks */,
+ E89D6CC4150E5B2E005F5FB9 /* Foundation.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 22D61E6C171CBBF100E9CD17 /* v2 */ = {
+ isa = PBXGroup;
+ children = (
+ 22D61E6D171CBBF100E9CD17 /* UGConnection.h */,
+ 22D61E6E171CBBF100E9CD17 /* UGConnection.m */,
+ 22D61E6F171CBBF100E9CD17 /* UGHTTPClient.h */,
+ 22D61E70171CBBF100E9CD17 /* UGHTTPClient.m */,
+ 22D61E71171CBBF100E9CD17 /* UGHTTPHelpers.h */,
+ 22D61E72171CBBF100E9CD17 /* UGHTTPHelpers.m */,
+ 22D61E73171CBBF100E9CD17 /* UGHTTPResult.h */,
+ 22D61E74171CBBF100E9CD17 /* UGHTTPResult.m */,
+ );
+ path = v2;
+ sourceTree = "<group>";
+ };
+ C96E782917821C9D004DD244 /* SSKeychain */ = {
+ isa = PBXGroup;
+ children = (
+ C96E782D1782349C004DD244 /* SSKeychain.h */,
+ C96E782E1782349C004DD244 /* SSKeychain.m */,
+ );
+ name = SSKeychain;
+ sourceTree = "<group>";
+ };
+ E89D6C91150E5B2E005F5FB9 = {
+ isa = PBXGroup;
+ children = (
+ C96E783617824711004DD244 /* Security.framework */,
+ 22CA67231732087600C03C70 /* Default-568h@2x.png */,
+ E89D6D18150E5C54005F5FB9 /* CoreLocation.framework */,
+ E89D6CDC150E5B99005F5FB9 /* UGAPI */,
+ E89D6CA6150E5B2E005F5FB9 /* UGAPIApp */,
+ E89D6CC7150E5B2E005F5FB9 /* UGAPIAppTests */,
+ E89D6C9F150E5B2E005F5FB9 /* Frameworks */,
+ E89D6C9D150E5B2E005F5FB9 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ E89D6C9D150E5B2E005F5FB9 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6C9C150E5B2E005F5FB9 /* UGAPIApp.app */,
+ E89D6CC0150E5B2E005F5FB9 /* UGAPIAppTests.octest */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ E89D6C9F150E5B2E005F5FB9 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CA0150E5B2E005F5FB9 /* UIKit.framework */,
+ E89D6CA2150E5B2E005F5FB9 /* Foundation.framework */,
+ E89D6CA4150E5B2E005F5FB9 /* CoreGraphics.framework */,
+ E89D6CC1150E5B2E005F5FB9 /* SenTestingKit.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ E89D6CA6150E5B2E005F5FB9 /* UGAPIApp */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CAF150E5B2E005F5FB9 /* UGAppAppDelegate.h */,
+ E89D6CB0150E5B2E005F5FB9 /* UGAppAppDelegate.m */,
+ E89D6CB2150E5B2E005F5FB9 /* MainStoryboard_iPhone.storyboard */,
+ E89D6CB5150E5B2E005F5FB9 /* MainStoryboard_iPad.storyboard */,
+ E89D6CB8150E5B2E005F5FB9 /* UGAppViewController.h */,
+ E89D6CB9150E5B2E005F5FB9 /* UGAppViewController.m */,
+ E89D6CA7150E5B2E005F5FB9 /* Supporting Files */,
+ );
+ path = UGAPIApp;
+ sourceTree = "<group>";
+ };
+ E89D6CA7150E5B2E005F5FB9 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CA8150E5B2E005F5FB9 /* UGAPIApp-Info.plist */,
+ E89D6CA9150E5B2E005F5FB9 /* InfoPlist.strings */,
+ E89D6CAC150E5B2E005F5FB9 /* main.m */,
+ E89D6CAE150E5B2E005F5FB9 /* UGAPIApp-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ E89D6CC7150E5B2E005F5FB9 /* UGAPIAppTests */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CCD150E5B2E005F5FB9 /* UGAPIAppTests.h */,
+ E89D6CCE150E5B2E005F5FB9 /* UGAPIAppTests.m */,
+ E89D6CC8150E5B2E005F5FB9 /* Supporting Files */,
+ );
+ path = UGAPIAppTests;
+ sourceTree = "<group>";
+ };
+ E89D6CC8150E5B2E005F5FB9 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CC9150E5B2E005F5FB9 /* UGAPIAppTests-Info.plist */,
+ E89D6CCA150E5B2E005F5FB9 /* InfoPlist.strings */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ E89D6CDC150E5B99005F5FB9 /* UGAPI */ = {
+ isa = PBXGroup;
+ children = (
+ C96E782917821C9D004DD244 /* SSKeychain */,
+ 22D61E6C171CBBF100E9CD17 /* v2 */,
+ E89D6CDD150E5B99005F5FB9 /* SBJson */,
+ E89D6CF7150E5B99005F5FB9 /* UGActivity.h */,
+ E89D6CF8150E5B99005F5FB9 /* UGActivity.m */,
+ E89D6CF9150E5B99005F5FB9 /* UGClient.h */,
+ E89D6CFA150E5B99005F5FB9 /* UGClient.m */,
+ E89D6CFB150E5B99005F5FB9 /* UGClientResponse.h */,
+ E89D6CFC150E5B99005F5FB9 /* UGClientResponse.m */,
+ E89D6CFD150E5B99005F5FB9 /* UGHTTPManager.h */,
+ E89D6CFE150E5B99005F5FB9 /* UGHTTPManager.m */,
+ E89D6CFF150E5B99005F5FB9 /* UGMultiStepAction.h */,
+ E89D6D00150E5B99005F5FB9 /* UGMultiStepAction.m */,
+ E89D6D01150E5B99005F5FB9 /* UGQuery.h */,
+ E89D6D02150E5B99005F5FB9 /* UGQuery.m */,
+ E89D6D03150E5B99005F5FB9 /* UGUser.h */,
+ E89D6D04150E5B99005F5FB9 /* UGUser.m */,
+ 638F675816EF875F002BD513 /* UGClientDelegate.h */,
+ );
+ path = UGAPI;
+ sourceTree = "<group>";
+ };
+ E89D6CDD150E5B99005F5FB9 /* SBJson */ = {
+ isa = PBXGroup;
+ children = (
+ E89D6CDE150E5B99005F5FB9 /* NSObject+SBJson.h */,
+ E89D6CDF150E5B99005F5FB9 /* NSObject+SBJson.m */,
+ E89D6CE0150E5B99005F5FB9 /* SBJson.h */,
+ E89D6CE1150E5B99005F5FB9 /* SBJsonParser.h */,
+ E89D6CE2150E5B99005F5FB9 /* SBJsonParser.m */,
+ E89D6CE3150E5B99005F5FB9 /* SBJsonStreamParser.h */,
+ E89D6CE4150E5B99005F5FB9 /* SBJsonStreamParser.m */,
+ E89D6CE5150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.h */,
+ E89D6CE6150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.m */,
+ E89D6CE7150E5B99005F5FB9 /* SBJsonStreamParserAdapter.h */,
+ E89D6CE8150E5B99005F5FB9 /* SBJsonStreamParserAdapter.m */,
+ E89D6CE9150E5B99005F5FB9 /* SBJsonStreamParserState.h */,
+ E89D6CEA150E5B99005F5FB9 /* SBJsonStreamParserState.m */,
+ E89D6CEB150E5B99005F5FB9 /* SBJsonStreamWriter.h */,
+ E89D6CEC150E5B99005F5FB9 /* SBJsonStreamWriter.m */,
+ E89D6CED150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.h */,
+ E89D6CEE150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.m */,
+ E89D6CEF150E5B99005F5FB9 /* SBJsonStreamWriterState.h */,
+ E89D6CF0150E5B99005F5FB9 /* SBJsonStreamWriterState.m */,
+ E89D6CF1150E5B99005F5FB9 /* SBJsonTokeniser.h */,
+ E89D6CF2150E5B99005F5FB9 /* SBJsonTokeniser.m */,
+ E89D6CF3150E5B99005F5FB9 /* SBJsonUTF8Stream.h */,
+ E89D6CF4150E5B99005F5FB9 /* SBJsonUTF8Stream.m */,
+ E89D6CF5150E5B99005F5FB9 /* SBJsonWriter.h */,
+ E89D6CF6150E5B99005F5FB9 /* SBJsonWriter.m */,
+ );
+ path = SBJson;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ E89D6C9B150E5B2E005F5FB9 /* UGAPIApp */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = E89D6CD2150E5B2E005F5FB9 /* Build configuration list for PBXNativeTarget "UGAPIApp" */;
+ buildPhases = (
+ E89D6C98150E5B2E005F5FB9 /* Sources */,
+ E89D6C99150E5B2E005F5FB9 /* Frameworks */,
+ E89D6C9A150E5B2E005F5FB9 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = UGAPIApp;
+ productName = UGAPIApp;
+ productReference = E89D6C9C150E5B2E005F5FB9 /* UGAPIApp.app */;
+ productType = "com.apple.product-type.application";
+ };
+ E89D6CBF150E5B2E005F5FB9 /* UGAPIAppTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = E89D6CD5150E5B2E005F5FB9 /* Build configuration list for PBXNativeTarget "UGAPIAppTests" */;
+ buildPhases = (
+ E89D6CBB150E5B2E005F5FB9 /* Sources */,
+ E89D6CBC150E5B2E005F5FB9 /* Frameworks */,
+ E89D6CBD150E5B2E005F5FB9 /* Resources */,
+ E89D6CBE150E5B2E005F5FB9 /* ShellScript */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ E89D6CC6150E5B2E005F5FB9 /* PBXTargetDependency */,
+ );
+ name = UGAPIAppTests;
+ productName = UGAPIAppTests;
+ productReference = E89D6CC0150E5B2E005F5FB9 /* UGAPIAppTests.octest */;
+ productType = "com.apple.product-type.bundle";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ E89D6C93150E5B2E005F5FB9 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ CLASSPREFIX = UGApp;
+ LastUpgradeCheck = 0430;
+ };
+ buildConfigurationList = E89D6C96150E5B2E005F5FB9 /* Build configuration list for PBXProject "UGAPIApp" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = E89D6C91150E5B2E005F5FB9;
+ productRefGroup = E89D6C9D150E5B2E005F5FB9 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ E89D6C9B150E5B2E005F5FB9 /* UGAPIApp */,
+ E89D6CBF150E5B2E005F5FB9 /* UGAPIAppTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ E89D6C9A150E5B2E005F5FB9 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E89D6CAB150E5B2E005F5FB9 /* InfoPlist.strings in Resources */,
+ E89D6CB4150E5B2E005F5FB9 /* MainStoryboard_iPhone.storyboard in Resources */,
+ E89D6CB7150E5B2E005F5FB9 /* MainStoryboard_iPad.storyboard in Resources */,
+ 22CA67241732087600C03C70 /* Default-568h@2x.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E89D6CBD150E5B2E005F5FB9 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E89D6CCC150E5B2E005F5FB9 /* InfoPlist.strings in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ E89D6CBE150E5B2E005F5FB9 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ E89D6C98150E5B2E005F5FB9 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E89D6CAD150E5B2E005F5FB9 /* main.m in Sources */,
+ E89D6CB1150E5B2E005F5FB9 /* UGAppAppDelegate.m in Sources */,
+ E89D6CBA150E5B2E005F5FB9 /* UGAppViewController.m in Sources */,
+ E89D6D05150E5B99005F5FB9 /* NSObject+SBJson.m in Sources */,
+ E89D6D06150E5B99005F5FB9 /* SBJsonParser.m in Sources */,
+ E89D6D07150E5B99005F5FB9 /* SBJsonStreamParser.m in Sources */,
+ E89D6D08150E5B99005F5FB9 /* SBJsonStreamParserAccumulator.m in Sources */,
+ E89D6D09150E5B99005F5FB9 /* SBJsonStreamParserAdapter.m in Sources */,
+ E89D6D0A150E5B99005F5FB9 /* SBJsonStreamParserState.m in Sources */,
+ E89D6D0B150E5B99005F5FB9 /* SBJsonStreamWriter.m in Sources */,
+ E89D6D0C150E5B99005F5FB9 /* SBJsonStreamWriterAccumulator.m in Sources */,
+ E89D6D0D150E5B99005F5FB9 /* SBJsonStreamWriterState.m in Sources */,
+ E89D6D0E150E5B99005F5FB9 /* SBJsonTokeniser.m in Sources */,
+ E89D6D0F150E5B99005F5FB9 /* SBJsonUTF8Stream.m in Sources */,
+ E89D6D10150E5B99005F5FB9 /* SBJsonWriter.m in Sources */,
+ E89D6D11150E5B99005F5FB9 /* UGActivity.m in Sources */,
+ E89D6D12150E5B99005F5FB9 /* UGClient.m in Sources */,
+ E89D6D13150E5B99005F5FB9 /* UGClientResponse.m in Sources */,
+ E89D6D14150E5B99005F5FB9 /* UGHTTPManager.m in Sources */,
+ E89D6D15150E5B99005F5FB9 /* UGMultiStepAction.m in Sources */,
+ E89D6D16150E5B99005F5FB9 /* UGQuery.m in Sources */,
+ E89D6D17150E5B99005F5FB9 /* UGUser.m in Sources */,
+ 22D61E75171CBBF100E9CD17 /* UGConnection.m in Sources */,
+ 22D61E76171CBBF100E9CD17 /* UGHTTPClient.m in Sources */,
+ 22D61E77171CBBF100E9CD17 /* UGHTTPHelpers.m in Sources */,
+ 22D61E78171CBBF100E9CD17 /* UGHTTPResult.m in Sources */,
+ C96E782F1782349C004DD244 /* SSKeychain.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ E89D6CBB150E5B2E005F5FB9 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ E89D6CCF150E5B2E005F5FB9 /* UGAPIAppTests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ E89D6CC6150E5B2E005F5FB9 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = E89D6C9B150E5B2E005F5FB9 /* UGAPIApp */;
+ targetProxy = E89D6CC5150E5B2E005F5FB9 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ E89D6CA9150E5B2E005F5FB9 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ E89D6CAA150E5B2E005F5FB9 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ E89D6CB2150E5B2E005F5FB9 /* MainStoryboard_iPhone.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ E89D6CB3150E5B2E005F5FB9 /* en */,
+ );
+ name = MainStoryboard_iPhone.storyboard;
+ sourceTree = "<group>";
+ };
+ E89D6CB5150E5B2E005F5FB9 /* MainStoryboard_iPad.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ E89D6CB6150E5B2E005F5FB9 /* en */,
+ );
+ name = MainStoryboard_iPad.storyboard;
+ sourceTree = "<group>";
+ };
+ E89D6CCA150E5B2E005F5FB9 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ E89D6CCB150E5B2E005F5FB9 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ E89D6CD0150E5B2E005F5FB9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ E89D6CD1150E5B2E005F5FB9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ E89D6CD3150E5B2E005F5FB9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "UGAPIApp/UGAPIApp-Prefix.pch";
+ INFOPLIST_FILE = "UGAPIApp/UGAPIApp-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ E89D6CD4150E5B2E005F5FB9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "UGAPIApp/UGAPIApp-Prefix.pch";
+ INFOPLIST_FILE = "UGAPIApp/UGAPIApp-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+ E89D6CD6150E5B2E005F5FB9 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UGAPIApp.app/UGAPIApp";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "UGAPIApp/UGAPIApp-Prefix.pch";
+ INFOPLIST_FILE = "UGAPIAppTests/UGAPIAppTests-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUNDLE_LOADER)";
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Debug;
+ };
+ E89D6CD7150E5B2E005F5FB9 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UGAPIApp.app/UGAPIApp";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "UGAPIApp/UGAPIApp-Prefix.pch";
+ INFOPLIST_FILE = "UGAPIAppTests/UGAPIAppTests-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUNDLE_LOADER)";
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ E89D6C96150E5B2E005F5FB9 /* Build configuration list for PBXProject "UGAPIApp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E89D6CD0150E5B2E005F5FB9 /* Debug */,
+ E89D6CD1150E5B2E005F5FB9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ E89D6CD2150E5B2E005F5FB9 /* Build configuration list for PBXNativeTarget "UGAPIApp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E89D6CD3150E5B2E005F5FB9 /* Debug */,
+ E89D6CD4150E5B2E005F5FB9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ E89D6CD5150E5B2E005F5FB9 /* Build configuration list for PBXNativeTarget "UGAPIAppTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ E89D6CD6150E5B2E005F5FB9 /* Debug */,
+ E89D6CD7150E5B2E005F5FB9 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = E89D6C93150E5B2E005F5FB9 /* Project object */;
+}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/sdks/other/ios/UGAPIApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..3092016
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:UGAPIApp.xcodeproj">
+ </FileRef>
+</Workspace>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAPIApp-Info.plist
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAPIApp-Info.plist b/sdks/other/ios/UGAPIApp/UGAPIApp-Info.plist
new file mode 100644
index 0000000..45143c7
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAPIApp-Info.plist
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apigee.usergrid.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIMainStoryboardFile</key>
+ <string>MainStoryboard_iPhone</string>
+ <key>UIMainStoryboardFile~ipad</key>
+ <string>MainStoryboard_iPad</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAPIApp-Prefix.pch
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAPIApp-Prefix.pch b/sdks/other/ios/UGAPIApp/UGAPIApp-Prefix.pch
new file mode 100644
index 0000000..b497ab1
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAPIApp-Prefix.pch
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+//
+// Prefix header for all source files of the 'UGAPIApp' target in the 'UGAPIApp' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_5_0
+#warning "This project uses features only available in iOS SDK 5.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAppAppDelegate.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAppAppDelegate.h b/sdks/other/ios/UGAPIApp/UGAppAppDelegate.h
new file mode 100644
index 0000000..15c3ced
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAppAppDelegate.h
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <UIKit/UIKit.h>
+@class UGHTTPManager;
+
+@interface UGAppAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAppAppDelegate.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAppAppDelegate.m b/sdks/other/ios/UGAPIApp/UGAppAppDelegate.m
new file mode 100644
index 0000000..2e7d6de
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAppAppDelegate.m
@@ -0,0 +1,139 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGAppAppDelegate.h"
+#import "UGHTTPManager.h"
+#import "SBJson.h"
+#import "UGClient.h"
+#import "UGClientResponse.h"
+
+UGClient *g_client = nil;
+int g_taps = 0;
+
+@implementation UGAppAppDelegate
+
+@synthesize window = _window;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ // Override point for customization after application launch.
+ return YES;
+}
+
+- (void)applicationWillResignActive:(UIApplication *)application
+{
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application
+{
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application
+{
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+}
+
+-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
+{
+ // called when there's a touch.
+ [self testUGClient];
+}
+
+-(void)testUGClient
+{
+ // creation and init
+ if ( !g_client )
+ {
+ g_client =[[UGClient alloc] initWithOrganizationId:@"1hotrod" withApplicationID:@"fred" ];
+ }
+
+ UGClientResponse *response = nil;
+ response = [g_client logInUser:@"alice" password:@"test1test"];
+ if ( [response transactionState] == kUGClientResponseFailure )
+ {
+ [self outputResponse:response title:@"LOG IN ERROR"];
+ return;
+ }
+
+ CLLocation *fakeLocation = [[CLLocation alloc] initWithLatitude:37.776753 longitude:-122.407846];
+
+ UGQuery *query = [UGQuery new];
+ [query addRequiredWithinLocation:@"location" location:fakeLocation distance:2000];
+
+ response = [g_client getUsers:query];
+ [self outputResponse:response title:@"getUsers Response"];
+}
+
+-(void)ugClientResponse:(UGClientResponse *)response
+{
+ // note the results
+ [self outputResponse:response title:@"Asynch Response"];
+}
+
+-(void)outputResponse:(UGClientResponse *)response title:(NSString *)title
+{
+ NSLog(@"-----%@-----", title);
+ if ( !response )
+ {
+ NSLog(@"Response is nil");
+ NSLog(@"------------------");
+ return;
+ }
+
+
+ if ( [response transactionState] == kUGClientResponseSuccess )
+ {
+ NSLog(@"state: SUCCESS");
+ NSLog(@"id: %d", [response transactionID]);
+ NSLog(@"raw:\n%@", [response rawResponse]);
+ }
+ else if ( [response transactionState] == kUGClientResponsePending )
+ {
+ NSLog(@"state: PENDING");
+ NSLog(@"id: %d", [response transactionID]);
+ }
+ else if ( [response transactionState] == kUGClientResponseFailure )
+ {
+ NSLog(@"state: FAILURE");
+ NSLog(@"id: %d", [response transactionID]);
+ NSLog(@"reason: '%@'", [response response]);
+ NSLog(@"raw:\n%@", [response rawResponse]);
+ }
+ else
+ {
+ NSLog(@"Object is mangled or invalid.");
+ }
+ NSLog(@"------------------");
+}
+
+
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAppViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAppViewController.h b/sdks/other/ios/UGAPIApp/UGAppViewController.h
new file mode 100644
index 0000000..9846c31
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAppViewController.h
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <UIKit/UIKit.h>
+
+@interface UGAppViewController : UIViewController
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/UGAppViewController.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/UGAppViewController.m b/sdks/other/ios/UGAPIApp/UGAppViewController.m
new file mode 100644
index 0000000..b7c5424
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/UGAppViewController.m
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGAppViewController.h"
+
+@interface UGAppViewController ()
+
+@end
+
+@implementation UGAppViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
+ return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
+ } else {
+ return YES;
+ }
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/en.lproj/InfoPlist.strings
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/en.lproj/InfoPlist.strings b/sdks/other/ios/UGAPIApp/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..477b28f
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPad.storyboard
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPad.storyboard b/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPad.storyboard
new file mode 100644
index 0000000..447df68
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPad.storyboard
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1906" systemVersion="11A511" targetRuntime="iOS.CocoaTouch.iPad" nextObjectID="6" propertyAccessControl="none" initialViewController="2">
+ <dependencies>
+ <development defaultVersion="4200" identifier="xcode"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="902"/>
+ </dependencies>
+ <scenes>
+ <scene sceneID="4">
+ <objects>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="3" sceneMemberID="firstResponder"/>
+ <viewController id="2" customClass="UGAppViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="5">
+ <rect key="frame" x="0.0" y="20" width="768" height="1004"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ </objects>
+ </scene>
+ </scenes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination"/>
+ </simulatedMetricsContainer>
+</document>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPhone.storyboard
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPhone.storyboard b/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPhone.storyboard
new file mode 100644
index 0000000..92b0831
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/en.lproj/MainStoryboard_iPhone.storyboard
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1906" systemVersion="11A511" targetRuntime="iOS.CocoaTouch" nextObjectID="6" propertyAccessControl="none" initialViewController="2">
+ <dependencies>
+ <development defaultVersion="4200" identifier="xcode"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="902"/>
+ </dependencies>
+ <scenes>
+ <scene sceneID="5">
+ <objects>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
+ <viewController id="2" customClass="UGAppViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="3">
+ <rect key="frame" x="0.0" y="20" width="320" height="460"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <subviews/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ </objects>
+ </scene>
+ </scenes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination"/>
+ </simulatedMetricsContainer>
+</document>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIApp/main.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIApp/main.m b/sdks/other/ios/UGAPIApp/main.m
new file mode 100644
index 0000000..f547811
--- /dev/null
+++ b/sdks/other/ios/UGAPIApp/main.m
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <UIKit/UIKit.h>
+
+#import "UGAppAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([UGAppAppDelegate class]));
+ }
+}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIAppTests/UGAPIAppTests-Info.plist
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIAppTests/UGAPIAppTests-Info.plist b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests-Info.plist
new file mode 100644
index 0000000..94b9921
--- /dev/null
+++ b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests-Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apigee.usergrid.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.h b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.h
new file mode 100644
index 0000000..abaf125
--- /dev/null
+++ b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.h
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <SenTestingKit/SenTestingKit.h>
+
+@interface UGAPIAppTests : SenTestCase
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.m b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.m
new file mode 100644
index 0000000..0cda4c0
--- /dev/null
+++ b/sdks/other/ios/UGAPIAppTests/UGAPIAppTests.m
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGAPIAppTests.h"
+
+@implementation UGAPIAppTests
+
+- (void)setUp
+{
+ [super setUp];
+
+ // Set-up code here.
+}
+
+- (void)tearDown
+{
+ // Tear-down code here.
+
+ [super tearDown];
+}
+
+- (void)testExample
+{
+ STFail(@"Unit tests are not implemented yet in UGAPIAppTests");
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPIAppTests/en.lproj/InfoPlist.strings
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPIAppTests/en.lproj/InfoPlist.strings b/sdks/other/ios/UGAPIAppTests/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..477b28f
--- /dev/null
+++ b/sdks/other/ios/UGAPIAppTests/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/changelog.md
----------------------------------------------------------------------
diff --git a/sdks/other/ios/changelog.md b/sdks/other/ios/changelog.md
new file mode 100644
index 0000000..88d0b1f
--- /dev/null
+++ b/sdks/other/ios/changelog.md
@@ -0,0 +1,11 @@
+##Change log
+
+
+###0.9.2
+
+- Added Facebook login
+
+
+###0.9.1
+
+- Fixed several bugs
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books.xcodeproj/project.pbxproj b/sdks/other/ios/samples/Books/books.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..3db9841
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books.xcodeproj/project.pbxproj
@@ -0,0 +1,342 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 224EA246170F6F63002B136A /* UGConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 224EA23F170F6F63002B136A /* UGConnection.m */; };
+ 224EA247170F6F63002B136A /* UGHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 224EA241170F6F63002B136A /* UGHTTPClient.m */; };
+ 224EA248170F6F63002B136A /* UGHTTPHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 224EA243170F6F63002B136A /* UGHTTPHelpers.m */; };
+ 224EA249170F6F63002B136A /* UGHTTPResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 224EA245170F6F63002B136A /* UGHTTPResult.m */; };
+ 227AE09F170DF424004F6E20 /* UGSignInViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 227AE09E170DF424004F6E20 /* UGSignInViewController.m */; };
+ 227AE0A2170E01CF004F6E20 /* AddBookViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 227AE0A1170E01CF004F6E20 /* AddBookViewController.m */; };
+ 228ADD73170DE2ED0030F962 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 228ADD72170DE2ED0030F962 /* UIKit.framework */; };
+ 228ADD75170DE2ED0030F962 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 228ADD74170DE2ED0030F962 /* Foundation.framework */; };
+ 228ADD77170DE2ED0030F962 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 228ADD76170DE2ED0030F962 /* CoreGraphics.framework */; };
+ 228ADD7D170DE2ED0030F962 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 228ADD7B170DE2ED0030F962 /* InfoPlist.strings */; };
+ 228ADD7F170DE2ED0030F962 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 228ADD7E170DE2ED0030F962 /* main.m */; };
+ 228ADD83170DE2ED0030F962 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 228ADD82170DE2ED0030F962 /* AppDelegate.m */; };
+ 228ADD85170DE2ED0030F962 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 228ADD84170DE2ED0030F962 /* Default.png */; };
+ 228ADD87170DE2ED0030F962 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 228ADD86170DE2ED0030F962 /* Default@2x.png */; };
+ 228ADD89170DE2ED0030F962 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 228ADD88170DE2ED0030F962 /* Default-568h@2x.png */; };
+ 228ADD91170DE3170030F962 /* BooksViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 228ADD90170DE3170030F962 /* BooksViewController.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 224EA23E170F6F63002B136A /* UGConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGConnection.h; sourceTree = "<group>"; };
+ 224EA23F170F6F63002B136A /* UGConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGConnection.m; sourceTree = "<group>"; };
+ 224EA240170F6F63002B136A /* UGHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPClient.h; sourceTree = "<group>"; };
+ 224EA241170F6F63002B136A /* UGHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPClient.m; sourceTree = "<group>"; };
+ 224EA242170F6F63002B136A /* UGHTTPHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPHelpers.h; sourceTree = "<group>"; };
+ 224EA243170F6F63002B136A /* UGHTTPHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPHelpers.m; sourceTree = "<group>"; };
+ 224EA244170F6F63002B136A /* UGHTTPResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGHTTPResult.h; sourceTree = "<group>"; };
+ 224EA245170F6F63002B136A /* UGHTTPResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGHTTPResult.m; sourceTree = "<group>"; };
+ 227AE09D170DF424004F6E20 /* UGSignInViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UGSignInViewController.h; sourceTree = "<group>"; };
+ 227AE09E170DF424004F6E20 /* UGSignInViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UGSignInViewController.m; sourceTree = "<group>"; };
+ 227AE0A0170E01CF004F6E20 /* AddBookViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AddBookViewController.h; sourceTree = "<group>"; };
+ 227AE0A1170E01CF004F6E20 /* AddBookViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AddBookViewController.m; sourceTree = "<group>"; };
+ 228ADD6F170DE2ED0030F962 /* books.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = books.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 228ADD72170DE2ED0030F962 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 228ADD74170DE2ED0030F962 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 228ADD76170DE2ED0030F962 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 228ADD7A170DE2ED0030F962 /* books-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "books-Info.plist"; sourceTree = "<group>"; };
+ 228ADD7C170DE2ED0030F962 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 228ADD7E170DE2ED0030F962 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 228ADD80170DE2ED0030F962 /* books-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "books-Prefix.pch"; sourceTree = "<group>"; };
+ 228ADD81170DE2ED0030F962 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ 228ADD82170DE2ED0030F962 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+ 228ADD84170DE2ED0030F962 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ 228ADD86170DE2ED0030F962 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ 228ADD88170DE2ED0030F962 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ 228ADD8F170DE3170030F962 /* BooksViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BooksViewController.h; sourceTree = "<group>"; };
+ 228ADD90170DE3170030F962 /* BooksViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BooksViewController.m; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 228ADD6C170DE2ED0030F962 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 228ADD73170DE2ED0030F962 /* UIKit.framework in Frameworks */,
+ 228ADD75170DE2ED0030F962 /* Foundation.framework in Frameworks */,
+ 228ADD77170DE2ED0030F962 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 224EA23D170F6F63002B136A /* UGAPI */ = {
+ isa = PBXGroup;
+ children = (
+ 224EA23E170F6F63002B136A /* UGConnection.h */,
+ 224EA23F170F6F63002B136A /* UGConnection.m */,
+ 224EA240170F6F63002B136A /* UGHTTPClient.h */,
+ 224EA241170F6F63002B136A /* UGHTTPClient.m */,
+ 224EA242170F6F63002B136A /* UGHTTPHelpers.h */,
+ 224EA243170F6F63002B136A /* UGHTTPHelpers.m */,
+ 224EA244170F6F63002B136A /* UGHTTPResult.h */,
+ 224EA245170F6F63002B136A /* UGHTTPResult.m */,
+ );
+ name = UGAPI;
+ path = ../../UGAPI/v2;
+ sourceTree = "<group>";
+ };
+ 228ADD66170DE2ED0030F962 = {
+ isa = PBXGroup;
+ children = (
+ 224EA23D170F6F63002B136A /* UGAPI */,
+ 228ADD78170DE2ED0030F962 /* books */,
+ 228ADD79170DE2ED0030F962 /* Supporting Files */,
+ 228ADD71170DE2ED0030F962 /* Frameworks */,
+ 228ADD70170DE2ED0030F962 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 228ADD70170DE2ED0030F962 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 228ADD6F170DE2ED0030F962 /* books.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 228ADD71170DE2ED0030F962 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 228ADD72170DE2ED0030F962 /* UIKit.framework */,
+ 228ADD74170DE2ED0030F962 /* Foundation.framework */,
+ 228ADD76170DE2ED0030F962 /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 228ADD78170DE2ED0030F962 /* books */ = {
+ isa = PBXGroup;
+ children = (
+ 228ADD81170DE2ED0030F962 /* AppDelegate.h */,
+ 228ADD82170DE2ED0030F962 /* AppDelegate.m */,
+ 228ADD8F170DE3170030F962 /* BooksViewController.h */,
+ 228ADD90170DE3170030F962 /* BooksViewController.m */,
+ 227AE09D170DF424004F6E20 /* UGSignInViewController.h */,
+ 227AE09E170DF424004F6E20 /* UGSignInViewController.m */,
+ 227AE0A0170E01CF004F6E20 /* AddBookViewController.h */,
+ 227AE0A1170E01CF004F6E20 /* AddBookViewController.m */,
+ );
+ path = books;
+ sourceTree = "<group>";
+ };
+ 228ADD79170DE2ED0030F962 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 228ADD7A170DE2ED0030F962 /* books-Info.plist */,
+ 228ADD7B170DE2ED0030F962 /* InfoPlist.strings */,
+ 228ADD7E170DE2ED0030F962 /* main.m */,
+ 228ADD80170DE2ED0030F962 /* books-Prefix.pch */,
+ 228ADD84170DE2ED0030F962 /* Default.png */,
+ 228ADD86170DE2ED0030F962 /* Default@2x.png */,
+ 228ADD88170DE2ED0030F962 /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ path = books;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 228ADD6E170DE2ED0030F962 /* books */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 228ADD8C170DE2ED0030F962 /* Build configuration list for PBXNativeTarget "books" */;
+ buildPhases = (
+ 228ADD6B170DE2ED0030F962 /* Sources */,
+ 228ADD6C170DE2ED0030F962 /* Frameworks */,
+ 228ADD6D170DE2ED0030F962 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = books;
+ productName = books;
+ productReference = 228ADD6F170DE2ED0030F962 /* books.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 228ADD67170DE2ED0030F962 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0460;
+ ORGANIZATIONNAME = Radtastical;
+ };
+ buildConfigurationList = 228ADD6A170DE2ED0030F962 /* Build configuration list for PBXProject "books" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 228ADD66170DE2ED0030F962;
+ productRefGroup = 228ADD70170DE2ED0030F962 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 228ADD6E170DE2ED0030F962 /* books */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 228ADD6D170DE2ED0030F962 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 228ADD7D170DE2ED0030F962 /* InfoPlist.strings in Resources */,
+ 228ADD85170DE2ED0030F962 /* Default.png in Resources */,
+ 228ADD87170DE2ED0030F962 /* Default@2x.png in Resources */,
+ 228ADD89170DE2ED0030F962 /* Default-568h@2x.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 228ADD6B170DE2ED0030F962 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 228ADD7F170DE2ED0030F962 /* main.m in Sources */,
+ 228ADD83170DE2ED0030F962 /* AppDelegate.m in Sources */,
+ 228ADD91170DE3170030F962 /* BooksViewController.m in Sources */,
+ 227AE09F170DF424004F6E20 /* UGSignInViewController.m in Sources */,
+ 227AE0A2170E01CF004F6E20 /* AddBookViewController.m in Sources */,
+ 224EA246170F6F63002B136A /* UGConnection.m in Sources */,
+ 224EA247170F6F63002B136A /* UGHTTPClient.m in Sources */,
+ 224EA248170F6F63002B136A /* UGHTTPHelpers.m in Sources */,
+ 224EA249170F6F63002B136A /* UGHTTPResult.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 228ADD7B170DE2ED0030F962 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 228ADD7C170DE2ED0030F962 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 228ADD8A170DE2ED0030F962 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 228ADD8B170DE2ED0030F962 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 228ADD8D170DE2ED0030F962 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "books/books-Prefix.pch";
+ INFOPLIST_FILE = "books/books-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 228ADD8E170DE2ED0030F962 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "books/books-Prefix.pch";
+ INFOPLIST_FILE = "books/books-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 228ADD6A170DE2ED0030F962 /* Build configuration list for PBXProject "books" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 228ADD8A170DE2ED0030F962 /* Debug */,
+ 228ADD8B170DE2ED0030F962 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 228ADD8C170DE2ED0030F962 /* Build configuration list for PBXNativeTarget "books" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 228ADD8D170DE2ED0030F962 /* Debug */,
+ 228ADD8E170DE2ED0030F962 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 228ADD67170DE2ED0030F962 /* Project object */;
+}
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/samples/Books/books/AddBookViewController.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/samples/Books/books/AddBookViewController.h b/sdks/other/ios/samples/Books/books/AddBookViewController.h
new file mode 100644
index 0000000..d9aaeb7
--- /dev/null
+++ b/sdks/other/ios/samples/Books/books/AddBookViewController.h
@@ -0,0 +1,41 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//
+// AddBookViewController.h
+// books
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#import <UIKit/UIKit.h>
+
+@interface AddBookViewController : UITableViewController
+
+@end
[34/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.h b/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.h
new file mode 100755
index 0000000..90d442a
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.h
@@ -0,0 +1,69 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+@class SBJsonStreamWriter;
+
+@interface SBJsonStreamWriterState : NSObject
++ (id)sharedInstance;
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer;
+- (void)appendSeparator:(SBJsonStreamWriter*)writer;
+- (BOOL)expectingKey:(SBJsonStreamWriter*)writer;
+- (void)transitionState:(SBJsonStreamWriter*)writer;
+- (void)appendWhitespace:(SBJsonStreamWriter*)writer;
+@end
+
+@interface SBJsonStreamWriterStateObjectStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateObjectKey : SBJsonStreamWriterStateObjectStart
+@end
+
+@interface SBJsonStreamWriterStateObjectValue : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateArrayStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateArrayValue : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateComplete : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateError : SBJsonStreamWriterState
+@end
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.m b/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.m
new file mode 100755
index 0000000..9f04cac
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonStreamWriterState.m
@@ -0,0 +1,139 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonStreamWriterState.h"
+#import "SBJsonStreamWriter.h"
+
+#define SINGLETON \
++ (id)sharedInstance { \
+ static id state; \
+ if (!state) state = [[self alloc] init]; \
+ return state; \
+}
+
+
+@implementation SBJsonStreamWriterState
++ (id)sharedInstance { return nil; }
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer { return NO; }
+- (void)appendSeparator:(SBJsonStreamWriter*)writer {}
+- (BOOL)expectingKey:(SBJsonStreamWriter*)writer { return NO; }
+- (void)transitionState:(SBJsonStreamWriter *)writer {}
+- (void)appendWhitespace:(SBJsonStreamWriter*)writer {
+ [writer appendBytes:"\n" length:1];
+ for (NSUInteger i = 0; i < writer.stateStack.count; i++)
+ [writer appendBytes:" " length:2];
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectStart
+
+SINGLETON
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateObjectValue sharedInstance];
+}
+- (BOOL)expectingKey:(SBJsonStreamWriter *)writer {
+ writer.error = @"JSON object key must be string";
+ return YES;
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectKey
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:"," length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectValue
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:":" length:1];
+}
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateObjectKey sharedInstance];
+}
+- (void)appendWhitespace:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:" " length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateArrayStart
+
+SINGLETON
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateArrayValue sharedInstance];
+}
+@end
+
+@implementation SBJsonStreamWriterStateArrayValue
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:"," length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateStart
+
+SINGLETON
+
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateComplete sharedInstance];
+}
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+}
+@end
+
+@implementation SBJsonStreamWriterStateComplete
+
+SINGLETON
+
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer {
+ writer.error = @"Stream is closed";
+ return YES;
+}
+@end
+
+@implementation SBJsonStreamWriterStateError
+
+SINGLETON
+
+@end
+
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.h b/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.h
new file mode 100755
index 0000000..e484a94
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.h
@@ -0,0 +1,67 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+typedef enum {
+ sbjson_token_error = -1,
+ sbjson_token_eof,
+
+ sbjson_token_array_start,
+ sbjson_token_array_end,
+
+ sbjson_token_object_start,
+ sbjson_token_object_end,
+
+ sbjson_token_separator,
+ sbjson_token_keyval_separator,
+
+ sbjson_token_number,
+ sbjson_token_string,
+ sbjson_token_true,
+ sbjson_token_false,
+ sbjson_token_null,
+
+} sbjson_token_t;
+
+@class SBJsonUTF8Stream;
+
+@interface SBJsonTokeniser : NSObject
+
+@property (strong) SBJsonUTF8Stream *stream;
+@property (copy) NSString *error;
+
+- (void)appendData:(NSData*)data_;
+
+- (sbjson_token_t)getToken:(NSObject**)token;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.m b/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.m
new file mode 100755
index 0000000..75d3268
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonTokeniser.m
@@ -0,0 +1,453 @@
+/*
+ Copyright (c) 2010-2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonTokeniser.h"
+#import "SBJsonUTF8Stream.h"
+
+#define SBStringIsIllegalSurrogateHighCharacter(character) (((character) >= 0xD800UL) && ((character) <= 0xDFFFUL))
+#define SBStringIsSurrogateLowCharacter(character) ((character >= 0xDC00UL) && (character <= 0xDFFFUL))
+#define SBStringIsSurrogateHighCharacter(character) ((character >= 0xD800UL) && (character <= 0xDBFFUL))
+
+@implementation SBJsonTokeniser
+
+@synthesize error = _error;
+@synthesize stream = _stream;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ _stream = [[SBJsonUTF8Stream alloc] init];
+
+ }
+
+ return self;
+}
+
+
+- (void)appendData:(NSData *)data_ {
+ [_stream appendData:data_];
+}
+
+
+- (sbjson_token_t)match:(const char *)pattern length:(NSUInteger)len retval:(sbjson_token_t)token {
+ if (![_stream haveRemainingCharacters:len])
+ return sbjson_token_eof;
+
+ if ([_stream skipCharacters:pattern length:len])
+ return token;
+
+ self.error = [NSString stringWithFormat:@"Expected '%s' after initial '%.1s'", pattern, pattern];
+ return sbjson_token_error;
+}
+
+- (BOOL)decodeEscape:(unichar)ch into:(unichar*)decoded {
+ switch (ch) {
+ case '\\':
+ case '/':
+ case '"':
+ *decoded = ch;
+ break;
+
+ case 'b':
+ *decoded = '\b';
+ break;
+
+ case 'n':
+ *decoded = '\n';
+ break;
+
+ case 'r':
+ *decoded = '\r';
+ break;
+
+ case 't':
+ *decoded = '\t';
+ break;
+
+ case 'f':
+ *decoded = '\f';
+ break;
+
+ default:
+ self.error = @"Illegal escape character";
+ return NO;
+ break;
+ }
+ return YES;
+}
+
+- (BOOL)decodeHexQuad:(unichar*)quad {
+ unichar c, tmp = 0;
+
+ for (int i = 0; i < 4; i++) {
+ (void)[_stream getNextUnichar:&c];
+ tmp *= 16;
+ switch (c) {
+ case '0' ... '9':
+ tmp += c - '0';
+ break;
+
+ case 'a' ... 'f':
+ tmp += 10 + c - 'a';
+ break;
+
+ case 'A' ... 'F':
+ tmp += 10 + c - 'A';
+ break;
+
+ default:
+ return NO;
+ }
+ }
+ *quad = tmp;
+ return YES;
+}
+
+- (sbjson_token_t)getStringToken:(NSObject**)token {
+ NSMutableString *acc = nil;
+
+ for (;;) {
+ [_stream skip];
+
+ unichar ch;
+ {
+ NSMutableString *string = nil;
+
+ if (![_stream getStringFragment:&string])
+ return sbjson_token_eof;
+
+ if (!string) {
+ self.error = @"Broken Unicode encoding";
+ return sbjson_token_error;
+ }
+
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ if (acc) {
+ [acc appendString:string];
+
+ } else if (ch == '"') {
+ *token = [string copy];
+ [_stream skip];
+ return sbjson_token_string;
+
+ } else {
+ acc = [string mutableCopy];
+ }
+ }
+
+
+ switch (ch) {
+ case 0 ... 0x1F:
+ self.error = [NSString stringWithFormat:@"Unescaped control character [0x%0.2X]", (int)ch];
+ return sbjson_token_error;
+ break;
+
+ case '"':
+ *token = acc;
+ [_stream skip];
+ return sbjson_token_string;
+ break;
+
+ case '\\':
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ if (ch == 'u') {
+ if (![_stream haveRemainingCharacters:5])
+ return sbjson_token_eof;
+
+ unichar hi;
+ if (![self decodeHexQuad:&hi]) {
+ self.error = @"Invalid hex quad";
+ return sbjson_token_error;
+ }
+
+ if (SBStringIsSurrogateHighCharacter(hi)) {
+ unichar lo;
+
+ if (![_stream haveRemainingCharacters:6])
+ return sbjson_token_eof;
+
+ (void)[_stream getNextUnichar:&ch];
+ (void)[_stream getNextUnichar:&lo];
+ if (ch != '\\' || lo != 'u' || ![self decodeHexQuad:&lo]) {
+ self.error = @"Missing low character in surrogate pair";
+ return sbjson_token_error;
+ }
+
+ if (!SBStringIsSurrogateLowCharacter(lo)) {
+ self.error = @"Invalid low character in surrogate pair";
+ return sbjson_token_error;
+ }
+
+ [acc appendFormat:@"%C%C", hi, lo];
+ } else if (SBStringIsIllegalSurrogateHighCharacter(hi)) {
+ self.error = @"Invalid high character in surrogate pair";
+ return sbjson_token_error;
+ } else {
+ [acc appendFormat:@"%C", hi];
+ }
+
+
+ } else {
+ unichar decoded;
+ if (![self decodeEscape:ch into:&decoded])
+ return sbjson_token_error;
+ [acc appendFormat:@"%C", decoded];
+ }
+
+ break;
+
+ default: {
+ self.error = [NSString stringWithFormat:@"Invalid UTF-8: '%x'", (int)ch];
+ return sbjson_token_error;
+ break;
+ }
+ }
+ }
+ return sbjson_token_eof;
+}
+
+- (sbjson_token_t)getNumberToken:(NSObject**)token {
+
+ NSUInteger numberStart = _stream.index;
+ NSCharacterSet *digits = [NSCharacterSet decimalDigitCharacterSet];
+
+ unichar ch;
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ BOOL isNegative = NO;
+ if (ch == '-') {
+ isNegative = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ unsigned long long mantissa = 0;
+ int mantissa_length = 0;
+
+ if (ch == '0') {
+ mantissa_length++;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ if ([digits characterIsMember:ch]) {
+ self.error = @"Leading zero is illegal in number";
+ return sbjson_token_error;
+ }
+ }
+
+ while ([digits characterIsMember:ch]) {
+ mantissa *= 10;
+ mantissa += (ch - '0');
+ mantissa_length++;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ short exponent = 0;
+ BOOL isFloat = NO;
+
+ if (ch == '.') {
+ isFloat = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ while ([digits characterIsMember:ch]) {
+ mantissa *= 10;
+ mantissa += (ch - '0');
+ mantissa_length++;
+ exponent--;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ if (!exponent) {
+ self.error = @"No digits after decimal point";
+ return sbjson_token_error;
+ }
+ }
+
+ BOOL hasExponent = NO;
+ if (ch == 'e' || ch == 'E') {
+ hasExponent = YES;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ BOOL expIsNegative = NO;
+ if (ch == '-') {
+ expIsNegative = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ } else if (ch == '+') {
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ short explicit_exponent = 0;
+ short explicit_exponent_length = 0;
+ while ([digits characterIsMember:ch]) {
+ explicit_exponent *= 10;
+ explicit_exponent += (ch - '0');
+ explicit_exponent_length++;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ if (explicit_exponent_length == 0) {
+ self.error = @"No digits in exponent";
+ return sbjson_token_error;
+ }
+
+ if (expIsNegative)
+ exponent -= explicit_exponent;
+ else
+ exponent += explicit_exponent;
+ }
+
+ if (!mantissa_length && isNegative) {
+ self.error = @"No digits after initial minus";
+ return sbjson_token_error;
+
+ } else if (mantissa_length >= 19) {
+
+ NSString *number = [_stream stringWithRange:NSMakeRange(numberStart, _stream.index - numberStart)];
+ *token = [NSDecimalNumber decimalNumberWithString:number];
+
+ } else if (!isFloat && !hasExponent) {
+ if (!isNegative)
+ *token = [NSNumber numberWithUnsignedLongLong:mantissa];
+ else
+ *token = [NSNumber numberWithLongLong:-mantissa];
+ } else {
+ *token = [NSDecimalNumber decimalNumberWithMantissa:mantissa
+ exponent:exponent
+ isNegative:isNegative];
+ }
+
+ return sbjson_token_number;
+}
+
+- (sbjson_token_t)getToken:(NSObject **)token {
+
+ [_stream skipWhitespace];
+
+ unichar ch;
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ NSUInteger oldIndexLocation = _stream.index;
+ sbjson_token_t tok;
+
+ switch (ch) {
+ case '[':
+ tok = sbjson_token_array_start;
+ [_stream skip];
+ break;
+
+ case ']':
+ tok = sbjson_token_array_end;
+ [_stream skip];
+ break;
+
+ case '{':
+ tok = sbjson_token_object_start;
+ [_stream skip];
+ break;
+
+ case ':':
+ tok = sbjson_token_keyval_separator;
+ [_stream skip];
+ break;
+
+ case '}':
+ tok = sbjson_token_object_end;
+ [_stream skip];
+ break;
+
+ case ',':
+ tok = sbjson_token_separator;
+ [_stream skip];
+ break;
+
+ case 'n':
+ tok = [self match:"null" length:4 retval:sbjson_token_null];
+ break;
+
+ case 't':
+ tok = [self match:"true" length:4 retval:sbjson_token_true];
+ break;
+
+ case 'f':
+ tok = [self match:"false" length:5 retval:sbjson_token_false];
+ break;
+
+ case '"':
+ tok = [self getStringToken:token];
+ break;
+
+ case '0' ... '9':
+ case '-':
+ tok = [self getNumberToken:token];
+ break;
+
+ case '+':
+ self.error = @"Leading + is illegal in number";
+ tok = sbjson_token_error;
+ break;
+
+ default:
+ self.error = [NSString stringWithFormat:@"Illegal start of token [%c]", ch];
+ tok = sbjson_token_error;
+ break;
+ }
+
+ if (tok == sbjson_token_eof) {
+ // We ran out of bytes in the middle of a token.
+ // We don't know how to restart in mid-flight, so
+ // rewind to the start of the token for next attempt.
+ // Hopefully we'll have more data then.
+ _stream.index = oldIndexLocation;
+ }
+
+ return tok;
+}
+
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.h b/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.h
new file mode 100755
index 0000000..a26f032
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.h
@@ -0,0 +1,58 @@
+/*
+ Copyright (c) 2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface SBJsonUTF8Stream : NSObject {
+@private
+ const char *_bytes;
+ NSMutableData *_data;
+ NSUInteger _length;
+}
+
+@property (assign) NSUInteger index;
+
+- (void)appendData:(NSData*)data_;
+
+- (BOOL)haveRemainingCharacters:(NSUInteger)chars;
+
+- (void)skip;
+- (void)skipWhitespace;
+- (BOOL)skipCharacters:(const char *)chars length:(NSUInteger)len;
+
+- (BOOL)getUnichar:(unichar*)ch;
+- (BOOL)getNextUnichar:(unichar*)ch;
+- (BOOL)getStringFragment:(NSString**)string;
+
+- (NSString*)stringWithRange:(NSRange)range;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.m b/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.m
new file mode 100755
index 0000000..f57015d
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonUTF8Stream.m
@@ -0,0 +1,141 @@
+/*
+ Copyright (c) 2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonUTF8Stream.h"
+
+
+@implementation SBJsonUTF8Stream
+
+@synthesize index = _index;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ _data = [[NSMutableData alloc] initWithCapacity:4096u];
+ }
+ return self;
+}
+
+
+- (void)appendData:(NSData *)data_ {
+
+ if (_index) {
+ // Discard data we've already parsed
+ [_data replaceBytesInRange:NSMakeRange(0, _index) withBytes:"" length:0];
+
+ // Reset index to point to current position
+ _index = 0;
+ }
+
+ [_data appendData:data_];
+
+ // This is an optimisation.
+ _bytes = (const char*)[_data bytes];
+ _length = [_data length];
+}
+
+
+- (BOOL)getUnichar:(unichar*)ch {
+ if (_index < _length) {
+ *ch = (unichar)_bytes[_index];
+ return YES;
+ }
+ return NO;
+}
+
+- (BOOL)getNextUnichar:(unichar*)ch {
+ if (++_index < _length) {
+ *ch = (unichar)_bytes[_index];
+ return YES;
+ }
+ return NO;
+}
+
+- (BOOL)getStringFragment:(NSString **)string {
+ NSUInteger start = _index;
+ while (_index < _length) {
+ switch (_bytes[_index]) {
+ case '"':
+ case '\\':
+ case 0 ... 0x1f:
+ *string = [[NSString alloc] initWithBytes:(_bytes + start)
+ length:(_index - start)
+ encoding:NSUTF8StringEncoding];
+ return YES;
+ break;
+ default:
+ _index++;
+ break;
+ }
+ }
+ return NO;
+}
+
+- (void)skip {
+ _index++;
+}
+
+- (void)skipWhitespace {
+ while (_index < _length) {
+ switch (_bytes[_index]) {
+ case ' ':
+ case '\t':
+ case '\r':
+ case '\n':
+ _index++;
+ break;
+ default:
+ return;
+ break;
+ }
+ }
+}
+
+- (BOOL)haveRemainingCharacters:(NSUInteger)chars {
+ return [_data length] - _index >= chars;
+}
+
+- (BOOL)skipCharacters:(const char *)chars length:(NSUInteger)len {
+ const void *bytes = ((const char*)[_data bytes]) + _index;
+ if (!memcmp(bytes, chars, len)) {
+ _index += len;
+ return YES;
+ }
+ return NO;
+}
+
+- (NSString*)stringWithRange:(NSRange)range {
+ return [[NSString alloc] initWithBytes:_bytes + range.location length:range.length encoding:NSUTF8StringEncoding];
+
+}
+
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.h b/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.h
new file mode 100755
index 0000000..640816c
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.h
@@ -0,0 +1,117 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+/**
+ @brief The JSON writer class.
+
+ This uses SBJsonStreamWriter internally.
+
+ @see @ref json2objc
+ */
+
+@interface SBJsonWriter : NSObject
+
+/**
+ @brief The maximum recursing depth.
+
+ Defaults to 32. If the input is nested deeper than this the input will be deemed to be
+ malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
+ turn off this security feature by setting the maxDepth value to 0.
+ */
+@property NSUInteger maxDepth;
+
+/**
+ @brief Return an error trace, or nil if there was no errors.
+
+ Note that this method returns the trace of the last method that failed.
+ You need to check the return value of the call you're making to figure out
+ if the call actually failed, before you know call this method.
+ */
+@property (readonly, copy) NSString *error;
+
+/**
+ @brief Whether we are generating human-readable (multiline) JSON.
+
+ Set whether or not to generate human-readable JSON. The default is NO, which produces
+ JSON without any whitespace. (Except inside strings.) If set to YES, generates human-readable
+ JSON with linebreaks after each array value and dictionary key/value pair, indented two
+ spaces per nesting level.
+ */
+@property BOOL humanReadable;
+
+/**
+ @brief Whether or not to sort the dictionary keys in the output.
+
+ If this is set to YES, the dictionary keys in the JSON output will be in sorted order.
+ (This is useful if you need to compare two structures, for example.) The default is NO.
+ */
+@property BOOL sortKeys;
+
+/**
+ @brief An optional comparator to be used if sortKeys is YES.
+
+ If this is nil, sorting will be done via @selector(compare:).
+ */
+@property (copy) NSComparator sortKeysComparator;
+
+/**
+ @brief Return JSON representation for the given object.
+
+ Returns a string containing JSON representation of the passed in value, or nil on error.
+ If nil is returned and @p error is not NULL, @p *error can be interrogated to find the cause of the error.
+
+ @param value any instance that can be represented as JSON text.
+ */
+- (NSString*)stringWithObject:(id)value;
+
+/**
+ @brief Return JSON representation for the given object.
+
+ Returns an NSData object containing JSON represented as UTF8 text, or nil on error.
+
+ @param value any instance that can be represented as JSON text.
+ */
+- (NSData*)dataWithObject:(id)value;
+
+/**
+ @brief Return JSON representation (or fragment) for the given object.
+
+ Returns a string containing JSON representation of the passed in value, or nil on error.
+ If nil is returned and @p error is not NULL, @p *error can be interrogated to find the cause of the error.
+
+ @param value any instance that can be represented as a JSON fragment
+ @param error pointer to object to be populated with NSError on failure
+
+ */- (NSString*)stringWithObject:(id)value
+ error:(NSError**)error;
+
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.m b/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.m
new file mode 100755
index 0000000..d200f9c
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SBJson/SBJsonWriter.m
@@ -0,0 +1,112 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonWriter.h"
+#import "SBJsonStreamWriter.h"
+#import "SBJsonStreamWriterAccumulator.h"
+
+
+@interface SBJsonWriter ()
+@property (copy) NSString *error;
+@end
+
+@implementation SBJsonWriter
+
+@synthesize sortKeys;
+@synthesize humanReadable;
+
+@synthesize error;
+@synthesize maxDepth;
+
+@synthesize sortKeysComparator;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ self.maxDepth = 32u;
+ }
+ return self;
+}
+
+
+- (NSString*)stringWithObject:(id)value {
+ NSData *data = [self dataWithObject:value];
+ if (data)
+ return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
+ return nil;
+}
+
+- (NSString*)stringWithObject:(id)value error:(NSError**)error_ {
+ NSString *tmp = [self stringWithObject:value];
+ if (tmp)
+ return tmp;
+
+ if (error_) {
+ NSDictionary *ui = [NSDictionary dictionaryWithObjectsAndKeys:error, NSLocalizedDescriptionKey, nil];
+ *error_ = [NSError errorWithDomain:@"org.brautaset.SBJsonWriter.ErrorDomain" code:0 userInfo:ui];
+ }
+
+ return nil;
+}
+
+- (NSData*)dataWithObject:(id)object {
+ self.error = nil;
+
+ SBJsonStreamWriterAccumulator *accumulator = [[SBJsonStreamWriterAccumulator alloc] init];
+
+ SBJsonStreamWriter *streamWriter = [[SBJsonStreamWriter alloc] init];
+ streamWriter.sortKeys = self.sortKeys;
+ streamWriter.maxDepth = self.maxDepth;
+ streamWriter.sortKeysComparator = self.sortKeysComparator;
+ streamWriter.humanReadable = self.humanReadable;
+ streamWriter.delegate = accumulator;
+
+ BOOL ok = NO;
+ if ([object isKindOfClass:[NSDictionary class]])
+ ok = [streamWriter writeObject:object];
+
+ else if ([object isKindOfClass:[NSArray class]])
+ ok = [streamWriter writeArray:object];
+
+ else if ([object respondsToSelector:@selector(proxyForJson)])
+ return [self dataWithObject:[object proxyForJson]];
+ else {
+ self.error = @"Not valid type for JSON";
+ return nil;
+ }
+
+ if (ok)
+ return accumulator.data;
+
+ self.error = streamWriter.error;
+ return nil;
+}
+
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SSKeychain.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SSKeychain.h b/sdks/other/ios/UGAPI/SSKeychain.h
new file mode 100644
index 0000000..23093b6
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SSKeychain.h
@@ -0,0 +1,357 @@
+//
+// SSKeychain.h
+// SSToolkit
+//
+// Created by Sam Soffes on 5/19/10.
+// Copyright (c) 2009-2011 Sam Soffes. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <Security/Security.h>
+
+/** Error codes that can be returned in NSError objects. */
+typedef enum {
+ /** No error. */
+ SSKeychainErrorNone = noErr,
+
+ /** Some of the arguments were invalid. */
+ SSKeychainErrorBadArguments = -1001,
+
+ /** There was no password. */
+ SSKeychainErrorNoPassword = -1002,
+
+ /** One or more parameters passed internally were not valid. */
+ SSKeychainErrorInvalidParameter = errSecParam,
+
+ /** Failed to allocate memory. */
+ SSKeychainErrorFailedToAllocated = errSecAllocate,
+
+ /** No trust results are available. */
+ SSKeychainErrorNotAvailable = errSecNotAvailable,
+
+ /** Authorization/Authentication failed. */
+ SSKeychainErrorAuthorizationFailed = errSecAuthFailed,
+
+ /** The item already exists. */
+ SSKeychainErrorDuplicatedItem = errSecDuplicateItem,
+
+ /** The item cannot be found.*/
+ SSKeychainErrorNotFound = errSecItemNotFound,
+
+ /** Interaction with the Security Server is not allowed. */
+ SSKeychainErrorInteractionNotAllowed = errSecInteractionNotAllowed,
+
+ /** Unable to decode the provided data. */
+ SSKeychainErrorFailedToDecode = errSecDecode
+} SSKeychainErrorCode;
+
+extern NSString *const kSSKeychainErrorDomain;
+
+/** Account name. */
+extern NSString *const kSSKeychainAccountKey;
+
+/**
+ Time the item was created.
+
+ The value will be a string.
+ */
+extern NSString *const kSSKeychainCreatedAtKey;
+
+/** Item class. */
+extern NSString *const kSSKeychainClassKey;
+
+/** Item description. */
+extern NSString *const kSSKeychainDescriptionKey;
+
+/** Item label. */
+extern NSString *const kSSKeychainLabelKey;
+
+/** Time the item was last modified.
+
+ The value will be a string.
+ */
+extern NSString *const kSSKeychainLastModifiedKey;
+
+/** Where the item was created. */
+extern NSString *const kSSKeychainWhereKey;
+
+/**
+ Simple wrapper for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system
+ Keychain on Mac OS X and iOS.
+
+ This was originally inspired by EMKeychain and SDKeychain (both of which are now gone). Thanks to the authors.
+ SSKeychain has since switched to a simpler implementation that was abstracted from [SSToolkit](http://sstoolk.it).
+ */
+@interface SSKeychain : NSObject
+
+///-----------------------
+/// @name Getting Accounts
+///-----------------------
+
+/**
+ Returns an array containing the Keychain's accounts, or `nil` if the Keychain has no accounts.
+
+ See the `NSString` constants declared in SSKeychain.h for a list of keys that can be used when accessing the
+ dictionaries returned by this method.
+
+ @return An array of dictionaries containing the Keychain's accounts, or `nil` if the Keychain doesn't have any
+ accounts. The order of the objects in the array isn't defined.
+
+ @see allAccounts:
+ */
++ (NSArray *)allAccounts;
+
+/**
+ Returns an array containing the Keychain's accounts, or `nil` if the Keychain doesn't have any
+ accounts.
+
+ See the `NSString` constants declared in SSKeychain.h for a list of keys that can be used when accessing the
+ dictionaries returned by this method.
+
+ @param error If accessing the accounts fails, upon return contains an error that describes the problem.
+
+ @return An array of dictionaries containing the Keychain's accounts, or `nil` if the Keychain doesn't have any
+ accounts. The order of the objects in the array isn't defined.
+
+ @see allAccounts
+ */
++ (NSArray *)allAccounts:(NSError **)error;
+
+/**
+ Returns an array containing the Keychain's accounts for a given service, or `nil` if the Keychain doesn't have any
+ accounts for the given service.
+
+ See the `NSString` constants declared in SSKeychain.h for a list of keys that can be used when accessing the
+ dictionaries returned by this method.
+
+ @param serviceName The service for which to return the corresponding accounts.
+
+ @return An array of dictionaries containing the Keychain's accountsfor a given `serviceName`, or `nil` if the Keychain
+ doesn't have any accounts for the given `serviceName`. The order of the objects in the array isn't defined.
+
+ @see accountsForService:error:
+ */
++ (NSArray *)accountsForService:(NSString *)serviceName;
+
+/**
+ Returns an array containing the Keychain's accounts for a given service, or `nil` if the Keychain doesn't have any
+ accounts for the given service.
+
+ @param serviceName The service for which to return the corresponding accounts.
+
+ @param error If accessing the accounts fails, upon return contains an error that describes the problem.
+
+ @return An array of dictionaries containing the Keychain's accountsfor a given `serviceName`, or `nil` if the Keychain
+ doesn't have any accounts for the given `serviceName`. The order of the objects in the array isn't defined.
+
+ @see accountsForService:
+ */
++ (NSArray *)accountsForService:(NSString *)serviceName error:(NSError **)error;
+
+
+///------------------------
+/// @name Getting Passwords
+///------------------------
+
+/**
+ Returns a string containing the password for a given account and service, or `nil` if the Keychain doesn't have a
+ password for the given parameters.
+
+ @param serviceName The service for which to return the corresponding password.
+
+ @param account The account for which to return the corresponding password.
+
+ @return Returns a string containing the password for a given account and service, or `nil` if the Keychain doesn't
+ have a password for the given parameters.
+
+ @see passwordForService:account:error:
+ */
++ (NSString *)passwordForService:(NSString *)serviceName account:(NSString *)account;
+
+/**
+ Returns a string containing the password for a given account and service, or `nil` if the Keychain doesn't have a
+ password for the given parameters.
+
+ @param serviceName The service for which to return the corresponding password.
+
+ @param account The account for which to return the corresponding password.
+
+ @param error If accessing the password fails, upon return contains an error that describes the problem.
+
+ @return Returns a string containing the password for a given account and service, or `nil` if the Keychain doesn't
+ have a password for the given parameters.
+
+ @see passwordForService:account:
+ */
++ (NSString *)passwordForService:(NSString *)serviceName account:(NSString *)account error:(NSError **)error;
+
+/**
+ Returns the password data for a given account and service, or `nil` if the Keychain doesn't have data
+ for the given parameters.
+
+ @param serviceName The service for which to return the corresponding password.
+
+ @param account The account for which to return the corresponding password.
+
+ @param error If accessing the password fails, upon return contains an error that describes the problem.
+
+ @return Returns a the password data for the given account and service, or `nil` if the Keychain doesn't
+ have data for the given parameters.
+
+ @see passwordDataForService:account:error:
+ */
++ (NSData *)passwordDataForService:(NSString *)serviceName account:(NSString *)account;
+
+/**
+ Returns the password data for a given account and service, or `nil` if the Keychain doesn't have data
+ for the given parameters.
+
+ @param serviceName The service for which to return the corresponding password.
+
+ @param account The account for which to return the corresponding password.
+
+ @param error If accessing the password fails, upon return contains an error that describes the problem.
+
+ @return Returns a the password data for the given account and service, or `nil` if the Keychain doesn't
+ have a password for the given parameters.
+
+ @see passwordDataForService:account:
+ */
++ (NSData *)passwordDataForService:(NSString *)serviceName account:(NSString *)account error:(NSError **)error;
+
+
+///-------------------------
+/// @name Deleting Passwords
+///-------------------------
+
+/**
+ Deletes a password from the Keychain.
+
+ @param serviceName The service for which to delete the corresponding password.
+
+ @param account The account for which to delete the corresponding password.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see deletePasswordForService:account:error:
+ */
++ (BOOL)deletePasswordForService:(NSString *)serviceName account:(NSString *)account;
+
+/**
+ Deletes a password from the Keychain.
+
+ @param serviceName The service for which to delete the corresponding password.
+
+ @param account The account for which to delete the corresponding password.
+
+ @param error If deleting the password fails, upon return contains an error that describes the problem.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see deletePasswordForService:account:
+ */
++ (BOOL)deletePasswordForService:(NSString *)serviceName account:(NSString *)account error:(NSError **)error;
+
+
+///------------------------
+/// @name Setting Passwords
+///------------------------
+
+/**
+ Sets a password in the Keychain.
+
+ @param password The password to store in the Keychain.
+
+ @param serviceName The service for which to set the corresponding password.
+
+ @param account The account for which to set the corresponding password.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see setPassword:forService:account:error:
+ */
++ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account;
+
+/**
+ Sets a password in the Keychain.
+
+ @param password The password to store in the Keychain.
+
+ @param serviceName The service for which to set the corresponding password.
+
+ @param account The account for which to set the corresponding password.
+
+ @param error If setting the password fails, upon return contains an error that describes the problem.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see setPassword:forService:account:
+ */
++ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account error:(NSError **)error;
+
+/**
+ Sets arbirary data in the Keychain.
+
+ @param password The data to store in the Keychain.
+
+ @param serviceName The service for which to set the corresponding password.
+
+ @param account The account for which to set the corresponding password.
+
+ @param error If setting the password fails, upon return contains an error that describes the problem.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see setPasswordData:forService:account:error:
+ */
++ (BOOL)setPasswordData:(NSData *)password forService:(NSString *)serviceName account:(NSString *)account;
+
+/**
+ Sets arbirary data in the Keychain.
+
+ @param password The data to store in the Keychain.
+
+ @param serviceName The service for which to set the corresponding password.
+
+ @param account The account for which to set the corresponding password.
+
+ @param error If setting the password fails, upon return contains an error that describes the problem.
+
+ @return Returns `YES` on success, or `NO` on failure.
+
+ @see setPasswordData:forService:account:
+ */
++ (BOOL)setPasswordData:(NSData *)password forService:(NSString *)serviceName account:(NSString *)account error:(NSError **)error;
+
+
+///--------------------
+/// @name Configuration
+///--------------------
+
+#if __IPHONE_4_0 && TARGET_OS_IPHONE
+/**
+ Returns the accessibility type for all future passwords saved to the Keychain.
+
+ @return Returns the accessibility type.
+
+ The return value will be `NULL` or one of the "Keychain Item Accessibility Constants" used for determining when a
+ keychain item should be readable.
+
+ @see accessibilityType
+ */
++ (CFTypeRef)accessibilityType;
+
+/**
+ Sets the accessibility type for all future passwords saved to the Keychain.
+
+ @param accessibilityType One of the "Keychain Item Accessibility Constants" used for determining when a keychain item
+ should be readable.
+
+ If the value is `NULL` (the default), the Keychain default will be used.
+
+ @see accessibilityType
+ */
++ (void)setAccessibilityType:(CFTypeRef)accessibilityType;
+#endif
+
+@end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/SSKeychain.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/SSKeychain.m b/sdks/other/ios/UGAPI/SSKeychain.m
new file mode 100644
index 0000000..1267b5e
--- /dev/null
+++ b/sdks/other/ios/UGAPI/SSKeychain.m
@@ -0,0 +1,262 @@
+//
+// SSKeychain.m
+// SSToolkit
+//
+// Created by Sam Soffes on 5/19/10.
+// Copyright (c) 2009-2011 Sam Soffes. All rights reserved.
+//
+
+#import "SSKeychain.h"
+
+NSString *const kSSKeychainErrorDomain = @"com.samsoffes.sskeychain";
+
+NSString *const kSSKeychainAccountKey = @"acct";
+NSString *const kSSKeychainCreatedAtKey = @"cdat";
+NSString *const kSSKeychainClassKey = @"labl";
+NSString *const kSSKeychainDescriptionKey = @"desc";
+NSString *const kSSKeychainLabelKey = @"labl";
+NSString *const kSSKeychainLastModifiedKey = @"mdat";
+NSString *const kSSKeychainWhereKey = @"svce";
+
+#if __IPHONE_4_0 && TARGET_OS_IPHONE
+CFTypeRef SSKeychainAccessibilityType = NULL;
+#endif
+
+@interface SSKeychain ()
++ (NSMutableDictionary *)_queryForService:(NSString *)service account:(NSString *)account;
+@end
+
+@implementation SSKeychain
+
+#pragma mark - Getting Accounts
+
++ (NSArray *)allAccounts {
+ return [self accountsForService:nil error:nil];
+}
+
+
++ (NSArray *)allAccounts:(NSError **)error {
+ return [self accountsForService:nil error:error];
+}
+
+
++ (NSArray *)accountsForService:(NSString *)service {
+ return [self accountsForService:service error:nil];
+}
+
+
++ (NSArray *)accountsForService:(NSString *)service error:(NSError **)error {
+ OSStatus status = SSKeychainErrorBadArguments;
+ NSMutableDictionary *query = [self _queryForService:service account:nil];
+#if __has_feature(objc_arc)
+ [query setObject:(__bridge id)kCFBooleanTrue forKey:(__bridge id)kSecReturnAttributes];
+ [query setObject:(__bridge id)kSecMatchLimitAll forKey:(__bridge id)kSecMatchLimit];
+#else
+ [query setObject:(id)kCFBooleanTrue forKey:(id)kSecReturnAttributes];
+ [query setObject:(id)kSecMatchLimitAll forKey:(id)kSecMatchLimit];
+#endif
+
+ CFTypeRef result = NULL;
+#if __has_feature(objc_arc)
+ status = SecItemCopyMatching((__bridge CFDictionaryRef)query, &result);
+#else
+ status = SecItemCopyMatching((CFDictionaryRef)query, &result);
+#endif
+ if (status != noErr && error != NULL) {
+ *error = [NSError errorWithDomain:kSSKeychainErrorDomain code:status userInfo:nil];
+ return nil;
+ }
+
+#if __has_feature(objc_arc)
+ return (__bridge_transfer NSArray *)result;
+#else
+ return [(NSArray *)result autorelease];
+#endif
+}
+
+
+#pragma mark - Getting Passwords
+
++ (NSString *)passwordForService:(NSString *)service account:(NSString *)account {
+ return [self passwordForService:service account:account error:nil];
+}
+
+
++ (NSString *)passwordForService:(NSString *)service account:(NSString *)account error:(NSError **)error {
+ NSData *data = [self passwordDataForService:service account:account error:error];
+ if (data.length > 0) {
+ NSString *string = [[NSString alloc] initWithData:(NSData *)data encoding:NSUTF8StringEncoding];
+#if !__has_feature(objc_arc)
+ [string autorelease];
+#endif
+ return string;
+ }
+
+ return nil;
+}
+
+
++ (NSData *)passwordDataForService:(NSString *)service account:(NSString *)account {
+ return [self passwordDataForService:service account:account error:nil];
+}
+
+
++ (NSData *)passwordDataForService:(NSString *)service account:(NSString *)account error:(NSError **)error {
+ OSStatus status = SSKeychainErrorBadArguments;
+ if (!service || !account) {
+ if (error) {
+ *error = [NSError errorWithDomain:kSSKeychainErrorDomain code:status userInfo:nil];
+ }
+ return nil;
+ }
+
+ CFTypeRef result = NULL;
+ NSMutableDictionary *query = [self _queryForService:service account:account];
+#if __has_feature(objc_arc)
+ [query setObject:(__bridge id)kCFBooleanTrue forKey:(__bridge id)kSecReturnData];
+ [query setObject:(__bridge id)kSecMatchLimitOne forKey:(__bridge id)kSecMatchLimit];
+ status = SecItemCopyMatching((__bridge CFDictionaryRef)query, &result);
+#else
+ [query setObject:(id)kCFBooleanTrue forKey:(id)kSecReturnData];
+ [query setObject:(id)kSecMatchLimitOne forKey:(id)kSecMatchLimit];
+ status = SecItemCopyMatching((CFDictionaryRef)query, &result);
+#endif
+
+ if (status != noErr && error != NULL) {
+ *error = [NSError errorWithDomain:kSSKeychainErrorDomain code:status userInfo:nil];
+ return nil;
+ }
+
+#if __has_feature(objc_arc)
+ return (__bridge_transfer NSData *)result;
+#else
+ return [(NSData *)result autorelease];
+#endif
+}
+
+
+#pragma mark - Deleting Passwords
+
++ (BOOL)deletePasswordForService:(NSString *)service account:(NSString *)account {
+ return [self deletePasswordForService:service account:account error:nil];
+}
+
+
++ (BOOL)deletePasswordForService:(NSString *)service account:(NSString *)account error:(NSError **)error {
+ OSStatus status = SSKeychainErrorBadArguments;
+ if (service && account) {
+ NSMutableDictionary *query = [self _queryForService:service account:account];
+#if __has_feature(objc_arc)
+ status = SecItemDelete((__bridge CFDictionaryRef)query);
+#else
+ status = SecItemDelete((CFDictionaryRef)query);
+#endif
+ }
+ if (status != noErr && error != NULL) {
+ *error = [NSError errorWithDomain:kSSKeychainErrorDomain code:status userInfo:nil];
+ }
+ return (status == noErr);
+
+}
+
+
+#pragma mark - Setting Passwords
+
++ (BOOL)setPassword:(NSString *)password forService:(NSString *)service account:(NSString *)account {
+ return [self setPassword:password forService:service account:account error:nil];
+}
+
+
++ (BOOL)setPassword:(NSString *)password forService:(NSString *)service account:(NSString *)account error:(NSError **)error {
+ NSData *data = [password dataUsingEncoding:NSUTF8StringEncoding];
+ return [self setPasswordData:data forService:service account:account error:error];
+}
+
+
++ (BOOL)setPasswordData:(NSData *)password forService:(NSString *)service account:(NSString *)account {
+ return [self setPasswordData:password forService:service account:account error:nil];
+}
+
+
++ (BOOL)setPasswordData:(NSData *)password forService:(NSString *)service account:(NSString *)account error:(NSError **)error {
+ OSStatus status = SSKeychainErrorBadArguments;
+ if (password && service && account) {
+ [self deletePasswordForService:service account:account];
+ NSMutableDictionary *query = [self _queryForService:service account:account];
+#if __has_feature(objc_arc)
+ [query setObject:password forKey:(__bridge id)kSecValueData];
+#else
+ [query setObject:password forKey:(id)kSecValueData];
+#endif
+
+#if __IPHONE_4_0 && TARGET_OS_IPHONE
+ if (SSKeychainAccessibilityType) {
+#if __has_feature(objc_arc)
+ [query setObject:(id)[self accessibilityType] forKey:(__bridge id)kSecAttrAccessible];
+#else
+ [query setObject:(id)[self accessibilityType] forKey:(id)kSecAttrAccessible];
+#endif
+ }
+#endif
+
+#if __has_feature(objc_arc)
+ status = SecItemAdd((__bridge CFDictionaryRef)query, NULL);
+#else
+ status = SecItemAdd((CFDictionaryRef)query, NULL);
+#endif
+ }
+ if (status != noErr && error != NULL) {
+ *error = [NSError errorWithDomain:kSSKeychainErrorDomain code:status userInfo:nil];
+ }
+ return (status == noErr);
+}
+
+
+#pragma mark - Configuration
+
+#if __IPHONE_4_0 && TARGET_OS_IPHONE
++ (CFTypeRef)accessibilityType {
+ return SSKeychainAccessibilityType;
+}
+
+
++ (void)setAccessibilityType:(CFTypeRef)accessibilityType {
+ CFRetain(accessibilityType);
+ if (SSKeychainAccessibilityType) {
+ CFRelease(SSKeychainAccessibilityType);
+ }
+ SSKeychainAccessibilityType = accessibilityType;
+}
+#endif
+
+
+#pragma mark - Private
+
++ (NSMutableDictionary *)_queryForService:(NSString *)service account:(NSString *)account {
+ NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithCapacity:3];
+#if __has_feature(objc_arc)
+ [dictionary setObject:(__bridge id)kSecClassGenericPassword forKey:(__bridge id)kSecClass];
+#else
+ [dictionary setObject:(id)kSecClassGenericPassword forKey:(id)kSecClass];
+#endif
+
+ if (service) {
+#if __has_feature(objc_arc)
+ [dictionary setObject:service forKey:(__bridge id)kSecAttrService];
+#else
+ [dictionary setObject:service forKey:(id)kSecAttrService];
+#endif
+ }
+
+ if (account) {
+#if __has_feature(objc_arc)
+ [dictionary setObject:account forKey:(__bridge id)kSecAttrAccount];
+#else
+ [dictionary setObject:account forKey:(id)kSecAttrAccount];
+#endif
+ }
+
+ return dictionary;
+}
+
+@end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGActivity.h
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGActivity.h b/sdks/other/ios/UGAPI/UGActivity.h
new file mode 100755
index 0000000..1139518
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGActivity.h
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+@interface UGActivity : NSObject
+
+// In order for an activity to be valid, you must call setBasics and one of the setActor functions.
+// In all cases, the return value will be YES if the function succeeded and NO if there
+// was a problem with the set. A response of NO will usually mean you sent nil for a required field.
+
+// these are the basics of the activity.
+// verb: the action being taken
+// category: The type of activity it is
+// content: The content of this activity. The format is defined by the category
+// title: The title of this category.
+-(BOOL) setBasics: (NSString *)verb category:(NSString *)category content:(NSString *)content title:(NSString *)title;
+
+// actorUserName: The username of the entity doing this activity
+// actorDisplayName: The visible name of the entity doing this activity
+// actorUUID: The UUID of the entity doing this activity
+-(BOOL) setActorInfo: (NSString *)actorUserName actorDisplayName:(NSString *)actorDisplayName actorUUID:(NSString *)actorUUID;
+
+// actorUserName: The username of the entity doing this activity
+// actorDisplayName: The visible name of the entity doing this activity
+// actorUUID: The UUID of the entity doing this activity
+-(BOOL) setActorInfo: (NSString *)actorUserName actorDisplayName:(NSString *)actorDisplayName actorEmail:(NSString *)actorEmail;
+
+// Associating an object with the Activity is optional. You don't have to supply an object at all.
+
+// objectType: the type of the object associated with this activity
+// displayName: The visible name of the object associated with this activity
+// entityType: the entity type of this object within UserGrid. The actual type that it is stored under
+// entityUUID: The uuid of the object associated with this activity
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName entityType:(NSString *)entityType entityUUID:(NSString *)entityUUID;
+
+// similar to the function above, but it takes an arbitrary object content (which can be new and unique) instead of an already-defined object
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName objectContent:(NSString *)objectContent;
+
+// similar to the other two functions, but simply has the type and displayName. In this case, the
+// "content" value supplied in setBasics will be used as the object content.
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName;
+
+// returns YES if this is properly set up. NO if it has not been properly set up
+-(BOOL)isValid;
+
+// turn this object in to an NSDictionary. Used internally by UGClient
+-(NSDictionary *)toNSDictionary;
+
+@end
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/other/ios/UGAPI/UGActivity.m
----------------------------------------------------------------------
diff --git a/sdks/other/ios/UGAPI/UGActivity.m b/sdks/other/ios/UGAPI/UGActivity.m
new file mode 100755
index 0000000..3eaea00
--- /dev/null
+++ b/sdks/other/ios/UGAPI/UGActivity.m
@@ -0,0 +1,263 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "UGActivity.h"
+
+// the way they have set up the object info
+enum
+{
+ kUGActivityNoObject = 0,
+ kUGActivityObjectEntity = 1,
+ kUGActivityObjectContent = 2,
+ kUGActivityObjectNameOnly = 3
+};
+
+@implementation UGActivity
+{
+ // basic stats
+ NSString *m_verb;
+ NSString *m_category;
+ NSString *m_content;
+ NSString *m_title;
+
+ // stats related to the actor
+ NSString *m_actorUserName;
+ NSString *m_actorDisplayName;
+ NSString *m_actorUUID;
+ NSString *m_actorEmail;
+
+ // stats related to the object
+ NSString *m_objectType;
+ NSString *m_objectDisplayName;
+
+ // for the object, either these must be set...
+ NSString *m_entityType;
+ NSString *m_entityUUID;
+
+ // ...or this must be set
+ NSString *m_objectContent;
+
+ // or it will use the content field as the content for the object
+
+ // tracking how the object is currently set up
+ int m_objectDataType;
+}
+
+-(id)init
+{
+ self = [super init];
+ if ( self )
+ {
+ m_objectDataType = kUGActivityNoObject;
+ }
+ return self;
+}
+
+-(BOOL) setBasics: (NSString *)verb category:(NSString *)category content:(NSString *)content title:(NSString *)title
+{
+ // input validation
+ if ( !verb || !category || !content || !title ) return NO;
+
+ m_verb = verb;
+ m_category = category;
+ m_content = content;
+ m_title = title;
+
+ return YES;
+}
+
+-(BOOL) setActorInfo: (NSString *)actorUserName actorDisplayName:(NSString *)actorDisplayName actorUUID:(NSString *)actorUUID
+{
+ // input validation
+ if ( !actorUserName || !actorDisplayName || !actorUUID ) return NO;
+
+ m_actorUserName = actorUserName;
+ m_actorDisplayName = actorDisplayName;
+ m_actorUUID = actorUUID;
+ m_actorEmail = nil;
+
+ return YES;
+}
+
+-(BOOL) setActorInfo: (NSString *)actorUserName actorDisplayName:(NSString *)actorDisplayName actorEmail:(NSString *)actorEmail
+{
+ // input validation
+ if ( !actorUserName || !actorDisplayName || !actorEmail ) return NO;
+
+ m_actorUserName = actorUserName;
+ m_actorDisplayName = actorDisplayName;
+ m_actorEmail = actorEmail;
+ m_actorUUID = nil;
+
+ return YES;
+}
+
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName entityType:(NSString *)entityType entityUUID:(NSString *)entityUUID
+{
+ // input validation
+ if ( !objectType || !displayName || !entityType || !entityUUID ) return NO;
+
+ m_objectType = objectType;
+ m_objectDisplayName = displayName;
+ m_entityType = entityType;
+ m_entityUUID = entityUUID;
+ m_objectDataType = kUGActivityObjectEntity;
+
+ // clear out the unused value
+ m_objectContent = nil;
+
+ return YES;
+}
+
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName objectContent:(NSString *)objectContent
+{
+ // input validation
+ if ( !objectType || !displayName || !objectContent ) return NO;
+
+ m_objectType = objectType;
+ m_objectDisplayName = displayName;
+ m_objectContent = objectContent;
+ m_objectDataType = kUGActivityObjectContent;
+
+ // clear out the unused values
+ m_entityType = nil;
+ m_entityUUID = nil;
+
+ return YES;
+}
+
+-(BOOL)setObjectInfo: (NSString *)objectType displayName:(NSString *)displayName
+{
+ // input validation
+ if ( !objectType || !displayName ) return NO;
+
+ m_objectType = objectType;
+ m_objectDisplayName = displayName;
+ m_objectDataType = kUGActivityObjectNameOnly;
+
+ // we'll use m_content when the time comes. But we don't want to
+ // assume they've set it yet. They can call the setup functions in any order.
+ m_objectContent = nil;
+ m_entityType = nil;
+ m_entityUUID = nil;
+
+ return YES;
+}
+
+-(BOOL)isValid
+{
+ // if any of the required values are nil, it's not valid
+ if ( !m_verb || !m_category || !m_content || !m_title || !m_actorUserName || !m_actorDisplayName )
+ {
+ return NO;
+ }
+
+ // either the uuid or the email of the user must be valid
+ if ( !m_actorUUID && !m_actorEmail )
+ {
+ return NO;
+ }
+
+ // the object data requirements are based on the object setup
+ switch ( m_objectDataType )
+ {
+ case kUGActivityObjectEntity:
+ {
+ if ( !m_objectType || !m_objectDisplayName || !m_entityType || !m_entityUUID ) return NO;
+ }
+ break;
+
+ case kUGActivityObjectContent:
+ {
+ if ( !m_objectType || !m_objectDisplayName || !m_objectContent ) return NO;
+ }
+ break;
+
+ case kUGActivityObjectNameOnly:
+ {
+ if ( !m_objectType || !m_objectDisplayName ) return NO;
+ }
+ break;
+
+ // kUGActivityNoObject has no requirements.
+ }
+
+ // if we're here, we're valid.
+ return YES;
+}
+
+-(NSDictionary *)toNSDictionary
+{
+ NSMutableDictionary *ret = [NSMutableDictionary new];
+
+ // add all the fields in
+ [ret setObject:@"activity" forKey:@"type"];
+ [ret setObject:m_verb forKey:@"verb"];
+ [ret setObject:m_category forKey:@"category"];
+ [ret setObject:m_content forKey:@"content"];
+ [ret setObject:m_title forKey:@"title"];
+
+ // make the actor's subdictionary
+ NSMutableDictionary *actor = [NSMutableDictionary new];
+ [actor setObject:@"person" forKey:@"type"];
+ [actor setObject:@"user" forKey:@"entityType"];
+ [actor setObject:m_actorDisplayName forKey:@"displayName"];
+
+ if ( m_actorUUID )
+ {
+ [actor setObject:m_actorUUID forKey:@"uuid"];
+ }
+ if ( m_actorEmail )
+ {
+ [actor setObject:m_actorEmail forKey:@"email"];
+ }
+
+ // add the actor to the main dict
+ [ret setObject:actor forKey:@"actor"];
+
+ if ( m_objectDataType != kUGActivityNoObject )
+ {
+ // there is an associated object. Prep a dict for it
+ NSMutableDictionary *object = [NSMutableDictionary new];
+
+ // these fields are involved in all cases
+ [object setObject:m_objectType forKey:@"type"];
+ [object setObject:m_objectDisplayName forKey:@"displayName"];
+
+ if ( m_objectDataType == kUGActivityObjectContent )
+ {
+ [object setObject:m_objectContent forKey:@"content"];
+ }
+ else if ( m_objectDataType == kUGActivityObjectNameOnly )
+ {
+ [object setObject:m_content forKey:@"content"];
+ }
+ else if ( m_objectDataType == kUGActivityObjectEntity )
+ {
+ [object setObject:m_entityType forKey:@"entityType"];
+ [object setObject:m_entityUUID forKey:@"entityUUID"];
+ }
+
+ // add to the dict
+ [ret setObject:object forKey:@"object"];
+ }
+
+ // done with the assembly
+ return ret;
+}
+
+@end
[37/45] usergrid git commit: Moving older SDKs to a difference
location and updating main README to link to new SDK locations.
Posted by mr...@apache.org.
http://git-wip-us.apache.org/repos/asf/usergrid/blob/867060fa/sdks/ios/samples/parties/Icon.ai
----------------------------------------------------------------------
diff --git a/sdks/ios/samples/parties/Icon.ai b/sdks/ios/samples/parties/Icon.ai
deleted file mode 100644
index ad69fcf..0000000
--- a/sdks/ios/samples/parties/Icon.ai
+++ /dev/null
@@ -1,4620 +0,0 @@
-%PDF-1.5
%\ufffd\ufffd\ufffd\ufffd
-1 0 obj
<</Metadata 2 0 R/OCProperties<</D<</ON[6 0 R 36 0 R 65 0 R 94 0 R 123 0 R 152 0 R 181 0 R 210 0 R 239 0 R 268 0 R]/Order 269 0 R/RBGroups[]>>/OCGs[6 0 R 36 0 R 65 0 R 94 0 R 123 0 R 152 0 R 181 0 R 210 0 R 239 0 R 268 0 R]>>/Pages 3 0 R/Type/Catalog>>
endobj
2 0 obj
<</Length 56153/Subtype/XML/Type/Metadata>>stream
-<?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?>
-<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00 ">
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
- <rdf:Description rdf:about=""
- xmlns:dc="http://purl.org/dc/elements/1.1/">
- <dc:format>application/pdf</dc:format>
- <dc:title>
- <rdf:Alt>
- <rdf:li xml:lang="x-default">Icon</rdf:li>
- </rdf:Alt>
- </dc:title>
- </rdf:Description>
- <rdf:Description rdf:about=""
- xmlns:xmp="http://ns.adobe.com/xap/1.0/"
- xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/">
- <xmp:MetadataDate>2013-05-04T20:26:56-07:00</xmp:MetadataDate>
- <xmp:ModifyDate>2013-05-04T20:26:56-07:00</xmp:ModifyDate>
- <xmp:CreateDate>2013-05-04T20:19:17-07:00</xmp:CreateDate>
- <xmp:CreatorTool>Adobe Illustrator CS5</xmp:CreatorTool>
- <xmp:Thumbnails>
- <rdf:Alt>
- <rdf:li rdf:parseType="Resource">
- <xmpGImg:width>256</xmpGImg:width>
- <xmpGImg:height>256</xmpGImg:height>
- <xmpGImg:format>JPEG</xmpGImg:format>
- <xmpGImg:image>/9j/4AAQSkZJRgABAgEASABIAAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAABAASAAAAAEA
AQBIAAAAAQAB/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoK
DBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8f
Hx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgBAAEAAwER
AAIRAQMRAf/EAaIAAAAHAQEBAQEAAAAAAAAAAAQFAwIGAQAHCAkKCwEAAgIDAQEBAQEAAAAAAAAA
AQACAwQFBgcICQoLEAACAQMDAgQCBgcDBAIGAnMBAgMRBAAFIRIxQVEGE2EicYEUMpGhBxWxQiPB
UtHhMxZi8CRygvElQzRTkqKyY3PCNUQnk6OzNhdUZHTD0uIIJoMJChgZhJRFRqS0VtNVKBry4/PE
1OT0ZXWFlaW1xdXl9WZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+Ck5SVlpeYmZ
qbnJ2en5KjpKWmp6ipqqusra6voRAAICAQIDBQUEBQYECAMDbQEAAhEDBCESMUEFURNhIgZxgZEy
obHwFMHR4SNCFVJicvEzJDRDghaSUyWiY7LCB3PSNeJEgxdUkwgJChgZJjZFGidkdFU38qOzwygp
0+PzhJSktMTU5PRldYWVpbXF1eX1RlZmdoaWprbG1ub2R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo
+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8AB5yD7A7FXYq7FXYq7
FXY
q7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq
7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7
FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7F
XYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FX
Yq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXY
q7FXYq7FXYqjLDRtY1EO2n2NxeLHQSG3ieUKT05cAaVpk4Y5S+kEtOXU4sf1yjG+8gIv/CHmz/qy
X/8A0izf805P8vk/my+Raf5R0/8AqkP9MP1tf4Q82D/pS3//AEizf804/l8n82XyK/yjp/8AVIf6
YfrS64tLq2k9O5heCT+SRSh+5gMqII5uVDJGQuJB9ylgZOxVMrfyz5kuYEnttJvJ4JBWOWO3ldGH
iGVSDlscMyLET8nFnrsETUpwBHfIKv8AhDzZ/wBWS/8A+kWb/mnD+XyfzZfIsf5R0/8AqkP9MP1q
N35b8xWdu9zd6Xd29vHTnNLBKiLU0FWZQBUmmRlhnEWYkD3M8etwzPDGcSe4SCXZW5KJsNM1LUJG
isLSa7kQcnSCN5WC1pUhAdslGEpbAW1Zc8MYuchEeZpHf4Q82f8AVkv/APpFm/5pyz8vk/my+RaP
5R0/+qQ/0w/W7/CHmz/qyX//AEizf804/l8n82XyK/yjp/8AVIf6YfrWv5T80xoXfRr5EHVmtpgB
9JXAcGQc4n5JGv052
GSH+mH60sdHjco6lHU0ZWFCD7g5U5QIIsK1jpuo6hMYbC1mu5lUu0cEbSMF
BALEICaVIyUYSkaAthlzQxi5yER5mkf/AIQ82f8AVkv/APpFm/5pyz8vk/my+Rcf+UdP/qkP9MP1
u/wh5s/6sl//ANIs3/NOP5fJ/Nl8iv8AKOn/ANUh/ph+t3+EPNn/AFZL/wD6RZv+acfy+T+bL5Ff
5R0/+qQ/0w/W7/CHmz/qyX//AEizf804/l8n82XyK/yjp/8AVIf6YfraPlLzWCAdFvwWNFH1abc0
r/L7YPy+T+afkU/yhp/9Uh/ph+tv/CHmz/qyX/8A0izf804fy+T+bL5FH8o6f/VIf6YfrWS+VfNE
MTyy6PexxRqXkke2lVVVRUkkrQADAcGQCzE/JMdfpyaGSBJ/pD9aV5U5aZW3lnzJdQJcW2lXk8Eg
rHLHbyujDxDKpBy2OGZFiJr3ONPW4ImpTgCO+QVf8IebP+rJf/8ASLN/zTh/L5P5svkWH8o6f/VI
f6YfrS+8sb2xnNve28trOACYpkaNwDuDxYA5XKJiaIouTjywmLiRIeW6hkWbsVdirsVdir2H8hv9
49Y/4yQf8RfNx2V/F8P0vGe1f1Y/cf0PVM27yTsVQ2o6Xp2pW5tr+2juYG6pKoYfMV6H3GQnjjMV
IW24c88UuKBMT5PEvzI/LU6AP0npfKTSGIEqMeTwMxoKnuhOwP0HNFrNF4fqj9P3PddjdtfmP3eT
bJ9/7WD2FnNe3tvZwCs1zIkUY/ynYKP15gxiSaDvcuQQgZHlEW+p7CyhsbG3soBSG2jSKMf5KKFH
6s6yEBGIA6Pk+XKckzI85G1fJNaB13TI9V0a906QDjdQvGCezEfCfoahyvNj44GPe5GlznFljMfw
m3y1LFJDK8Ui8ZI2Kup6hlNCM5R9XjIEWORekfkX/w
ApDqH/ADCf8zUzZdl/3h936Q8z7U/3Mf63
6C9rzevDOxV2KpD5p8l6H5jtWjvIQl1SkN6gAlQ9t/2h/knMbPpYZRvz73YaHtLLppXE+nrHo87/
ACq0W90X8wtT028Wk1vZSDkOjKZoSrr7MN812gxmGYxPMD9Iek7e1Mc+ihkjyMx90nsWbp4t2Kux
V2Ksd8+63caJ5fOpwV5W9xAXTpzQyAOh/wBZajMXWZTCHEO8Oy7J00c+bwz1jL7tk9s7uC8tIbu3
YPBOiyROO6uKg5kRkJAEdXAyYzCRjLmDSo6JIjI6hkcFWU7gg7EHCRbEEg2HznqXkq5i89ny3CCB
NcAW79f3D/GH/wBjH1+Wc1PTkZfDHe+lYe04nSeOekd/fy+0voi0tYLS1htbdeEFuixRIOyoOIH3
DOkjERAA6Pm+TIZyMjzJtS1TUrbTNOudQum4wW0bSSHvRR0HuegwZMghEyPRlgwyyzEI85GnzDrO
q3Orardalcms11IZGHYA/ZUeyigGctkmZSMj1fVdNgjhxxhHlEILINzsVdirsVdir2H8hv8AePWP
+MkH/EXzcdlfxfD9LxntX9WP3H9D1TNu8kx7zF578v8Al69htNTkkjknT1FZIy6heRWppv1HhmLm
1cMcqk7LR9lZtTAyxgEDbmndneWt7axXdpKs1tMoeKVDVWBzIhMSFjk4GTHKEjGQqQW6hYW2oWNx
Y3Kh7e5jaORT4MKff4YJwEokHkU4csscxOPOJt4n+Vvlt28+zJOKroplMldv3qsYlH3kt9GaLQ4b
zb/wvddu60fkxX+Vr5c3umdA8C0HQuUDAuoDMtdwGqASPficFpo1beFD54/NPR/0Z5yvOIpDe0u4
9v8Aftef/JQNnN67Hw5T57vpHYWp8XSx74+n5cvspPPyL/5SHUP+YT/mamX9l/3h936
Q4HtT/cx/
rfoL2vN68Mxzzl53sPK0VrJd28s4umdUEXHbgATXkR/NmLqdUMVWLt2fZvZk9WZCJA4e9R8ofmJo
nmeeW1tUlt7qJfU9GYL8SVALKVJGxO+R0+sjlNDYs+0ex8ulAlKjE9QynMx1LDfM2q6J5c83WOt6
i5iS7sLi0ZkQuS0c0MiV41PRmzBz5I4somesSPtDu9Fgy6nTSxQ34Zxl8xIH9C3/AJW/5G/5a5P+
RMn9Mf5Rxeaf9Dur/mj5hlWl6laanp8F/ZsXtrhecTEFSRWnQ75l48gnESHIuoz4JYpmEvqCKybU
xK+/NPybZXtxZ3F1ItxbSPDMohkIDxsVYVA33GYU9fjiSD0dxi7B1U4iUQKkLG46sT/MT8xPK2t+
VrjT9PuHkupHiZVaJ1FFcE7kU6Zh6zWQyQ4Y83b9j9j6jBqBOYHDR6juRv5K+Z/rWnTaDcPWeyrL
a1O5hY/Ev+wc/jlnZmewYHpyafabQ8Exmjylsff+0fc9MzavLJfJoWnya7DrbJ/p0MDWyv8A5DMG
+8bj6TlRwxMxPrVOSNVMYTi/hMr/AB+OiYZa4zyn87vMoWG38v27/FJS4vQP5R/dofmfi+gZp+08
/KA95eu9mNFZOY+6P6T+j5vIM1D2TsVdirsVdirsVew/kN/vHrH/ABkg/wCIvm47K/i+H6XjPav6
sfuP6Hqmbd5J4z+dtpdXHmLT1gheVja0ARSxr6j7bDNH2mLyD3fre29mMkY4J2QPV+gM7/LHRdR0
jylb22oKY7h3eb0G6xq52U+B70982GhxShjqToO29TDNqTKG4oC+9leZjqGI/l7p0anXNYCgHVtS
uJImpSsMcjKh+luRzB0UPqn/ADpH5O57XzE+Hi/1PHH5kC/0MuzOdM8/8s+aPrf5na/YGSsDxrHA
Oo5WZ4MB8y7
nNZgz3qJD8bfgvRa3Q8GgxTre9/8AO/sD0DNm868x/PLR/W0my1ZF+O0kMMp78JRU
E/Jl/HNV2pj2Evg9T7L6msksZ/iF/Efj7Ei/Iv8A5SHUP+YT/mamY/Zf94fd+kOw9qf7mP8AW/QX
teb14ZivnzyL/iyGzj+u/UvqjO1fS9XlzCj+eOlOOYer0vjVvVO37K7U/KGR4eLirrXL4FC+R/yz
tPK97NfNeNe3cielG3p+kqISC3w8nqTQb1yOl0IxG7stvanbctVEQ4eGN3zv9AZpmc6N4h+dmtw3
mvWunQsHGnRt6pFDSWYgsu3gqLmh7Sy8U+Efwvd+zOlMMJmf4z9g/Bec5rnpX0l+XX/KEaR/xg/4
2OdLof7qL5l2z/jWT3sjzKdY+YfN/wDylmt/8x91/wAnmzltR/eS/rH731Ts7/F8f9SP3BKMpcxN
PLOuT6HrlpqcNf3Dj1UH7UbbOv0qTlmHIYSEh0cXW6UZ8UsZ6j7ej6dtbmC6tormBxJBOiyROOhV
hUH7s6mMhIWORfK5wMJGJ5hUyTFDalqFtp2n3F/dNxt7aNpJD7KK0HuegyGSYhEyPRtwYZZJiEec
jT5h1zV7nWNWutSuT+9uZC5HUKOiqPZVoBnLZJmcjI9X1TS6eOHHHHHlEIHIN7sVdirsVdirsVew
/kN/vHrH/GSD/iL5uOyv4vh+l4z2r+rH7j+h6pm3eSdirsVYx5+81JomlehbMG1i/wD3Gnwg/Fyf
4fU+S1+/MPWajw40PqPJ2vZOgOfJcv7uG8j+j4p3o2mxaZpNpp8W6WsSRV8SooW+k75kYsfBER7n
B1OY5ckpn+I2jMsaEg0/yJ5V07VBqtnZGK/DOwm9adt5AQ1VZypryPbMaGkxxlxAb/F2GbtXUZMf
hylcO6o9Pgn+ZLr0q81aQNY8u6hptKtcQsI/
+Mi/FGf+DUZTqMfHjMXL0Go8HPGfcfs6/Y8p/IwE
eYtQBFCLShB/4ypmo7L/ALw+79Ieu9qf7mH9b9Be15vXhmi6BwhI5sCQvcgUBP4jBaa2tvChjf5g
65q2ieWbi/0yJZJ0ZUeRt/SR/h9QLT4iGI6/PMXWZZQx3F2fZGlx584hkO33+T5xmmlnmeaZzJLI
xeR2NSzMakk5zRNvpkYiIocgsxS+kvy6/wCUI0j/AIwf8bHOl0P91F8y7Z/xrJ72R5lOsfMPm/8A
5SzW/wDmPuv+TzZy2o/vJf1j976p2d/i+P8AqR+4JRlLmOxV7h+SmvT32hXOmTVY6Y6ek5/33PyK
r/sWRs3nZmUmBif4f0vCe02lEMwyD+P7xX63oubN5p5d+eGvTQWVnosVVS7rPct4pGaIn/Bbn5DN
T2plIAh8Xq/ZfSCUpZT/AA7D4vG80z2rsVdirsVdirsVdir2H8hv949Y/wCMkH/EXzcdlfxfD9Lx
ntX9WP3H9D1TNu8kxfzZ+Yei+WLyG0v4LmWSeP1UMCxsoXkV35um+2YmfWQxGiC7XQdj5dVEygYg
A1vf6iwnWvz0leJo9G0/0nIoLi5YMR8o12r82zAydqE/SKd7pvZYA3llfkP1/sSP8u4tR8y+f4dQ
1GV7l7Wt3PK++8e0YHYUdloBlGkBy5gTvW7n9sShpdGYQHDxekfHn9j3rOhfPkBrWu6Voll9d1Of
6vbchH6nF3+Jq0FEDN28Mry5Y4xcjQcjTaXJnlwYxcvx3pD/AMrX8gf9XT/khc/9U8x/z+H+d9h/
U7D+QNZ/M/2Uf1sos7u3vLSG7tnElvcIssMgqOSOKqaGh6HMqMhIWORdVkxyhIxltIGiq5Jg858o
6N+ifzR1+BV4wzW/1mCnThNKrbfJqr9GavTY+DUSHl+p6XtDU+NoMR6iVH4Av
Rs2jzTEvN+ufojz
H5alduNvcyz2tx2HGURgE/J+JzB1WXgyQPTf9DuOztL42DMBziIyHwv9FstzOdOoX9jbX9jPZXK8
7e5jaKVf8lhQ098jOAkCDyLZiyyxzE484m3y9rWlXGk6tdabcD97ayNGT/MB9lh7MtCM5XJAwkYn
o+q6bURzY4zjykEFkG99Jfl1/wAoRpH/ABg/42OdLof7qL5l2z/jWT3sjzKdY+YfN/8Aylmt/wDM
fdf8nmzltR/eS/rH731Ts7/F8f8AUj9wSjKXMdir1v8AIT/pe/8ARp/zOzb9lfxfD9Lx/tZ/k/8A
O/3r1rNw8e8Y/Pb/AI7Omf8AMO3/ABPNH2p9Y9z2/sr/AHU/636HmOax6l2KuxV2KuxV2KuxVnn5
Z+fdH8rwX8eoQ3ErXTRtH9XVGACBgeXN0/mzP0Wqjivivd5/tvsrLqjEwMRw3zv9RZr/AMry8p/8
sl//AMi4f+q2Z38qY+6X2frdH/oX1H86HzP/ABLzz8yfN2m+Z9Vtbuwjmijgg9JxOqKxbmzbcGfb
fNbrNRHLIEdz0nYvZ89LjlGZBJle3u9wYjmI7hnf5a+dvL3leK9kv4LmW8umRVaBI2VY0BNKvIhq
WbfbwzP0WphisyBsug7a7MzaoxEDERj33z+RZt/yvLyn/wAsl/8A8i4f+q2Z38qY+6X2frdF/oX1
H86HzP8AxLDvzK/MXTfM1hZ2enRXEUcMrTT/AFhUWpC8U48Hev2mzC1usjlAEbd12L2PPSzlKZiS
RQq/jzA8nn+a96J6r5L/ADb0XR/Ldppmo291JcWvJBJCkbKULFl3aRDsDTpm10uvjCAjIHZ5LtP2
fy5s8skDECXff6inn/K8vKf/ACyX/wDyLh/6rZkfypj7pfZ+twP9C+o/nQ+Z/wCJQDfm95Q/T0eq
raXwf
6q9rL+7hqR6iyJT972+Pv3yr8/j8TjqXKun63IHs9qfBOPih9XFzPcQf4fcj/8AleXlP/lk
v/8AkXD/ANVst/lTH3S+z9bj/wChfUfzofM/8Swv8yvP2keZ4dPTToriF7R5Gczqi/bC048Hf+XM
HW6qOWuG9nedi9k5NKZcZieKuV/pAZZp353+X0sLZL61vWvFjRbho0iKGQABipMqmhPtmZj7TgIj
iBv8ebqM3sxmMyYGHDe3Pl8kR/yvLyn/AMsl/wD8i4f+q2S/lTH3S+z9bV/oX1H86HzP/EvO/wAx
vMugeY9Tg1HS4biGf0/TuhOiKG4n4GBR33oaH5DNbrM0MkuKN+b0nY2izabGYZDEi7FX8egYlmI7
h635U/Nzy3pHl2w025trx57WPhI0aRFCak7FpVPfwzb6fXwhARINj8d7x+v9n8+bPLJEwqR6k/qT
b/leXlP/AJZL/wD5Fw/9Vsu/lTH3S+z9bh/6F9R/Oh8z/wAS8c12+h1DXNRv4Qyw3dzNPGrgBgsk
hcBgCRWh8c02WQlMkdS9rpcRx4oQPOMQPkEDlbe7FWc/ll550nyt+kv0hDcS/XPQ9L6uqNT0vU5c
ubp/OKZn6LVRxXxXvToe2+y8mr4OAxHDfO+tdwPczj/leXlP/lkv/wDkXD/1WzO/lTH3S+z9bof9
C+o/nQ+Z/wCJef8A5lecdM80X9ncWEU8SW8TRuJ1RSSWrtwZ812t1EcsgR3PRdi9nZNLCUZkGz0/
sDDsw3dOxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2
KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2K
uxV2KuxV2KuxV2KuxV2KuxV2KuxV2K
uxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2Ku
xV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2Kux
V2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV
2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxVVtLS7vLhLa0hkuLiSvCGJS7tQV
NFUEmgFcMYkmhuWGTJGA4pEAd52TL/CHmz/qyX//AEizf805b+XyfzZfIuN/KOn/ANUh/ph+t3+E
PNn/AFZL/wD6RZv+acfy+T+bL5Ff5R0/+qQ/0w/W7/CHmz/qyX//AEizf804/l8n82XyK/yjp/8A
VIf6Yfrd/hDzZ/1ZL/8A6RZv+acfy+T+bL5Ff5R0/wDqkP8ATD9aGvtD1vT41lv9PubSJzxV54ZI
lLUrQFwN9shPFKPMENuLVYshqEoyPkQUDkG92KuxVNIfK3meeFJodIvZYZVDxyJbSsrKwqGUhaEE
ZaMGQixE/JxZa/BEkHJAEf0gv/wh5s/6sl//ANIs3/NOH8vk/my+RY/yjp/9Uh/ph+t3+EPNn/Vk
v/8ApFm/5px/L5P5svkV/lHT/wCqQ/0w/W7/AAh5s/6sl/8A9Is3/NOP5fJ/Nl8iv8o6f/VIf6Yf
raPlHzYBU6LfgDqfqs3/ADTj+XyfzZfIr/KGn/1SH+mH60uubS7tX4XMMkD/AMsilDt7MBlRBHNy
YZIyFxIPuUsDN2KuxVNIfK3meeFJodIvZYZVDxyJbSsrKwqGUhaEEZaMGQixE/JxZa/BEkHJAEf0
gv8A8IebP+rJf/8ASLN/zTh/L5P5svkWP8o6f/VIf6Yfrd/hDzZ/1ZL
/AP6RZv8AmnH8vk/my+RX
+UdP/qkP9MP1qVx5Z8yW0Dz3Ok3kEEYrJLJbyoijxLMoAwSwzAsxNe5lDW4JGozgSe6QS3KnKdir
sVdirsVdirsVdirsVdir038jdG9bVr3VnX4bSMQwk9PUlNSR7hVp9ObPszHczLueW9qNTw444x/E
bPuH7fue0ZvHiHYq7FXYqxf8y9G/Svk2/iReU1souofHlD8TU+achmJrsfHiPlu7XsXU+FqYnpL0
n4/tp85Zzb6W7FXYq+n/ACh/yieif8wFr/yZXOp0/wDdx/qj7nyvtH/GMn9eX3lNsucN2KuxV2Kq
VzaWt1EYbqFJ4W6xyqHU/QwIyMoiQoi2cMkoG4kg+TBPM35OaBqKPNpP+4286hVq0DH3Q7r/ALH7
s1+fs2Et4+k/Y7/Re0ebGayeuP2/t+PzeN695f1bQr5rLUoDDKN0bqjr/MjftDNNlxSgakHtdLq8
eeHHjNj7vel2VuS+n/KH/KJ6J/zAWv8AyZXOp0/93H+qPufK+0f8Yyf15feU2y5w3Yqx38xP+UJ1
f/jAf+JDMXW/3UnZdj/41j/rPmzOafTnYq7FXYq7FXYq7FXYq7FXYq+iPys0b9GeTbPkvGa9rdy/
89Psf8kwudFoMfDiHnu+b9u6nxdVLuj6flz+22W5mundirsVdirTKrKVYBlYUIO4IOJCQafL3mbS
G0fX7/TWG1tMyx17xn4oz9KEHOUzY+CZj3Pqui1HjYYz/nD7ev2pZlblOxV9P+UP+UT0T/mAtf8A
kyudTp/7uP8AVH3PlfaP+MZP68vvKbZc4bsVdirsVdirsVSjzP5Y03zFpb2N6grQmC4ABeJ+zKf1
jvlGfBHLGi5mh109NkE4fEd75w1zRr3RdVuNNvV4z27UJH2WU7q6+zDcZzWTGYSMTzD6ZpdTDPjG

;SPIvpDyh/wAonon/ADAWv/Jlc6bT/wB3H+qPufM+0f8AGMn9eX3lNsucN2Ksd/MT/lCdX/4wH/iQ
zF1v91J2XY/+NY/6z5szmn052KuxV2KuxV2KuxV2KuxVH6Dpcmq61ZacnW6mSMnwUn4m+hanJ44c
UhHvcfV5xixSmf4Q+pIo44o0ijULHGAqKOgAFABnVgUKD5RKRJs812FDsVdirsVdirxf88dGMOr2
WrIP3d3EYZSP9+RHYn5q34Zo+08dTEu97j2X1PFjljP8Jv4H9v3vMs1j1DsVfT/lD/lE9E/5gLX/
AJMrnU6f+7j/AFR9z5X2j/jGT+vL7ym2XOG7FXYq7FXYq7FXYq8z/O3y6txpUGuRL+/smENwR3hk
Pwk/6rn/AIbNV2nhsCY6PU+zGs4chwnlLce8fs+5m3lD/lE9E/5gLX/kyuZ+n/u4/wBUfc6LtH/G
Mn9eX3lNsucN2Ksd/MT/AJQnV/8AjAf+JDMXW/3UnZdj/wCNY/6z5szmn052KuxV2KuxV2KuxV2K
uxV6P+SOjG51+51R1/d2EXGM/wDFs1VFP9gG+/Nl2ZjufF3PM+0+p4cIxjnM/YP209uzevCuxVbL
LHDE8sjcY41Lux6BVFScBIAspjEk0OZQ2kalBqml2mowAiK7iSVVPUchXifcdMjiyCcRIdW3UYTi
ySgecTSLybS7FWI/mpox1TybdlF5TWRF3FT/AIrrz/5Js2YWvx8WI+W7uewdT4WpjfKXp+fL7afP
Gc6+juxV9P8AlD/lE9E/5gLX/kyudTp/7uP9Ufc+V9o/4xk/ry+8ptlzhuxVJfOeo3mneVtSvrKT
0rqCIvFJRWo1QK0YEH6RmPqpmGMkc3O7Nwxy6iEJC4kvGLP83/PME6yTXkd0gO8MsMSqR841jb8c
0se0MwPO/gHt8ns9pJChEx8w
T+m3snk3zbZ+Z9IF9AvpTI3p3VuTUxuBXrtVSNwc3Wm1Ayxvq8V2
l2fLS5OA7joe8J7mQ692KpV5rskvfLOqWrioktZePswQsp+hgMo1MeLHIeTl6DKYZ4SHSQa8of8A
KJ6J/wAwFr/yZXDp/wC7j/VH3J7R/wAYyf15feU2y5w3Yqx38xP+UJ1f/jAf+JDMXW/3UnZdj/41
j/rPmzOafTnYq7FXYq7FXYq7FXYq7FX0D+UmjHTvJ0ErrSbUHa6fx4tRY/o4KD9OdD2dj4cd9753
7QanxNSQOUPT+v7WaZnOjdirF/zM1X9HeS9RdWpJcILaOnjMeLf8JyOYeuycOI+eztexMHiaqA6D
f5ftSz8mdV+ueURas1ZNPmeKnfg/7xT97EfRlfZuS8ddxcv2kwcGp4ukxf6Gd5sHn3YqtmijmieG
VQ8UilHU9CrChGAgEUUxkYkEcw+Wtd0uTStZvdOfc2szxhvFQfhb6Voc5TJDhkY9z6xpc4y4ozH8
QtA5BvfT/lD/AJRPRP8AmAtf+TK51On/ALuP9Ufc+V9o/wCMZP68vvKbZc4bsVY7+Yn/AChOr/8A
GA/8SGYut/upOy7H/wAax/1nzZnNPpz1v8hoLkDWJ6EWzeggPYyLzJp8g2/zzb9lA+o9Nnj/AGrl
H92P4t/ls9azcPHuxVDapKsWmXcrfZjhkZq7CgQnK8pqBPk24I3kiPMILyh/yieif8wFr/yZXI6f
+7j/AFR9zf2j/jGT+vL7ym2XOG7FWO/mJ/yhOr/8YD/xIZi63+6k7Lsf/Gsf9Z82ZzT6c7FXYq7F
XYq7FXYq7FUXpOnTalqlpp8P95dSpEp8ObAV+jrkoRMiAOrTqMwxY5TPKIt9TW1vFbW0VvCOMUKL
HGvgqCgH3DOrjERAA6Pk85mUjI8yqZJi7FXk357ar8OmaSrdS
91Kvy/dxn8XzT9qZOUfi9h7K4Pr
yf5v6T+hLfyO1T0NdvdOZqJeQCRB4yQn/ml2yrszJUzHvDk+1GDiwxn/ADT9h/aA9rzevDOxV2Kv
EPzt0YWvmC31NBSPUIqSH/i2Cin/AIQrmh7Tx1Pi/nPd+zGp48Jxn+A/Yf2285zXPSvp/wAof8on
on/MBa/8mVzqdP8A3cf6o+58r7R/xjJ/Xl95TbLnDdiqWeZtJk1jQL3TIpFikuo/TWRgSAag1NMp
1GMzgYjq5Wh1Aw5o5CLES8zsvyIuPWU3uqoIAfiEMZLkeALEAfcc1cey5XuXqMvtVGvRDfzL1HRN
E07RdNi07T4/Tt4q0ruzMdyzHuTm2xYo448MXldVqZ55mczcijsscd2KsY/MrV10zyZqMnKktyn1
WEdy03wmnyTkfozE12ThxHz2dr2Lp/F1UB0ieL5ftTHyh/yieif8wFr/AMmVy3T/AN3H+qPucbtH
/GMn9eX3lNsucN2Ksd/MT/lCdX/4wH/iQzF1v91J2XY/+NY/6z5szmn052KuxV2KuxV2KuxV2KvQ
fyW0b655nk1B1rFpsRYHqPVlqif8LzP0ZsOzcfFkv+a877S6ngwCA5zP2Df9T3TN+8C7FXYq7FXY
q7FXYq7FWF/m5ow1DyfPMq1m091uUp14j4ZB8uLV+jMDtHHxY77neez2p8PUgdJ7fqfP2c++iPp/
yh/yieif8wFr/wAmVzqdP/dx/qj7nyvtH/GMn9eX3lNsucN2KuxV2KuxV2KuxV4T+bnm9NY1ddMs
35WGnEhnU1WSc7Mw9l+yPpzn9fqOOVD6Yvf+z3Zxw4/EkPXP7B+17B5Q/wCUT0T/AJgLX/kyubrT
/wB3H+qPueM7R/xjJ/Xl95TbLnDdirHfzE/5QnV/+MB/4kMxdb/dSdl2P/jWP+s+bM5p9Odirs
Vd
irsVdirsVdir3v8AJ3RvqHlJbt1pNqMjTGvX01+BB/wpb6c3/ZuPhx3/ADnz72j1PianhHKAr48z
+PJnWbB0DsVdirsVdirsVdirsVU7q2huraa2mXlDOjRyL4q44kfccjKIkCD1ZwmYSEhzBt8sarp8
unandWE395ayvE3vwYiv05yk4mJIPR9YwZhkxxmOUhb6V8of8onon/MBa/8AJlc6fT/3cf6o+58w
7R/xjJ/Xl95TbLnDdirsVdirsVaZlVSzEKqipJ2AAxJSBbyj8xfzVi9KXSPL0vNnBS51BD8IB2KR
Huf8r7vHNPrNffph8/1PXdj9gmxlzD3R/X+r5vIs1D2L6f8AKH/KJ6J/zAWv/Jlc6nT/AN3H+qPu
fK+0f8Yyf15feU2y5w3Yqx38xP8AlCdX/wCMB/4kMxdb/dSdl2P/AI1j/rPmzOafTnYq7FXYq7FX
Yq7FVewspr6+t7KEVmuZUhj/ANZ2Cj9eGMSTQ6teXIMcDI8oi31PYWUNjY29lAKQ20aRRj/JRQo/
VnWQgIxAHR8ny5DkmZHnI2r5JrdiqG1HUrHTbN7y+mW3tY6c5X6DkQo/E5CeQQFnk24cM8shGAuR
Sb/lYnkn/q7wfe39Mo/O4v5zm/yPqv8AU5O/5WJ5J/6u8H3t/TH87i/nL/I+q/1OSbaVrGmatbG5
064S6gDGMyJ0DAAkb/MZdjyxmLibDiZ9Nkwy4ZjhKMyxodirsVeFfnRo31PzQl+i0i1GIOSOnqxf
A/8AwvE/Tmg7Rx8OS/5z33s1qePT8B5wP2Hcfpev+UP+UT0T/mAtf+TK5udP/dx/qj7nje0f8Yyf
15feU2y5w3YqhNV1O10vTp9Quywt7ZecpUcjTpsMhkyCETI8g3afBLLMQj9UmIP+c/ktVqGuXPgI
t/xYZg/ynj83cj2b1X
9H5pPqX57aeqkabpksr/svcusYHvxT1K/eMqn2qP4Y/NzcPsrM/wB5MD3b
/fTz/wAyfmB5m8wBory59K0J/wB5IB6cX+y3LN/sic12bVZMnM7dz0Wi7IwafeIuXedz+z4MczHd
k7FX0/5Q/wCUT0T/AJgLX/kyudTp/wC7j/VH3PlfaP8AjGT+vL7ym2XOG7FWO/mJ/wAoTq//ABgP
/EhmLrf7qTsux/8AGsf9Z82ZzT6c7FXYq7FXYq7FXYqzr8nNGF95tW6daw6dE02/T1G+BB/wxYfL
M7s/HxZL7t3Qe0ep8PTcI5zNfDmfx5ve86F8+dirsVeb/njqfoaBZ6epo95PzYeKQrv/AMM65q+1
J1ER7y9P7L4OLNKf82P3/wBheJZpHuXYq9a/IjU99U0tj/JdRL/wkh/4hm27KnvKPxeP9qsH0ZPf
H9I/S9bzcvHuxV2KsE/OPRvr3lI3aLWbTpVmqOvpt8Dj/hg30Zr+0sfFjv8Amu/9nNT4eo4TymK+
PMMl8of8onon/MBa/wDJlcytP/dx/qj7nWdo/wCMZP68vvKbZc4bsVY7+Yn/AChOr/8AGA/8SGYu
t/upOy7H/wAax/1nzZnNPpzsVdirsVdir6f8of8AKJ6J/wAwFr/yZXOp0/8Adx/qj7nyvtH/ABjJ
/Xl95TbLnDdirHfzE/5QnV/+MB/4kMxdb/dSdl2P/jWP+s+bM5p9OdirsVdirsVdirsVZn5E/MOH
ypZ3UI0z65NdSB3m9f0vhRaKvH036Esa175m6XVjCDtd+bpO1exzq5RPHwiI5Vf6Qyj/AJX3/wBq
L/p7/wCvOZX8q/0ft/Y6r/Qn/tn+x/487/lff/ai/wCnv/rzj/Kv9H7f2L/oT/2z/Y/8ed/yvv8A
7UX/AE9/9ecf5V/o/b+xf9Cf+2f7H/jzCvPfnaXzXfW
1wbX6nFbRGNYfU9X4mYlm5cU6igpTtmDq
tT4sgap3nZXZg0kDHi4jI86r9JYzmM7R2Kp55N80S+WdbTU0g+sqI3ikg5+nyVx/NxelGAPTL9Pn
8KfFzcDtLQjVYvDJ4d7vmz//AJX3/wBqL/p7/wCvObD+Vf6P2/see/0J/wC2f7H/AI87/lff/ai/
6e/+vOP8q/0ft/Yv+hP/AGz/AGP/AB53/K+/+1F/09/9ecf5V/o/b+xf9Cf+2f7H/jyH1D87ob6x
uLKbQaw3MTwyf6V+y6lT/un3yM+0xKJBjz8/2NmH2YOOYkMu8Tf0/wDHlPR/zs/R2k2Wn/ob1fqd
vFb+r9Z48vSQJy4+kaVp0rjj7T4YiPDyHf8AsZaj2Z8TJKfiVxSJ+nvN/wA5Gf8AK+/+1F/09/8A
XnJfyr/R+39jT/oT/wBs/wBj/wAed/yvv/tRf9Pf/XnH+Vf6P2/sX/Qn/tn+x/48lvmL85P0zol5
pf6I9D63H6frfWefHcGvH0lr08cqz9o+JAx4avz/AGOTo/ZzwcscniXwnlw/8eebZrXp3Yq7FXYq
7FXp+j/nZ+jtJstP/Q3q/U7eK39X6zx5ekgTlx9I0rTpXNrj7T4YiPDyHf8AseV1Hsz4mSU/Erik
T9Peb/nIz/lff/ai/wCnv/rzkv5V/o/b+xp/0J/7Z/sf+PO/5X3/ANqL/p7/AOvOP8q/0ft/Yv8A
oT/2z/Y/8eS3zF+cn6Z0S80v9Eeh9bj9P1vrPPjuDXj6S16eOVZ+0fEgY8NX5/scnR+zng5Y5PEv
hPLh/wCPPNs1r07sVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirs
VdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdi
rsVdirsV
dirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVdirsVd
irsVdirsVdirsVdirsVdirsVdirsVdirsVf/2Q==</xmpGImg:image>
- </rdf:li>
- </rdf:Alt>
- </xmp:Thumbnails>
- </rdf:Description>
- <rdf:Description rdf:about=""
- xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
- xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
- xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
- <xmpMM:InstanceID>uuid:48d7dac6-a6c2-f34d-8497-b10b25305818</xmpMM:InstanceID>
- <xmpMM:DocumentID>xmp.did:F77F1174072068118083DC2D0C045B5E</xmpMM:DocumentID>
- <xmpMM:OriginalDocumentID>uuid:5D20892493BFDB11914A8590D31508C8</xmpMM:OriginalDocumentID>
- <xmpMM:RenditionClass>proof:pdf</xmpMM:RenditionClass>
- <xmpMM:DerivedFrom rdf:parseType="Resource">
- <stRef:instanceID>uuid:830e67ab-b668-fd42-8824-d82a4db061be</stRef:instanceID>
- <stRef:documentID>xmp.did:F77F1174072068118083BFB0448CE18C</stRef:documentID>
- <stRef:originalDocumentID>uuid:5D20892493BFDB11914A8590D31508C8</stRef:originalDocumentID>
- <stRef:renditionClass>proof:pdf</stRef:renditionClass>
- </xmpMM:DerivedFrom>
- <xmpMM:History>
- <rdf:Seq>
- <rdf:li rdf:parseType="Resource">
- <stEvt:action>saved</stEvt:action>
- <stEvt:instanceID>xmp.iid:F77F1174072068118083BFB0448CE18C</stEvt:instanceID>
- <stEvt:when>2013-05-04T20:16:01-07:00</stEvt:when>
- <stEvt:softwareAgent>Adobe Illustrator CS5</stEvt:softwareAgent>
- <stEvt:changed>/</stEvt:changed>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <stEvt:action>saved</stEvt:action>
- <stEvt:instanceID>xmp.iid:F77F1174072068118083DC2D0C045B5E</stEvt:instanceID>
- <stEvt:when>2013-05-04T20:19:16-07:00</stEvt:when>
- <stEvt:softwareAgent>Adobe Illustrator CS5</stEvt:softwareAgent>
- <stEvt:changed>/</stEvt:changed>
- </rdf:li>
- </rdf:Seq>
- </xmpMM:History>
- </rdf:Description>
- <rdf:Description rdf:about=""
- xmlns:illustrator="http://ns.adobe.com/illustrator/1.0/">
- <illustrator:Type>Document</illustrator:Type>
- <illustrator:StartupProfile>Print</illustrator:StartupProfile>
- </rdf:Description>
- <rdf:Description rdf:about=""
- xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/"
- xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#"
- xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#"
- xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/">
- <xmpTPg:HasVisibleOverprint>False</xmpTPg:HasVisibleOverprint>
- <xmpTPg:HasVisibleTransparency>False</xmpTPg:HasVisibleTransparency>
- <xmpTPg:NPages>1</xmpTPg:NPages>
- <xmpTPg:MaxPageSize rdf:parseType="Resource">
- <stDim:w>512.000000</stDim:w>
- <stDim:h>512.000000</stDim:h>
- <stDim:unit>Pixels</stDim:unit>
- </xmpTPg:MaxPageSize>
- <xmpTPg:Fonts>
- <rdf:Bag>
- <rdf:li rdf:parseType="Resource">
- <stFnt:fontName>Meloriac-Regular</stFnt:fontName>
- <stFnt:fontFamily>Meloriac</stFnt:fontFamily>
- <stFnt:fontFace>Regular</stFnt:fontFace>
- <stFnt:fontType>Open Type</stFnt:fontType>
- <stFnt:versionString>OTF 1.200;PS 001.001;Core 1.0.29</stFnt:versionString>
- <stFnt:composite>False</stFnt:composite>
- <stFnt:fontFileName>meloriac.otf</stFnt:fontFileName>
- </rdf:li>
- </rdf:Bag>
- </xmpTPg:Fonts>
- <xmpTPg:PlateNames>
- <rdf:Seq>
- <rdf:li>Cyan</rdf:li>
- <rdf:li>Magenta</rdf:li>
- <rdf:li>Yellow</rdf:li>
- <rdf:li>Black</rdf:li>
- </rdf:Seq>
- </xmpTPg:PlateNames>
- <xmpTPg:SwatchGroups>
- <rdf:Seq>
- <rdf:li rdf:parseType="Resource">
- <xmpG:groupName>Default Swatch Group</xmpG:groupName>
- <xmpG:groupType>0</xmpG:groupType>
- <xmpG:Colorants>
- <rdf:Seq>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>White</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>Black</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>100.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Red</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Yellow</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Green</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Cyan</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Blue</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>CMYK Magenta</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=15 M=100 Y=90 K=10</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>14.999998</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>90.000000</xmpG:yellow>
- <xmpG:black>10.000002</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=90 Y=85 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>90.000000</xmpG:magenta>
- <xmpG:yellow>85.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=80 Y=95 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>80.000000</xmpG:magenta>
- <xmpG:yellow>95.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=50 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>50.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=35 Y=85 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>35.000004</xmpG:magenta>
- <xmpG:yellow>85.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=5 M=0 Y=90 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>5.000001</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>90.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=20 M=0 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>19.999998</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=50 M=0 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>50.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=75 M=0 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>75.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=85 M=10 Y=100 K=10</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>85.000000</xmpG:cyan>
- <xmpG:magenta>10.000002</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>10.000002</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=90 M=30 Y=95 K=30</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>90.000000</xmpG:cyan>
- <xmpG:magenta>30.000002</xmpG:magenta>
- <xmpG:yellow>95.000000</xmpG:yellow>
- <xmpG:black>30.000002</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=75 M=0 Y=75 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>75.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>75.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=80 M=10 Y=45 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>80.000000</xmpG:cyan>
- <xmpG:magenta>10.000002</xmpG:magenta>
- <xmpG:yellow>45.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=70 M=15 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>70.000000</xmpG:cyan>
- <xmpG:magenta>14.999998</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=85 M=50 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>85.000000</xmpG:cyan>
- <xmpG:magenta>50.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=100 M=95 Y=5 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>95.000000</xmpG:magenta>
- <xmpG:yellow>5.000001</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=100 M=100 Y=25 K=25</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>25.000000</xmpG:yellow>
- <xmpG:black>25.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=75 M=100 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>75.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=50 M=100 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>50.000000</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=35 M=100 Y=35 K=10</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>35.000004</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>35.000004</xmpG:yellow>
- <xmpG:black>10.000002</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=10 M=100 Y=50 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>10.000002</xmpG:cyan>
- <xmpG:magenta>100.000000</xmpG:magenta>
- <xmpG:yellow>50.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=95 Y=20 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>95.000000</xmpG:magenta>
- <xmpG:yellow>19.999998</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=25 M=25 Y=40 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>25.000000</xmpG:cyan>
- <xmpG:magenta>25.000000</xmpG:magenta>
- <xmpG:yellow>39.999996</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=40 M=45 Y=50 K=5</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>39.999996</xmpG:cyan>
- <xmpG:magenta>45.000000</xmpG:magenta>
- <xmpG:yellow>50.000000</xmpG:yellow>
- <xmpG:black>5.000001</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=50 M=50 Y=60 K=25</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>50.000000</xmpG:cyan>
- <xmpG:magenta>50.000000</xmpG:magenta>
- <xmpG:yellow>60.000004</xmpG:yellow>
- <xmpG:black>25.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=55 M=60 Y=65 K=40</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>55.000000</xmpG:cyan>
- <xmpG:magenta>60.000004</xmpG:magenta>
- <xmpG:yellow>65.000000</xmpG:yellow>
- <xmpG:black>39.999996</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=25 M=40 Y=65 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>25.000000</xmpG:cyan>
- <xmpG:magenta>39.999996</xmpG:magenta>
- <xmpG:yellow>65.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=30 M=50 Y=75 K=10</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>30.000002</xmpG:cyan>
- <xmpG:magenta>50.000000</xmpG:magenta>
- <xmpG:yellow>75.000000</xmpG:yellow>
- <xmpG:black>10.000002</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=35 M=60 Y=80 K=25</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>35.000004</xmpG:cyan>
- <xmpG:magenta>60.000004</xmpG:magenta>
- <xmpG:yellow>80.000000</xmpG:yellow>
- <xmpG:black>25.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=40 M=65 Y=90 K=35</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>39.999996</xmpG:cyan>
- <xmpG:magenta>65.000000</xmpG:magenta>
- <xmpG:yellow>90.000000</xmpG:yellow>
- <xmpG:black>35.000004</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=40 M=70 Y=100 K=50</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>39.999996</xmpG:cyan>
- <xmpG:magenta>70.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>50.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=50 M=70 Y=80 K=70</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>50.000000</xmpG:cyan>
- <xmpG:magenta>70.000000</xmpG:magenta>
- <xmpG:yellow>80.000000</xmpG:yellow>
- <xmpG:black>70.000000</xmpG:black>
- </rdf:li>
- </rdf:Seq>
- </xmpG:Colorants>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:groupName>Grays</xmpG:groupName>
- <xmpG:groupType>1</xmpG:groupType>
- <xmpG:Colorants>
- <rdf:Seq>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=100</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>100.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=90</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>89.999405</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=80</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>79.998795</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=70</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>69.999702</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=60</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>59.999104</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=50</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>50.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=40</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>39.999401</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=30</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>29.998802</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=20</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>19.999701</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=10</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>9.999103</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=0 Y=0 K=5</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>0.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>4.998803</xmpG:black>
- </rdf:li>
- </rdf:Seq>
- </xmpG:Colorants>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:groupName>Brights</xmpG:groupName>
- <xmpG:groupType>1</xmpG:groupType>
- <xmpG:Colorants>
- <rdf:Seq>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>R=255 G=67 B=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.003099</xmpG:cyan>
- <xmpG:magenta>87.389900</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.003099</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=75 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>75.000000</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=0 M=10 Y=95 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>0.000000</xmpG:cyan>
- <xmpG:magenta>10.000002</xmpG:magenta>
- <xmpG:yellow>95.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=85 M=10 Y=100 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>85.000000</xmpG:cyan>
- <xmpG:magenta>10.000002</xmpG:magenta>
- <xmpG:yellow>100.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=100 M=90 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>100.000000</xmpG:cyan>
- <xmpG:magenta>90.000000</xmpG:magenta>
- <xmpG:yellow>0.000000</xmpG:yellow>
- <xmpG:black>0.000000</xmpG:black>
- </rdf:li>
- <rdf:li rdf:parseType="Resource">
- <xmpG:swatchName>C=60 M=90 Y=0 K=0</xmpG:swatchName>
- <xmpG:mode>CMYK</xmpG:mode>
- <xmpG:type>PROCESS</xmpG:type>
- <xmpG:cyan>60.000004</xmpG:cyan>
- <xmpG:magenta>90.000000</xmpG:magenta>
- <xmpG:yellow>0.003099</xmpG:yellow>
- <xmpG:black>0.003099</xmpG:black>
- </rdf:li>
- </rdf:Seq>
- </xmpG:Colorants>
- </rdf:li>
- </rdf:Seq>
- </xmpTPg:SwatchGroups>
- </rdf:Description>
- <rdf:Description rdf:about=""
- xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
- <pdf:Producer>Adobe PDF library 9.90</pdf:Producer>
- </rdf:Description>
- </rdf:RDF>
-</x:xmpmeta>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<?xpacket end="w"?>
endstream
endobj
3 0 obj
<</Count 1/Kids[8 0 R]/Type/Pages>>
endobj
8 0 obj
<</ArtBox[0.0 0.0 512.0 512.0]/BleedBox[0.0 0.0 512.0 512.0]/Contents 270 0 R/LastModified(D:20130504202656-07'00')/MediaBox[0.0 0.0 512.0 512.0]/Parent 3 0 R/PieceInfo<</Illustrator 271 0 R>>/Resources<</ColorSpace<</CS0 272 0 R>>/ExtGState<</GS0 273 0 R>>/Font<</T1_0 267 0 R>>/ProcSet[/PDF/Text]/Properties<</MC0 268 0 R>>>>/Thumb 274 0 R/TrimBox[0.0 0.0 512.0 512.0]/Type/Page>>
endobj
270 0 obj
<</Filter/FlateDecode/Length 155>>stream
-H\ufffd<\ufffd\ufffd
-\ufffd@D\ufffd\ufffd\ufffd\ufffd\ufffdn\ufffd\u0774\ufffdh\ufffd"
-\u0142\ufffd\ufffd\ufffdH\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd
-�\ufffdy0\ufffd\ufffdv\ufffd\ufffd\ufffd\ufffd\ufffd�\ufffdd\ufffd\ufffd#\ufffd\ufffd\ufffd
v\ufffd\ufffd1@a\ufffd\ufffdt\ufffd]<\ufffd\ufffd\ufffd9\ufffd\ufffd\ufffdO*\u07ac\ufffd,\ufffdpb\ufffdfA}\ufffd9\ufffdsf\ufffdn\ufffd\ufffd_t\ufffd\ufffd$\ufffd@!\ufffd4T\ufffde\ufffdg\ufffd~\ufffd\ufffdZ\ufffd\ufffd\ufffd[\ufffd p\ufffd'\ufffd
endstream
endobj
274 0 obj
<</BitsPerComponent 8/ColorSpace 275 0 R/Filter[/ASCII85Decode/FlateDecode]/Height 64/Length 503/Width 64>>stream
-8;Z]!;/X<+#Xn-2J`STbiY9+%]B]I7J0V2o;cSYg-+1"5iN6g9W9D&L.c]SR;qE2Q
-V'l#Jr`KEMe5afLs474"n=T$(pDBAL1LDn"f(e"LY[A<;nMWmRR/#.emjG0U<hGf(
-56?RPd]H<5!rpTf$R9Xb_=9BWr-`K@QQoD9WiT=G1\$M/4\6L&oN1A^pWe7i.X/I?
-GjL/LU5E]uA*bXNOcI1XhmH1&YODDfG6$t_?1B;\14OaB&QAWkjuNH;s*sek2fWg4
-ms2n5H/]@nCFo43k^M@r14KR9A)'dHo/uP5rM14/Gs:ht:iIARp=Ack]8[8%+'Gmu
-e(-[Zj%itd]&eniroOV/Jm1-2q:j2s5$MargWiUrE*Mt&s"shj++A&j"rS$QU>#+/
-2uH<b;tV+/Fnr-:A^A+o?]3L+5PP<>Mt4VEs4q_jKUI33R=Di_\D<eWUf,dq1J7Rn
-7J[opc?#%[^Ah6.S%c5Xs',I%q>^K^rA+G7.([C~>
endstream
endobj
275 0 obj
[/Indexed/DeviceRGB 255 276 0 R]
endobj
276 0 obj
<</Filter[/ASCII85Decode/FlateDecode]/Length 428>>stream
-8;X]O>EqN@%''O_@%e@?J;%+8(9e>X=MR6S?i^YgA3=].HDXF.R$lIL@"pJ+EP(%0
-b]6ajmNZn*!='OQZeQ^Y*,=]?C.B+\Ulg9dhD*"iC[;*=3`oP1[!S^)?1)IZ4dup`
-E1r!/,*0[*9.aFIR2&b-C#s<Xl5FH@[<=!#6V)uDBXnIr.F>oRZ7Dl%MLY\.?d>Mn
-6%Q2oYfNRF$$+ON<+]RUJmC0I<jlL.oXisZ;SYU[/7#<&37rclQKqeJe#,UF7Rgb1
-VNWFKf>nDZ4OTs0S!saG>GGKUlQ*Q?45:CI&4J'_2j<etJICj7e7nPMb=O6S7UOH<
-PO7r\I.Hu&e0d&E<.')fERr/l+*W,)q^D*ai5<uuLX.7g/>$XKrcYp0n+Xl_nU*O(
-l[$6Nn+Z_Nq0]s7hs]`XX1nZ8&94a\~>
endstream
endobj
268 0 obj
<</Intent 277 0 R/Name(Layer 1)/Type/OCG/Usage 278 0 R>>
endobj
277 0 obj
[/View/Design]
endobj
278 0 obj
<</CreatorInfo<</Creator(Adobe Illustrator 15.0)/Subtype/Artwork>>>>
endobj
267 0 obj
<</BaseFont/TLLWZT+Meloriac-Regular/Encoding/WinAnsiEncoding/FirstChar 65/FontDescriptor 279 0 R/LastChar 116/Subtype/Type1/Type/Font/Widths[825 0 0 0 0 0 0 0 281 0 0 0 0 0 0 636 0 0 0 0 0 0 0 0 760 0 0 0 0 0 0 0 825 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 669 0 679]>>
endobj
279 0 obj
<</Ascent 1036/CapHeight 759/CharSet(/A/I/P/Y/a/r/t)/Descent -228/Flags 196640/FontBBox[-221 -228 1358 1036]/FontFamily(Meloriac)/FontFile3 280 0 R/FontName/TLLWZT+Meloriac-Regular/FontStretch/Normal/FontWeight 400/ItalicAngle 0/StemV 256/Type/FontDescriptor/XHeight 759>>
endobj
280 0 obj
<</Filter/FlateDecode/Length 541/Subtype/Type1C>>stream
-H\ufffd\ufffd\ufffdOLQ\ufffd\ufffdC\ufffd\ufffd\ufffdvi\ufffd\ufffd\ufffd\ufffd\ufffdH\ufffd\ufffd
-\ufffd\ufffdT\ufffd\ufffd4$\ufffd&P\ufffdD\ufffdP\ufffd\ufffdd \ufffd\ufffd\ufffdB\ufffdf+L\ufffd(\ufffd\ufffdD\ufffd\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdD=x\ufffdb\u6b6f
\ufffdH\ufffd^\ufffd\ufffd\ufffdd\ufffd|3\ufffd\ufffd\ufffd\ufffda\ufffd\ufffd\ufffd7o\ufffd\ufffd\ufffdI\ufffd\ufffd\u024e!u|j2a\ufffd\u058e\ufffdf\u031a\ufffdY\ufffd(\ufffd\ufffd^\ufffdp\ufffdgY\ufffd\u0646\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdp\ufffd4\ufffd\ufffd\ufffd<\ufffd\ufffd(\ufffd\ufffddE5Sz\ufffd\u018c\ufffd\ufffd\ufffd\ufffd+MU\ufffde\ufffdcS\ufffd\ufffdCj\ufffd0-\ufffd\ufffd\ufffdDr\ufffdZ\ufffd^\ufffdk\ufffd#I#\ufffd7\ufffdn\ufffd\.\ufffdW\ufffd\ufffd\ufffd\ufffd;vIc\ufffd\ufffd\ufffd^r\ufffd\ufffd\ufffda@\ufffd\u7a22j\u020d\ufffd\ufffdB\ufffde4\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd(\ufffdFQ
-=Go\ufffd\ufffd\ufffdo\ufffd\ufffd\ufffde\ufffdX|6\ufffd\ufffdV\ufffd\ufffdzeVa\ufffdj\ufffd#},O\ufffd\ufffd\ufffdf\ufffd[\ufffd_\ufffd_\ufffdX%\ufffd\ufffd`\ufffd\ufffd\ufffdn\ufffd"\ufffd([\ufffd7\ufffd5!L\ufffd\ufffdc\ufffdp\ufffdJ\ufffd\ufffdKD\ufffd\ufffd\ufffd"[#\ufffd\ufffd\ufffdb\ufffd\ufffd\ufffd\ufffd\ufffdB|\ufffd@\ufffd\ufffd.C\ufffd\ufffd\ufffdkmtD\ufffdFB\u0493?.Xp\ufffd\ufffdC\ufffd\ufffd \ufffdU\ufffd\u0155nP\ufffdE`\ufffdZ\ufffd\ufffd\ufffd\ufffd_Dy\ufffd\ufffd\ufffd\ufffd�\ufffd\ufffd_\ufffd\ufffd\u01bd\ufffd\ufffdm\ufffd\ufffd\ufffd"\ufffd.C\ufffdg\u03ebecBO!\ufffdMs\ufffd\ufffd\ufffd\ufffd|\ufffd\ufffd\u03c3F\ufffd\ufffd%\ufffd^"\ufffd\ufffdhrG\ufffdxN\ufffd\ufffdL\ufffd\ufffdT\ufffd\ufffd\ufffdQgN\ufffd%\ufffd r\ufffd
endstream
endobj
273 0 obj
<</AIS false/BM/Normal/CA 1.0/OP false/OPM 1/SA true/SMask/None/Type/ExtGState/ca 1.0/op false>>
endobj
272 0 obj
[/ICCBased 281 0 R]
endobj
281 0 obj
<</Filter/FlateDecode/Length 389757/N 4>>stream
-H\ufffd\ufffd\ufffduT\ufffdK\ufffdtK\ufffd\ufffd\ufffdKJI,\ufffd\ufffdt(\u074b\ufffd4\ufffdK\ufffd\ufffd\ufffd%\u04b9\ufffdH\ufffd4J#\ufffd\u0492\ufffd(H
-w\ufffd\ufffd\ufffdq\ufffdy\ufffdy\ufffd\ufffd~\ufffd3\ufffd\ufffd\u0319g\ufffd<3\ufffd\ufffd \ufffdY9El
- @\ufffd ]\ufffd\ufffd!O\ufffd\ufffd-@\ufffd \ufffd \ufffd\\ufffd\ufffd\ufffd\ufffd+BVKK
\ufffd\ufffd:\ufffdOX\ufffd~\ufffd\ufffd\ufffd\ufffd\ufffdWCa\ufffd\ufffd\ufffdiHKL \ufffd\ufffd\ufffd0\ufffdq\ufffdY\ufffd\ufffd\ufffd `\ufffd5 \ufffdc\ufffd\ufffd\ufffd\ufffdk\ufffd\ufffd
- X\ufffd] \ufffdx=\ufffd\ufffd\ufffd\ufffd8\ufffd\ufffd\ufffd\ufffd \ufffdX \ufffd\ufffd\u013f\u05fd\ufffd>\ufffd.\ufffdf\ufffd\ufffd\ufffd#aP\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdn\ufffd \ufffdD^{y8\ufffd\ufffd\ufffd\ufffd\ufffd \ufffdd\ufffdpH\ufffd\ufffd st\ufffd\ufffd:Y\ufffd\ufffd\ufffd\ufffd\u05ecc xc
I\ufffdV\ufffd?S\ufffd\ufffd!\ufffd:\ufffd\ufffd_\ufffd\ufffd\ufffd\ufffd\ufffd9[\ufffdYbQ\ufffdP\ufffd~\ufffd+rA
-S\ufffdh\ufffd\ufffd\ufffd\ufffd\ufffdHh\ufffd\ufffd\ufffdt^\ufffd\ufffd
\ufffd'0\ufffd\u07c5\ufffd�kY\ufffdX\ufffd\ufffdY9\ufffdYq\ufffdq\ufffdp\ufffd\ufffdl\ufffd'\ufffd\ufffd\ufffdW\ufffd\ufffd\ufffd\ufffdz\ufffdE\ufffd\ufffd\ufffd\ufffdE$\ufffd%D>,\ufffd\ufffd^|t*K)\ufffd%/\ufffd`\ufffd\ufffd\ufffd\\ufffd\u04ab\ufffd\ufffd\ufffd\ufffd:\ufffd\ufffd\ufffd&D\ufffd\ufffd\ufffd\ufffd[\ufffd7\ufffd\ufffddplDa5\ufffd|\ufffdmb\ufffd\ufffd\ufffd4\ufffd,\ufffdy\ufffdy\ufffd\ufffd{\ufffde\ufffd\ufffd5\ufffd
\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd3\ufffd\ufffd\ufffd\u2685,t+w\ufffd\ufffdh\ufffdl\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdA
\ufffd\ufffd
\ufffd \ufffdmk
-\ufffd\ufffdxYU\ufffd\ufffd\ufffd\uf4c0H\ufffd&%\ufffd\ufffd\u0224
-\ufffdq\ufffd\ufffdO'M\ufffdz\ufffd3\ufffdK\ufffdT\ufffd@v[NUnn^\\ufffdo\ufffd]\ufffda\ufffdb\ufffdTr\ufffd\ufffdt\ufffdl\ufffd\ufffdmE]e~U\ufffd+\ufffdj\ufffd\u05d0\ufffdZ\ufffd:\ufffdz\ufffd\ufffda\ufffdq\ufffdi\ufffd\ufffd\ufffd\ufffd\ufffd5\ufffd\ufffd\ufffd\ufffd};\ufffdC\ufffdS\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd[\ufffd\_\ufffd\u06c6w\ufffd\ufffd\ufffd\ufffd\ufffdC\ufffda\ufffd\ufffdQ\ufffd1\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd;>\ufffdL$Lz}4\ufffd\ufffd:%8M7\ufffdl\u030e\ufffd\ufffd\u03a7/\ufffd}\ufffdXT^\ufffd]\ufffdX>\\ufffdYm[\ufffd\ufffd\ufffdn\ufffd!\ufffdycsk\ufffd\ufffdk\u01b6\ufffd\u02b7;\ufffd\ufffdv{\ufffd\ufffd\ufffdp\ufffd\ufffd\ufffd\ufffdI\ufffds\ufffd\ufffd\ufffd0\ufffd\ufffd\ufffdX\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u076f\ufffd3\ufffds\ufffd\U000dd2d2\ufffd&\ufffd$\ufffd\ufffdW\ufffdWW\ufffd*\ufffd\ufffd)\ufffd\ufffd\ufffd!\ufffd$\ufffd$\ufffd%\ufffd!e$c\ufffd\ufffdHNOAKIMEq\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0195;KL\ufffdw\ufffd@\ufffd\ufffdY\ufffdX;\u061a\ufffd\ufffd8^\ufffd+\ufffdDsp\ufffd\ufffd\ufffd\ufffdf\ufffd\ufffd\ufffdK\ufffdO\ufffd\ufffdTC\ufffdP\ufffdp\ufffdJ%\ufffd\ufffd\ufffdD=\ufffd\ufffd+\ufffd+\ufffd\ufffd\ufffdO%$*\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd8\ufffdI\ufffdZ\ufffd\\ufffdZ\ufffd^\ufffdU\ufffdK\ufffd_wL\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"d\ufffdx\ufffd\ufffd\ufffd\ufffd\ufffd]\ufffd}\ufffd\ufffd\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd>\ufffd9\ufffd=\ufffd;\ufffd\ufffds\ufffd\ufffd\ufffd_G\ufffd8/\ufffd\u0339N!G\ufffdz\ufffd[<\ufffd=\ufffd\ufffd2\ufffd|B}\ufffd\ufffd\ufffd\ufffdP\ufffdQ\ufffdz\ufffdl\ufffdH0Wc(E\ufffde\ufffdn\ufffd|\ufffdPds::5&8
9\ufffdy\ufffdF\ufffdT"o\ufffd\ufffdd\ufffd\u4cd4\ufffd\ufffd\ufffdi\ufffd/Z\ufffdK^&gd:fg\ufffd\ufffd\ufffd\ufffdQ\ufffd\ufffd\ufffdl\ufffd
\ufffd\ufffdkJ\u0425\ufffde\ufffd\ufffd\ufffd\ufffdJ\ufffd*\ufffd+\ufffd\ufffd\u7bcdk\ufffdj5\ufffd\ufffd\ufffdU\ufffd\ufffd\ufffd[\ufffdZU\ufffd\ufffd\ufffdh\ufffd\ufffd0\ufffd|\ufffde\ufffdm\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd6\ufffd]B\ufffd@\ufffd`\ufffdP\ufffdp\ufffdH\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd?QM1Ms\u03c8\ufffd*\ufffdi\u03db.\ufffd\ufffdZ[JY\ufffdZ)X-]\ufffd\ufffdR\ufffd\u07b8\u047a\u067e\ufffd\ufffd\ufffdw\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd?\ufffd\ufffd@\ufffd\ufffd?\ufffd\ufffd5\ufffd \u01d6'v\ufffdN\ufffd\ufffdg\ufffd\ufffd\ufffd\ufffd
-\ufffd\ufffdW\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd3\ufffdg\ufffd\ufffd\ufffd\ufffdL\ufffdC#u!\ufffd\ufffdM\ufffdM\ufffdM\ufffdE\ufffdvAms\u02d4F\ufffdV\ufffdN\ufffd\ufffd\ufffdA\ufffd\ufffd\ufffd\u031dGL\ufffdw\ufffdA\ufffd\u032c,\ufffd\ufffdl\ufffdl\ufffd\u063fs\ufffd\u075b\ufffd\ufffd\ufffd\ufffdn\ufffd\ufffd\u037d\ufffd\ufffd\ufffd\ufffd+\ufffd\ufffd\ufffd!B\ufffd�"\ufffd\ufffd<b\ufffd\ufffd4$\ufffd\ufffd\ufffd\ufffd\u0747kR\ufffd\u0493\ufffd\ufffde\ufffdd\ufffd\ufffd\ufffdk*\ufffdJ\ufffd\ufffdY*/TS'<\ufffdS\ufffdV\ufffd\u0488\u050c\u040a\u040e\u0509\u040d\u040b\u040f0\ufffd4\ufffd2\ufffd\ufffd\ufffd\ufffd?M4I~\ufffdf\ufffd\ufffd\ufffd\ufffd\ufffds-\ufffd,\U000e1170"+\ufffdu\ufffdM\ufffdm\ufffd]\ufffd}\ufffdC\ufffdc\ufffdS\ufffdQ\ufffd\\ufffdR\ufffdZ\ufffd\ufffds\ufffdv\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdG\ufffd\ufffdi\ufffd\ufffdH\ufffd\ufffd\ufffd\ufffd3G\ufffdF\ufffdFaG\ufffdD\ufffd\u01ac\ufffd\ufffd\u010d\ufffd\ufffd&\ufffd$V''g\ufffd$\ufffdF\ufffd\ufffd\ufffdLG\ufffd\ufffd\u02f0\ufffd4\u0342d\ufffd\ufffd\ufffd\ufffdj\ufffdi\ufffdkh\ufffd\ufffdC\ufffdf%V\ufffdNe\ufffd\ufffdAq\ufffdYU\ufffd\u06aaG^/\ufffd\ufffd\u0543\ufffd\ufffd\ufffd\ufffd\ufffd[\ufffdZ{\ufffdV\u06b1:\ufffd;\ufffd`\ufffd\ufffd=\ufffdc}\ufffd\ufffdn\ufffdK\ufffd
\ufffd\ufffd\ufffdFv\ufffd(\u0783\ufffd\ufffd> 'R&k?\ufffd\ufffd\ufffd3\ufffd?\ufffd4+:\ufffd6o\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdT\ufffd\\ufffd\u04b1\u06bf6\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdV\ufffd\ufffd\ufffd\ufffd\u029d\ufffdo\ufffd\ufffd\ufffdF?L\ufffd\ufffd\ufffd\ufffdT;\ufffd:\ufffd>\ufffd::>\ufffd:\ufffd;\ufffd\ufffdeq\ufffdvx^sa\ufffd\ufffd\ufffdw\u0765\ufffd\ufffd\u0295\ufffd\ufffd'\ufffd_\ufffd E\ufffdF\ufffdO\D\ufffdK\ufffdLtAnF\ufffdF)F\ufffd
|\ufffd\ufffd\ufffd\ufffd\u052d6\ufffd\\ufffd`\ufffd@z?\ufffdm+F\ufffd;\ufffdL\ufffdwiA h\ufffdy\ufffd\ufffd\ufffd\u0356\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd)\ufffd\ufffd\ufffdM\ufffd\ufffd\ufffdg\ufffdw\ufffd~_
\ufffd@\ufffd\ufffd\ufffdZH_XA,\ufffd"F)\ufffd%\ufffd/\ufffd*9\ufffd\ufffd\ufffda\ufffdZ:\ufffdQ\ufffd\ufffd\ufffd,\\ufffdB^_AU\U000614802\ufffd
-\ufffd*\ufffd\ufffd\ufffd\ufffd'[j\ufffd\ufffdo5[\ufffd\ufffd\ufffd\ufffduR1u\ufffd\ufffdh`f\ufffdm$1\ufffdxJgBdr\ufffdl\ufffdt\ufffdl\ufffdy\ufffdy\ufffdE\ufffde$\ufffdfe\ufffdg-g#`\ufffddGbwj\ufffd\ufffd0\ufffd\ufffd\ufffdTOC9;\ufffd\ufffd\ufffd \ufffd\u0728\ufffd\ufffd\u077fx\ufffdz6z\ufffdx\ufffd\ufffd8\ufffd\ufffdI\ufffd\ufffd\ufffd\ufffdP\ufffd\ufffd=A\ufffd\ufffd\ufffd!.\ufffd\ufffda\ufffdAx\u06d1 \ufffd\ufffd\u03ca\ufffd\ufffd\ufffd\ufffd}\ufffdb\ufffdG\ufffd-\ufffd\ufffd\ufffd\ufffd\u0792\u0113\ufffd\ufffd\ufffd\ufffdx\ufffd`\ufffdG\ufffd/\ufffd\ufffd\ufffd\ufffd\u051c\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdq\ufffd_\ufffdO\ufffd?\ufffd0\ufffd"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u06ec\u056d\u042e\u02ef\u01f0\u0131�\ufffd\ufffd\ufffd\ufffd�\u0176\u0237\u0378\u04f9\u06fa\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd \ufffd0\ufffd@\ufffdR\ufffdf\ufffdz\u018f\u01e6\u023e\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd*\ufffdG\ufffdc\u0400\u045f\u04bf\ufffd\ufffd\ufffd\ufffd'\ufffdL\ufffds\u065b\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdF\ufffds\ufffd\ufffd\ufffd\ufffd\ufffdM\ufffd\ufffd\ufffd\ufffd6\ufffd\ufffd\ufffd\ufffd+\ufffd\ufffd\ufffd\ufffd1\ufffd\ufffd\ufffd\ufffdM\ufffd\ufffd\ufffd\ufffdZ\ufffd\ufffd\ufffd\ufffd\ufffd:\ufffd{\ufffd\ufffd\ufffd\ufffd\ufffd \ufffd \ufffd \ufffd\ufffdT\ufffd?\ufffd~�\ufffd\ufffd~i\ufffd\ufffd~L}\ufffd\ufffd~cbA\ufffd~\ufffdDa\ufffdd\ufffd\ufffd\ufffd\ufffd\ufffd~t\ufffdy\ufffd~W\ufffd\ufffd\ufffd\ufffd~O\ufffd\ufffd>~\\ufffd\ufffd\ufffd/~\ufffd\ufffd\ufffd|\ufffd~\ufffd\ufffd\ufffd`\ufffd\ufffd\ufffdC \ufffd\ufffdx\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd}%\ufffd\ufffdH}\ufffd1\ufffdX}%\ufffdz\ufffd\ufffd}K\ufffd\ufffd\ufffd}\ufffd\ufffd
{N}\u05cb<_\ufffd~7\ufffd\ufffdA\ufffd~\ufffd\ufffd-\u03c8\ufffd\ufffd|
\ufffd\ufffd\ufffd|\ufffd\ufffd\u01f2|+\ufffd\ufffdE|[\ufffd\ufffd\ufffds|\ufffd\ufffd\ufffdz}\ufffd\ufffd^\ufffd}w\ufffdO@\ufffd}\ufffd\ufffd-\ufffd~\u010b\ufffd\ufffd {G\ufffdu\ufffd\ufffd{D\ufffdz\ufffd{]\ufffd\u012c\ufffd{\ufffd\ufffdf\ufffd{\ufffdZx\ufffd|[\ufffd\ufffd]\ufffd|\u03d5M?\ufffd}R\ufffd\ufffd<}\u018e\ufffd\ufffd\ufffdz\ufffd\ufffd]\ufffdYz\ufffd\ufffdH\u0127z\ufffd\ufffd\ufffd\ufffd|z\ufffd=\ufffd\ufffd{L\ufffdNw\ufffd{\ufffd\ufffd\ufffd\\ufffd|=\ufffd\ufffd>\ufffd|\ufffd\ufffdv|\u06d0I\ufffd8z/\ufffdr\ufffd
z\ufffd;\ufffdbz'\ufffds\ufffdMzd\ufffd6\ufffd\ufffdz\u026cqv\ufffd{D\ufffd[\ufffd{\ufffd\ufffd0>|;\ufffd|\ufffd\ufffd\ufffdy\ufffd\ufffd\ufffd\ufffd\ufffdy\ufffd\ufffda\ufffdIy\ufffd�\ufffd?y\ufffda\ufffd\ufffdzY\ufffd\ufffdvz\u076e\ufffd[{^\ufffd\ufffd=c{\u0424\ufffdI{R\ufffd\ufffd*y\ufffd\u07c4\ufffd\ufffdyf\ufffd\ufffd\ufffdUy`\ufffd\ufffdVy\ufffd\ufffd\ufffdy\ufffd\ufffd\ufffduKz\ufffd\ufffdZi{\ufffd\ufffd<\ufffd{z\ufffd%\ufffdz\u020e\ufffd\ufffd\ufffd~+\ufffd~\ufffd }\ufffd\ufffd\u0347}W\ufffd\ufffd\ufffd0}3\ufffd\ufffd\ufffd}Ht\u0404\ufffd}\ufffdZk\ufffd\ufffd}\ufffd=\ufffd\ufffd\ufffd~\ufffd\ufffd\ufffdz\ufffd\ufffd\u0247\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd}\ufffd\ufffd\ufffd\ufffd\ufffd!\ufffd~\ufffd\ufffd\ufffd\ufffd\u0404d\ufffd*s}\ufffd\ufffdY\ufffd\ufffd\ufffd<9\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdw\ufffd\ufffd\ufffd\ufffdp\ufffd\ufffd\ufffdS\ufffdw\ufffdu\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdu\ufffdVrU\ufffd\ufffd\ufffdW\ufffd\ufffd\u0608|;,\ufffd\ub1d4\ufffd\ufffd{\ufffd\ufffd\ufffdR\ufffds\ufffd\ufffd\u0472\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd;\ufffd\ufffd\ufffd\ufffd:\ufffd8\ufffd\ufffd\ufffd\ufffdq)\ufffdP\ufffdCV\ufffd\ufffd\ufffd:4
.\ufffd\ufffd8\ufffd\ufffd\ufffd\ufffd\ufffd\u0204\ufffd\ufffd\ufffd2\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\U000610a1?\ufffdU\ufffd\ufffd\ufffd\ufffd\ufffdp\ufffd\ufffd\ufffd\ufffdV\ufffdu\ufffd\ufffd9S\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdc\ufffd\ufffdb\ufffd\u0583\ufffd\ufffd\ufffd\ufffdR\ufffd\ufffd\ufffd\ufffd\ufffd.\ufffd\u0541N\ufffd\ufffdn\ufffd\ufffd \ufffd\ufffdU\ufffd\ufffd38\ufffd\ufffd\ufffd8\ufffd\ufffd\ufffdA\ufffd/\ufffd\ufffd\ufffd\ufffd\u036c\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u03b4z\ufffd\ufffd6\ufffd\u07c6\ufffd\u04e9\ufffdn1\ufffd\ufffd\ufffd\ufffdT\\ufffde\ufffd\ufffd7\u0740t\ufffdXT\ufffd\ufffd\ufffd\ufffd)\ufffd$\u0315\u032f\ufffd6\ufffd;\ufffd\ufffd\ufffde\ufffdC\ufffd\ufffd\u02b7\u02c6 \ufffdi\ufffd\ufffdmw\ufffd3\ufffd\ufffdS\u0180\ufffdV7M\ufffd
-\ufffd\\ufffd\ufffdl\ufffdG\ufffdN\ufffd\ufffd\u063b\ufffd\u0681\ufffd\ufffdN\ufffd\u0101\ufffda\ufffd5\ufffdt\ufffd\ufffdN\ufffd\ufffdzl\ufffd\u07f4\ufffdS<\ufffd\ufffdH6\ufffd\ufffd\ufffd*\ufffd\ufffd\ufffd<\ufffda|\ufffd\ufffdk\ufffdz|C\ufffdV\ufffd\ufffd|\ufffd\u01cd|\ufffd\ufffd\ufffd\ufffd|Ik\ufffd\ufffd\ufffd|\ufffdRu\ufffd\ufffd}26\ufffd\ufffd'~2\ufffd\ufffd\ufffd\ufffdF\ufffd-\ufffd\ufffd\ufffd\ufffdB\ufffd\ufffd\ufffd*\ufffd\ufffd\ufffdo\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdj\ufffd\ufffd\ufffd\ufffd\ufffdQ^\ufffd\ufffd\ufffd@5z\ufffdI\ufffd`\ufffd\ufffd\ufffd\ufffd\u0673\ufffd \ufffd$\u011d\ufffd"\ufffd\ufffd\ufffd\ufffdc\ufffd\u07d8\ufffd\ufffd\ufffd&\ufffdU\ufffd\ufffd\ufffd\ufffdij\ufffd\ufffd\ufffd|PJ\ufffd\u02c7v4v\ufffdy\ufffd\ufffd\ufffdV\ufffd\ufffd\ufffdG\ufffd\ufffd\ufffd\ufffd.\ufffd2\ufffd{\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u843ehS\ufffd\u63bcO[\ufffd\ufffd\ufffd3\ufffd\ufffd�\ufffd(\ufffd\ufffd\ufffd\ufffdJ\ufffd\ufffd\u044cx\ufffd&\ufffd$\ufffd\u051es\ufffd\u0489h\ufffd
-~\ufffd2\ufffd\ufffdgK\ufffd>\ufffd-N}\ufffdo\ufffd\ufffd2\u0646\ufffd\ufffd
N\ufffd%\ufffd\ufffd\u0567\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd>\ufffdw\ufffd\ufffd\ufffd\u05a3A}\u21e4\ufffd\fX\ufffd\ufffd\ufffd\ufffdM\ufffd\ufffd\u0758\ufffd2,\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdK\ufffd\ufffd\u0510\ufffd3\ufffd\ufffd\ufffd\ufffd\ufffdg\ufffd\ufffd\ufffd�\ufffd\ufffd\ufffd\ufffd[\ufffd\ufffd}
-\ufffd0\ufffde\ufffd\ufffd6\ufffd\ufffdM\ufffd_\ufffd\ufffd1\ufffd\ufffd\ufffd?\ufffd\ufffd\ufffd1\u04e3\ufffd\ufffd\ufffd\u01fe\ufffd\ufffd\ufffdI\ufffd\ufffd^\ufffd\ufffd\ufffd\ufffdI|B\ufffd\u032fd\ufffd\ufffd\u072awL\ufffd\ufffd\ufffde1$\ufffd\ufffd\ufffd:\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdr\ufffdW\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd]\ufffd
\ufffd\ufffd1\ufffd\ufffd\ufffdS{\ufffd\ufffdz\ufffd|di\ufffd\ufffd\ufffd\ufffdL
\ufffd\ufffd\ufffdg0\ufffd\ufffd\\ufffd\ufffdU\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd{[\ufffd\ufffd\ufffdG{!\ufffd\ufffd\ufffd\ufffd{ \ufffd\u0794`{&y\ufffdE{xbi\ufffde{\ufffdJr\ufffd\ufffd|\ufffd/c\ufffd5}~
-~\ufffd\ufffd\ufffd:\ufffd\ufffd\ufffd\ufffdf\ufffd#\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdM\ufffdKx+\ufffdC\ufffd\ufffda|\ufffdu\ufffd\ufffdI~\ufffd\ufffd\ufffd\ufffd.y\ufffdW\ufffd\ufffd \u03ce\ufffd\ufffd\ufffd\u04d9\u07ce\ufffd\ufffd\ufffd%\ufffd�\u5518\ufffd\ufffd\ufffd\ufffd[\ufffd\ufffdw!\ufffd^\ufffdT`\ufffd\ufffd\ufffd\ufffd^H\ufffd\ufffd*\ufffd\ufffd-\ufffd\ufffd\ufffd\ufffd\ufffd 5\ufffdG\ufffd\ufffd\u0228\ufffd\u760e\ufffd\ufffd=\ufffd\u03a0\ufffd\ufffd\ufffd\ufffd4\ufffd\ufffd\ufffdr\ufffd\ufffdv\ufffd\ufffd\ufffd\ufffd_\ufffd\u048dRG\ufffd\ufffdf\ufffd\ufffd,\u078b\u030b\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd|\ufffd,\ufffd\ufffd\ufffd\u0195\ufffd\ufffd\ufffd\ufffd{\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0498\ufffdt\ufffd\u0655\ufffd^\ufffd\ufffd1\ufffd\ufffdF\ufffd\u0151\ufffd,;\ufffd'\ufffd\ufffd<\ufffd!\ufffd\ufffd\ufffd_\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdY\ufffdl\ufffd~\ufffdJ\ufffd\ufffd\ufffdJ\ufffd\ufffdt\ufffdS\ufffd#]\ufffd\ufffd\ufffd\ufffd'FA\ufffd4\ufffd\ufffd+\ufffd\ufffd\ufffd\ufffd;\u06caL\ufffdP\ufffdf\ufffd&\ufffd\ufffd\u0254\ufffd\ufffd\u079d\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0568\ufffds@\ufffd\u590f]\ufffd0\ufffdE\ufffd\ufffd\ufffd\ufffd\ufffd+:\ufffd\ufffd\ufffd\u0587SS \U00027828\ufffd\ufffdjVPp,<XQ)\ufffdXVl\ufffd(Js\ufffd&\ufffdJ!\ufffd\ufffd\ufffd\ufffdK{\ufffd@B\ufffd\ufffdE\ufffd.\ufffde\ufffd\ufffd\ufffdWqQ\u4193\ufffd\ufffd\ufffd~3\ufffd\ufffd7\ufffd\ufffd\ufffdF\ufffdHI^\ufffd\\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u04e1\ufffd\ufffd\ufffd+j&Y\ufffd\ufffd\ufffdb\ufffddML\ufffd\ufffd\ufffd{#\ufffd\ufffd\ufffd\ufffd\ufffd)F\ufffd\ufffd\ufffdA\ufffd;q\ufffd\ufffdT0\ufffd\ufffd_\ufffd
^\ufffd\ufffd9I\u0764\ufffdx\u05ba\ufffd\u01a2YFh\ufffd9\u0545\ufffdhX;J\ufffd\ufffd\ufffdl\ufffd\ufffd\ufffd\ufffd\ufffd
n+j\ufffd\u0121\ufffd(\ufffdm,\u05bcJ\ufffd\ufffd\ufffd\ufffd\ufffd(Va\ufffdV/\ufffd\ufffd\ufffda\u0611\ufffd@\ufffdQ~.\ufffd8_]\ufffd\ufffd\ufffd7]\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdg\ufffd|\ufffdF\ufffd)-\ufffd/\ufffd\ufffdMH\ufffd|\ufffd\ufffd\ufffd\ufffdP\ufffd\ufffd8\ufffd%\ufffdoFx\ufffd\ufffdC\ufffd\ufffd<\ufffd\ufffdR\ufffdl\ufffdA\ufffd^\ufffd\ufffd\ufffd\ufffdQ\ufffdl\ufffd\ufffdz\ufffdrJAU\ufffdU\ufffd\ufffd\ufffd\ufffdd*\ufffd\ufffd\ufffd\ufffdN\ufffd$i\u070f\ufffd
#\ufffdv
b7F\ufffd*4\u0782\ufffd\ufffd\ufffd
-
\ufffd\ufffd\ufffdpv\ufffdi\ufffdx\u0596\ufffd\ufffd\ufffd\ufffd\ufffdI\ufffd\ufffdo\ufffd\ufffd\ufffd\ufffd\ufffdJ\u06f1\ufffd#\ufffd
-\ufffd\ufffdW\ufffd\ufffdh\ufffd\u0509\ufffdl\ufffd"\ufffdkxwVjG\ufffdDz\ufffd\ufffd\ufffd*\ufffd\ufffd\u07dcx\ufffdW\ufffd\ufffd\ufffd:\u01a9d\ufffd\ufffdP\ufffd\ufffd\ufffd$\ufffd\ufffd\ufffd\ufffd\ufffdj\ufffd4W\ufffdM\ufffd\ufffd[\ufffd\ufffd,]\ufffd\u02ab$\ufffd\ufffd\ufffdW\ufffd\ufffd$I\ufffd&\ufffd\ufffdN\ufffd\ufffd\ufffd}\ufffd7�
s\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd1@\ufffd9\ufffdT\u024e.\ufffdE\ufffd\ufffdzN\ufffdDf\ufffd\ufffd*uwr \ufffd\ufffd\ufffd\ufffd \ufffd*\ufffd#\ufffd\ufffd\ufffd\ufffd,\ufffdh\u0605\ufffd\ufffd"\ufffd8=\ufffd\ufffd\ufffdN\ufffd
\ufffd%\ufffd=(\ufffdp\ufffd\ufffd\ufffdQu\ufffd9s\ufffdL\u04d3(\ufffd&\ufffd\ufffdw\ufffd\u06be\ufffd?\ufffd\ufffdER\ufffdAHi.R\ufffd~ \u0504\ufffd6\ufffd\ufffd\ufffd\ufffd\ufffd:\ufffd*t\u04143*\ufffd\ufffd\ufffd\u06f1\ufffdx#\ufffdm?r~3\ufffd\ufffd2\ufffd+\ufffdw\ufffd\ufffd\ufffd\ufffdp\ufffd\ufffd\ufffd6\ufffdyXa\ufffdTO\ufffd#\ufffd\ufffd
-U\ufffd�<\ufffd_)\ufffdI\ufffd(\ufffd\ufffd}\ufffd\ufffdW2S\ufffdX U\ufffd\ufffdw\ufffd\ufffd\ufffd\ufffd
M\ufffd\ufffdf\ufffd_T\ufffd)\ufffd\ufffd\ufffd\ufffd?k\ufffd\ufffdYYF\ufffd\ufffdK8\ufffd\ufffdu;J$\ufffd\ufffd�*1T\ufffd >,\ufffd\ufffd#h\ufffd%T\ufffd,\ufffdQ\u06e5{[\ufffd\ufffds\ufffd:\ufffd\ufffd9\U000c5f13\ufffd&^!\u0553\ufffda\ufffd\ufffd@\ufffd!\ufffd\ufffd"y \ufffd
-\ufffd\ufffd.\ufffd\ufffdJl6m\ufffdHj\ufffdu\ufffd,b\ufffdU6\ufffd+s\ufffd\ufffd\ufffdh\u0738d\ufffd-\u02a5\ufffd}\ufffdwi\ufffd \ufffd-s\ufffdun=0\ufffd\u013d\ufffdi-_\ufffd*)U\ufffd\ufffd_\u02c8\ufffd\ufffd\ufffd\ufffdb$\ufffd\ufffdna+;\u03e7T\ufffd;p\ufffdpA7\ufffd\ufffd\ufffd\ufffdC\ufffd4\ufffd\ufffd.*\ufffdI\u07e5\ufffda\ufffd8\ufffd\ufffdM\ufffd\ufffdm\ufffd.\ufffd\ufffd\ufffdACi\ufffd\ufffd\ufffd7\ufffd\j|fi\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u052b)\ufffd\ufffd]\u07ad\ufffdj\ufffd\ufffd\ufffd\ufffd\u0284\ufffd\ufffd\ufffdU\ufffd]\ufffd3(�\ufffd\ufffdwh\ufffdJ\ufffd\ufffdc\ufffdh-\ufffd4x7\ufffd\ufffd\ufffdh\u05ff*P0\ufffdH\ub40eL\ufffd\ufffd\ufffd\ufffd\ub787\u06a1u\ufffd\ufffd�\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd,\ufffd{\ufffdBz}\ufffd\ufffd8\ufffdv\ufffdg\ufffdg\ufffd\u04b2\ufffdd[\ufffd!XTZ\ufffdZ.\ufffd\ufffdvl\ufffdA\ufffd\ufffd\ufffdg\ufffd\ufffd
-{;S\ufffdm\ufffd`v\ufffd\ufffd\u063f`~\ufffd?g\ufffda.\ufffd
-3\ufffd�\ufffd{\ufffd\ufffd\ufffd\ufffdL\ufffd^\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdW\ufffd\ufffd\ufffd\ufffd\ufffdY\ufffde\ufffd4\ufffd\ufffd]\ufffdL\ufffd<pq\u07b4\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdk\ufffd\ufffd\ufffd!\ufffd\ufffdG\ufffd\ufffd]\ufffdl v\ufffd\ufffd\ufffd:DeH\ufffd\ufffdXq\ufffd\ufffdE\ufffd\ufffdK4kHoS|\ufffdX\ufffd\u05bdO\ufffd7\ufffd\ufffd\ufffd\ufffdo\ufffd\ufffd\ufffd*\ufffd*\ufffd+ \ufffd\ufffd\ufffd\ufffd2\ufffd\ufffd\ufffdh\ufffd`\ufffd\ufffd\ufffd?\ufffd\ufffd\ufffdk6\u0764g\ufffd\ufffd\ufffd,\ufffdM{ST3\ufffd\ufffd`\ufffdb5\ufffd\ufffdXE\ufffd#*\ufffd\u0456}\ufffdz\ufffd#C\ufffd//\ufffd\ufffd\ufffd\ufffd\ufffd7\ufffd\ufffd}\ufffd\ufffdV;\ufffd9\ufffdT\ufffd\ufffd)?\ufffd\u0788\ufffd\ufffd\ufffd2[\ufffd\u064f\ufffd]\ufffdn\ufffd$\ufffd~\ufffd\ufffd\ufffd\ufffdf\ufffd\u040c,\ufffdd\ufffd\ufffd\ufffdp,\ufffd\ufffdB\ufffdAdrH\ufffd\ufffd]`u\ufffd\ufffdP\ufffd\ufffdV\ufffdk\ufffdaEV\ufffdvYN\ufffd\ufffdU5/y\ufffdfD.\ufffd\u0761\ \ufffd1\ufffd\ufffd\ufffd\ufffdQ\ufffda#K\ufffd\ufffdE\ufffd:\ufffd|\ufffd\ufffdN[k\ufffd=\ufffd&[],\ufffd\ufffd\ufffd\ufffd1$\ufffd\ufffd\u03be\ufffdB\ufffd\ufffd\ufffd0Y\ufffd(\ufffd\u07caq$\ufffd\ufffd\ufffd]\ufffd!{Ik5\ufffdU\ufffd3\ufffdj\ufffd=Or\ufffd\ufffd\ufffd)\ufffd<V\ufffd\ufffd
A8H\ufffd\ufffd:YjD!\ufffd\ufffdL_\ufffd\ufffd|O\ufffd\ufffd\ufffd\ufffdl\ufffdxE{EY[\ufffd\ufffd9\ufffd\ufffd#Ev\ufffdx\ufffd\ufffd\ufffd2\ufffdE\ufffd\ufffdas=\ufffd[R\ufffd\ufffd\ufffdQ\ufffd\ufffdi\ufffd\ufffd*\ufffd\ufffdi\ufffd\ufffd\ufffd\ufffd66\ufffd`\ufffd\ufffd\ufffd\ufffd\ufffd\u03ce,\ufffd\ufffd+\ufffd#\ufffd,i\ufffd\ufffd1\ufffd\ufffd\ufffd\ufffdA2\ufffd\ufffd\ufffd @\ufffd\ufffd\ufffd\ufffd\ufffd
\ufffd\u01aa\ufffdW\ufffd\ufffd\ufffdm\ufffd\ufffd\ufffdH\ufffdXJ\ufffdNP\ufffd+\ufffd)\ufffd\u0327\ufffd+\ufffd\ufffd=l\ufffd\ufffd$\ufffdzU\ufffdkb\ufffd\ufffd]\ufffdi\ufffd\ufffd[:\ufffd\ufffd<\ufffd\u65f0\ufffd\ufffdA\ufffd\ufffdr)<\ufffd\ufffd \ufffd\ufffd\ufffd+e.\ufffd\ufffd
-\ufffd%\ufffd\ufffd\ufffd\u04c2\ufffdB\ufffds\ufffdW\ufffd\ufffd\ufffd\ufffd\ufffd\u010f[\ufffd\ufffd~\ufffd}F.+}W\ufffd\ufffd\ufffd\ufffdt\ufffd=\ufffd\ufffd
-\ufffd\ufffdK\ufffde&\ufffd\ufffd,\ufffd^\ufffd\ufffd-\ufffd\ufffdv\ufffda\ufffd(0\ufffd\ufffd\ufffd\ufffd\ufffdt\ufffdtz\ufffdS\ufffd\ufffd\ufffdw\ufffd0D\ufffd\ufffd6j\ufffd\ufffdtl\ufffd\ufffd.\\ufffdlV\u0564\ufffd\ufffd\ufffd\ufffd)\ufffd\ufffd-g\ufffd [\u046d\ufffd'\ufffd\ufffdx\ufffd|\ufffd|D\ufffdD\ufffd\u07f5\ufffd\ufffd\ufffd\ufffd\ufffdv\ufffd\ufffdwi\ufffd\ufffd\ufffd8\ufffd\u01b0=\ufffd\u074b\ufffdbY\ufffd\ufffd
-\ufffd\ufffd\ufffdTC7j\ufffdKI\ufffd\ufffd\ufffdX\ufffd7 \u043e\ufffd s\ufffd{\ufffd\ufffdW|}\ufffd\ufffd&\u9977MR\ufffd\ufffd\ufffd\ufffdQ\ufffd\ufffdrs\ufffd%5\u052f1\ufffdG\ufffd\ufffd\ufffd*=\ufffd\ufffdV\ufffdDM\ufffd \ufffd\u9da2l\ufffd\ufffd\ufffd`JY\ufffd\ufffd\ufffd\ufffdKe\ufffd\ufffd\ufffd\+\ufffd\ufffdkl\ufffd=\ufffd\ufffd\u05bc sr\u034c\ufffd
-\ufffd\ufffd\ufffd\ufffd_L\ufffd \ufffd\\ufffdE\u070b\u02ae\u0724H)\ufffdB\ufffd\ufffd\ufffd"\ufffdn\u0115)J\ufffd\u06d9\ufffd\ufffd3g\ufffd\ufffdY\ufffdi&M{&M\u0374I\ufffd\ufffdB+!%\ufffd\ufffd,O\ufffd\ufffd\ufffd=Y>7o\ufffd\ufffd\ufffd\ufffdk\ufffd\ufffd\ufffd\ufffd!w\ufffd\ufffd\ufffd\ufffdI\ufffd~\ufffd Ir\ufffda^=\ufffdC\ufffd#Z\ufffd\ufffdh\ufffd\ufffd`W\ufffdu}p\ufffd\ufffd\ufffd\ufffd)\ufffd\ufffd"\ufffdz\ufffd7ff&\ufffd3\ufffd\ufffd\ufffd\ufffd$\ufffd\ufffd\ufffdF\ufffd\ufffd\ufffd\ufffd\ufffdJ8\u04b65\ufffd\ufffd\ufffdm\ufffd
-u\ufffd\ufffdR\ufffd_,^V\ufffd\ufffdS&\ufffdaR\ufffd~Pf\ufffd\ufffdLL_Dw\ufffd\ufffd*\ufffd\ufffd`\\ufffd-\ufffd9]q\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdT\ufffdI\ufffd6)\ufffd>u6 D\ufffd`e\u0362/\ufffd\ufffd\ufffdxq\ufffdY%\ufffd9\ufffd\ufffd\u029c\ufffd;\ufffd�O\ufffd\ufffdd\\u02fe\ufffdP\ufffd&eR\ufffdz\ufffd\ufffd;\ufffd]\ufffd\ufffd\ufffd\ufffd.\ufffdR\ufffd<o\ufffd\ufffd\u03a1\ufffd]\ufffdP{?\ufffd:\ufffdr\u0328\\ufffd\ufffd\ufffd\u02bbb \ufffd\u04a4\ufffd3|\ufffd\ufffd\ufffd\ufffdm \ufffds\ufffd\u061f\ufffd\ufffd\ufffdW\ufffd9\ufffd\ufffd\ufffd\ufffdoZt]Rn\ufffd\ufffd�\\ufffdc\ufffdW\ufffd#+\ufffdn\ufffdI&\ufffdg\ufffd\ufffd\ufffd\ufffdy\ufffd\ufffdAjs\ufffdN\ufffd06\ufffdHiD\ufffd\ufffd\ufffd\ufffd'@\ufffd\ufffd\ufffd\ufffdJ+\ufffd\ufffda5V~\ufffdcR\ufffdI\ufffd\ufffd\u032b\ufffdvwtU\ufffd\ufffdc[3+?F|l(\ufffd\ufffdi\ufffd\ufffdU\ufffd\ufffd\ufffd\ufffd\ufffd^+O\ufffd?R\ufffd\ufffds\ufffd\ufffd\ufffd\ufffd\ufffd 1\ufffdHqil\ufffd\ufffd$W�h\ufffd\ufffd\ufffd\ufffd=\ufffd\ufffd\ufffd(\ufffdRE
-\ufffd\ufffd1\ufffdB\ufffd\ufffdv\u045f\ufffd\ufffdn\ufffd\ufffdF/\ufffd\ufffd
Bs\ufffdG\ufffd\ufffd\ufffd\ufffd\ufffdM\ufffdY\ufffd\ufffd\ufffd\ufffd9>\ufffd\u07163\ufffd\ufffd\u0217qI\ufffd\ufffd
\u06a3\ufffd\ufffd5\ufffd\ufffd\ufffd\ufffdV\ufffd\ufffd_\ufffd1\u0223\ufffd\u03b2\ufffd\ufffdi\ufffd\ufffdJiX\ufffd0\ufffdWV\ufffd\ufffd\ufffdH[8g\ufffd\ufffd _\ufffd/\ufffd\ufffd\ufffd
-n3\ufffd`\ufffd \ufffd\ufffd\ufffd38A.|\ufffdf|\u04580I\ufffd\ufffd6\ufffdb\ufffdv\ufffd%\ufffd&\ufffd ;Y\ufffd\ufffd\u3fdc\ufffd\u0484# \ufffdd\ufffd\ufffdD.)\ufffd\ufffd.p\ufffd'\ufffd\ufffd3\ufffdJ\ufffd12K[D\ufffdu\u0265$s8\ufffdI<\ufffdR\ufffdi\ufffdm\ufffdJ\ufffd\ufffd8\ufffd}\ufffd\ufffdf\ufffd\ufffd \ufffd\ufffd\ufffdDJ\ufffd\u0180\u0e83ws\ufffd!\ufffd\u02ab\ufffd\ufffd\ufffdr\ufffd\ufffdRX\ufffd\ufffd-\y^\ufffd*\ufffd\u030fLd'\ufffd\u96f29?)
"\ufffdq\ufffd\ufffd^\ufffd\ufffd5\ufffd/<4\ufffd\ufffdi
-\ufffd\ufffdQ<\ufffd\ufffd\ufffd\ufffd
-\ufffd\ufffd;/\ufffd\ufffd\u0531\ufffdJB"\ufffd\ufffd\ufffd7\ufffd\ufffdt\u035a\ufffd\ufffd,m\ufffd\ufffdXd\u06be^\ufffd;\ucd1e\ufffd\ufffd&s\ufffd`\ufffdY\ufffd"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdY\ufffd\ufffd\ufffd\ufffd\ufffd{>\u018a\ufffd.\ufffd\ufffd\ufffdz^48\ufffd\ufffde!\ufffd\ufffdR\ufffd6}\ufffd\ufffdvc\ufffd\ufffd\ufffd\ufffdMi\ufffdoz\ufffd\ufffd\ufffdo\ufffd0\ufffd'\ufffd=\ufffd~\ufffd\ufffd\ufffdi,3\ufffd:?-\ufffd\ufffd\ufffd?oS,\ufffd\ufffd\ufffd9\ufffd\ufffd\ufffdw\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd#\ufffd\ufffdR\ufffdOa\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd;\ufffd ?\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdp\ufffd\ufffdB\ufffd\ufffd\ufffd\ufffd
-\ufffd\u059eI\ufffd\ufffd\ufffd\ufffdO\ufffd\u075f\ufffde#}\u052f\ufffdN$\ufffd\\ufffdl?\ufffd]\ufffd,\ufffd\ufffd\ufffd\ufffdy,\ufffd\ufffd>&\u0420\ufffd\ufffd\ufffd\ufffdq]\ufffdyh\ufffd0Aq\ufffd\ufffdK)\u011dB\ufffdF\ufffd\ufffd\u048dcH:\ufffd\ufffd-h-\ufffd\u01dfc\ufffd\ufffd\ufffdf)\ufffdK9T\ufffd\ufffd127]\ufffd\ufffd\ufffd\ufffdq\ufffd\ufffdEjL\ufffd\ufffd\ufffd<>h\ufffd\ufffd;\ufffd|\ufffdU
-\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdd\ufffdp\ufffdG
-\u01ab\ufffd`\ufffd&!\ufffd\ufffd\ufffd8a\ufffd\ufffdl\ufffd\ufffd\ufffd`83>\ufffd.\ufffd\ufffdq\ufffd\ufffd\u0242\ufffdn\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdA\ufffd9
-;\ufffd\uf821\ufffd\ufffd\ufffd`\ufffd\ufffdH\ufffd\ufffdB\ufffdy\ufffdg\ufffd\ufffd\ufffdKB\ufffd\ufffd\ufffd*k\ufffd\u3c172fF\ufffd=#\ufffd\ufffdOM\ufffd\ufffd \ufffdeT?
-m\ufffd\ufffdTm\ufffd\ufffd\ufffd_\ufffd\ufffd\ufffd\ufffdOB\u06caV \ufffd\ufffd<\u0246F('\ufffdn3u\ufffdG~\ufffd\u022e#\ufffd7\u040a\ufffd9\ufffd\ufffd[\ufffd\ufffd\u0661`N\ufffds\ufffd.\ufffdP..\ucf64'Knp\ufffd\ufffdF\ufffd\ufffd\\ufffd?
\ufffdB>\ufffd\ufffd\ufffd-\ufffd\ufffd\ufffd\ufffd`\ufffd\ufffd\ufffd\ufffdN\ufffd\ufffdW\ufffdO\ufffdOW\ufffdB\ufffd\ufffd\ufffdl\ufffdf\ufffd\ufffdx\ufffd\ufffdW\ufffd^\ufffd<x==\ufffd\ufffd\ufffdZ/~\ufffd4/\ufffd.*g�\ufffdP\u02b2\ufffd<*V-}&\ufffd\ufffd\ufffd\u065f\ufffdw\ufffdz\ufffd\ufffdWq=g?:\ufffd\ufffd;[\ufffd\ufffd\ufffd-\ufffd(\ufffdZ6*<\ufffd\u0208\ufffd\ufffd`p?\ufffd\ufffd\ufffd2\ufffd\ufffd\ufffdeQ\ufffdy\u045e>\ufffdb\ufffd\ufffd\ufffd-_\ufffdx&*/\ufffd\ufffd(\ufffdj\ufffd\ufffd\ufffd\ufffd_\ufffd=\u07c6\U000d12a2\ufffdzF\ufffd\ufffd\ufffd`\ufffdLd\ufffd\ufffdE:\ufffd\ufffd\ufffdSN\ufffd\ufffd\u0294@S\ufffd 0\ufffd\ufffd\ufffd3\ufffd|T\ufffdO\ufffdKo\ufffdk\ufffd\ufffdt\ufffd\ufffdo}bF\ufffd\ufffd\ufffdz$4\ufffd\ufffd\ufffd-\ufffd\ufffd\ufffd,\ufffd.m\ufffd\ufffd'j*J\ufffd\ufffd\ufffd|)J\ufffd6\ufffdB\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdP^\ufffd3ew\u072bpX\ufffd\ufffd\ufffd.\ufffd\ufffd*\ufffd\ufffd,0\ufffd\ufffd7xP\ufffd\u06b3\ufffd:2\ufffdX\ufffdOT\ufffd21|"7\ufffd\ufffd=<J}|\ufffdwl\\ufffd\ufffd}vGic\ufffd\ufffdQ\ufffd\ufffd\ufffd\ufffdS\ufffd]\ufffd<\ufffdC\ufffdj\u0239* @8\ufffd-f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0742={�(
\ufffd\ufffd\ufffd\ufffd]\ufffdx\ufffd\u0468\ufffdn\ufffd\ufffd\ufffd?\ufffd\u03d1]\ufffdq\ufffdO\ufffd\ufffd\u02cf\ufffdExyU\ufffd\ufffd\ufffdc\ufffd0\ufffd\ufffdt\ufffdM\ufffd]\ufffd\ufffdu3\ufffd\ufffd\ufffdj \ufffdo)(Co\ufffd\ufffd~2\ufffds\ufffd
l\ufffd\ufffd\ufffd\ufffd\ufffdx\ufffd\ufffd\u0599\ufffd\ufffd
\ufffd{\ufffd\ufffdL\ufffd7z<\ufffd\ufffd"\ufffd!s\ufffd\ufffd\ufffd[\ufffd\ufffdH\ufffd\ufffda\ufffd\ufffd\ufffd\ufffd*\ufffd{\ufffd\ufffd\ufffd1\ufffd\ufffdl\ufffd\ufffd1\ufffd\ufffd,V\ufffd\ufffd&I*[\ufffdv\ufffd$\ufffd#1/\ufffd\ufffd 5\ufffdZ\ufffd\ufffd\ufffdp(3\ufffd\ufffd]\ufffd8\ufffd\ufffdi2|(\ufffd2\ufffd| z\ufffdD \ufffd\ufffd5 N\ufffds\u05ac\uf13f\ufffd\ufffd\ufffd\ufffdviV\ufffd`D\ufffd0�\ufffd\ufffd\ufffd]\ufffd\ufffd\ufffdR)L\ufffd!'n\ufffd\ufffd"\ufffd <v~\ufffdx\ufffd\ufffd)\ufffd~\ufffdif\ufffd\ufffd
-wnK\ufffd\u0711QV\ufffdB\ufffd"\ufffd\ufffd\ufffd\ufffd\ufffd\u053dp\ufffd\ufffd *\ufffd+\u062a\ufffdED\ufffd\ufffd\ufffd*\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd(\ufffd\ufffd\ufffdo B\ufffd'{p\ufffd\ufffd\ufffdwH\u0606\u02b4*J\u046amA-n\ufffd\ufffdWjGE\ufffd\ufffd\ufffd\u07af\ufffdy~\ufffd~?r\ufffdI^WO\ufffd\ufffd@\ufffd\ufffd\ufffd\ufffd\ufffdl)\ufffd\ufffd\u01b6\ufffdW\ufffd\ufffdgiX\ufffd\ufffd\ufffd"\ufffdC\ufffd#\ufffdk\ufffd\ufffdnA\ufffd\ufffd\ufffd\ufffd\u02fb\ufffdr\ufffd\ufffd\ufffd)b\ufffd!\ufffdU\ufffd\u06b2I\ufffd\ufffd\ufffdb=\ufffd\ufffd>\ufffd0\ufffd\u07f4\ufffd\ufffd\ufffdy}\u0138B)H\ufffd[\ufffd\ufffd\ufffd\ufffd\ufffdFs\ufffd\ufffd\ufffdV\ufffd+\ufffd\ufffd\ufffd\u032f+Y(I\ufffd\ufffd\ufffd(\ufffd\ufffd\ufffd\ufffdx&\ufffd\ufffd9JAI\ufffd\ufffd\ufffd'tXm\ufffdy\ufffdG\ufffd=\ufffdX[8\ufffdTK\ufffd)\ufffd2\ufffd<\ufffdTSR\ufffdv\ufffdx\ufffd\ufffdl\u0213GO\ufffd|\ufffdg\ufffd/\ufffd{\ufffd>\ufffd\ufffd\ufffd4\ufffd\ufffd/\ufffdg\ufffdR\ufffd\ufffdF\ufffd\u0236\ufffd\ufffd&\ufffdA\ufffd5\ufffd\ufffd\ufffd2\ufffdu\u042f*B<\ufffdi\ufffd\ufffd \ufffd0\ufffdg\ufffdr+O\ufffd\ufffdA\ufffd\ufffd,0\ufffd\ufffd\ufffd-\ufffdb\ufffdu\ufffdg[\ufffd\~\ufffd-\ufffd\ufffd\ufffd\ufffd4:I>\u5e43A\ufffd\ufffduF\ufffd\u01de\u0467\ufffd\ufffdu\ufffdD\ufffd\ufffd\ufffd)B\ufffd,\ufffd*\ufffd?n\ufffd` 'qQIz\ufffd\ufffd\ufffdK\u0597\ufffd4\ufffd{\ufffd\ufffdB_g\ufffd6\ufffd8\ufffd#\ufffd\u02892.A\ufffd$69\ufffd!\ufffd\u0312\ufffdub1&D\ufffd3Q\ufffdx\ufffd\ufffd"\ufffd>\u024fn\ufffd\ufffd\u03bdx\ufffdVG\ufffd&\ufffd\ufffdT\u06e8\ufffd\ufffd\ufffd\ufffd�)\ufffdsx\ufffdd-5\ufffd\ufffdKx\ufffd\ufffd\ufffd\ufffd\ufffd\u07e3D&\ufffd\ufffd1\ufffd\ufffd\ufffd�\ufffd\ufffd\ufffdj\ufffdd\ufffd\ufffdG
jJ\ufffd\ufffd|\ufffdJ\ufffd\ufffd{\ufffd\ufffdZ\ufffd\ufffd\ufffd\u07b2\ufffdf6\ufffd/vT\ufffdp\u0304ub\ufffd\ufffd
\ufffd\ufffdP\ufffd\ufffdmBU#g\ufffd\ufffd\ufffdB\ufffdg\u02f7\ufffd)\ufffd\ufffd-*\ufffdE
-ar\ufffd\ufffd\ufffd>\ufffd>\u01b5rn\ufffd[\u026d\ufffdF \ufffd-I\ufffd\ufffd\ufffdBy\u0478P\ufffd=\ufffd\ufffd\u0136K\ufffdUC
w\ufffd\ufffdG\ufffdD\ufffd\ufffd}\ufffd\ufffd\ufffd\ufffd\ufffd"\ufffd\ufffdvN\ufffd\ufffd.p\ufffd]\ufffd]Q\ufffd\ufffd8u\ufffdY\ufffd\ufffd{\ufffd#q\ufffd\ufffdC\ufffd\ufffdv}sa\ufffd\ufffd\ufffdx_o\ufffd\ufffdy\ufffdiN\ufffdr\ufffd\ufffd\ufffd\ufffd\ufffd(\ufffd
d8a\ufffdw\ufffd2C\ufffdQ\ufffd}V\ufffd8\ufffdUWO\\ufffdg\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\\ufffd\ufffd\ufffd\ufffd\ufffdyk\ufffd@\ufffd\ufffdd\ufffd\ufffd\ufffdc\ufffd\ufffdZ\ufffdt\ufffd\ufffd\ufffd9$\ufffd\ufffdu
-p\ufffd\ufffd-\ufffd\ufffd\ufffd1\ufffd\ufffd\ufffdz(\ufffd=\ufffdf)
-\ufffdv\ufffd\ufffd\ufffd\u011b9\ufffd\ufffd\ufffd\ufffd2\ufffd w u\ufffd\ufffd\u717c\ufffd\ufffd\u05ea\ufffd\ufffd#\ufffd\ufffd\ufffd\ufffd{P6\ufffd+D\ufffd\ufffdq3HIi\ufffd\ufffd\ufffd\ufffd%\ufffd\ufffdB\ufffdC\ufffd\ufffdb\ufffd!\ufffd\ufffd\ufffdkc5\ufffd&U ):X\ufffd$\u070e\ufffd\ufffd\ufffd[\ufffd\ufffdb\ufffd2\ufffd*@\ufffdPkc\u04d8\ufffdd\ufffdoT\ufffdB_L1Uwi"\ufffd)\ufffd\ufffd=\ufffd2#\ufffd\ufffd\ufffdpI9,\ufffdR\ufffdO>\ufffdT@>\ufffd;\ufffdbn\ufffd\ufffd\ufffd\ufffd\ufffdD\ufffd\ufffdPuC\ufffd\ufffd\ufffd\ufffdfk\ufffd\ufffd\ufffd^\ufffd^\ufffd\ufffd\\ufffd\ufffdG~\ufffd
\ufffd\ufffdo\ufffdL\ufffdRc\ufffdHq\u072e=-8^5O\u0144\ufffdy*9\ufffd\ufffd:-\\ufffdg8:T<\ufffd\ufffd?*\ufffd\ufffd\ufffd\ufffdC;\ufffd\ufffd[\ufffd\ufffd\ufffdy\ufffdX\ufffd\ufffd\ufffd+\ufffd\ufffd\ufffd\ufffdI\ufffd;\ufffd\ufffdlRL\u07ed\ufffd$D\ufffd\ufffdvY\ufffdTQ6\ufffdDy\ufffd\ufffdVm\ufffd\ufffdfy%/sIs\ufffd\ufffdmXP1\ufffdL\u057c\u022d\ufffd\ufffd\ufffd\ufffdvow)\ufffdQB\ufffdb\ufffd\ufffd\ufffd\ufffd_ L\ufffdV\ufffdwu\ufffdp\ufffd\ufffd\ufffd\ufffde\u0117\ufffd\ufffd\ufffdO*\ufffd\ufffd|\ufffd+\ufffd]\ufffd(uH\ufffd\u05f04\ufffdW\ufffdU\ufffd\ufffd.\ufffd{ \ufffd4\ufffd\\ufffdm.Q\ufffd\ufffdw\ufffd\ufffd\ufffd\ufffd\ufffdR~MAi\ufffd\ufffd\ufffdRz+%\ufffdB\ufffd\ufffd\ufffd\ufffdK\ufffd\ufffdz\ufffd?'\ufffd{ \ufffd\ufffd \ufffd\ufffdk\ufffd\u0489\ufffda\ufffd\ufffda\ufffd{\ufffd\ufffd\ufffdH]\ufffd\ufffdsX}d\ufffd\ufffd\ufffd\ufffda~\ufffd3\ufffd\ufffd_\ufffdau\ufffd\ufffd\ufffdQz\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdVM\\u0135v5I0\ufffdL\ufffdM\ufffd)\ufffd\u01c4\ufffdp\ufffd\ufffd\ufffd1\ufffd\ufffd:5\ufffd
\ufffd,\ufffd&\ufffd\ufffd\ufffd\ufffd4\ufffd\ufffd%\ufffd\ufffd\ufffd!$}o\ufffd\ufffd\ufffdc\ufffd\ufffd\u07a4\ufffdA\ufffd]R^x\ufffd\ufffd\ufffdT\u25ecM&/B\ufffd:D\ufffdwA\ufffd\ufffd2\ufffd4\ufffd\ufffd\ufffd\ufffd\ufffd?\ufffdc\ufffdd&g]5\ufffdb\ufffd\ufffd\ufffd4\ufffd\ufffd\ufffda?\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdi\ufffd\u01d0\ufffd\ufffd \ufffd\ufffd\u0108\ufffd\ufffd.OA
6\ufffdvfv\ufffds\ufffdd\ufffd\ufffd(5yT\ufffd\ufffdH\ufffd\ufffd\ufffd/P\ufffd\ufffd=\ufffd(\ufffda\ufffd\ufffd;zUs\ufffd\ufffdb\ufffdW\ufffd\ufffdx\ufffdDa\ufffd)E\ufffd\u02bc\ufffd $\ufffdsg\ufffdPJ\ufffdr\ufffde\ufffdY\ufffd3 \ufffdw\ufffd\ufffd`\ufffdc\ufffd\ufffdF\ufffdo\ufffd0|U[j5k\ufffd\ufffd.\ufffd5\ufffdJ\ufffd\ufffd&\ufffd\ufffd\ufffd\ufffd\ufffde\ufffdT\ufffd\ufffdo\ufffdr \ufffd\ufffdÈ´\ufffd\ufffd}I l\ufffdp\ufffdjC\ufffd\ufffd\ufffd8c\ufffd\ufffd\ufffd5\ufffdJ=g\ufffd%U\ufffd\ufffdo\ufffd|L5\ufffd\ufffd8E"
-\u0650\ufffd\ufffd\ufffd[Ak]\ufffd\ufffd\ufffd\ufffd\ufffdJ\ufffd\ufffd\u0346\ufffdVB\ufffdM\ufffd"{\ufffdN\ufffdr\ufffd\ufffd\ufffd\ufffd\ufffdQ\ufffd\ufffd\ufffdih \u0426@\ufffdY?\ufffd\ufffd6\ufffd\ufffd^\u07ebZW\u066f\ufffd]\u0630\ufffd\ufffd\ufffdc\u060bh\ufffdKS\u01c8:>\ufffdO
\u0272\ufffd\ufffd\ufffd.\ufffd\ufffd\ufffd\u0770\ufffd\ufffdQ\ufffd{5mm<\u0677?^\ufffdv"\ufffd\ufffd}\ufffd\u044aw\ufffd\ufffd9\ufffd\ufffdO\ufffd\ufffd&\ufffdv\ufffd\ufffdX\ufffd7\ufffdkm[ \ufffd,70n\u03927|\ufffd\ufffde\ufffd\ufffdP\ufffd\ufffd\I;<\ufffd\ufffdu\ufffd^`u\ufffd!\ufffd\ufffd$P\ufffd\ufffd\ufffd\ufffdB
-ET9\ufffd\ufffd\u0672F\ufffd\ufffdW\ufffd\ufffdc\ufffd\ufffd\ufffd\ufffdm$\ufffd\ufffd="G
-}K\ufffde\ufffd\ufffd6\ufffd~\u0594G_\ufffd\ufffd\ufffdM\ufffdD\u053f\ufffds`\ufffd g\ufffd]\ufffdv\ufffdp-9\ufffd\N\ufffdd{:\ufffd:\ufffdgv\ufffdH\ufffd_3fC;}\ufffd\u0193 P\ufffd\ufffd \ufffdN\ufffd\ufffd\ufffdp\ufffdH\ufffd\ufffd\ufffdd\ufffdU9u\ufffd;\ufffd\ufffd\ufffd9$8w\ufffd\ufffd\ufffd\ufffd\ufffd3\ufffdr\ufffd#\ufffdA\ufffdF\ufffdiD1\ufffdn\ufffd\ufffd\ufffd\ufffd\ufffd-}\ufffd\ufffdt\ufffde\ufffd \ufffd\ufffd\ufffdD\ufffd\ufffdH\ufffd!5$\ufffd\ufffd,I\ufffdQ:\ufffd\u0216R\ufffd\ufffd\ufffd1\ufffd3\ufffd\ufffd<\ufffd7\ufffd\ufffd\ufffdj\ufffd1\ufffd[\ufffd\u040aT\ufffd\ufffdm\ufffd\ufffd\ufffdWwzU\ufffdx\ufffd\ufffd|\ufffd\ufffd\ufffd\ufffd\u057e+\u0584{\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdW\ufffd\ufffd>\ufffd\ufffdp\ufffd\ufffd\ufffd:\u02a4\ufffdJRqY\ufffd\ufffd\ufffd^\ufffd\ufffd\ufffd`\u01ef\ufffd<\ufffd~\ufffdj\ufffd\ufffd!m\ufffdr.\ufffdB\ufffd+\ufffd\ufffd'\ufffd\ufffd\ufffdOyY+\ufffd\ufffdfN*\u017ct
\ufffdW\ufffd$\ufffd\ufffdW\\ufffd2\ufffd\ufffd\ufffd \ufffdM_\ufffdc[\ufffdg\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdjj\ufffd%WuU{{\ufffd,_\ufffd\ufffdp\ufffdW\ufffd\ufffdn%}P\ufffdI^\ufffdW\ufffd|n�;c!\ufffdp\ufffd\ufffd\ufffdu\ufffdc\u02a8\ufffdN!k#\ufffd\ufffd\ufffd)k\ufffd\ufffdsd\ufffd\ufffd5n\ufffd�\ufffd6Q{H10\ufffd\ufffd\ufffdU\ufffd
-\ufffd\ufffd\ufffd-\ufffd"{\u2807TZG \ufffdR\ufffd,\ufffd\ufffd\u0247j\u08f6Zw8j ICF\ufffd\ufffd\ufffd:\ufffdb[ \ufffd\+\ufffd?\ufffd
-\ufffd\ufffd\ufffdoA
n'a
-
-\ufffd\ufffdO\ufffdj0\ufffd\ufffd\ufffd`\ufffd%\ufffd\ufffd|\ufffd^\ufffd/si\ufffd_\ufffdX\u01e3\ufffdLqi\ufffdw]\ufffdI\ufffd\u03ad\ufffdD"J\ufffd\ufffd\ufffd!y\ufffd!\ufffd\u0536\ufffdn\ufffd\ufffd0\ufffdR\ufffd z\ufffdWC\ufffd\ufffdc\ufffdc\ufffdh\ufffd\ufffd\ufffd\u016bK\ufffd_R
[\ufffd\ufffd*)!
OSo\ufffd\ufffdu\ufffd\ufffd\ufffdO\u0577\ufffd\u070cW\ufffd\ufffd\ufffdze\ufffdW\ufffdC\ufffd\ufffd\ufffda\ufffd\ufffd\ufffd\ufffd\ufffd\u03dd\ufffdL\ufffd\ufffd\ufffd/\ufffdQB\ufffdo\ufffd_\ufffd\ufffdk\ufffd/cg\ufffd\ufffd\ufffd&MV?\ufffd\ufffd\u05ab5z\ufffd\ufffd !g\ufffd\ufffd\ufffd\ufffd"?w\ufffd\ufffdP\u035a\ufffdI\ufffdQ"\ufffd\ufffd\ufffd\ufffdP\ufffdAdtE)q4\ufffd\ufffdj\ufffd\ufffd\ufffdG\ufffds\ufffd\ufffd\ufffdn\ufffd{"\ufffd\ufffd\ufffd\ufffd}e\ufffd\ufffdUM\ufffdrk\ufffd\ufffdzvi89C}\ufffd\ufffd\ufffdX\ufffdLB1W\ufffd".\ua55d^M\ufffd\ufffd\ufffd\ufffd\ufffdt?WK\ufffdL\ufffdw\ufffdDP]t\ufffdU\ufffd\u63ca1r\ufffdJ\ufffd\ufffd\ufffd\u0578K\ufffd\ufffdV\ufffd\ufffd\ufffd\ufffdGM;ph\ufffd\u0577m\ufffd \ufffdv>\ufffd\ufffd-wg\ufffd\ufffd\ufffd\ufffdFN\ufffd\ufffd\ufffdcI\ufffdP\ufffd#q\ufffd\ufffdW\ufffd\ufffd\ufffd\ufffd\ufffdI\ufffd\ufffd;\ufffdN\ufffd\u0676\ufffd\ufffdA\ufffd)\ufffd\ufffd\ufffdH~\ufffd7i\ufffd t\ufffdhl\ufffd~\ufffd\ufffd~\u01f3\ufffdY\ufffd
C\ufffd\ufffd\ufffd\ufffdx\ufffd2>*c&\ufffdm\ufffdb\ufffd\ufffd\ufffd\ufffd{9f\ufffd1X*\ufffdL\ufffd\ufffd \ufffd#>\ufffd\ufffd\ufffd
-
V@\ufffd\ufffd\ufffdg\u84bc]7n249=M\ufffd\ufffd\ufffd\ufffdK%
\ufffd;\ufffd\ufffd,\ufffd\ufffd\ufffd\ufffdF\ufffd\j\ufffd\ufffd1\ufffd\ufffdkl\ufffdZ\ufffdi\ufffd\ufffd\ufffd\u060a\ufffd\ufffd\ufffd\ufffd\ufffd\u0390\ufffd.|Q\ufffd\ufffd9\ufffd\ufffd\u0430\ufffd$_.!\ufffd\ufffd;\ufffd\u033f\ufffdl\ufffd\ufffd\ufffdE\ufffd,\ufffd\ufffd\ufffd\ufffd\u0265Di\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd}D\ufffd\ufffd3^\ufffda`Y5\ufffdg{J=m\ufffd\ufffd\u0273\ufffd\ufffd\ufffdy\ufffd3\ufffd\ufffd\ufffdC\ufffdM'\ufffdjM\ufffd-i\ufffd\u0426\ufffdm\ufffd\ufffd\ufffdn5? \ufffdSJ\ufffdE+U~ \ufffd;\ufffd\ufffd\ufffd\ufffdq.t\ufffdXd\ufffd\ufffd\ufffd~\ufffd\ufffd\ufffd~p*Q\ufffdeS\ufffd\ufffd%\ufffd.\ufffd\ufffd\u040b\ufffd"\u01b0\ufffd\ufffdBs\ufffd\ufffd\ufffdZ\ufffd6-\ufffd\ufffd\ufffd\ufffd\ufffd6[\d;\ufffd^z4\ufffd`;64\u85f8\ufffd\ufffd\ufffd\ufffd\u0371w\ufffd\ufffd\ufffd;\ufffd\ufffd\ufffd\ufffd|\ufffd+&\ufffdA\ufffdf\ufffdLU\ufffd3\ufffd\ufffd\ufffdX\ufffdT\ufffd\ufffdm\ufffd\ufffd\ufffd)l\ufffdF\ufffd'l
\ufffdV\ufffd\ufffd\u027a\ufffdgcG\ufffdOb\ufffdb\u025c9\ufffd;v\\ufffdC\ufffd\ufffdL,\ufffd>B?\ufffdKGC\ufffd\ufffde"\ufffdz-@\ufffd\ufffdE\ufffd\ufffd\ufffd\ufffd\ufffdH\ufffd\ufffd\ufffd</\ufffds\ufffd=/\ufffd\u144dY\ufffd\ufffd\ufffd{\ufffd\ufffdP\ufffd\ufffdw\L\ufffd1A\ufffd|U{\ufffd_\ufffd \ufffd\ufffd\ufffd"\u0489w\ufffd+Gm\ufffd
\ufffd$\ufffd#\ufffdn\ufffd\ufffdo\ufffd\ufffd\ufffdx\ufffd\ufffdN\ufffd\ufffd\ufffd\ufffd+\ufffd\ufffd\ufffd}M\ufffd9\ufffdMb\u03a5\ufffd_@T\u0732\ufffd'1 \ufffd,\ufffdq\ufffd\ufffd$;\ufffd\ufffd!\ufffd\ud5c1h1kb\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdBo
-\ufffd\\ufffd\ufffdw\ufffdJ\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffduY/|\u03d5d<w\ufffd\ufffd\u03a4c\ufffd~\u03ce\ufffd\ufffd\ufffd\ufffd\ufffdx\ufffd�\ufffd#d\ufffd\ufffdg3\ufffd\ufffd\ufffd\ufffd\ufffd~\ufffd\ufffd\ufffd\ufffdg\ufffd�\ufffd xT2\ufffd\ufffd\u0235\ufffd\ufffd6s3\ufffdi75\ufffd\ufffd\u01bb\ufffdZ\ufffdE\1\ufffd\\ufffd\u027a\ufffdW\ufffdA' \u05f2\ufffd\ufffd M }?;\u0282\ufffd8|R\ufffd0S\ufffd#\u2763\ufffd \ufffd\ufffdC\u06ffU\ufffd\ufffdb0\ufffd\ufffd\ufffdL7\u05bd`\ufffd\ufffd\ufffdhcEk\ufffdT\\ufffdm\ufffd+ 6\ufffd&\ufffd=\ufffd\ufffd\ufffd\ufffdB\ufffd9)\ufffd \ufffd\uaccc\ufffd\ufffd\ufffd\ufffd
\\ufffd@\ufffd^jk\ufffd\ufffda\ufffd\u019a\ufffd\ufffdPh\ufffd<\ufffd\ufffd=T\ufffd\ufffd6\ufffdK^MK\ufffd\u034b=\ufffd\u074a\ufffd$\ufffdQ\ufffd\ufffd\ufffd\ufffd-\ufffdU\ufffd&\ufffd>ILp<\ufffd5\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'\ufffd\ufffd\u0489\ufffd\ufffd\ufffd\ufffd\ufffd$>\ufffd\ufffd8#\ufffdg\ufffdL\ufffd2\ufffdm\ufffd \ufffd\ufffdc\ufffd\ufffd\ufffd\ufffd\ufffd1
\ufffd\ufffdc\ufffd\ufffd\ufffdF\ufffdw)\ufffdP\ufffd\ufffd+\ufffdr\ufffdkC
q\ufffdp/\ufffd\ufffdu8#\ufffd!\ufffd*g\ufffd\ufffd�\ufffdPa\ufffd`v\ufffdu\ufffd\ufffd@\ufffd\ufffdo\ufffdH\ufffd`"\u017d\ufffd\ufffd:\ufffdz\ufffd\ufffd\ufffd_\ufffd\ufffdQ<,D\ufffd>'\u04c5\ufffd\ufffdWP\ufffd\ufffd\ufffd .\ufffd\ufffd\ufffd\ufffd`\ufffdx\ufffdW\ufffd\ufffd3\ufffd|!6\ufffd\ufffd \ufffd
-\ufffd5\ufffd\ufffd\ufffdEl\ufffd["\ufffd,0\ufffd e\ufffd\ufffd\ufffd[Oz\ufffd\ufffd0~l\ufffdU\ufffdO\ufffd\ufffd+\ufffd\ufffd\ufffd\ufffd&x\ufffd\ufffdkP\ufffd\ufffdc|u\ufffd\ufffd$k\ufffd.\ufffd?\ufffd{Qp""k\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdr\ufffd6\ufffd\ufffdisV\ufffda\ufffd\ufffd\ufffd=~\ufffd@\ufffdW\ufffd_\ufffd
-.<\ufffd7\ufffd
-\ufffd\ufffd2\ufffd#h?c~\ufffdm'r\ufffd\ufffdE\ufffd_\ufffdxs\ufffd\ufffd6\ufffd\ufffd\ufffd\ufffda\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdG\ufffd+\ufffd\ufffd\ufffdK1\ufffd\ufffd4\ufffd\ufffd\ufffdL^kUp\ufffd^^\ufffd\ufffd_\ufffd\ufffd m\ufffdS^d\ufffd\u0428\ufffd\ufffd\ufffd'\ufffd\ufffd\ufffd\ufffd>\ufffd\ufffd\ufffd}\ufffd\ufffd5\ufffd\ufffd\ufffd\ufffd\ufffd$:\u03c4!E\ufffd\ufffd[\ufffdb\ufffdJx&\ufffdn\ufffd t\ufffd(\ufffd\ufffdm\ufffd;Z\ufffd\ufffds\ufffdF5u\ufffdq \ufffdX\ufffd.\ufffd\u0542\ufffdBqKP\ufffd\ufffd\ufffd *\ufffd\ufffd\ufffd\ufffd\ufffdl\ufffd\ufffd\ufffd%{\ufffd\u0653{\ufffd'\ufffd\ufffdf';\ufffd,TT,\ufffdb\ufffd\ufffd\ufffdh\ufffdUq\ufffd2Z\ufffd\ufffd\ufffd3\ufffd\ufffd\ufffd;\ufffd}\ufffd\ufffd\ufffd\ufffd\ufffdT9\ufffdvw\ufffd\ufffdR\ufffdR;GD\ufffd
-K\ufffd*\ufffd\ufffd/@hUv\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd$\ufffdj\ufffd!\ufffd@\ufffd
\ufffdvy\u05d1m\ufffd\ufffd\ufffd,W\ufffd|-\u0362 \ufffd^\ufffd
\ufffd~\ufffdD\ufffd_\ufffd\ufffd\U00106b4d\ufffd"\ufffd\ufffd\u0109\ufffd\ufffd\ufffd\ufffd#c\ufffd\u7998\ufffd*\ufffdX/\ufffd\ufffd\u03dc\ufffde>\ufffd|\ufffdXH\ufffd\ufffd;\ufffd:\ufffd\ufffd)\ufffd\ufffd\ufffdd9g\u0196\ufffd4\ufffdaB\ufffd\ufffd\ufffd\ufffdQ4 \ufffdE\ufffd \ufffdw\ufffd,C
-\u06efB\ufffdU\ufffd#\ufffd>\ufffdSV\ufffd$L\ufffd-\ufffd\ufffd5g\ufffdV \u03ef*\ufffdB\ufffd\ufffd\ufffd\ufffd#\ufffd\ufffd}\ufffdnp\ufffd�\ufffdtd\ufffd\ufffd\ufffd\ufffd\ufffdU\ufffd$D\ufffdb&$^\ufffd\^\ufffd&Z"/\u02fa+\ufffd-}\ufffd\ufffd%\ufffdZ\ufffd\ufffd\ufffd:}\ufffd\ufffd9\ufffd\ufffd\ufffdA\ufffd\ufffdYu\ufffd\ufffd \ufffd\ufffdrT\ufffdlP0\ufffd"\ufffd\ufffd\ufffd~! \ufffd\u035a*@5K\ufffd?\ufffd\u07ebZ\ufffd-\ufffdP\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd=j\ufffd>\ufffd\ufffd\u0708\ufffd[\ufffd\ufffdO?)\ufffda5\ufffd
-\ufffd\ufffd\ufffd\ufffd\ufffd?\ufffd\ufffdW\ufffd\ufffd\ufffdUs\ufffd\ufffd\ufffd\ufffdy\ufffd5^(ge\ufffd${C\ufffd\ufffd\ufffd\ufffdm>\ufffd "\ufffd\ufffd\ufffdG\ufffd\u0563+\ufffd$\ufffd\u8e3f\ufffd\ufffd\u03eb&\ufffd\ufffd
Xw\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd8?\ufffd\ufffdg\ufffd\ufffd,'\u014d\ufffd=\ufffd"\ufffd\ufffd\ufffd\ufffd/x\ufffd\ufffd\ufffd\ufffdN\ufffd\ufffd\ufffd\ufffdM)\ufffd\ufffd\ufffd'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdEF\ufffd\ufffdq\ufffdrf\ufffd
C\u012fQ9ZY\ufffd$r!\ufffd\ufffd\ufffd6m<YZ\u0421.\ufffd<\ufffd\ufffdV^\ufffdz{U\ufffdS=\ufffdP
-k\ufffdX%3\ufffdx\ufffd\ufffdfj\ufffd\ufffdn%^\ufffd\ufffd\ufffd\ufffd\ufffdi\U00034d7b\ufffd\ufffd\ufffds\ufffd\ufffd\ufffd3\ufffd0\ufffd\ufffd\ufffdq\ufffdh\ufffd$\ufffd\ufffd`k\u072f\ufffdD&