motion-firebase 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +2 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +28 -0
  5. data/README.md +511 -0
  6. data/Rakefile +11 -0
  7. data/app/app_delegate.rb +156 -0
  8. data/lib/firebase/firebase.rb +242 -0
  9. data/lib/firebase/firebase_auth_client.rb +49 -0
  10. data/lib/firebase/version.rb +5 -0
  11. data/lib/motion-firebase-auth.rb +19 -0
  12. data/lib/motion-firebase-facebook.rb +17 -0
  13. data/lib/motion-firebase.rb +19 -0
  14. data/lib/vendor/FacebookSDK.framework/FacebookSDK +0 -0
  15. data/lib/vendor/FacebookSDK.framework/Headers/FBAccessTokenData.h +115 -0
  16. data/lib/vendor/FacebookSDK.framework/Headers/FBCacheDescriptor.h +42 -0
  17. data/lib/vendor/FacebookSDK.framework/Headers/FBError.h +274 -0
  18. data/lib/vendor/FacebookSDK.framework/Headers/FBFrictionlessRecipientCache.h +86 -0
  19. data/lib/vendor/FacebookSDK.framework/Headers/FBFriendPickerViewController.h +290 -0
  20. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphLocation.h +77 -0
  21. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphObject.h +224 -0
  22. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphPlace.h +60 -0
  23. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphUser.h +90 -0
  24. data/lib/vendor/FacebookSDK.framework/Headers/FBInsights.h +271 -0
  25. data/lib/vendor/FacebookSDK.framework/Headers/FBLoginView.h +178 -0
  26. data/lib/vendor/FacebookSDK.framework/Headers/FBNativeDialogs.h +170 -0
  27. data/lib/vendor/FacebookSDK.framework/Headers/FBOpenGraphAction.h +127 -0
  28. data/lib/vendor/FacebookSDK.framework/Headers/FBPlacePickerViewController.h +257 -0
  29. data/lib/vendor/FacebookSDK.framework/Headers/FBProfilePictureView.h +80 -0
  30. data/lib/vendor/FacebookSDK.framework/Headers/FBRequest.h +504 -0
  31. data/lib/vendor/FacebookSDK.framework/Headers/FBRequestConnection.h +389 -0
  32. data/lib/vendor/FacebookSDK.framework/Headers/FBSession.h +751 -0
  33. data/lib/vendor/FacebookSDK.framework/Headers/FBSessionTokenCachingStrategy.h +152 -0
  34. data/lib/vendor/FacebookSDK.framework/Headers/FBSettings.h +136 -0
  35. data/lib/vendor/FacebookSDK.framework/Headers/FBTestSession.h +135 -0
  36. data/lib/vendor/FacebookSDK.framework/Headers/FBUserSettingsViewController.h +127 -0
  37. data/lib/vendor/FacebookSDK.framework/Headers/FBViewController.h +118 -0
  38. data/lib/vendor/FacebookSDK.framework/Headers/FBWebDialogs.h +234 -0
  39. data/lib/vendor/FacebookSDK.framework/Headers/FacebookSDK.h +132 -0
  40. data/lib/vendor/FacebookSDK.framework/Headers/NSError+FBError.h +59 -0
  41. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  42. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  43. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  44. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  45. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  46. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  47. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  48. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  49. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  50. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  51. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  52. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  53. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  54. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  55. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  56. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  57. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  58. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  59. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  60. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  61. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  62. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  63. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  64. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  65. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  66. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  67. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  68. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  69. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  70. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  71. data/lib/vendor/FacebookSDK.framework/Resources/Info.plist +20 -0
  72. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h +115 -0
  73. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
  74. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h +22 -0
  75. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h +165 -0
  76. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h +274 -0
  77. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
  78. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
  79. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
  80. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h +77 -0
  81. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h +224 -0
  82. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h +60 -0
  83. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h +90 -0
  84. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h +271 -0
  85. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h +48 -0
  86. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h +178 -0
  87. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h +170 -0
  88. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
  89. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
  90. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h +80 -0
  91. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h +504 -0
  92. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h +389 -0
  93. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJSON.h +75 -0
  94. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonBase.h +86 -0
  95. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonParser.h +87 -0
  96. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
  97. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h +751 -0
  98. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
  99. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
  100. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h +136 -0
  101. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h +135 -0
  102. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
  103. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h +118 -0
  104. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h +234 -0
  105. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h +281 -0
  106. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h +132 -0
  107. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h +59 -0
  108. data/lib/vendor/FacebookSDK.framework/Versions/A/FacebookSDK +0 -0
  109. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h +115 -0
  110. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h +42 -0
  111. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBError.h +274 -0
  112. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h +86 -0
  113. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h +290 -0
  114. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h +77 -0
  115. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h +224 -0
  116. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h +60 -0
  117. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h +90 -0
  118. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBInsights.h +271 -0
  119. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h +178 -0
  120. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h +170 -0
  121. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h +127 -0
  122. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h +257 -0
  123. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h +80 -0
  124. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequest.h +504 -0
  125. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h +389 -0
  126. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSession.h +751 -0
  127. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h +152 -0
  128. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSettings.h +136 -0
  129. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h +135 -0
  130. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h +127 -0
  131. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBViewController.h +118 -0
  132. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h +234 -0
  133. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h +132 -0
  134. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h +59 -0
  135. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  136. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  137. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  138. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  139. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  140. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  141. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  142. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  143. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  144. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  145. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  146. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  147. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  148. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  149. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  150. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  151. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  152. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  153. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  154. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  155. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  156. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  157. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  158. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  159. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  160. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  161. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  162. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  163. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  164. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  165. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/Info.plist +20 -0
  166. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBAccessTokenData.h +115 -0
  167. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
  168. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBConnect.h +22 -0
  169. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBDialog.h +165 -0
  170. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBError.h +274 -0
  171. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
  172. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
  173. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
  174. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphLocation.h +77 -0
  175. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphObject.h +224 -0
  176. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphPlace.h +60 -0
  177. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphUser.h +90 -0
  178. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBInsights.h +271 -0
  179. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginDialog.h +48 -0
  180. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginView.h +178 -0
  181. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBNativeDialogs.h +170 -0
  182. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
  183. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
  184. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBProfilePictureView.h +80 -0
  185. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequest.h +504 -0
  186. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequestConnection.h +389 -0
  187. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJSON.h +75 -0
  188. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonBase.h +86 -0
  189. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonParser.h +87 -0
  190. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
  191. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSession.h +751 -0
  192. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
  193. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
  194. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSettings.h +136 -0
  195. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBTestSession.h +135 -0
  196. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
  197. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBViewController.h +118 -0
  198. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBWebDialogs.h +234 -0
  199. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/Facebook.h +281 -0
  200. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FacebookSDK.h +132 -0
  201. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/NSError+FBError.h +59 -0
  202. data/lib/vendor/FacebookSDK.framework/Versions/Current/FacebookSDK +0 -0
  203. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBAccessTokenData.h +115 -0
  204. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBCacheDescriptor.h +42 -0
  205. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBError.h +274 -0
  206. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFrictionlessRecipientCache.h +86 -0
  207. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFriendPickerViewController.h +290 -0
  208. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphLocation.h +77 -0
  209. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphObject.h +224 -0
  210. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphPlace.h +60 -0
  211. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphUser.h +90 -0
  212. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBInsights.h +271 -0
  213. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBLoginView.h +178 -0
  214. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBNativeDialogs.h +170 -0
  215. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBOpenGraphAction.h +127 -0
  216. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBPlacePickerViewController.h +257 -0
  217. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBProfilePictureView.h +80 -0
  218. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequest.h +504 -0
  219. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequestConnection.h +389 -0
  220. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSession.h +751 -0
  221. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSessionTokenCachingStrategy.h +152 -0
  222. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSettings.h +136 -0
  223. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBTestSession.h +135 -0
  224. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBUserSettingsViewController.h +127 -0
  225. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBViewController.h +118 -0
  226. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBWebDialogs.h +234 -0
  227. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FacebookSDK.h +132 -0
  228. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/NSError+FBError.h +59 -0
  229. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  230. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  231. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  232. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  233. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  234. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  235. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  236. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  237. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  238. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  239. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  240. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  241. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  242. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  243. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  244. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  245. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  246. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  247. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  248. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  249. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  250. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  251. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  252. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  253. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  254. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  255. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  256. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  257. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  258. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  259. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/Info.plist +20 -0
  260. data/lib/vendor/Firebase.framework/Firebase +0 -0
  261. data/lib/vendor/Firebase.framework/Headers/FDataSnapshot.h +146 -0
  262. data/lib/vendor/Firebase.framework/Headers/FEventType.h +43 -0
  263. data/lib/vendor/Firebase.framework/Headers/FMutableData.h +134 -0
  264. data/lib/vendor/Firebase.framework/Headers/FQuery.h +229 -0
  265. data/lib/vendor/Firebase.framework/Headers/FTransactionResult.h +50 -0
  266. data/lib/vendor/Firebase.framework/Headers/Firebase.h +629 -0
  267. data/lib/vendor/Firebase.framework/Versions/A/Firebase +0 -0
  268. data/lib/vendor/Firebase.framework/Versions/A/Headers/FDataSnapshot.h +146 -0
  269. data/lib/vendor/Firebase.framework/Versions/A/Headers/FEventType.h +43 -0
  270. data/lib/vendor/Firebase.framework/Versions/A/Headers/FMutableData.h +134 -0
  271. data/lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h +229 -0
  272. data/lib/vendor/Firebase.framework/Versions/A/Headers/FTransactionResult.h +50 -0
  273. data/lib/vendor/Firebase.framework/Versions/A/Headers/Firebase.h +629 -0
  274. data/lib/vendor/Firebase.framework/Versions/Current/Firebase +0 -0
  275. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FDataSnapshot.h +146 -0
  276. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FEventType.h +43 -0
  277. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FMutableData.h +134 -0
  278. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FQuery.h +229 -0
  279. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FTransactionResult.h +50 -0
  280. data/lib/vendor/Firebase.framework/Versions/Current/Headers/Firebase.h +629 -0
  281. data/lib/vendor/FirebaseAuthClient.framework/FirebaseAuthClient +0 -0
  282. data/lib/vendor/FirebaseAuthClient.framework/Headers/FATypes.h +48 -0
  283. data/lib/vendor/FirebaseAuthClient.framework/Headers/FAUser.h +85 -0
  284. data/lib/vendor/FirebaseAuthClient.framework/Headers/FirebaseAuthClient.h +149 -0
  285. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/FirebaseAuthClient +0 -0
  286. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FATypes.h +48 -0
  287. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FAUser.h +85 -0
  288. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FirebaseAuthClient.h +149 -0
  289. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/FirebaseAuthClient +0 -0
  290. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FATypes.h +48 -0
  291. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FAUser.h +85 -0
  292. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FirebaseAuthClient.h +149 -0
  293. data/motion-firebase.gemspec +23 -0
  294. data/resources/Default-568h@2x.png +0 -0
  295. metadata +357 -0
