forked from arnesson/cordova-plugin-firebase
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
587 changed files
with
24,459 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ | |
package-lock.json | ||
node_modules | ||
cordova-plugin-firebase.code-workspace | ||
src/ios/Firebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ package-lock.json | |
node_modules | ||
test | ||
cordova-plugin-firebase.code-workspace | ||
src/ios/Firebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,8 @@ | |
"phone auth" | ||
], | ||
"scripts": { | ||
"postinstall": "npm run copy-ios-sdk", | ||
"postupdate": "npm run copy-ios-sdk", | ||
"version": "node ./bump-version.js && git add -A plugin.xml", | ||
"postversion": "git push && git push --tags && npm publish", | ||
"copy-ios-sdk": "(rm -r ./src/ios/Firebase || true) && cp -r ./node_modules/firebase-ios-sdk/src ./src/ios/Firebase", | ||
"test": "npm run test:ios && npm run test:android && npm run test:browser", | ||
"test:android": "npm run test:[email protected]:[email protected] && npm run test:[email protected]:[email protected] && npm run test:[email protected]:[email protected]", | ||
"test:browser": "npm run test:[email protected]:[email protected] && npm run test:[email protected]:[email protected] && npm run test:[email protected]:[email protected]", | ||
|
@@ -48,7 +45,5 @@ | |
"test:[email protected]:[email protected]": "bash ./test/test-default.sh 7.1.0 browser 5.0.3", | ||
"test:[email protected]:[email protected]": "bash ./test/test-default.sh 8.0.0 browser 5.0.3" | ||
}, | ||
"dependencies": { | ||
"firebase-ios-sdk": "^4.13.0" | ||
} | ||
"dependencies": {} | ||
} |
Binary file added
BIN
+574 KB
src/ios/Firebase/ABTesting/FirebaseABTesting.framework/FirebaseABTesting
Binary file not shown.
48 changes: 48 additions & 0 deletions
48
src/ios/Firebase/ABTesting/FirebaseABTesting.framework/Headers/FIRExperimentController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "developers/mobile/abt/proto/ExperimentPayload.pbobjc.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class FIRLifecycleEvents; | ||
|
||
/// The default experiment overflow policy, that is to discard the experiment with the oldest start | ||
/// time when users start the experiment on the web console. | ||
extern const ABTExperimentPayload_ExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; | ||
|
||
/// This class is for Firebase services to handle experiments updates to Firebase Analytics. | ||
/// Experiments can be set, cleared and updated through this controller. | ||
@interface FIRExperimentController : NSObject | ||
|
||
/// Returns the FIRExperimentController singleton. | ||
+ (FIRExperimentController *)sharedInstance; | ||
|
||
/// Updates the list of experiments. Experiments already existing in payloads are not affected, | ||
/// whose state and payload is preserved. This method compares whether the experiments have changed | ||
/// or not by their variant ID. This runs in a background queue. | ||
/// @param origin The originating service affected by the experiment, it is defined at | ||
/// Firebase Analytics FIREventOrigins.h. | ||
/// @param events A list of event names to be used for logging experiment lifecycle events, | ||
/// if they are not defined in the payload. | ||
/// @param policy The policy to handle new experiments when slots are full. | ||
/// @param lastStartTime The last known experiment start timestamp for this affected service. | ||
/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 | ||
/// January 1970.). | ||
/// @param payloads List of experiment metadata. | ||
- (void)updateExperimentsWithServiceOrigin:(NSString *)origin | ||
events:(FIRLifecycleEvents *)events | ||
policy:(ABTExperimentPayload_ExperimentOverflowPolicy)policy | ||
lastStartTime:(NSTimeInterval)lastStartTime | ||
payloads:(NSArray<NSData *> *)payloads; | ||
|
||
/// Returns the latest experiment start timestamp given a current latest timestamp and a list of | ||
/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 | ||
/// January 1970. | ||
/// @param timestamp Current latest experiment start timestamp. If not known, affected service | ||
/// should specify -1; | ||
/// @param payloads List of experiment metadata. | ||
- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp | ||
andPayloads:(NSArray<NSData *> *)payloads; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
46 changes: 46 additions & 0 deletions
46
src/ios/Firebase/ABTesting/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// Default event name for when an experiment is set. | ||
extern NSString *const FIRSetExperimentEventName; | ||
/// Default event name for when an experiment is activated. | ||
extern NSString *const FIRActivateExperimentEventName; | ||
/// Default event name for when an experiment is cleared. | ||
extern NSString *const FIRClearExperimentEventName; | ||
/// Default event name for when an experiment times out for being activated. | ||
extern NSString *const FIRTimeoutExperimentEventName; | ||
/// Default event name for when an experiment is expired as it reaches the end of TTL. | ||
extern NSString *const FIRExpireExperimentEventName; | ||
|
||
/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be | ||
/// logged by Firebase Analytics. | ||
@interface FIRLifecycleEvents : NSObject | ||
|
||
/// Event name for when an experiment is set. It is default to FIRSetExperimentEventName and can be | ||
/// overriden. If experiment payload has a valid string of this field, always use experiment | ||
/// payload. | ||
@property(nonatomic, copy) NSString *setExperimentEventName; | ||
|
||
/// Event name for when an experiment is activated. It is default to FIRActivateExperimentEventName | ||
/// and can be overriden. If experiment payload has a valid string of this field, always use | ||
/// experiment payload. | ||
@property(nonatomic, copy) NSString *activateExperimentEventName; | ||
|
||
/// Event name for when an experiment is clearred. It is default to FIRClearExperimentEventName and | ||
/// can be overriden. If experiment payload has a valid string of this field, always use experiment | ||
/// payload. | ||
@property(nonatomic, copy) NSString *clearExperimentEventName; | ||
/// Event name for when an experiment is timeout from being STANDBY. It is default to | ||
/// FIRTimeoutExperimentEventName and can be overriden. If experiment payload has a valid string | ||
/// of this field, always use experiment payload. | ||
@property(nonatomic, copy) NSString *timeoutExperimentEventName; | ||
|
||
/// Event name when an experiment is expired when it reaches the end of its TTL. | ||
/// It is default to FIRExpireExperimentEventName and can be overriden. If experiment payload has a | ||
/// valid string of this field, always use experiment payload. | ||
@property(nonatomic, copy) NSString *expireExperimentEventName; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
2 changes: 2 additions & 0 deletions
2
src/ios/Firebase/ABTesting/FirebaseABTesting.framework/Headers/FirebaseABTesting.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#import "FIRExperimentController.h" | ||
#import "FIRLifecycleEvents.h" |
7 changes: 7 additions & 0 deletions
7
src/ios/Firebase/ABTesting/FirebaseABTesting.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
framework module FirebaseABTesting { | ||
umbrella header "FirebaseABTesting.h" | ||
export * | ||
module * { export *} | ||
link "z" | ||
link framework "Security" | ||
link framework "SystemConfiguration"} |
5 changes: 5 additions & 0 deletions
5
src/ios/Firebase/ABTesting/Protobuf.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
framework module Protobuf { | ||
umbrella header "Protobuf.h" | ||
export * | ||
module * { export *} | ||
} |
Binary file not shown.
Binary file not shown.
110 changes: 110 additions & 0 deletions
110
src/ios/Firebase/AdMob/GoogleMobileAds.framework/Headers/DFPBannerView.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
// | ||
// DFPBannerView.h | ||
// Google Mobile Ads SDK | ||
// | ||
// Copyright 2012 Google Inc. All rights reserved. | ||
// | ||
|
||
#import <GoogleMobileAds/DFPCustomRenderedBannerViewDelegate.h> | ||
#import <GoogleMobileAds/GADAdLoaderDelegate.h> | ||
#import <GoogleMobileAds/GADAppEventDelegate.h> | ||
#import <GoogleMobileAds/GADBannerView.h> | ||
#import <GoogleMobileAds/GADCorrelator.h> | ||
#import <GoogleMobileAds/GADVideoController.h> | ||
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> | ||
|
||
GAD_ASSUME_NONNULL_BEGIN | ||
|
||
/// The delegate of a GADAdLoader object must conform to this protocol to receive DFPBannerViews. | ||
@protocol DFPBannerAdLoaderDelegate<GADAdLoaderDelegate> | ||
|
||
/// Asks the delegate which banner ad sizes should be requested. | ||
- (NSArray<NSValue *> *)validBannerSizesForAdLoader:(GADAdLoader *)adLoader; | ||
|
||
/// Tells the delegate that a DFP banner ad was received. | ||
- (void)adLoader:(GADAdLoader *)adLoader didReceiveDFPBannerView:(DFPBannerView *)bannerView; | ||
|
||
@end | ||
|
||
/// The view that displays DoubleClick For Publishers banner ads. | ||
/// | ||
/// To request this ad type using GADAdLoader, you need to pass kGADAdLoaderAdTypeDFPBanner (see | ||
/// GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader's initializer method. If you | ||
/// request this ad type, your delegate must conform to the DFPBannerAdLoaderDelegate protocol. | ||
@interface DFPBannerView : GADBannerView | ||
|
||
/// Required value created on the DFP website. Create a new ad unit for every unique placement of an | ||
/// ad in your application. Set this to the ID assigned for this placement. Ad units are important | ||
/// for targeting and statistics. | ||
/// | ||
/// Example DFP ad unit ID: @"/6499/example/banner" | ||
@property(nonatomic, copy, GAD_NULLABLE) NSString *adUnitID; | ||
|
||
/// Optional delegate that is notified when creatives send app events. | ||
@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id<GADAppEventDelegate> appEventDelegate; | ||
|
||
/// Optional delegate that is notified when creatives cause the banner to change size. | ||
@property(nonatomic, weak, GAD_NULLABLE) IBOutlet id<GADAdSizeDelegate> adSizeDelegate; | ||
|
||
/// Optional array of NSValue encoded GADAdSize structs, specifying all valid sizes that are | ||
/// appropriate for this slot. Never create your own GADAdSize directly. Use one of the predefined | ||
/// standard ad sizes (such as kGADAdSizeBanner), or create one using the GADAdSizeFromCGSize | ||
/// method. | ||
/// | ||
/// Example: | ||
/// | ||
/// <pre> | ||
/// NSArray *validSizes = @[ | ||
/// NSValueFromGADAdSize(kGADAdSizeBanner), | ||
/// NSValueFromGADAdSize(kGADAdSizeLargeBanner) | ||
/// ]; | ||
/// | ||
/// bannerView.validAdSizes = validSizes; | ||
/// </pre> | ||
@property(nonatomic, copy, GAD_NULLABLE) NSArray *validAdSizes; | ||
|
||
/// Correlator object for correlating this object to other ad objects. | ||
@property(nonatomic, strong, GAD_NULLABLE) GADCorrelator *correlator; | ||
|
||
/// Indicates that the publisher will record impressions manually when the ad becomes visible to the | ||
/// user. | ||
@property(nonatomic, assign) BOOL enableManualImpressions; | ||
|
||
/// Optional delegate object for custom rendered ads. | ||
@property(nonatomic, weak, GAD_NULLABLE) | ||
IBOutlet id<DFPCustomRenderedBannerViewDelegate> customRenderedBannerViewDelegate; | ||
|
||
/// Video controller for controlling video rendered by this ad view. | ||
@property(nonatomic, strong, readonly) GADVideoController *videoController; | ||
|
||
/// If you've set enableManualImpressions to YES, call this method when the ad is visible. | ||
- (void)recordImpression; | ||
|
||
/// Use this function to resize the banner view without launching a new ad request. | ||
- (void)resize:(GADAdSize)size; | ||
|
||
/// Sets options that configure ad loading. | ||
/// | ||
/// @param adOptions An array of GADAdLoaderOptions objects. The array is deep copied and option | ||
/// objects cannot be modified after calling this method. | ||
- (void)setAdOptions:(NSArray *)adOptions; | ||
|
||
#pragma mark Deprecated | ||
|
||
/// Deprecated. Use the validAdSizes property. | ||
/// Sets the receiver's valid ad sizes to the values pointed to by the provided NULL terminated list | ||
/// of GADAdSize pointers. | ||
/// | ||
/// Example: | ||
/// | ||
/// <pre> | ||
/// GADAdSize size1 = kGADAdSizeBanner; | ||
/// GADAdSize size2 = kGADAdSizeLargeBanner; | ||
/// [bannerView setValidAdSizesWithSizes:&size1, &size2, NULL]; | ||
/// </pre> | ||
- (void)setValidAdSizesWithSizes:(GADAdSize *)firstSize, ... NS_REQUIRES_NIL_TERMINATION | ||
GAD_DEPRECATED_MSG_ATTRIBUTE("Use validAdSizes property."); | ||
|
||
@end | ||
|
||
GAD_ASSUME_NONNULL_END |
29 changes: 29 additions & 0 deletions
29
src/ios/Firebase/AdMob/GoogleMobileAds.framework/Headers/DFPBannerViewOptions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// DFPBannerViewOptions.h | ||
// Google Mobile Ads SDK | ||
// | ||
// Copyright © 2016 Google Inc. All rights reserved. | ||
// | ||
|
||
#import <GoogleMobileAds/GADAdLoader.h> | ||
#import <GoogleMobileAds/GADAdSize.h> | ||
#import <GoogleMobileAds/GADAdSizeDelegate.h> | ||
#import <GoogleMobileAds/GADAppEventDelegate.h> | ||
|
||
GAD_ASSUME_NONNULL_BEGIN | ||
|
||
/// Ad loader options for banner ads. | ||
@interface DFPBannerViewOptions : GADAdLoaderOptions | ||
|
||
/// Optional delegate that is notified if the loaded banner sends app events. | ||
@property(nonatomic, weak, GAD_NULLABLE) id<GADAppEventDelegate> appEventDelegate; | ||
|
||
/// Optional delegate that is notified if the loaded banner changes size. | ||
@property(nonatomic, weak, GAD_NULLABLE) id<GADAdSizeDelegate> adSizeDelegate; | ||
|
||
/// Whether the publisher will record impressions manually when the ad becomes visible to the user. | ||
@property(nonatomic, assign) BOOL enableManualImpressions; | ||
|
||
@end | ||
|
||
GAD_ASSUME_NONNULL_END |
34 changes: 34 additions & 0 deletions
34
src/ios/Firebase/AdMob/GoogleMobileAds.framework/Headers/DFPCustomRenderedAd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// DFPCustomRenderedAd.h | ||
// Google Mobile Ads SDK | ||
// | ||
// Copyright 2014 Google Inc. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> | ||
|
||
GAD_ASSUME_NONNULL_BEGIN | ||
|
||
/// Custom rendered ad. Your application renders the ad. | ||
@interface DFPCustomRenderedAd : NSObject | ||
|
||
/// The ad's HTML. | ||
@property(nonatomic, readonly, copy) NSString *adHTML; | ||
|
||
/// The base URL of the ad's HTML. | ||
@property(nonatomic, readonly, copy) NSURL *adBaseURL; | ||
|
||
/// Call this method when the user clicks the ad. | ||
- (void)recordClick; | ||
|
||
/// Call this method when the ad is visible to the user. | ||
- (void)recordImpression; | ||
|
||
/// Call this method after the ad has been rendered in a UIView object. | ||
- (void)finishedRenderingAdView:(UIView *)view; | ||
|
||
@end | ||
|
||
GAD_ASSUME_NONNULL_END |
28 changes: 28 additions & 0 deletions
28
...os/Firebase/AdMob/GoogleMobileAds.framework/Headers/DFPCustomRenderedBannerViewDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// DFPCustomRenderedBannerViewDelegate.h | ||
// Google Mobile Ads SDK | ||
// | ||
// Copyright 2014 Google Inc. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> | ||
|
||
@class DFPBannerView; | ||
@class DFPCustomRenderedAd; | ||
|
||
GAD_ASSUME_NONNULL_BEGIN | ||
|
||
/// The DFPCustomRenderedAd banner view delegate protocol for notifying the delegate of changes to | ||
/// custom rendered banners. | ||
@protocol DFPCustomRenderedBannerViewDelegate<NSObject> | ||
|
||
/// Called after ad data has been received. You must construct a banner from |customRenderedAd| and | ||
/// call the |customRenderedAd| object's finishedRenderingAdView: when the ad has been rendered. | ||
- (void)bannerView:(DFPBannerView *)bannerView | ||
didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd; | ||
|
||
@end | ||
|
||
GAD_ASSUME_NONNULL_END |
29 changes: 29 additions & 0 deletions
29
.../Firebase/AdMob/GoogleMobileAds.framework/Headers/DFPCustomRenderedInterstitialDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// DFPCustomRenderedInterstitialDelegate.h | ||
// Google Mobile Ads SDK | ||
// | ||
// Copyright 2014 Google Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> | ||
|
||
@class DFPCustomRenderedAd; | ||
@class DFPInterstitial; | ||
|
||
GAD_ASSUME_NONNULL_BEGIN | ||
|
||
/// The DFPCustomRenderedAd interstitial delegate protocol for notifying the delegate of changes to | ||
/// custom rendered interstitials. | ||
@protocol DFPCustomRenderedInterstitialDelegate<NSObject> | ||
|
||
/// Called after ad data has been received. You must construct an interstitial from | ||
/// |customRenderedAd| and call the |customRenderedAd| object's finishedRenderingAdView: method when | ||
/// the ad has been rendered. | ||
- (void)interstitial:(DFPInterstitial *)interstitial | ||
didReceiveCustomRenderedAd:(DFPCustomRenderedAd *)customRenderedAd; | ||
|
||
@end | ||
|
||
GAD_ASSUME_NONNULL_END |
Oops, something went wrong.