pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 587 forks source link

Code displayed in XCode does not match this repo #185

Closed nareshbhatia closed 6 years ago

nareshbhatia commented 6 years ago

After cordova plugin add cordova-plugin-file-opener2 I get the following in my config.xml:

<plugin name="cordova-plugin-file-opener2" spec="^2.0.19" />

When I look at fileOpener2.m in XCode, I see following at line 52:

NSString *uti = (__bridge NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)fileExt, NULL);

The source in this repo is different: https://github.com/pwlin/cordova-plugin-file-opener2/blob/master/src/ios/FileOpener2.m#L50-L53

I am not familiar enough with the plugin install process to know where is the gap?

nareshbhatia commented 6 years ago

Answering my own question:

Version 2.0.19 does not reflect the latest code in the repository.

Used the following command to get the latest version:

cordova plugin add https://github.com/pwlin/cordova-plugin-file-opener2.git