Skip to content

Commit c824ef0

Browse files
committed
chore: move shared frameworks
1 parent 5f0eac0 commit c824ef0

File tree

147 files changed

+9647
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+9647
-6
lines changed

ios/manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this is your module manifest and used by Titanium
33
# during compilation, packaging, distribution, etc.
44
#
5-
version: 8.0.0
5+
version: 8.0.1
66
apiversion: 2
77
architectures: arm64 x86_64
88
description: titanium-firebase-analytics
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>LibraryIdentifier</key>
9+
<string>ios-arm64_x86_64-simulator</string>
10+
<key>LibraryPath</key>
11+
<string>FBLPromises.framework</string>
12+
<key>SupportedArchitectures</key>
13+
<array>
14+
<string>arm64</string>
15+
<string>x86_64</string>
16+
</array>
17+
<key>SupportedPlatform</key>
18+
<string>ios</string>
19+
<key>SupportedPlatformVariant</key>
20+
<string>simulator</string>
21+
</dict>
22+
<dict>
23+
<key>LibraryIdentifier</key>
24+
<string>tvos-arm64_x86_64-simulator</string>
25+
<key>LibraryPath</key>
26+
<string>FBLPromises.framework</string>
27+
<key>SupportedArchitectures</key>
28+
<array>
29+
<string>arm64</string>
30+
<string>x86_64</string>
31+
</array>
32+
<key>SupportedPlatform</key>
33+
<string>tvos</string>
34+
<key>SupportedPlatformVariant</key>
35+
<string>simulator</string>
36+
</dict>
37+
<dict>
38+
<key>LibraryIdentifier</key>
39+
<string>ios-arm64</string>
40+
<key>LibraryPath</key>
41+
<string>FBLPromises.framework</string>
42+
<key>SupportedArchitectures</key>
43+
<array>
44+
<string>arm64</string>
45+
</array>
46+
<key>SupportedPlatform</key>
47+
<string>ios</string>
48+
</dict>
49+
<dict>
50+
<key>LibraryIdentifier</key>
51+
<string>ios-arm64_x86_64-maccatalyst</string>
52+
<key>LibraryPath</key>
53+
<string>FBLPromises.framework</string>
54+
<key>SupportedArchitectures</key>
55+
<array>
56+
<string>arm64</string>
57+
<string>x86_64</string>
58+
</array>
59+
<key>SupportedPlatform</key>
60+
<string>ios</string>
61+
<key>SupportedPlatformVariant</key>
62+
<string>maccatalyst</string>
63+
</dict>
64+
<dict>
65+
<key>LibraryIdentifier</key>
66+
<string>macos-arm64_x86_64</string>
67+
<key>LibraryPath</key>
68+
<string>FBLPromises.framework</string>
69+
<key>SupportedArchitectures</key>
70+
<array>
71+
<string>arm64</string>
72+
<string>x86_64</string>
73+
</array>
74+
<key>SupportedPlatform</key>
75+
<string>macos</string>
76+
</dict>
77+
<dict>
78+
<key>LibraryIdentifier</key>
79+
<string>tvos-arm64</string>
80+
<key>LibraryPath</key>
81+
<string>FBLPromises.framework</string>
82+
<key>SupportedArchitectures</key>
83+
<array>
84+
<string>arm64</string>
85+
</array>
86+
<key>SupportedPlatform</key>
87+
<string>tvos</string>
88+
</dict>
89+
</array>
90+
<key>CFBundlePackageType</key>
91+
<string>XFWK</string>
92+
<key>XCFrameworkFormatVersion</key>
93+
<string>1.0</string>
94+
</dict>
95+
</plist>
Binary file not shown.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
Copyright 2018 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#import "FBLPromise.h"
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
@interface FBLPromise<Value>(AllAdditions)
22+
23+
/**
24+
Wait until all of the given promises are fulfilled.
25+
If one of the given promises is rejected, then the returned promise is rejected with same error.
26+
If any other arbitrary value or `NSError` appears in the array instead of `FBLPromise`,
27+
it's implicitly considered a pre-fulfilled or pre-rejected `FBLPromise` correspondingly.
28+
Promises resolved with `nil` become `NSNull` instances in the resulting array.
29+
30+
@param promises Promises to wait for.
31+
@return Promise of an array containing the values of input promises in the same order.
32+
*/
33+
+ (FBLPromise<NSArray *> *)all:(NSArray *)promises NS_SWIFT_UNAVAILABLE("");
34+
35+
/**
36+
Wait until all of the given promises are fulfilled.
37+
If one of the given promises is rejected, then the returned promise is rejected with same error.
38+
If any other arbitrary value or `NSError` appears in the array instead of `FBLPromise`,
39+
it's implicitly considered a pre-fulfilled or pre-rejected FBLPromise correspondingly.
40+
Promises resolved with `nil` become `NSNull` instances in the resulting array.
41+
42+
@param queue A queue to dispatch on.
43+
@param promises Promises to wait for.
44+
@return Promise of an array containing the values of input promises in the same order.
45+
*/
46+
+ (FBLPromise<NSArray *> *)onQueue:(dispatch_queue_t)queue
47+
all:(NSArray *)promises NS_REFINED_FOR_SWIFT;
48+
49+
@end
50+
51+
/**
52+
Convenience dot-syntax wrappers for `FBLPromise` `all` operators.
53+
Usage: FBLPromise.all(@[ ... ])
54+
*/
55+
@interface FBLPromise<Value>(DotSyntax_AllAdditions)
56+
57+
+ (FBLPromise<NSArray *> * (^)(NSArray *))all FBL_PROMISES_DOT_SYNTAX NS_SWIFT_UNAVAILABLE("");
58+
+ (FBLPromise<NSArray *> * (^)(dispatch_queue_t, NSArray *))allOn FBL_PROMISES_DOT_SYNTAX
59+
NS_SWIFT_UNAVAILABLE("");
60+
61+
@end
62+
63+
NS_ASSUME_NONNULL_END
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
Copyright 2018 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#import "FBLPromise.h"
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
@interface FBLPromise<Value>(AlwaysAdditions)
22+
23+
typedef void (^FBLPromiseAlwaysWorkBlock)(void) NS_SWIFT_UNAVAILABLE("");
24+
25+
/**
26+
@param work A block that always executes, no matter if the receiver is rejected or fulfilled.
27+
@return A new pending promise to be resolved with same resolution as the receiver.
28+
*/
29+
- (FBLPromise *)always:(FBLPromiseAlwaysWorkBlock)work NS_SWIFT_UNAVAILABLE("");
30+
31+
/**
32+
@param queue A queue to dispatch on.
33+
@param work A block that always executes, no matter if the receiver is rejected or fulfilled.
34+
@return A new pending promise to be resolved with same resolution as the receiver.
35+
*/
36+
- (FBLPromise *)onQueue:(dispatch_queue_t)queue
37+
always:(FBLPromiseAlwaysWorkBlock)work NS_REFINED_FOR_SWIFT;
38+
39+
@end
40+
41+
/**
42+
Convenience dot-syntax wrappers for `FBLPromise` `always` operators.
43+
Usage: promise.always(^{...})
44+
*/
45+
@interface FBLPromise<Value>(DotSyntax_AlwaysAdditions)
46+
47+
- (FBLPromise* (^)(FBLPromiseAlwaysWorkBlock))always FBL_PROMISES_DOT_SYNTAX
48+
NS_SWIFT_UNAVAILABLE("");
49+
- (FBLPromise* (^)(dispatch_queue_t, FBLPromiseAlwaysWorkBlock))alwaysOn FBL_PROMISES_DOT_SYNTAX
50+
NS_SWIFT_UNAVAILABLE("");
51+
52+
@end
53+
54+
NS_ASSUME_NONNULL_END
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
Copyright 2018 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#import "FBLPromise.h"
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
@interface FBLPromise<Value>(AnyAdditions)
22+
23+
/**
24+
Waits until all of the given promises are either fulfilled or rejected.
25+
If all promises are rejected, then the returned promise is rejected with same error
26+
as the last one rejected.
27+
If at least one of the promises is fulfilled, the resulting promise is fulfilled with an array of
28+
values or `NSErrors`, matching the original order of fulfilled or rejected promises respectively.
29+
If any other arbitrary value or `NSError` appears in the array instead of `FBLPromise`,
30+
it's implicitly considered a pre-fulfilled or pre-rejected `FBLPromise` correspondingly.
31+
Promises resolved with `nil` become `NSNull` instances in the resulting array.
32+
33+
@param promises Promises to wait for.
34+
@return Promise of array containing the values or `NSError`s of input promises in the same order.
35+
*/
36+
+ (FBLPromise<NSArray *> *)any:(NSArray *)promises NS_SWIFT_UNAVAILABLE("");
37+
38+
/**
39+
Waits until all of the given promises are either fulfilled or rejected.
40+
If all promises are rejected, then the returned promise is rejected with same error
41+
as the last one rejected.
42+
If at least one of the promises is fulfilled, the resulting promise is fulfilled with an array of
43+
values or `NSError`s, matching the original order of fulfilled or rejected promises respectively.
44+
If any other arbitrary value or `NSError` appears in the array instead of `FBLPromise`,
45+
it's implicitly considered a pre-fulfilled or pre-rejected `FBLPromise` correspondingly.
46+
Promises resolved with `nil` become `NSNull` instances in the resulting array.
47+
48+
@param queue A queue to dispatch on.
49+
@param promises Promises to wait for.
50+
@return Promise of array containing the values or `NSError`s of input promises in the same order.
51+
*/
52+
+ (FBLPromise<NSArray *> *)onQueue:(dispatch_queue_t)queue
53+
any:(NSArray *)promises NS_REFINED_FOR_SWIFT;
54+
55+
@end
56+
57+
/**
58+
Convenience dot-syntax wrappers for `FBLPromise` `any` operators.
59+
Usage: FBLPromise.any(@[ ... ])
60+
*/
61+
@interface FBLPromise<Value>(DotSyntax_AnyAdditions)
62+
63+
+ (FBLPromise<NSArray *> * (^)(NSArray *))any FBL_PROMISES_DOT_SYNTAX NS_SWIFT_UNAVAILABLE("");
64+
+ (FBLPromise<NSArray *> * (^)(dispatch_queue_t, NSArray *))anyOn FBL_PROMISES_DOT_SYNTAX
65+
NS_SWIFT_UNAVAILABLE("");
66+
67+
@end
68+
69+
NS_ASSUME_NONNULL_END
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
Copyright 2018 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#import "FBLPromise.h"
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
@interface FBLPromise<Value>(AsyncAdditions)
22+
23+
typedef void (^FBLPromiseFulfillBlock)(Value __nullable value) NS_SWIFT_UNAVAILABLE("");
24+
typedef void (^FBLPromiseRejectBlock)(NSError *error) NS_SWIFT_UNAVAILABLE("");
25+
typedef void (^FBLPromiseAsyncWorkBlock)(FBLPromiseFulfillBlock fulfill,
26+
FBLPromiseRejectBlock reject) NS_SWIFT_UNAVAILABLE("");
27+
28+
/**
29+
Creates a pending promise and executes `work` block asynchronously.
30+
31+
@param work A block to perform any operations needed to resolve the promise.
32+
@return A new pending promise.
33+
*/
34+
+ (instancetype)async:(FBLPromiseAsyncWorkBlock)work NS_SWIFT_UNAVAILABLE("");
35+
36+
/**
37+
Creates a pending promise and executes `work` block asynchronously on the given queue.
38+
39+
@param queue A queue to invoke the `work` block on.
40+
@param work A block to perform any operations needed to resolve the promise.
41+
@return A new pending promise.
42+
*/
43+
+ (instancetype)onQueue:(dispatch_queue_t)queue
44+
async:(FBLPromiseAsyncWorkBlock)work NS_REFINED_FOR_SWIFT;
45+
46+
@end
47+
48+
/**
49+
Convenience dot-syntax wrappers for `FBLPromise` `async` operators.
50+
Usage: FBLPromise.async(^(FBLPromiseFulfillBlock fulfill, FBLPromiseRejectBlock reject) { ... })
51+
*/
52+
@interface FBLPromise<Value>(DotSyntax_AsyncAdditions)
53+
54+
+ (FBLPromise* (^)(FBLPromiseAsyncWorkBlock))async FBL_PROMISES_DOT_SYNTAX NS_SWIFT_UNAVAILABLE("");
55+
+ (FBLPromise* (^)(dispatch_queue_t, FBLPromiseAsyncWorkBlock))asyncOn FBL_PROMISES_DOT_SYNTAX
56+
NS_SWIFT_UNAVAILABLE("");
57+
58+
@end
59+
60+
NS_ASSUME_NONNULL_END
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
Copyright 2018 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#import "FBLPromise.h"
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
/**
22+
Waits for promise resolution. The current thread blocks until the promise is resolved.
23+
24+
@param promise Promise to wait for.
25+
@param error Error the promise was rejected with, or `nil` if the promise was fulfilled.
26+
@return Value the promise was fulfilled with. If the promise was rejected, the return value
27+
is always `nil`, but the error out arg is not.
28+
*/
29+
FOUNDATION_EXTERN id __nullable FBLPromiseAwait(FBLPromise *promise,
30+
NSError **error) NS_REFINED_FOR_SWIFT;
31+
32+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)