2 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAnalytics.framework/Headers/FIRParameterNames.h:
--------------------------------------------------------------------------------
1 | /// @file FIRParameterNames.h
2 | ///
3 | /// Predefined event parameter names.
4 | ///
5 | /// Params supply information that contextualize Events. You can associate up to 25 unique Params
6 | /// with each Event type. Some Params are suggested below for certain common Events, but you are
7 | /// not limited to these. You may supply extra Params for suggested Events or custom Params for
8 | /// Custom events. Param names can be up to 40 characters long, may only contain alphanumeric
9 | /// characters and underscores ("_"), and must start with an alphabetic character. Param values can
10 | /// be up to 100 characters long. The "firebase_" prefix is reserved and should not be used.
11 |
12 | /// Game achievement ID (NSString).
13 | ///
14 | /// NSDictionary *params = @{
15 | /// kFIRParameterAchievementID : @"10_matches_won",
16 | /// // ...
17 | /// };
18 | ///
19 | static NSString *const kFIRParameterAchievementID = @"achievement_id";
20 |
21 | /// Ad Network Click ID (NSString). Used for network-specific click IDs which vary in format.
22 | ///
23 | /// NSDictionary *params = @{
24 | /// kFIRParameterAdNetworkClickID : @"1234567",
25 | /// // ...
26 | /// };
27 | ///
28 | static NSString *const kFIRParameterAdNetworkClickID = @"aclid";
29 |
30 | /// The individual campaign name, slogan, promo code, etc. Some networks have pre-defined macro to
31 | /// capture campaign information, otherwise can be populated by developer. Highly Recommended
32 | /// (NSString).
33 | ///
34 | /// NSDictionary *params = @{
35 | /// kFIRParameterCampaign : @"winter_promotion",
36 | /// // ...
37 | /// };
38 | ///
39 | static NSString *const kFIRParameterCampaign = @"campaign";
40 |
41 | /// Character used in game (NSString).
42 | ///
43 | /// NSDictionary *params = @{
44 | /// kFIRParameterCharacter : @"beat_boss",
45 | /// // ...
46 | /// };
47 | ///
48 | static NSString *const kFIRParameterCharacter = @"character";
49 |
50 | /// Campaign content (NSString).
51 | static NSString *const kFIRParameterContent = @"content";
52 |
53 | /// Type of content selected (NSString).
54 | ///
55 | /// NSDictionary *params = @{
56 | /// kFIRParameterContentType : @"news article",
57 | /// // ...
58 | /// };
59 | ///
60 | static NSString *const kFIRParameterContentType = @"content_type";
61 |
62 | /// Coupon code for a purchasable item (NSString).
63 | ///
64 | /// NSDictionary *params = @{
65 | /// kFIRParameterCoupon : @"zz123",
66 | /// // ...
67 | /// };
68 | ///
69 | static NSString *const kFIRParameterCoupon = @"coupon";
70 |
71 | /// Campaign custom parameter (NSString). Used as a method of capturing custom data in a campaign.
72 | /// Use varies by network.
73 | ///
74 | /// NSDictionary *params = @{
75 | /// kFIRParameterCP1 : @"custom_data",
76 | /// // ...
77 | /// };
78 | ///
79 | static NSString *const kFIRParameterCP1 = @"cp1";
80 |
81 | /// Purchase currency in 3-letter
82 | /// ISO_4217 format (NSString).
83 | ///
84 | /// NSDictionary *params = @{
85 | /// kFIRParameterCurrency : @"USD",
86 | /// // ...
87 | /// };
88 | ///
89 | static NSString *const kFIRParameterCurrency = @"currency";
90 |
91 | /// Flight or Travel destination (NSString).
92 | ///
93 | /// NSDictionary *params = @{
94 | /// kFIRParameterDestination : @"Mountain View, CA",
95 | /// // ...
96 | /// };
97 | ///
98 | static NSString *const kFIRParameterDestination = @"destination";
99 |
100 | /// The arrival date, check-out date or rental end date for the item. This should be in
101 | /// YYYY-MM-DD format (NSString).
102 | ///
103 | /// NSDictionary *params = @{
104 | /// kFIRParameterEndDate : @"2015-09-14",
105 | /// // ...
106 | /// };
107 | ///
108 | static NSString *const kFIRParameterEndDate = @"end_date";
109 |
110 | /// Flight number for travel events (NSString).
111 | ///
112 | /// NSDictionary *params = @{
113 | /// kFIRParameterFlightNumber : @"ZZ800",
114 | /// // ...
115 | /// };
116 | ///
117 | static NSString *const kFIRParameterFlightNumber = @"flight_number";
118 |
119 | /// Group/clan/guild ID (NSString).
120 | ///
121 | /// NSDictionary *params = @{
122 | /// kFIRParameterGroupID : @"g1",
123 | /// // ...
124 | /// };
125 | ///
126 | static NSString *const kFIRParameterGroupID = @"group_id";
127 |
128 | /// Item category (NSString).
129 | ///
130 | /// NSDictionary *params = @{
131 | /// kFIRParameterItemCategory : @"t-shirts",
132 | /// // ...
133 | /// };
134 | ///
135 | static NSString *const kFIRParameterItemCategory = @"item_category";
136 |
137 | /// Item ID (NSString).
138 | ///
139 | /// NSDictionary *params = @{
140 | /// kFIRParameterItemID : @"p7654",
141 | /// // ...
142 | /// };
143 | ///
144 | static NSString *const kFIRParameterItemID = @"item_id";
145 |
146 | /// The Google Place ID (NSString) that
147 | /// corresponds to the associated item. Alternatively, you can supply your own custom Location ID.
148 | ///
149 | /// NSDictionary *params = @{
150 | /// kFIRParameterItemLocationID : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
151 | /// // ...
152 | /// };
153 | ///
154 | static NSString *const kFIRParameterItemLocationID = @"item_location_id";
155 |
156 | /// Item name (NSString).
157 | ///
158 | /// NSDictionary *params = @{
159 | /// kFIRParameterItemName : @"abc",
160 | /// // ...
161 | /// };
162 | ///
163 | static NSString *const kFIRParameterItemName = @"item_name";
164 |
165 | /// Level in game (signed 64-bit integer as NSNumber).
166 | ///
167 | /// NSDictionary *params = @{
168 | /// kFIRParameterLevel : @(42),
169 | /// // ...
170 | /// };
171 | ///
172 | static NSString *const kFIRParameterLevel = @"level";
173 |
174 | /// Location (NSString). The Google Place ID
175 | /// that corresponds to the associated event. Alternatively, you can supply your own custom
176 | /// Location ID.
177 | ///
178 | /// NSDictionary *params = @{
179 | /// kFIRParameterLocation : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
180 | /// // ...
181 | /// };
182 | ///
183 | static NSString *const kFIRParameterLocation = @"location";
184 |
185 | /// The advertising or marketing medium, for example: cpc, banner, email, push. Highly recommended
186 | /// (NSString).
187 | ///
188 | /// NSDictionary *params = @{
189 | /// kFIRParameterMedium : @"email",
190 | /// // ...
191 | /// };
192 | ///
193 | static NSString *const kFIRParameterMedium = @"medium";
194 |
195 | /// Number of nights staying at hotel (signed 64-bit integer as NSNumber).
196 | ///
197 | /// NSDictionary *params = @{
198 | /// kFIRParameterNumberOfNights : @(3),
199 | /// // ...
200 | /// };
201 | ///
202 | static NSString *const kFIRParameterNumberOfNights = @"number_of_nights";
203 |
204 | /// Number of passengers traveling (signed 64-bit integer as NSNumber).
205 | ///
206 | /// NSDictionary *params = @{
207 | /// kFIRParameterNumberOfPassengers : @(11),
208 | /// // ...
209 | /// };
210 | ///
211 | static NSString *const kFIRParameterNumberOfPassengers = @"number_of_passengers";
212 |
213 | /// Number of rooms for travel events (signed 64-bit integer as NSNumber).
214 | ///
215 | /// NSDictionary *params = @{
216 | /// kFIRParameterNumberOfRooms : @(2),
217 | /// // ...
218 | /// };
219 | ///
220 | static NSString *const kFIRParameterNumberOfRooms = @"number_of_rooms";
221 |
222 | /// Flight or Travel origin (NSString).
223 | ///
224 | /// NSDictionary *params = @{
225 | /// kFIRParameterOrigin : @"Mountain View, CA",
226 | /// // ...
227 | /// };
228 | ///
229 | static NSString *const kFIRParameterOrigin = @"origin";
230 |
231 | /// Purchase price (double as NSNumber).
232 | ///
233 | /// NSDictionary *params = @{
234 | /// kFIRParameterPrice : @(1.0),
235 | /// kFIRParameterCurrency : @"USD", // e.g. $1.00 USD
236 | /// // ...
237 | /// };
238 | ///
239 | static NSString *const kFIRParameterPrice = @"price";
240 |
241 | /// Purchase quantity (signed 64-bit integer as NSNumber).
242 | ///
243 | /// NSDictionary *params = @{
244 | /// kFIRParameterQuantity : @(1),
245 | /// // ...
246 | /// };
247 | ///
248 | static NSString *const kFIRParameterQuantity = @"quantity";
249 |
250 | /// Score in game (signed 64-bit integer as NSNumber).
251 | ///
252 | /// NSDictionary *params = @{
253 | /// kFIRParameterScore : @(4200),
254 | /// // ...
255 | /// };
256 | ///
257 | static NSString *const kFIRParameterScore = @"score";
258 |
259 | /// The search string/keywords used (NSString).
260 | ///
261 | /// NSDictionary *params = @{
262 | /// kFIRParameterSearchTerm : @"periodic table",
263 | /// // ...
264 | /// };
265 | ///
266 | static NSString *const kFIRParameterSearchTerm = @"search_term";
267 |
268 | /// Shipping cost (double as NSNumber).
269 | ///
270 | /// NSDictionary *params = @{
271 | /// kFIRParameterShipping : @(9.50),
272 | /// kFIRParameterCurrency : @"USD", // e.g. $9.50 USD
273 | /// // ...
274 | /// };
275 | ///
276 | static NSString *const kFIRParameterShipping = @"shipping";
277 |
278 | /// Sign up method (NSString).
279 | ///
280 | /// NSDictionary *params = @{
281 | /// kFIRParameterSignUpMethod : @"google",
282 | /// // ...
283 | /// };
284 | ///
285 | static NSString *const kFIRParameterSignUpMethod = @"sign_up_method";
286 |
287 | /// The origin of your traffic, such as an Ad network (for example, google) or partner (urban
288 | /// airship). Identify the advertiser, site, publication, etc. that is sending traffic to your
289 | /// property. Highly recommended (NSString).
290 | ///
291 | /// NSDictionary *params = @{
292 | /// kFIRParameterSource : @"InMobi",
293 | /// // ...
294 | /// };
295 | ///
296 | static NSString *const kFIRParameterSource = @"source";
297 |
298 | /// The departure date, check-in date or rental start date for the item. This should be in
299 | /// YYYY-MM-DD format (NSString).
300 | ///
301 | /// NSDictionary *params = @{
302 | /// kFIRParameterStartDate : @"2015-09-14",
303 | /// // ...
304 | /// };
305 | ///
306 | static NSString *const kFIRParameterStartDate = @"start_date";
307 |
308 | /// Tax amount (double as NSNumber).
309 | ///
310 | /// NSDictionary *params = @{
311 | /// kFIRParameterTax : @(1.0),
312 | /// kFIRParameterCurrency : @"USD", // e.g. $1.00 USD
313 | /// // ...
314 | /// };
315 | ///
316 | static NSString *const kFIRParameterTax = @"tax";
317 |
318 | /// If you're manually tagging keyword campaigns, you should use utm_term to specify the keyword
319 | /// (NSString).
320 | ///
321 | /// NSDictionary *params = @{
322 | /// kFIRParameterTerm : @"game",
323 | /// // ...
324 | /// };
325 | ///
326 | static NSString *const kFIRParameterTerm = @"term";
327 |
328 | /// A single ID for a ecommerce group transaction (NSString).
329 | ///
330 | /// NSDictionary *params = @{
331 | /// kFIRParameterTransactionID : @"ab7236dd9823",
332 | /// // ...
333 | /// };
334 | ///
335 | static NSString *const kFIRParameterTransactionID = @"transaction_id";
336 |
337 | /// Travel class (NSString).
338 | ///
339 | /// NSDictionary *params = @{
340 | /// kFIRParameterTravelClass : @"business",
341 | /// // ...
342 | /// };
343 | ///
344 | static NSString *const kFIRParameterTravelClass = @"travel_class";
345 |
346 | /// A context-specific numeric value which is accumulated automatically for each event type. This is
347 | /// a general purpose parameter that is useful for accumulating a key metric that pertains to an
348 | /// event. Examples include revenue, distance, time and points. Value should be specified as signed
349 | /// 64-bit integer or double as NSNumber. Notes: Values for pre-defined currency-related events
350 | /// (such as @c kFIREventAddToCart) should be supplied using double as NSNumber and must be
351 | /// accompanied by a @c kFIRParameterCurrency parameter. The valid range of accumulated values is
352 | /// [-9,223,372,036,854.77, 9,223,372,036,854.77].
353 | ///
354 | /// NSDictionary *params = @{
355 | /// kFIRParameterValue : @(3.99),
356 | /// kFIRParameterCurrency : @"USD", // e.g. $3.99 USD
357 | /// // ...
358 | /// };
359 | ///
360 | static NSString *const kFIRParameterValue = @"value";
361 |
362 | /// Name of virtual currency type (NSString).
363 | ///
364 | /// NSDictionary *params = @{
365 | /// kFIRParameterVirtualCurrencyName : @"virtual_currency_name",
366 | /// // ...
367 | /// };
368 | ///
369 | static NSString *const kFIRParameterVirtualCurrencyName = @"virtual_currency_name";
370 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h:
--------------------------------------------------------------------------------
1 | /// @file FIRUserPropertyNames.h
2 | ///
3 | /// Predefined user property names.
4 | ///
5 | /// A UserProperty is an attribute that describes the app-user. By supplying UserProperties, you can
6 | /// later analyze different behaviors of various segments of your userbase. You may supply up to 25
7 | /// unique UserProperties per app, and you can use the name and value of your choosing for each one.
8 | /// UserProperty names can be up to 24 characters long, may only contain alphanumeric characters and
9 | /// underscores ("_"), and must start with an alphabetic character. UserProperty values can be up to
10 | /// 36 characters long. The "firebase_" prefix is reserved and should not be used.
11 |
12 | /// The method used to sign in. For example, "google", "facebook" or "twitter".
13 | static NSString *const kFIRUserPropertySignUpMethod = @"sign_up_method";
14 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:
--------------------------------------------------------------------------------
1 | #import "FIRAnalyticsConfiguration.h"
2 | #import "FIRApp.h"
3 | #import "FIRConfiguration.h"
4 | #import "FIROptions.h"
5 | #import "FIRAnalytics+AppDelegate.h"
6 | #import "FIRAnalytics.h"
7 | #import "FIREventNames.h"
8 | #import "FIRParameterNames.h"
9 | #import "FIRUserPropertyNames.h"
10 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAnalytics.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module FirebaseAnalytics {
2 | umbrella header "FirebaseAnalytics.h"
3 | export *
4 | module * { export *}
5 | link "sqlite3"
6 | link "z"
7 | link framework "CoreGraphics"
8 | link framework "Foundation"
9 | link framework "UIKit"
10 | }
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/FirebaseAuth:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/platform/FirebaseAuth.framework/FirebaseAuth
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRAuthCredential.h:
--------------------------------------------------------------------------------
1 | /** @file FIRAuthCredential.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2015 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | NS_ASSUME_NONNULL_BEGIN
11 |
12 | /** @class FIRAuthCredential
13 | @brief Represents a credential.
14 | */
15 | @interface FIRAuthCredential : NSObject
16 |
17 | /** @property provider
18 | @brief Gets the name of the identity provider for the credential.
19 | */
20 | @property(nonatomic, copy, readonly) NSString *provider;
21 |
22 | /** @fn init
23 | @brief This is an abstract base class. Concrete instances should be created via factory
24 | methods available in the various authentication provider libraries (like the Facebook
25 | provider or the Google provider libraries.)
26 | */
27 | - (instancetype)init NS_UNAVAILABLE;
28 |
29 | @end
30 |
31 | NS_ASSUME_NONNULL_END
32 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRAuthErrors.h:
--------------------------------------------------------------------------------
1 | /** @file FIRAuthErrors.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2015 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | /** @class FIRAuthErrors
11 | @remarks Error Codes common to all API Methods:
12 |
13 | - @c FIRAuthErrorCodeNetworkError
14 | - @c FIRAuthErrorCodeUserNotFound
15 | - @c FIRAuthErrorCodeUserTokenExpired
16 | - @c FIRAuthErrorCodeTooManyRequests
17 | - @c FIRAuthErrorCodeInvalidAPIKey
18 | - @c FIRAuthErrorCodeAppNotAuthorized
19 | - @c FIRAuthErrorCodeKeychainError
20 | - @c FIRAuthErrorCodeInternalError
21 |
22 | @remarks Common error codes for @c FIRUser operations:
23 |
24 | - @c FIRAuthErrorCodeInvalidUserToken
25 | - @c FIRAuthErrorCodeUserDisabled
26 |
27 | */
28 | @interface FIRAuthErrors
29 |
30 | /**
31 | @brief The Firebase Auth error domain.
32 | */
33 | extern NSString *const FIRAuthErrorDomain;
34 |
35 | /**
36 | @brief The name of the key for the "error_name" string in the NSError userinfo dictionary.
37 | */
38 | extern NSString *const FIRAuthErrorNameKey;
39 |
40 | /**
41 | @brief Error codes used by Firebase Auth.
42 | */
43 | typedef NS_ENUM(NSInteger, FIRAuthErrorCode) {
44 | /** Indicates a validation error with the custom token.
45 | */
46 | FIRAuthErrorCodeInvalidCustomToken = 17000,
47 |
48 | /** Indicates the service account and the API key belong to different projects.
49 | */
50 | FIRAuthErrorCodeCustomTokenMismatch = 17002,
51 |
52 | /** Indicates the IDP token or requestUri is invalid.
53 | */
54 | FIRAuthErrorCodeInvalidCredential = 17004,
55 |
56 | /** Indicates the user's account is disabled on the server.
57 | */
58 | FIRAuthErrorCodeUserDisabled = 17005,
59 |
60 | /** Indicates the administrator disabled sign in with the specified identity provider.
61 | */
62 | FIRAuthErrorCodeOperationNotAllowed = 17006,
63 |
64 | /** Indicates the email used to attempt a sign up is already in use.
65 | */
66 | FIRAuthErrorCodeEmailAlreadyInUse = 17007,
67 |
68 | /** Indicates the email is invalid.
69 | */
70 | FIRAuthErrorCodeInvalidEmail = 17008,
71 |
72 | /** Indicates the user attempted sign in with a wrong password.
73 | */
74 | FIRAuthErrorCodeWrongPassword = 17009,
75 |
76 | /** Indicates that too many requests were made to a server method.
77 | */
78 | FIRAuthErrorCodeTooManyRequests = 17010,
79 |
80 | /** Indicates the user account was not found.
81 | */
82 | FIRAuthErrorCodeUserNotFound = 17011,
83 |
84 | /** Indicates account linking is required.
85 | */
86 | FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012,
87 |
88 | /** Same enum as @c FIRAuthErrorCodeAccountExistsWithDifferentCredential ,
89 | but with incorrect spelling. Only exists for backwards compatiblity.
90 | */
91 | FIRAuthErrrorCodeAccountExistsWithDifferentCredential = 17012,
92 |
93 | /** Indicates the user has attemped to change email or password more than 5 minutes after
94 | signing in.
95 | */
96 | FIRAuthErrorCodeRequiresRecentLogin = 17014,
97 |
98 | /** Indicates an attempt to link a provider to which the account is already linked.
99 | */
100 | FIRAuthErrorCodeProviderAlreadyLinked = 17015,
101 |
102 | /** Indicates an attempt to unlink a provider that is not linked.
103 | */
104 | FIRAuthErrorCodeNoSuchProvider = 17016,
105 |
106 | /** Indicates user's saved auth credential is invalid, the user needs to sign in again.
107 | */
108 | FIRAuthErrorCodeInvalidUserToken = 17017,
109 |
110 | /** Indicates a network error occurred (such as a timeout, interrupted connection, or
111 | unreachable host). These types of errors are often recoverable with a retry. The @c
112 | NSUnderlyingError field in the @c NSError.userInfo dictionary will contain the error
113 | encountered.
114 | */
115 | FIRAuthErrorCodeNetworkError = 17020,
116 |
117 | /** Indicates the saved token has expired, for example, the user may have changed account
118 | password on another device. The user needs to sign in again on the device that made this
119 | request.
120 | */
121 | FIRAuthErrorCodeUserTokenExpired = 17021,
122 |
123 | /** Indicates an invalid API key was supplied in the request.
124 | */
125 | FIRAuthErrorCodeInvalidAPIKey = 17023,
126 |
127 | /** Indicates that an attempt was made to reauthenticate with a user which is not the current
128 | user.
129 | */
130 | FIRAuthErrorCodeUserMismatch = 17024,
131 |
132 | /** Indicates an attempt to link with a credential that has already been linked with a
133 | different Firebase account
134 | */
135 | FIRAuthErrorCodeCredentialAlreadyInUse = 17025,
136 |
137 | /** Indicates an attempt to set a password that is considered too weak.
138 | */
139 | FIRAuthErrorCodeWeakPassword = 17026,
140 |
141 | /** Indicates the App is not authorized to use Firebase Authentication with the
142 | provided API Key.
143 | */
144 | FIRAuthErrorCodeAppNotAuthorized = 17028,
145 |
146 | /** Indicates the OOB code is expired.
147 | */
148 | FIRAuthErrorCodeExpiredActionCode = 17029,
149 |
150 | /** Indicates the OOB code is invalid.
151 | */
152 | FIRAuthErrorCodeInvalidActionCode = 17030,
153 |
154 | /** Indicates that there are invalid parameters in the payload during a "send password reset
155 | * email" attempt.
156 | */
157 | FIRAuthErrorCodeInvalidMessagePayload = 17031,
158 |
159 | /** Indicates that the sender email is invalid during a "send password reset email" attempt.
160 | */
161 | FIRAuthErrorCodeInvalidSender = 17032,
162 |
163 | /** Indicates that the recipient email is invalid.
164 | */
165 | FIRAuthErrorCodeInvalidRecipientEmail = 17033,
166 |
167 | /** Indicates an error occurred while attempting to access the keychain.
168 | */
169 | FIRAuthErrorCodeKeychainError = 17995,
170 |
171 | /** Indicates an internal error occurred.
172 | */
173 | FIRAuthErrorCodeInternalError = 17999,
174 | };
175 |
176 | @end
177 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h:
--------------------------------------------------------------------------------
1 | /** @file FIREmailPasswordAuthProvider.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | @class FIRAuthCredential;
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | @brief A string constant identifying the email & password identity provider.
16 | */
17 | extern NSString *const FIREmailPasswordAuthProviderID;
18 |
19 | /** @class FIREmailPasswordAuthProvider
20 | @brief A concrete implementation of @c FIRAuthProvider for Email & Password Sign In.
21 | */
22 | @interface FIREmailPasswordAuthProvider : NSObject
23 |
24 | /** @fn credentialWithEmail:password:
25 | @brief Creates an @c FIRAuthCredential for an email & password sign in.
26 |
27 | @param email The user's email address.
28 | @param password The user's password.
29 | @return A FIRAuthCredential containing the email & password credential.
30 | */
31 | + (FIRAuthCredential *)credentialWithEmail:(NSString *)email password:(NSString *)password;
32 |
33 | /** @fn init
34 | @brief This class is not meant to be initialized.
35 | */
36 | - (instancetype)init NS_UNAVAILABLE;
37 |
38 | @end
39 |
40 | NS_ASSUME_NONNULL_END
41 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h:
--------------------------------------------------------------------------------
1 | /** @file FIRFacebookAuthProvider.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | @class FIRAuthCredential;
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | @brief A string constant identifying the Facebook identity provider.
16 | */
17 | extern NSString *const FIRFacebookAuthProviderID;
18 |
19 | /** @class FIRFacebookAuthProvider
20 | @brief Utility class for constructing Facebook credentials.
21 | */
22 | @interface FIRFacebookAuthProvider : NSObject
23 |
24 | /** @fn credentialWithAccessToken:
25 | @brief Creates an @c FIRAuthCredential for a Facebook sign in.
26 |
27 | @param accessToken The Access Token from Facebook.
28 | @return A FIRAuthCredential containing the Facebook credentials.
29 | */
30 | + (FIRAuthCredential *)credentialWithAccessToken:(NSString *)accessToken;
31 |
32 | /** @fn init
33 | @brief This class should not be initialized.
34 | */
35 | - (instancetype)init NS_UNAVAILABLE;
36 |
37 | @end
38 |
39 | NS_ASSUME_NONNULL_END
40 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h:
--------------------------------------------------------------------------------
1 | /** @file FIRGitHubAuthProvider.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | @class FIRAuthCredential;
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | @brief A string constant identifying the GitHub identity provider.
16 | */
17 | extern NSString *const FIRGitHubAuthProviderID;
18 |
19 | /** @class FIRGitHubAuthProvider
20 | @brief Utility class for constructing GitHub credentials.
21 | */
22 | @interface FIRGitHubAuthProvider : NSObject
23 |
24 | /** @fn credentialWithToken:
25 | @brief Creates an @c FIRAuthCredential for a GitHub sign in.
26 |
27 | @param token The GitHub OAuth access token.
28 | @return A FIRAuthCredential containing the GitHub credential.
29 | */
30 | + (FIRAuthCredential *)credentialWithToken:(NSString *)token;
31 |
32 | /** @fn init
33 | @brief This class is not meant to be initialized.
34 | */
35 | - (instancetype)init NS_UNAVAILABLE;
36 |
37 | @end
38 |
39 | NS_ASSUME_NONNULL_END
40 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h:
--------------------------------------------------------------------------------
1 | /** @file FIRGoogleAuthProvider.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | @class FIRAuthCredential;
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | @brief A string constant identifying the Google identity provider.
16 | */
17 | extern NSString *const FIRGoogleAuthProviderID;
18 |
19 | /** @class FIRGoogleAuthProvider
20 | @brief Utility class for constructing Google Sign In credentials.
21 | */
22 | @interface FIRGoogleAuthProvider : NSObject
23 |
24 | /** @fn credentialWithIDToken:accessToken:
25 | @brief Creates an @c FIRAuthCredential for a Google sign in.
26 |
27 | @param IDToken The ID Token from Google.
28 | @param accessToken The Access Token from Google.
29 | @return A FIRAuthCredential containing the Google credentials.
30 | */
31 | + (FIRAuthCredential *)credentialWithIDToken:(NSString *)IDToken
32 | accessToken:(NSString *)accessToken;
33 |
34 | /** @fn init
35 | @brief This class should not be initialized.
36 | */
37 | - (instancetype)init NS_UNAVAILABLE;
38 |
39 | @end
40 |
41 | NS_ASSUME_NONNULL_END
42 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h:
--------------------------------------------------------------------------------
1 | /** @file FIRTwitterAuthProvider.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | @class FIRAuthCredential;
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | @brief A string constant identifying the Twitter identity provider.
16 | */
17 | extern NSString *const FIRTwitterAuthProviderID;
18 |
19 | /** @class FIRTwitterAuthProvider
20 | @brief Utility class for constructing Twitter credentials.
21 | */
22 | @interface FIRTwitterAuthProvider : NSObject
23 |
24 | /** @fn credentialWithToken:secret:
25 | @brief Creates an @c FIRAuthCredential for a Twitter sign in.
26 |
27 | @param token The Twitter OAuth token.
28 | @param secret The Twitter OAuth secret.
29 | @return A FIRAuthCredential containing the Twitter credential.
30 | */
31 | + (FIRAuthCredential *)credentialWithToken:(NSString *)token secret:(NSString *)secret;
32 |
33 | /** @fn init
34 | @brief This class is not meant to be initialized.
35 | */
36 | - (instancetype)init NS_UNAVAILABLE;
37 |
38 | @end
39 |
40 | NS_ASSUME_NONNULL_END
41 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRUser.h:
--------------------------------------------------------------------------------
1 | /** @file FIRUser.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2015 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | #import "FIRAuth.h"
11 | #import "FIRUserInfo.h"
12 |
13 | @class FIRUserProfileChangeRequest;
14 |
15 | NS_ASSUME_NONNULL_BEGIN
16 |
17 | /** @typedef FIRAuthTokenCallback
18 | @brief The type of block called when a token is ready for use.
19 | @see FIRUser.getTokenWithCompletion:
20 | @see FIRUser.getTokenForcingRefresh:withCompletion:
21 |
22 | @param token Optionally; an access token if the request was successful.
23 | @param error Optionally; the error which occurred - or nil if the request was successful.
24 |
25 | @remarks One of: @c token or @c error will always be non-nil.
26 | */
27 | typedef void (^FIRAuthTokenCallback)(NSString *_Nullable token, NSError *_Nullable error);
28 |
29 | /** @typedef FIRUserProfileChangeCallback
30 | @brief The type of block called when a user profile change has finished.
31 |
32 | @param error Optionally; the error which occurred - or nil if the request was successful.
33 | */
34 | typedef void (^FIRUserProfileChangeCallback)(NSError *_Nullable error);
35 |
36 | /** @typedef FIRSendEmailVerificationCallback
37 | @brief The type of block called when a request to send an email verification has finished.
38 |
39 | @param error Optionally; the error which occurred - or nil if the request was successful.
40 | */
41 | typedef void (^FIRSendEmailVerificationCallback)(NSError *_Nullable error);
42 |
43 | /** @class FIRUser
44 | @brief Represents a user.
45 | @remarks This class is thread-safe.
46 | */
47 | @interface FIRUser : NSObject
48 |
49 | /** @property anonymous
50 | @brief Indicates the user represents an anonymous user.
51 | */
52 | @property(nonatomic, readonly, getter=isAnonymous) BOOL anonymous;
53 |
54 | /** @property emailVerified
55 | @brief Indicates the email address associated with this user has been verified.
56 | */
57 | @property(nonatomic, readonly, getter=isEmailVerified) BOOL emailVerified;
58 |
59 | /** @property refreshToken
60 | @brief A refresh token; useful for obtaining new access tokens independently.
61 | @remarks This property should only be used for advanced scenarios, and is not typically needed.
62 | */
63 | @property(nonatomic, readonly, nullable) NSString *refreshToken;
64 |
65 | /** @property providerData
66 | @brief Profile data for each identity provider, if any.
67 | @remarks This data is cached on sign-in and updated when linking or unlinking.
68 | */
69 | @property(nonatomic, readonly, nonnull) NSArray> *providerData;
70 |
71 | /** @fn init
72 | @brief This class should not be instantiated.
73 | @remarks To retrieve the current user, use @c FIRAuth.currentUser. To sign a user
74 | in or out, use the methods on @c FIRAuth.
75 | */
76 | - (instancetype)init NS_UNAVAILABLE;
77 |
78 | /** @fn updateEmail:completion:
79 | @brief Updates the email address for the user. On success, the cached user profile data is
80 | updated.
81 | @remarks May fail if there is already an account with this email address that was created using
82 | email and password authentication.
83 |
84 | @param email The email address for the user.
85 | @param completion Optionally; the block invoked when the user profile change has finished.
86 | Invoked asynchronously on the main thread in the future.
87 |
88 | @remarks Possible error codes:
89 |
90 | - @c FIRAuthErrorCodeInvalidRecipientEmail - Indicates an invalid recipient email was
91 | sent in the request.
92 |
93 | - @c FIRAuthErrorCodeInvalidSender - Indicates an invalid sender email is set in
94 | the console for this action.
95 |
96 | - @c FIRAuthErrorCodeInvalidMessagePayload - Indicates an invalid email template for
97 | sending update email.
98 |
99 | - @c FIRAuthErrorCodeEmailAlreadyInUse - Indicates the email is already in use by another
100 | account.
101 |
102 | - @c FIRAuthErrorCodeInvalidEmail - Indicates the email address is malformed.
103 |
104 | - @c FIRAuthErrorCodeRequiresRecentLogin - Updating a user’s email is a security
105 | sensitive operation that requires a recent login from the user. This error indicates
106 | the user has not signed in recently enough. To resolve, reauthenticate the user by
107 | invoking reauthenticateWithCredential:completion: on FIRUser.
108 |
109 |
110 |
111 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
112 | */
113 | - (void)updateEmail:(NSString *)email completion:(nullable FIRUserProfileChangeCallback)completion;
114 |
115 | /** @fn updatePassword:completion:
116 | @brief Updates the password for the user. On success, the cached user profile data is updated.
117 |
118 | @param password The new password for the user.
119 | @param completion Optionally; the block invoked when the user profile change has finished.
120 | Invoked asynchronously on the main thread in the future.
121 |
122 | @remarks Possible error codes:
123 |
124 | - @c FIRAuthErrorCodeOperationNotAllowed - Indicates the administrator disabled
125 | sign in with the specified identity provider.
126 |
127 | - @c FIRAuthErrorCodeRequiresRecentLogin - Updating a user’s password is a security
128 | sensitive operation that requires a recent login from the user. This error indicates
129 | the user has not signed in recently enough. To resolve, reauthenticate the user by
130 | invoking reauthenticateWithCredential:completion: on FIRUser.
131 |
132 | - @c FIRAuthErrorCodeWeakPassword - Indicates an attempt to set a password that is
133 | considered too weak. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo
134 | dictionary object will contain more detailed explanation that can be shown to the user.
135 |
136 |
137 |
138 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
139 | */
140 | - (void)updatePassword:(NSString *)password
141 | completion:(nullable FIRUserProfileChangeCallback)completion;
142 |
143 | /** @fn profileChangeRequest
144 | @brief Creates an object which may be used to change the user's profile data.
145 |
146 | @remarks Set the properties of the returned object, then call
147 | @c FIRUserProfileChangeRequest.commitChangesWithCallback: to perform the updates atomically.
148 |
149 | @return An object which may be used to change the user's profile data atomically.
150 | */
151 | - (FIRUserProfileChangeRequest *)profileChangeRequest;
152 |
153 | /** @fn reloadWithCompletion:
154 | @brief Reloads the user's profile data from the server.
155 |
156 | @param completion Optionally; the block invoked when the reload has finished. Invoked
157 | asynchronously on the main thread in the future.
158 |
159 | @remarks May fail with a @c FIRAuthErrorCodeRequiresRecentLogin error code. In this case
160 | you should call @c FIRUser.reauthenticateWithCredential:completion: before re-invoking
161 | @c FIRUser.updateEmail:completion:.
162 |
163 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all API methods.
164 | */
165 | - (void)reloadWithCompletion:(nullable FIRUserProfileChangeCallback)completion;
166 |
167 | /** @fn reauthenticateWithCredential:completion:
168 | @brief Renews the user's authentication tokens by validating a fresh set of credentials supplied
169 | by the user.
170 |
171 | @param credential A user-supplied credential, which will be validated by the server. This can be
172 | a successful third-party identity provider sign-in, or an email address and password.
173 | @param completion Optionally; the block invoked when the re-authentication operation has
174 | finished. Invoked asynchronously on the main thread in the future.
175 |
176 | @remarks If the user associated with the supplied credential is different from the current user,
177 | or if the validation of the supplied credentials fails; an error is returned and the current
178 | user remains signed in.
179 |
180 | @remarks Possible error codes:
181 |
182 | - @c FIRAuthErrorCodeInvalidCredential - Indicates the supplied credential is invalid.
183 | This could happen if it has expired or it is malformed.
184 |
185 | - @c FIRAuthErrorCodeOperationNotAllowed - Indicates that accounts with the
186 | identity provider represented by the credential are not enabled. Enable them in the
187 | Auth section of the Firebase console.
188 |
189 | - @c FIRAuthErrorCodeEmailAlreadyInUse - Indicates the email asserted by the credential
190 | (e.g. the email in a Facebook access token) is already in use by an existing account,
191 | that cannot be authenticated with this method. Call fetchProvidersForEmail for
192 | this user’s email and then prompt them to sign in with any of the sign-in providers
193 | returned. This error will only be thrown if the "One account per email address"
194 | setting is enabled in the Firebase console, under Auth settings. Please note that the
195 | error code raised in this specific situation may not be the same on Web and Android.
196 |
197 | - @c FIRAuthErrorCodeUserDisabled - Indicates the user's account is disabled.
198 |
199 | - @c FIRAuthErrorCodeWrongPassword - Indicates the user attempted reauthentication with
200 | an incorrect password, if credential is of the type EmailPasswordAuthCredential.
201 |
202 | - @c FIRAuthErrorCodeUserMismatch - Indicates that an attempt was made to
203 | reauthenticate with a user which is not the current user.
204 |
205 | - @c FIRAuthErrorCodeInvalidEmail - Indicates the email address is malformed.
206 |
207 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all API methods.
208 | */
209 | - (void)reauthenticateWithCredential:(FIRAuthCredential *)credential
210 | completion:(nullable FIRUserProfileChangeCallback)completion;
211 |
212 | /** @fn getTokenWithCompletion:
213 | @brief Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
214 |
215 | @param completion Optionally; the block invoked when the token is available. Invoked
216 | asynchronously on the main thread in the future.
217 |
218 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all API methods.
219 | */
220 | - (void)getTokenWithCompletion:(nullable FIRAuthTokenCallback)completion;
221 |
222 | /** @fn getTokenForcingRefresh:completion:
223 | @brief Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
224 |
225 | @param forceRefresh Forces a token refresh. Useful if the token becomes invalid for some reason
226 | other than an expiration.
227 | @param completion Optionally; the block invoked when the token is available. Invoked
228 | asynchronously on the main thread in the future.
229 |
230 | @remarks The authentication token will be refreshed (by making a network request) if it has
231 | expired, or if @c forceRefresh is YES.
232 |
233 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all API methods.
234 | */
235 | - (void)getTokenForcingRefresh:(BOOL)forceRefresh
236 | completion:(nullable FIRAuthTokenCallback)completion;
237 |
238 | /** @fn linkWithCredential:completion:
239 | @brief Associates a user account from a third-party identity provider with this user.
240 |
241 | @param credential The credential for the identity provider.
242 | @param completion Optionally; the block invoked when the unlinking is complete, or fails.
243 | Invoked asynchronously on the main thread in the future.
244 |
245 | @remarks Possible error codes:
246 |
247 | - @c FIRAuthErrorCodeProviderAlreadyLinked - Indicates an attempt to link a provider of a
248 | type already linked to this account.
249 |
250 | - @c FIRAuthErrorCodeCredentialAlreadyInUse - Indicates an attempt to link with a
251 | credential
252 | that has already been linked with a different Firebase account.
253 |
254 | - @c FIRAuthErrorCodeOperationNotAllowed - Indicates that accounts with the identity
255 | provider represented by the credential are not enabled. Enable them in the Auth section
256 | of the Firebase console.
257 |
258 |
259 |
260 | @remarks This method may also return error codes associated with updateEmail:completion: and
261 | updatePassword:completion: on FIRUser.
262 |
263 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
264 | */
265 | - (void)linkWithCredential:(FIRAuthCredential *)credential
266 | completion:(nullable FIRAuthResultCallback)completion;
267 |
268 | /** @fn unlinkFromProvider:completion:
269 | @brief Disassociates a user account from a third-party identity provider with this user.
270 |
271 | @param provider The provider ID of the provider to unlink.
272 | @param completion Optionally; the block invoked when the unlinking is complete, or fails.
273 | Invoked asynchronously on the main thread in the future.
274 |
275 | @remarks Possible error codes:
276 |
277 | - @c FIRAuthErrorCodeNoSuchProvider - Indicates an attempt to unlink a provider
278 | that is not linked to the account.
279 |
280 | - @c FIRAuthErrorCodeRequiresRecentLogin - Updating email is a security sensitive
281 | operation that requires a recent login from the user. This error indicates the user
282 | has not signed in recently enough. To resolve, reauthenticate the user by invoking
283 | reauthenticateWithCredential:completion: on FIRUser.
284 |
285 |
286 |
287 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
288 | */
289 | - (void)unlinkFromProvider:(NSString *)provider
290 | completion:(nullable FIRAuthResultCallback)completion;
291 |
292 | /** @fn sendEmailVerificationWithCompletion:
293 | @brief Initiates email verification for the user.
294 |
295 | @param completion Optionally; the block invoked when the request to send an email verification
296 | is complete, or fails. Invoked asynchronously on the main thread in the future.
297 |
298 | @remarks Possible error codes:
299 |
300 | - @c FIRAuthErrorCodeInvalidRecipientEmail - Indicates an invalid recipient email was
301 | sent in the request.
302 |
303 | - @c FIRAuthErrorCodeInvalidSender - Indicates an invalid sender email is set in
304 | the console for this action.
305 |
306 | - @c FIRAuthErrorCodeInvalidMessagePayload - Indicates an invalid email template for
307 | sending update email.
308 |
309 | - @c FIRAuthErrorCodeUserNotFound - Indicates the user account was not found.
310 |
311 |
312 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
313 | */
314 | - (void)sendEmailVerificationWithCompletion:(nullable FIRSendEmailVerificationCallback)completion;
315 |
316 | /** @fn deleteWithCompletion:
317 | @brief Deletes the user account (also signs out the user, if this was the current user).
318 |
319 | @param completion Optionally; the block invoked when the request to delete the account is
320 | complete, or fails. Invoked asynchronously on the main thread in the future.
321 |
322 | @remarks Possible error codes:
323 |
324 | - @c FIRAuthErrorCodeRequiresRecentLogin - Updating email is a security sensitive
325 | operation that requires a recent login from the user. This error indicates the user
326 | has not signed in recently enough. To resolve, reauthenticate the user by invoking
327 | reauthenticateWithCredential:completion: on FIRUser.
328 |
329 |
330 |
331 | @remarks See @c FIRAuthErrors for a list of error codes that are common to all FIRUser methods.
332 |
333 | */
334 | - (void)deleteWithCompletion:(nullable FIRUserProfileChangeCallback)completion;
335 |
336 | @end
337 |
338 | /** @class FIRUserProfileChangeRequest
339 | @brief Represents an object capable of updating a user's profile data.
340 | @remarks Properties are marked as being part of a profile update when they are set. Setting a
341 | property value to nil is not the same as leaving the property unassigned.
342 | */
343 | @interface FIRUserProfileChangeRequest : NSObject
344 |
345 | /** @fn init
346 | @brief Please use @c FIRUser.profileChangeRequest
347 | */
348 | - (instancetype)init NS_UNAVAILABLE;
349 |
350 | /** @property displayName
351 | @brief The user's display name.
352 | @remarks It is an error to set this property after calling
353 | @c FIRUserProfileChangeRequest.commitChangesWithCallback:
354 | */
355 | @property(nonatomic, copy, nullable) NSString *displayName;
356 |
357 | /** @property photoURL
358 | @brief The user's photo URL.
359 | @remarks It is an error to set this property after calling
360 | @c FIRUserProfileChangeRequest.commitChangesWithCallback:
361 | */
362 | @property(nonatomic, copy, nullable) NSURL *photoURL;
363 |
364 | /** @fn commitChangesWithCompletion:
365 | @brief Commits any pending changes.
366 | @remarks This method should only be called once. Once called, property values should not be
367 | changed.
368 |
369 | @param completion Optionally; the block invoked when the user profile change has been applied.
370 | Invoked asynchronously on the main thread in the future.
371 | */
372 | - (void)commitChangesWithCompletion:(nullable FIRUserProfileChangeCallback)completion;
373 |
374 | @end
375 |
376 | NS_ASSUME_NONNULL_END
377 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FIRUserInfo.h:
--------------------------------------------------------------------------------
1 | /** @file FIRUserInfo.h
2 | @brief Firebase Auth SDK
3 | @copyright Copyright 2015 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | NS_ASSUME_NONNULL_BEGIN
11 |
12 | /**
13 | @brief Represents user data returned from an identity provider.
14 | */
15 | @protocol FIRUserInfo
16 |
17 | /** @property providerID
18 | @brief The provider identifier.
19 | */
20 | @property(nonatomic, copy, readonly) NSString *providerID;
21 |
22 | /** @property uid
23 | @brief The provider's user ID for the user.
24 | */
25 | @property(nonatomic, copy, readonly) NSString *uid;
26 |
27 | /** @property displayName
28 | @brief The name of the user.
29 | */
30 | @property(nonatomic, copy, readonly, nullable) NSString *displayName;
31 |
32 | /** @property photoURL
33 | @brief The URL of the user's profile photo.
34 | */
35 | @property(nonatomic, copy, readonly, nullable) NSURL *photoURL;
36 |
37 | /** @property email
38 | @brief The user's email address.
39 | */
40 | @property(nonatomic, copy, readonly, nullable) NSString *email;
41 |
42 | @end
43 |
44 | NS_ASSUME_NONNULL_END
45 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FirebaseAuth.h:
--------------------------------------------------------------------------------
1 | #import "FIREmailPasswordAuthProvider.h"
2 | #import "FIRFacebookAuthProvider.h"
3 | #import "FIRGitHubAuthProvider.h"
4 | #import "FIRGoogleAuthProvider.h"
5 | #import "FIRTwitterAuthProvider.h"
6 | #import "FIRAuth.h"
7 | #import "FIRAuthCredential.h"
8 | #import "FIRAuthErrors.h"
9 | #import "FIRUser.h"
10 | #import "FIRUserInfo.h"
11 | #import "FirebaseAuthVersion.h"
12 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h:
--------------------------------------------------------------------------------
1 | /*! @file FirebaseAuthVersion.h
2 | @brief Firebase SDK
3 | @copyright Copyright 2016 Google Inc.
4 | @remarks Use of this SDK is subject to the Google APIs Terms of Service:
5 | https://developers.google.com/terms/
6 | */
7 |
8 | #import
9 |
10 | /**
11 | Version number for FirebaseAuth.
12 | */
13 | extern const double FirebaseAuthVersionNumber;
14 |
15 | /**
16 | Version string for FirebaseAuth.
17 | */
18 | extern const unsigned char *const FirebaseAuthVersionString;
19 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseAuth.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module FirebaseAuth {
2 | umbrella header "FirebaseAuth.h"
3 | export *
4 | module * { export *}
5 | link "z"
6 | link framework "CoreGraphics"
7 | link framework "Foundation"
8 | link framework "Security"
9 | link framework "UIKit"
10 | }
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/FirebaseCore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/platform/FirebaseCore.framework/FirebaseCore
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | /**
4 | * This class provides configuration fields for Firebase Analytics.
5 | */
6 | @interface FIRAnalyticsConfiguration : NSObject
7 |
8 | /**
9 | * Returns the shared instance of FIRAnalyticsConfiguration.
10 | */
11 | + (FIRAnalyticsConfiguration *)sharedInstance;
12 |
13 | /**
14 | * Sets the minimum engagement time in seconds required to start a new session. The default value
15 | * is 10 seconds.
16 | */
17 | - (void)setMinimumSessionInterval:(NSTimeInterval)minimumSessionInterval;
18 |
19 | /**
20 | * Sets the interval of inactivity in seconds that terminates the current session. The default
21 | * value is 1800 seconds (30 minutes).
22 | */
23 | - (void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval;
24 |
25 | /**
26 | * Sets whether analytics collection is enabled for this app on this device. This setting is
27 | * persisted across app sessions. By default it is enabled.
28 | */
29 | - (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled;
30 |
31 | /**
32 | * Deprecated. Sets whether measurement and reporting are enabled for this app on this device. By
33 | * default they are enabled.
34 | */
35 | - (void)setIsEnabled:(BOOL)isEnabled
36 | DEPRECATED_MSG_ATTRIBUTE("Use setAnalyticsCollectionEnabled: instead.");
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FIRApp.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @class FIROptions;
5 |
6 | NS_ASSUME_NONNULL_BEGIN
7 |
8 | /** A block that takes a BOOL and has no return value. */
9 | typedef void (^FIRAppVoidBoolCallback)(BOOL success);
10 |
11 | /**
12 | * The entry point of Firebase SDKs.
13 | *
14 | * Initialize and configure FIRApp using +[FIRApp configure]
15 | * or other customized ways as shown below.
16 | *
17 | * The logging system has two modes: default mode and debug mode. In default mode, only logs with
18 | * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent
19 | * to device. The log levels that Firebase uses are consistent with the ASL log levels.
20 | *
21 | * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this
22 | * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled,
23 | * further executions of the application will also be in debug mode. In order to return to default
24 | * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled.
25 | *
26 | * It is also possible to change the default logging level in code by calling setLoggerLevel: on
27 | * the FIRConfiguration interface.
28 | */
29 | @interface FIRApp : NSObject
30 |
31 | /**
32 | * Configures a default Firebase app. Raises an exception if any configuration step fails. The
33 | * default app is named "__FIRAPP_DEFAULT". This method should be called after the app is launched
34 | * and before using Firebase services. This method is thread safe.
35 | */
36 | + (void)configure;
37 |
38 | /**
39 | * Configures the default Firebase app with the provided options. The default app is named
40 | * "__FIRAPP_DEFAULT". Raises an exception if any configuration step fails. This method is thread
41 | * safe.
42 | *
43 | * @param options The Firebase application options used to configure the service.
44 | */
45 | + (void)configureWithOptions:(FIROptions *)options;
46 |
47 | /**
48 | * Configures a Firebase app with the given name and options. Raises an exception if any
49 | * configuration step fails. This method is thread safe.
50 | *
51 | * @param name The application's name given by the developer. The name should should only contain
52 | Letters, Numbers and Underscore.
53 | * @param options The Firebase application options used to configure the services.
54 | */
55 | + (void)configureWithName:(NSString *)name options:(FIROptions *)options;
56 |
57 | /**
58 | * Returns the default app, or nil if the default app does not exist.
59 | */
60 | + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(defaultApp());
61 |
62 | /**
63 | * Returns a previously created FIRApp instance with the given name, or nil if no such app exists.
64 | * This method is thread safe.
65 | */
66 | + (nullable FIRApp *)appNamed:(NSString *)name;
67 |
68 | /**
69 | * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This
70 | * method is thread safe.
71 | */
72 | + (nullable NSDictionary *)allApps;
73 |
74 | /**
75 | * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for
76 | * future use. This method is thread safe.
77 | */
78 | - (void)deleteApp:(FIRAppVoidBoolCallback)completion;
79 |
80 | /**
81 | * FIRApp instances should not be initialized directly. Call +[FIRApp configure],
82 | * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly.
83 | */
84 | - (instancetype)init NS_UNAVAILABLE;
85 |
86 | /**
87 | * Gets the name of this app.
88 | */
89 | @property(nonatomic, copy, readonly) NSString *name;
90 |
91 | /**
92 | * Gets the options for this app.
93 | */
94 | @property(nonatomic, readonly) FIROptions *options;
95 |
96 | @end
97 |
98 | NS_ASSUME_NONNULL_END
99 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FIRConfiguration.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #import "FIRAnalyticsConfiguration.h"
4 | #import "FIRLoggerLevel.h"
5 |
6 | /**
7 | * The log levels used by FIRConfiguration.
8 | */
9 | typedef NS_ENUM(NSInteger, FIRLogLevel) {
10 | /** Error */
11 | kFIRLogLevelError __deprecated = 0,
12 | /** Warning */
13 | kFIRLogLevelWarning __deprecated,
14 | /** Info */
15 | kFIRLogLevelInfo __deprecated,
16 | /** Debug */
17 | kFIRLogLevelDebug __deprecated,
18 | /** Assert */
19 | kFIRLogLevelAssert __deprecated,
20 | /** Max */
21 | kFIRLogLevelMax __deprecated = kFIRLogLevelAssert
22 | } DEPRECATED_MSG_ATTRIBUTE(
23 | "Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details.");
24 |
25 | /**
26 | * This interface provides global level properties that the developer can tweak, and the singleton
27 | * of the Firebase Analytics configuration class.
28 | */
29 | @interface FIRConfiguration : NSObject
30 |
31 | /** Returns the shared configuration object. */
32 | + (FIRConfiguration *)sharedInstance;
33 |
34 | /** The configuration class for Firebase Analytics. */
35 | @property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration;
36 |
37 | /** Global log level. Defaults to kFIRLogLevelError. */
38 | @property(nonatomic, readwrite, assign) FIRLogLevel logLevel DEPRECATED_MSG_ATTRIBUTE(
39 | "Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details.");
40 |
41 | /**
42 | * Sets the logging level for internal Firebase logging. Firebase will only log messages
43 | * that are logged at or below loggerLevel. The messages are logged both to the Xcode
44 | * console and to the device's log. Note that if an app is running from AppStore, it will
45 | * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose)
46 | * setting.
47 | *
48 | * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice.
49 | */
50 | - (void)setLoggerLevel:(FIRLoggerLevel)loggerLevel;
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FIRLoggerLevel.h:
--------------------------------------------------------------------------------
1 | /**
2 | * The log levels used by internal logging.
3 | */
4 | typedef NS_ENUM(NSInteger, FIRLoggerLevel) {
5 | FIRLoggerLevelError = 3 /*ASL_LEVEL_ERR*/,
6 | FIRLoggerLevelWarning = 4 /*ASL_LEVEL_WARNING*/,
7 | FIRLoggerLevelNotice = 5 /*ASL_LEVEL_NOTICE*/,
8 | FIRLoggerLevelInfo = 6 /*ASL_LEVEL_INFO*/,
9 | FIRLoggerLevelDebug = 7 /*ASL_LEVEL_DEBUG*/,
10 | FIRLoggerLevelMin = FIRLoggerLevelError,
11 | FIRLoggerLevelMax = FIRLoggerLevelDebug
12 | };
13 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FIROptions.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | /**
4 | * This class provides constant fields of Google APIs.
5 | */
6 | @interface FIROptions : NSObject
7 |
8 | /**
9 | * Returns the default options.
10 | */
11 | + (FIROptions *)defaultOptions;
12 |
13 | /**
14 | * An iOS API key used for authenticating requests from your app, e.g.
15 | * @"AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk", used to identify your app to Google servers.
16 | */
17 | @property(nonatomic, readonly, copy) NSString *APIKey;
18 |
19 | /**
20 | * The OAuth2 client ID for iOS application used to authenticate Google users, for example
21 | * @"12345.apps.googleusercontent.com", used for signing in with Google.
22 | */
23 | @property(nonatomic, readonly, copy) NSString *clientID;
24 |
25 | /**
26 | * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics.
27 | */
28 | @property(nonatomic, readonly, copy) NSString *trackingID;
29 |
30 | /**
31 | * The Project Number from the Google Developer's console, for example @"012345678901", used to
32 | * configure Google Cloud Messaging.
33 | */
34 | @property(nonatomic, readonly, copy) NSString *GCMSenderID;
35 |
36 | /**
37 | * The Project ID from the Firebase console, for example @"abc-xyz-123". Currently only populated
38 | * when using [FIROptions defaultOptions].
39 | */
40 | @property(nonatomic, readonly, copy) NSString *projectID;
41 |
42 | /**
43 | * The Android client ID used in Google AppInvite when an iOS app has its Android version, for
44 | * example @"12345.apps.googleusercontent.com".
45 | */
46 | @property(nonatomic, readonly, copy) NSString *androidClientID;
47 |
48 | /**
49 | * The Google App ID that is used to uniquely identify an instance of an app.
50 | */
51 | @property(nonatomic, readonly, copy) NSString *googleAppID;
52 |
53 | /**
54 | * The database root URL, e.g. @"http://abc-xyz-123.firebaseio.com".
55 | */
56 | @property(nonatomic, readonly, copy) NSString *databaseURL;
57 |
58 | /**
59 | * The URL scheme used to set up Durable Deep Link service.
60 | */
61 | @property(nonatomic, readwrite, copy) NSString *deepLinkURLScheme;
62 |
63 | /**
64 | * The Google Cloud Storage bucket name, e.g. @"abc-xyz-123.storage.firebase.com".
65 | */
66 | @property(nonatomic, readonly, copy) NSString *storageBucket;
67 |
68 | /**
69 | * Initializes a customized instance of FIROptions with keys. googleAppID, bundleID and GCMSenderID
70 | * are required. Other keys may required for configuring specific services.
71 | */
72 | - (instancetype)initWithGoogleAppID:(NSString *)googleAppID
73 | bundleID:(NSString *)bundleID
74 | GCMSenderID:(NSString *)GCMSenderID
75 | APIKey:(NSString *)APIKey
76 | clientID:(NSString *)clientID
77 | trackingID:(NSString *)trackingID
78 | androidClientID:(NSString *)androidClientID
79 | databaseURL:(NSString *)databaseURL
80 | storageBucket:(NSString *)storageBucket
81 | deepLinkURLScheme:(NSString *)deepLinkURLScheme;
82 |
83 | /**
84 | * Initializes a customized instance of FIROptions from the file at the given plist file path.
85 | * For example,
86 | * NSString *filePath =
87 | * [[NSBundle mainBundle] pathForResource:@"GoogleService-Info" ofType:@"plist"];
88 | * FIROptions *options = [[FIROptions alloc] initWithContentsOfFile:filePath];
89 | * Returns nil if the plist file does not exist or is invalid.
90 | */
91 | - (instancetype)initWithContentsOfFile:(NSString *)plistPath;
92 |
93 | @end
94 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Headers/FirebaseCore.h:
--------------------------------------------------------------------------------
1 | #import "FIRAnalyticsConfiguration.h"
2 | #import "FIRApp.h"
3 | #import "FIRConfiguration.h"
4 | #import "FIRLoggerLevel.h"
5 | #import "FIROptions.h"
6 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseCore.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module FirebaseCore {
2 | umbrella header "FirebaseCore.h"
3 | export *
4 | module * { export *}
5 | link "z"
6 | link framework "Foundation"
7 | link framework "UIKit"
8 | }
--------------------------------------------------------------------------------
/iphone/platform/FirebaseInstanceID.framework/FirebaseInstanceID:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/platform/FirebaseInstanceID.framework/FirebaseInstanceID
--------------------------------------------------------------------------------
/iphone/platform/FirebaseInstanceID.framework/Headers/FIRInstanceID.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | /**
4 | * @memberof FIRInstanceID
5 | *
6 | * The scope to be used when fetching/deleting a token for Firebase Messaging.
7 | */
8 | FOUNDATION_EXPORT NSString * __nonnull const kFIRInstanceIDScopeFirebaseMessaging;
9 |
10 | /**
11 | * Called when the system determines that tokens need to be refreshed.
12 | * This method is also called if Instance ID has been reset in which
13 | * case, tokens and FCM topic subscriptions also need to be refreshed.
14 | *
15 | * Instance ID service will throttle the refresh event across all devices
16 | * to control the rate of token updates on application servers.
17 | */
18 | FOUNDATION_EXPORT NSString * __nonnull const kFIRInstanceIDTokenRefreshNotification;
19 |
20 | /**
21 | * @related FIRInstanceID
22 | *
23 | * The completion handler invoked when the InstanceID token returns. If
24 | * the call fails we return the appropriate `error code` as described below.
25 | *
26 | * @param token The valid token as returned by InstanceID backend.
27 | *
28 | * @param error The error describing why generating a new token
29 | * failed. See the error codes below for a more detailed
30 | * description.
31 | */
32 | typedef void(^FIRInstanceIDTokenHandler)( NSString * __nullable token, NSError * __nullable error);
33 |
34 |
35 | /**
36 | * @related FIRInstanceID
37 | *
38 | * The completion handler invoked when the InstanceID `deleteToken` returns. If
39 | * the call fails we return the appropriate `error code` as described below
40 | *
41 | * @param error The error describing why deleting the token failed.
42 | * See the error codes below for a more detailed description.
43 | */
44 | typedef void(^FIRInstanceIDDeleteTokenHandler)(NSError * __nullable error);
45 |
46 | /**
47 | * @related FIRInstanceID
48 | *
49 | * The completion handler invoked when the app identity is created. If the
50 | * identity wasn't created for some reason we return the appropriate error code.
51 | *
52 | * @param identity A valid identity for the app instance, nil if there was an error
53 | * while creating an identity.
54 | * @param error The error if fetching the identity fails else nil.
55 | */
56 | typedef void(^FIRInstanceIDHandler)(NSString * __nullable identity, NSError * __nullable error);
57 |
58 | /**
59 | * @related FIRInstanceID
60 | *
61 | * The completion handler invoked when the app identity and all the tokens associated
62 | * with it are deleted. Returns a valid error object in case of failure else nil.
63 | *
64 | * @param error The error if deleting the identity and all the tokens associated with
65 | * it fails else nil.
66 | */
67 | typedef void(^FIRInstanceIDDeleteHandler)(NSError * __nullable error);
68 |
69 | /**
70 | * @enum FIRInstanceIDError
71 | */
72 | typedef NS_ENUM(NSUInteger, FIRInstanceIDError) {
73 | // Http related errors.
74 |
75 | /// Unknown error.
76 | FIRInstanceIDErrorUnknown = 0,
77 |
78 | /// Auth Error -- GCM couldn't validate request from this client.
79 | FIRInstanceIDErrorAuthentication = 1,
80 |
81 | /// NoAccess -- InstanceID service cannot be accessed.
82 | FIRInstanceIDErrorNoAccess = 2,
83 |
84 | /// Timeout -- Request to InstanceID backend timed out.
85 | FIRInstanceIDErrorTimeout = 3,
86 |
87 | /// Network -- No network available to reach the servers.
88 | FIRInstanceIDErrorNetwork = 4,
89 |
90 | /// OperationInProgress -- Another similar operation in progress,
91 | /// bailing this one.
92 | FIRInstanceIDErrorOperationInProgress = 5,
93 |
94 | /// InvalidRequest -- Some parameters of the request were invalid.
95 | FIRInstanceIDErrorInvalidRequest = 7,
96 | };
97 |
98 | /**
99 | * The APNS token type for the app. If the token type is set to `UNKNOWN`
100 | * InstanceID will implicitly try to figure out what the actual token type
101 | * is from the provisioning profile.
102 | */
103 | typedef NS_ENUM(NSInteger, FIRInstanceIDAPNSTokenType) {
104 | /// Unknown token type.
105 | FIRInstanceIDAPNSTokenTypeUnknown,
106 | /// Sandbox token type.
107 | FIRInstanceIDAPNSTokenTypeSandbox,
108 | /// Production token type.
109 | FIRInstanceIDAPNSTokenTypeProd,
110 | };
111 |
112 | /**
113 | * Instance ID provides a unique identifier for each app instance and a mechanism
114 | * to authenticate and authorize actions (for example, sending a GCM message).
115 | *
116 | * Instance ID is long lived but, may be reset if the device is not used for
117 | * a long time or the Instance ID service detects a problem.
118 | * If Instance ID is reset, the app will be notified via
119 | * `kFIRInstanceIDTokenRefreshNotification`.
120 | *
121 | * If the Instance ID has become invalid, the app can request a new one and
122 | * send it to the app server.
123 | * To prove ownership of Instance ID and to allow servers to access data or
124 | * services associated with the app, call
125 | * `[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler]`.
126 | */
127 | @interface FIRInstanceID : NSObject
128 |
129 | /**
130 | * FIRInstanceID.
131 | *
132 | * @return A shared instance of FIRInstanceID.
133 | */
134 | + (nonnull instancetype)instanceID NS_SWIFT_NAME(instanceID());
135 |
136 | /**
137 | * Unavailable. Use +instanceID instead.
138 | */
139 | - (nonnull instancetype)init __attribute__((unavailable("Use +instanceID instead.")));
140 |
141 | /**
142 | * Set APNS token for the application. This APNS token will be used to register
143 | * with Firebase Messaging using `token` or
144 | * `tokenWithAuthorizedEntity:scope:options:handler`. If the token type is set to
145 | * `FIRInstanceIDAPNSTokenTypeUnknown` InstanceID will read the provisioning profile
146 | * to find out the token type.
147 | *
148 | * @param token The APNS token for the application.
149 | * @param type The APNS token type for the above token.
150 | */
151 | - (void)setAPNSToken:(nonnull NSData *)token
152 | type:(FIRInstanceIDAPNSTokenType)type;
153 |
154 | #pragma mark - Tokens
155 |
156 | /**
157 | * Returns a Firebase Messaging scoped token for the firebase app.
158 | *
159 | * @return Null Returns null if the device has not yet been registerd with
160 | * Firebase Message else returns a valid token.
161 | */
162 | - (nullable NSString *)token;
163 |
164 | /**
165 | * Returns a token that authorizes an Entity (example: cloud service) to perform
166 | * an action on behalf of the application identified by Instance ID.
167 | *
168 | * This is similar to an OAuth2 token except, it applies to the
169 | * application instance instead of a user.
170 | *
171 | * This is an asynchronous call. If the token fetching fails for some reason
172 | * we invoke the completion callback with nil `token` and the appropriate
173 | * error.
174 | *
175 | * Note, you can only have one `token` or `deleteToken` call for a given
176 | * authorizedEntity and scope at any point of time. Making another such call with the
177 | * same authorizedEntity and scope before the last one finishes will result in an
178 | * error with code `OperationInProgress`.
179 | *
180 | * @see FIRInstanceID deleteTokenWithAuthorizedEntity:scope:handler:
181 | *
182 | * @param authorizedEntity Entity authorized by the token.
183 | * @param scope Action authorized for authorizedEntity.
184 | * @param options The extra options to be sent with your token request. The
185 | * value for the `apns_token` should be the NSData object
186 | * passed to UIApplication's
187 | * `didRegisterForRemoteNotificationsWithDeviceToken` method.
188 | * All other keys and values in the options dict need to be
189 | * instances of NSString or else they will be discarded. Bundle
190 | * keys starting with 'GCM.' and 'GOOGLE.' are reserved.
191 | * @param handler The callback handler which is invoked when the token is
192 | * successfully fetched. In case of success a valid `token` and
193 | * `nil` error are returned. In case of any error the `token`
194 | * is nil and a valid `error` is returned. The valid error
195 | * codes have been documented above.
196 | */
197 | - (void)tokenWithAuthorizedEntity:(nonnull NSString *)authorizedEntity
198 | scope:(nonnull NSString *)scope
199 | options:(nullable NSDictionary *)options
200 | handler:(nonnull FIRInstanceIDTokenHandler)handler;
201 |
202 | /**
203 | * Revokes access to a scope (action) for an entity previously
204 | * authorized by `[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler]`.
205 | *
206 | * This is an asynchronous call. Call this on the main thread since InstanceID lib
207 | * is not thread safe. In case token deletion fails for some reason we invoke the
208 | * `handler` callback passed in with the appropriate error code.
209 | *
210 | * Note, you can only have one `token` or `deleteToken` call for a given
211 | * authorizedEntity and scope at a point of time. Making another such call with the
212 | * same authorizedEntity and scope before the last one finishes will result in an error
213 | * with code `OperationInProgress`.
214 | *
215 | * @param authorizedEntity Entity that must no longer have access.
216 | * @param scope Action that entity is no longer authorized to perform.
217 | * @param handler The handler that is invoked once the unsubscribe call ends.
218 | * In case of error an appropriate error object is returned
219 | * else error is nil.
220 | */
221 | - (void)deleteTokenWithAuthorizedEntity:(nonnull NSString *)authorizedEntity
222 | scope:(nonnull NSString *)scope
223 | handler:(nonnull FIRInstanceIDDeleteTokenHandler)handler;
224 |
225 | #pragma mark - Identity
226 |
227 | /**
228 | * Asynchronously fetch a stable identifier that uniquely identifies the app
229 | * instance. If the identifier has been revoked or has expired, this method will
230 | * return a new identifier.
231 | *
232 | *
233 | * @param handler The handler to invoke once the identifier has been fetched.
234 | * In case of error an appropriate error object is returned else
235 | * a valid identifier is returned and a valid identifier for the
236 | * application instance.
237 | */
238 | - (void)getIDWithHandler:(nonnull FIRInstanceIDHandler)handler;
239 |
240 | /**
241 | * Resets Instance ID and revokes all tokens.
242 | */
243 | - (void)deleteIDWithHandler:(nonnull FIRInstanceIDDeleteHandler)handler;
244 |
245 | @end
246 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h:
--------------------------------------------------------------------------------
1 | #import "FIRInstanceID.h"
2 |
--------------------------------------------------------------------------------
/iphone/platform/FirebaseInstanceID.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module FirebaseInstanceID {
2 | umbrella header "FirebaseInstanceID.h"
3 | export *
4 | module * { export *}
5 | link framework "Foundation"
6 | link framework "UIKit"
7 | }
--------------------------------------------------------------------------------
/iphone/platform/GTMSessionFetcher.framework/GTMSessionFetcher:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/platform/GTMSessionFetcher.framework/GTMSessionFetcher
--------------------------------------------------------------------------------
/iphone/platform/GoogleToolboxForMac.framework/GoogleToolboxForMac:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/platform/GoogleToolboxForMac.framework/GoogleToolboxForMac
--------------------------------------------------------------------------------
/iphone/platform/README.md:
--------------------------------------------------------------------------------
1 | Firebase SDK: 3.15.0
2 |
--------------------------------------------------------------------------------
/iphone/platform/module.modulemap:
--------------------------------------------------------------------------------
1 | module Firebase {
2 | export *
3 | header "Firebase.h"
4 | }
--------------------------------------------------------------------------------
/iphone/ti-firebase.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/iphone/ti-firebase.xcodeproj/project.xcworkspace/xcuserdata/cribe.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/iphone/ti-firebase.xcodeproj/project.xcworkspace/xcuserdata/cribe.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/iphone/ti-firebase.xcodeproj/xcshareddata/xcschemes/ti-firebase.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
34 |
35 |
45 |
46 |
52 |
53 |
54 |
55 |
58 |
59 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
74 |
80 |
81 |
82 |
83 |
85 |
86 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/iphone/ti-firebase.xcodeproj/xcuserdata/cribe.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Build & Test.xcscheme
8 |
9 | orderHint
10 | 1
11 |
12 | ti-firebase.xcscheme_^#shared#^_
13 |
14 | orderHint
15 | 0
16 |
17 |
18 | SuppressBuildableAutocreation
19 |
20 | 24416B8111C4CA220047AFDD
21 |
22 | primary
23 |
24 |
25 | D2AAC07D0554694100DB518D
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/iphone/timodule.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/iphone/titanium.xcconfig:
--------------------------------------------------------------------------------
1 | //
2 | //
3 | // CHANGE THESE VALUES TO REFLECT THE VERSION (AND LOCATION IF DIFFERENT)
4 | // OF YOUR TITANIUM SDK YOU'RE BUILDING FOR
5 | //
6 | //
7 | TITANIUM_SDK_VERSION = 6.0.2.GA
8 |
9 |
10 | //
11 | // THESE SHOULD BE OK GENERALLY AS-IS
12 | //
13 | TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)
14 | TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include"
15 | TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore"
16 | TITANIUM_BASE_SDK3 = "$(TITANIUM_SDK)/iphone/include/JavaScriptCore"
17 | HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) $(TITANIUM_BASE_SDK3)
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/ti.firebase-iphone-1.3.1.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chrisribe/ti-firebase/2a70e9741f9a902aa03ef38d3a6795710d181ae8/ti.firebase-iphone-1.3.1.zip
--------------------------------------------------------------------------------