@@ -0,0 +1,629 @@
1
+ /*
2
+ * Firebase iOS Client Library
3
+ *
4
+ * Copyright © 2013 Firebase - All Rights Reserved
5
+ * https://www.firebase.com
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ *
10
+ * 1. Redistributions of source code must retain the above copyright notice, this
11
+ * list of conditions and the following disclaimer.
12
+ *
13
+ * 2. Redistributions in binaryform must reproduce the above copyright notice,
14
+ * this list of conditions and the following disclaimer in the documentation
15
+ * and/or other materials provided with the distribution.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
+ * EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
21
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
29
+
30
+ #import <Foundation/Foundation.h>
31
+ #import "FQuery.h"
32
+ #import "FDataSnapshot.h"
33
+ #import "FMutableData.h"
34
+ #import "FTransactionResult.h"
35
+
36
+ /**
37
+ * A Firebase reference represents a particular location in your Firebase
38
+ * and can be used for reading or writing data to that Firebase location.
39
+ *
40
+ * This class is the starting point for all Firebase operations. After you've
41
+ * initialized it with initWithUrl: you can use it
42
+ * to read data (ie. observeEventType:withBlock:), write data (ie. setValue:), and to create new
43
+ * Firebase references (ie. child:).
44
+ */
45
+ @interface Firebase : FQuery
46
+
47
+
48
+ /** @name Initializing a Firebase object */
49
+
50
+ /**
51
+ * Initialize this Firebase reference with an absolute URL.
52
+ *
53
+ * @param url The Firebase URL (ie: https://SampleChat.firebaseIO-demo.com)
54
+ */
55
+ - (id)initWithUrl:(NSString *)url;
56
+
57
+ /** @name Getting references to children locations */
58
+
59
+ /**
60
+ * Get a Firebase reference for the location at the specified relative path.
61
+ * The relative path can either be a simple child name (e.g. 'fred') or a
62
+ * deeper slash-separated path (e.g. 'fred/name/first').
63
+ *
64
+ * @param pathString A relative path from this location to the desired child location.
65
+ * @return A Firebase reference for the specified relative path.
66
+ */
67
+ - (Firebase *) childByAppendingPath:(NSString *)pathString;
68
+
69
+
70
+ /**
71
+ * childByAutoId generates a new child location using a unique name and returns a
72
+ * Firebase reference to it. This is useful when the children of a Firebase
73
+ * location represent a list of items.
74
+ *
75
+ * The unique name generated by childByAutoId: is prefixed with a client-generated
76
+ * timestamp so that the resulting list will be chronologically-sorted.
77
+ *
78
+ * @return A Firebase reference for the generated location.
79
+ */
80
+ - (Firebase *) childByAutoId;
81
+
82
+
83
+ /** @name Writing data */
84
+
85
+ /**
86
+ * Write data to this Firebase location. This will overwrite any data
87
+ * at this location and all child locations.
88
+ *
89
+ * Data types that can be set are:
90
+ * * NSString -- @"Hello World"
91
+ * * NSNumber (also includes boolean) -- @YES, @43, @4.333
92
+ * * NSDictionary -- @{@"key": @"value"}
93
+ * * NSArray
94
+ *
95
+ * The effect of the write will be visible immediately and the corresponding
96
+ * events will be triggered. Synchronization of the data to the Firebase
97
+ * servers will also be started.
98
+ *
99
+ * Passing null for the new value is equivalent to calling remove:;
100
+ * all data at this location or any child location will be deleted.
101
+ *
102
+ * Note that setValue: will remove any priority stored at this location, so if priority
103
+ * is meant to be preserved, you should use setValue:andPriority: instead.
104
+ *
105
+ * @param value The value to be written.
106
+ */
107
+ - (void) setValue:(id)value;
108
+
109
+
110
+ /**
111
+ * The same as setValue: with a block that gets triggered after the write operation has
112
+ * been committed to the Firebase servers.
113
+ *
114
+ * @param value The value to be written.
115
+ * @param block The block to be called after the write has been committed to the Firebase servers.
116
+ */
117
+ - (void) setValue:(id)value withCompletionBlock:(void (^)(NSError* error))block;
118
+
119
+
120
+ /**
121
+ * The same as setValue: with an additional priority to be attached to the data being written.
122
+ * Priorities are used to order items.
123
+ *
124
+ * @param value The value to be written.
125
+ * @param priority The priority to be attached to that data.
126
+ */
127
+ - (void) setValue:(id)value andPriority:(id)priority;
128
+
129
+
130
+ /**
131
+ * The same as setValue:andPriority: with a block that gets triggered after the write operation has
132
+ * been committed to the Firebase servers.
133
+ *
134
+ * @param value The value to be written.
135
+ * @param priority The priority to be attached to that data.
136
+ * @param block The block to be called after the write has been committed to the Firebase servers.
137
+ */
138
+ - (void) setValue:(id)value andPriority:(id)priority withCompletionBlock:(void (^)(NSError* error))block;
139
+
140
+
141
+ /**
142
+ * Remove the data at this Firebase location. Any data at child locations will also be deleted.
143
+ *
144
+ * The effect of the delete will be visible immediately and the corresponding events
145
+ * will be triggered. Synchronization of the delete to the Firebase servers will
146
+ * also be started.
147
+ *
148
+ * remove: is equivalent to calling setValue:nil
149
+ */
150
+ - (void) removeValue;
151
+
152
+
153
+ /**
154
+ * The same as remove: with a block that gets triggered after the remove operation has
155
+ * been committed to the Firebase servers.
156
+ *
157
+ * @param block The block to be called after the remove has been committed to the Firebase servers.
158
+ */
159
+ - (void) removeValueWithCompletionBlock:(void (^)(NSError* error))block;
160
+
161
+ /**
162
+ * Set a priority for the data at this Firebase location.
163
+ * Priorities can be used to provide a custom ordering for the children at a location
164
+ * (if no priorities are specified, the children are ordered by name).
165
+ *
166
+ * You cannot set a priority on an empty location. For this reason
167
+ * setValue:andPriority: should be used when setting initial data with a specific priority
168
+ * and setPriority: should be used when updating the priority of existing data.
169
+ *
170
+ * Children are sorted based on this priority using the following rules:
171
+ *
172
+ * Children with no priority (a null priority) come first. They are ordered lexicographically by name.
173
+ * Children with a priority that is parsable as a number come next. They are
174
+ * sorted numerically by priority first (small to large) and lexicographically by name second (A to z).
175
+ * Children with non-numeric priorities come last. They are sorted lexicographically
176
+ * by priority first and lexicographically by name second.
177
+ * Setting the priority to null removes any existing priority.
178
+ * Note that priorities are parsed and ordered as IEEE 754 double-precision floating-point numbers.
179
+ *
180
+ * @param priority The priority to set at the specified location.
181
+ */
182
+ - (void) setPriority:(id)priority;
183
+
184
+
185
+ /**
186
+ * The same as setPriority: with a block block that is called once the priority has
187
+ * been committed to the Firebase servers.
188
+ *
189
+ * @param priority The priority to set at the specified location.
190
+ * @param block The block that is triggered after the priority has been written on the servers.
191
+ */
192
+ - (void) setPriority:(id)priority withCompletionBlock:(void (^)(NSError* error))block;
193
+
194
+ /**
195
+ * Update changes the values of the keys specified in the dictionary without overwriting other
196
+ * keys at this location.
197
+ *
198
+ * @param value A dictionary of the keys to change and their new values
199
+ */
200
+ - (void) updateChildValues:(NSDictionary *)values;
201
+
202
+ /**
203
+ * The same as update: with a block block that is called once the update has been committed to the
204
+ * Firebase servers
205
+ *
206
+ * @param value A dictionary of the keys to change and their new values
207
+ * @param block The block that is triggered after the update has been written on the Firebase servers
208
+ */
209
+ - (void) updateChildValues:(NSDictionary *)values withCompletionBlock:(void (^)(NSError* error))block;
210
+
211
+
212
+ /** @name Attaching observers to read data */
213
+
214
+ /**
215
+ * observeEventType:withBlock: is used to listen for data changes at a particular location.
216
+ * This is the primary way to read data from Firebase. Your block will be triggered
217
+ * for the initial data and again whenever the data changes.
218
+ *
219
+ * Use removeObserverWithHandle: to stop receiving updates.
220
+ *
221
+ * @param eventType The type of event to listen for.
222
+ * @param block The block that should be called with initial data and updates.
223
+ * @return A handle used to unregister this block later using removeObserverWithHandle:
224
+ */
225
+ - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
226
+
227
+
228
+ /**
229
+ * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
230
+ * This is the primary way to read data from Firebase. Your block will be triggered
231
+ * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
232
+ * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
233
+ *
234
+ * Use removeObserverWithHandle: to stop receiving updates.
235
+ *
236
+ * @param eventType The type of event to listen for.
237
+ * @param block The block that should be called with initial data and updates, as well as the previous child's name.
238
+ * @return A handle used to unregister this block later using removeObserverWithHandle:
239
+ */
240
+ - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
241
+
242
+
243
+ /**
244
+ * observeEventType:withBlock: is used to listen for data changes at a particular location.
245
+ * This is the primary way to read data from Firebase. Your block will be triggered
246
+ * for the initial data and again whenever the data changes.
247
+ *
248
+ * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
249
+ *
250
+ * Use removeObserverWithHandle: to stop receiving updates.
251
+ *
252
+ * @param eventType The type of event to listen for.
253
+ * @param block The block that should be called with initial data and updates.
254
+ * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
255
+ * @return A handle used to unregister this block later using removeObserverWithHandle:
256
+ */
257
+ - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(void))cancelBlock;
258
+
259
+
260
+ /**
261
+ * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
262
+ * This is the primary way to read data from Firebase. Your block will be triggered
263
+ * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
264
+ * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
265
+ *
266
+ * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
267
+ *
268
+ * Use removeObserverWithHandle: to stop receiving updates.
269
+ *
270
+ * @param eventType The type of event to listen for.
271
+ * @param block The block that should be called with initial data and updates, as well as the previous child's name.
272
+ * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
273
+ * @return A handle used to unregister this block later using removeObserverWithHandle:
274
+ */
275
+ - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(void))cancelBlock;
276
+
277
+
278
+ /**
279
+ * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
280
+ *
281
+ * @param eventType The type of event to listen for.
282
+ * @param block The block that should be called with initial data and updates.
283
+ */
284
+ - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
285
+
286
+
287
+ /**
288
+ * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
289
+ * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
290
+ *
291
+ * @param eventType The type of event to listen for.
292
+ * @param block The block that should be called with initial data and updates.
293
+ */
294
+ - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
295
+
296
+
297
+ /**
298
+ * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
299
+ *
300
+ * The cancelBlock will be called if you do not have permission to read data at this location.
301
+ *
302
+ * @param eventType The type of event to listen for.
303
+ * @param block The block that should be called with initial data and updates.
304
+ * @param cancelBlock The block that will be called if you don't have permission to access this data
305
+ */
306
+ - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(void))cancelBlock;
307
+
308
+
309
+ /**
310
+ * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
311
+ * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
312
+ *
313
+ * The cancelBlock will be called if you do not have permission to read data at this location.
314
+ *
315
+ * @param eventType The type of event to listen for.
316
+ * @param block The block that should be called with initial data and updates.
317
+ * @param cancelBlock The block that will be called if you don't have permission to access this data
318
+ */
319
+ - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(void))cancelBlock;
320
+
321
+ /** @name Detaching observers */
322
+
323
+ /**
324
+ * Detach a block previously attached with observeEventType:withBlock:.
325
+ *
326
+ * @param handle The handle returned by the call to observeEventType:withBlock: which we are trying to remove.
327
+ */
328
+ - (void) removeObserverWithHandle:(FirebaseHandle)handle;
329
+
330
+
331
+ /**
332
+ * Detach all blocks previously attached to this Firebase location with observeEventType:withBlock:
333
+ */
334
+ - (void) removeAllObservers;
335
+
336
+ /** @name Querying and limiting */
337
+
338
+ /**
339
+ * queryStartingAtPriority: is used to generate a reference to a limited view of the data at this location.
340
+ * The FQuery instance returned by queryStartingAtPriority: will respond to events at nodes with a priority
341
+ * greater than or equal to startPriority
342
+ *
343
+ * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
344
+ * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
345
+ */
346
+ - (FQuery *) queryStartingAtPriority:(id)startPriority;
347
+
348
+
349
+ /**
350
+ * queryStartingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
351
+ * The FQuery instance returned by queryStartingAtPriority:andChildName will respond to events at nodes with a priority
352
+ * greater than startPriority, or equal to startPriority and with a name greater than or equal to childName
353
+ *
354
+ * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
355
+ * @param childName The lower bound, inclusive, for the name of nodes with priority equal to startPriority
356
+ * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
357
+ */
358
+ - (FQuery *) queryStartingAtPriority:(id)startPriority andChildName:(NSString *)childName;
359
+
360
+
361
+ /**
362
+ * queryEndingAtPriority: is used to generate a reference to a limited view of the data at this location.
363
+ * The FQuery instance returned by queryEndingAtPriority: will respond to events at nodes with a priority
364
+ * less than or equal to startPriority and with a name greater than or equal to childName
365
+ *
366
+ * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
367
+ * @return An FQuery instance, limited to data with priority less than or equal to endPriority
368
+ */
369
+ - (FQuery *) queryEndingAtPriority:(id)endPriority;
370
+
371
+
372
+ /**
373
+ * queryEndingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
374
+ * The FQuery instance returned by queryEndingAtPriority:andChildNAme will respond to events at nodes with a priority
375
+ * less than endPriority, or equal to endPriority and with a name less than or equal to childName
376
+ *
377
+ * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
378
+ * @param childName The upper bound, inclusive, for the name of nodes with priority equal to endPriority
379
+ * @return An FQuery instance, limited to data with priority less than endPriority or equal to endPriority and with a name less than or equal to childName
380
+ */
381
+ - (FQuery *) queryEndingAtPriority:(id)endPriority andChildName:(NSString *)childName;
382
+
383
+
384
+
385
+ /**
386
+ * queryLimitedToNumberOfChildren: is used to generate a reference to a limited view of the data at this location.
387
+ * The FQuery instance returned by queryLimitedToNumberOfChildren: will respond to events at from at most limit child nodes
388
+ *
389
+ * @param limit The upper bound, inclusive, for the number of child nodes to receive events for
390
+ * @return An FQuery instance, limited to at most limit child nodes.
391
+ */
392
+ - (FQuery *) queryLimitedToNumberOfChildren:(NSUInteger)limit;
393
+
394
+ /** @name Managing presence */
395
+
396
+ /**
397
+ * Ensure the data at this location is set to the specified value when
398
+ * the client is disconnected (due to closing the browser, navigating
399
+ * to a new page, or network issues).
400
+ *
401
+ * onDisconnectSetValue: is especially useful for implementing "presence" systems,
402
+ * where a value should be changed or cleared when a user disconnects
403
+ * so that he appears "offline" to other users.
404
+ *
405
+ * @param value The value to be set after the connection is lost.
406
+ */
407
+ - (void) onDisconnectSetValue:(id)value;
408
+
409
+
410
+ /**
411
+ * Ensure the data at this location is set to the specified value when
412
+ * the client is disconnected (due to closing the browser, navigating
413
+ * to a new page, or network issues).
414
+ *
415
+ * The completion block will be triggered when the operation has been successfully queued up on the Firebase servers
416
+ *
417
+ * @param value The value to be set after the connection is lost.
418
+ * @param block Block to be triggered when the operation has been queued up on the Firebase servers
419
+ */
420
+ - (void) onDisconnectSetValue:(id)value withCompletionBlock:(void (^)(NSError* error))block;
421
+
422
+
423
+ /**
424
+ * Ensure the data at this location is set to the specified value and priority when
425
+ * the client is disconnected (due to closing the browser, navigating
426
+ * to a new page, or network issues).
427
+ *
428
+ * @param value The value to be set after the connection is lost.
429
+ * @param priority The priority to be set after the connection is lost.
430
+ */
431
+ - (void) onDisconnectSetValue:(id)value andPriority:(id)priority;
432
+
433
+
434
+ /**
435
+ * Ensure the data at this location is set to the specified value and priority when
436
+ * the client is disconnected (due to closing the browser, navigating
437
+ * to a new page, or network issues).
438
+ *
439
+ * The completion block will be triggered when the operation has been successfully queued up on the Firebase servers
440
+ *
441
+ * @param value The value to be set after the connection is lost.
442
+ * @param priority The priority to be set after the connection is lost.
443
+ * @param block Block to be triggered when the operation has been queued up on the Firebase servers
444
+ */
445
+ - (void) onDisconnectSetValue:(id)value andPriority:(id)priority withCompletionBlock:(void (^)(NSError* error))block;
446
+
447
+
448
+ /**
449
+ * Ensure the data at this location is removed when
450
+ * the client is disconnected (due to closing the app, navigating
451
+ * to a new page, or network issues).
452
+ *
453
+ * onDisconnectRemoveValue is especially useful for implementing "presence" systems.
454
+ */
455
+ - (void) onDisconnectRemoveValue;
456
+
457
+
458
+ /**
459
+ * Ensure the data at this location is removed when
460
+ * the client is disconnected (due to closing the app, navigating
461
+ * to a new page, or network issues).
462
+ *
463
+ * onDisconnectRemoveValueWithCompletionBlock: is especially useful for implementing "presence" systems.
464
+ *
465
+ * @param block Block to be triggered when the operation has been queued up on the Firebase servers
466
+ */
467
+ - (void) onDisconnectRemoveValueWithCompletionBlock:(void (^)(NSError* error))block;
468
+
469
+
470
+
471
+ /**
472
+ * Ensure the data has the specified child values updated when
473
+ * the client is disconnected (due to closing the browser, navigating
474
+ * to a new page, or network issues).
475
+ *
476
+ *
477
+ * @param values A dictionary of child node names and the values to set them to after the connection is lost.
478
+ */
479
+ - (void) onDisconnectUpdateChildValues:(NSDictionary *)values;
480
+
481
+
482
+ /**
483
+ * Ensure the data has the specified child values updated when
484
+ * the client is disconnected (due to closing the browser, navigating
485
+ * to a new page, or network issues).
486
+ *
487
+ *
488
+ * @param values A dictionary of child node names and the values to set them to after the connection is lost.
489
+ * @param block A block that will be called once the operation has been queued up on the Firebase servers
490
+ */
491
+ - (void) onDisconnectUpdateChildValues:(NSDictionary *)values withCompletionBlock:(void (^)(NSError* error))block;
492
+
493
+
494
+ /**
495
+ * Cancel any operations that are set to run on disconnect. If you previously called onDisconnectSetValue:,
496
+ * onDisconnectRemoveValue:, or onDisconnectUpdateChildValues:, and no longer want the values updated when the
497
+ * connection is lost, call cancelDisconnectOperations:
498
+ */
499
+ - (void) cancelDisconnectOperations;
500
+
501
+
502
+ /**
503
+ * Cancel any operations that are set to run on disconnect. If you previously called onDisconnectSetValue:,
504
+ * onDisconnectRemoveValue:, or onDisconnectUpdateChildValues:, and no longer want the values updated when the
505
+ * connection is lost, call cancelDisconnectOperations:
506
+ *
507
+ * @param block A block that will be triggered once the Firebase servers have acknowledged the cancel request.
508
+ */
509
+ - (void) cancelDisconnectOperationsWithCompletionBlock:(void (^)(NSError* error))block;
510
+
511
+
512
+ /** @name Authenticating */
513
+
514
+ /**
515
+ * Authenticate access to this Firebase using the provided credentials. The completion block will be called with
516
+ * the results of the authenticated attempt, and the cancelBlock will be called if the credentials become invalid
517
+ * at some point after authentication has succeeded.
518
+ *
519
+ * @param block This block will be called with the results of the authentication attempt
520
+ * @param cancelBlock This block will be called if at any time in the future the credentials become invalid
521
+ */
522
+ - (void) authWithCredential:(NSString *)credential withCompletionBlock:(void (^) (NSError* error, id data))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
523
+
524
+
525
+ /**
526
+ * Removes any credentials associated with this Firebase
527
+ */
528
+ - (void) unauth;
529
+
530
+
531
+ /** @name Transactions */
532
+
533
+ /**
534
+ * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
535
+ * instance that contains the current data at this location. Your block should update this data to the value you
536
+ * wish to write to this location, and then return an instance of FTransactionResult with the new data.
537
+ *
538
+ * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
539
+ * again with the latest data from the server.
540
+ *
541
+ * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
542
+ *
543
+ * @param block This block receives the current data at this location and must return an instance of FTransactionResult
544
+ */
545
+ - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block;
546
+
547
+
548
+ /**
549
+ * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
550
+ * instance that contains the current data at this location. Your block should update this data to the value you
551
+ * wish to write to this location, and then return an instance of FTransactionResult with the new data.
552
+ *
553
+ * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
554
+ * again with the latest data from the server.
555
+ *
556
+ * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
557
+ *
558
+ * @param block This block receives the current data at this location and must return an instance of FTransactionResult
559
+ * @param completionBlock This block will be triggered once the transaction is complete, whether it was successful or not. It will indicate if there was an error, whether or not the data was committed, and what the current value of the data at this location is.
560
+ */
561
+ - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block andCompletionBlock:(void (^) (NSError* error, BOOL committed, FDataSnapshot* snapshot))completionBlock;
562
+
563
+
564
+
565
+ /**
566
+ * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
567
+ * instance that contains the current data at this location. Your block should update this data to the value you
568
+ * wish to write to this location, and then return an instance of FTransactionResult with the new data.
569
+ *
570
+ * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
571
+ * again with the latest data from the server.
572
+ *
573
+ * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
574
+ *
575
+ * Since your block may be run multiple times, this client could see several immediate states that don't exist on the server. You can suppress those immediate states until the server confirms the final state of the transaction.
576
+ *
577
+ * @param block This block receives the current data at this location and must return an instance of FTransactionResult
578
+ * @param completionBlock This block will be triggered once the transaction is complete, whether it was successful or not. It will indicate if there was an error, whether or not the data was committed, and what the current value of the data at this location is.
579
+ * @param localEvents Set this to NO to suppress events raised for intermediate states, and only get events based on the final state of the transaction.
580
+ */
581
+ - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block andCompletionBlock:(void (^) (NSError* error, BOOL committed, FDataSnapshot* snapshot))completionBlock withLocalEvents:(BOOL)localEvents;
582
+
583
+
584
+ /** @name Retrieving String Representation */
585
+
586
+ /**
587
+ * Gets the absolute URL of this Firebase location.
588
+ *
589
+ * @return The absolute URL of the referenced Firebase location.
590
+ */
591
+ - (NSString *) description;
592
+
593
+ /** @name Properties */
594
+
595
+ /**
596
+ * Get a Firebase reference for the parent location.
597
+ * If this instance refers to the root of your Firebase, it has no parent,
598
+ * and therefore parent( ) will return null.
599
+ *
600
+ * @return A Firebase reference for the parent location.
601
+ */
602
+ @property (strong, readonly, nonatomic) Firebase* parent;
603
+
604
+
605
+ /**
606
+ * Get a Firebase reference for the root location
607
+ *
608
+ * @return a new Firebase reference to root location.
609
+ */
610
+ @property (strong, readonly, nonatomic) Firebase* root;
611
+
612
+
613
+ /**
614
+ * Gets last token in a Firebase location (e.g. 'fred' in https://SampleChat.firebaseIO-demo.com/users/fred)
615
+ *
616
+ * @return The name of the location this reference points to.
617
+ */
618
+ @property (strong, readonly, nonatomic) NSString* name;
619
+
620
+ /** @name Global configuration and settings */
621
+
622
+ /** Set the default dispatch queue for event blocks.
623
+ */
624
+ + (void) setDispatchQueue:(dispatch_queue_t)queue;
625
+
626
+ /** Retrieve the Firebase SDK version. */
627
+ + (NSString *) sdkVersion;
628
+
629
+ @end
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Firebase iOS Auth Client Library
3
+ *
4
+ * Copyright © 2013 Firebase - All Rights Reserved
5
+ * https://www.firebase.com
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ *
10
+ * 1. Redistributions of source code must retain the above copyright notice, this
11
+ * list of conditions and the following disclaimer.
12
+ *
13
+ * 2. Redistributions in binaryform must reproduce the above copyright notice,
14
+ * this list of conditions and the following disclaimer in the documentation
15
+ * and/or other materials provided with the distribution.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
+ * EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
21
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
29
+ #ifndef FirebaseAuthClient_FATypes_h
30
+ #define FirebaseAuthClient_FATypes_h
31
+
32
+ typedef enum {
33
+ FAErrorUserDoesNotExist = -1,
34
+ FAErrorInvalidPassword = -2,
35
+ FAErrorAccessNotGranted = -3,
36
+ FAErrorAccountNotFound = -4,
37
+ FAErrorAuthenticationProviderNotEnabled = -5,
38
+ FAErrorUnknown = -9999
39
+ } FAError;
40
+
41
+ typedef enum {
42
+ FAProviderInvalid = -1,
43
+ FAProviderPassword = 1,
44
+ FAProviderFacebook = 2,
45
+ FAProviderTwitter = 3
46
+ } FAProvider;
47
+
48
+ #endif