mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-18 12:12:23 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -9,7 +9,7 @@ if using_custom_firebase_sdk_version
|
||||
end
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "RNFBAdmob"
|
||||
s.name = "RNFBAdMob"
|
||||
s.version = package["version"]
|
||||
s.description = package["description"]
|
||||
s.summary = <<-DESC
|
||||
|
||||
@@ -182,9 +182,17 @@
|
||||
|
||||
NSArray<PHAssetResource *> *resources = [PHAssetResource assetResourcesForAsset:asset];
|
||||
for (PHAssetResource *resource in resources) {
|
||||
exportSession.outputFileType = resource.uniformTypeIdentifier;
|
||||
if (exportSession.outputFileType != nil)
|
||||
break;
|
||||
if (resources.count > 1) {
|
||||
if (resource.type != PHAssetResourceTypeVideo) {
|
||||
continue;
|
||||
} else {
|
||||
exportSession.outputFileType = resource.uniformTypeIdentifier;
|
||||
}
|
||||
} else {
|
||||
exportSession.outputFileType = resource.uniformTypeIdentifier;
|
||||
}
|
||||
|
||||
if (exportSession.outputFileType != nil) break;
|
||||
}
|
||||
|
||||
[exportSession exportAsynchronouslyWithCompletionHandler:^{
|
||||
|
||||
Reference in New Issue
Block a user