Skip to content

Commit

Permalink
feat: macOS support
Browse files Browse the repository at this point in the history
macOS version 13.0 and above are supported, alongside deeplink.

To update the macOS webview, changes need to be made at Plugins/Mac
and the install.sh script must be run to generate a new .bundle file
which will be automatically placed in the package.
  • Loading branch information
CassiusPacheco committed Sep 20, 2023
1 parent ec12154 commit b6f01c6
Show file tree
Hide file tree
Showing 30 changed files with 1,149 additions and 147 deletions.
3 changes: 3 additions & 0 deletions Plugins/Mac/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DerivedData
WebView.xcodeproj/project.xcworkspace/xcuserdata/
WebView.xcodeproj/xcuserdata/
28 changes: 28 additions & 0 deletions Plugins/Mac/Resources/Info-WebViewSeparated.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Plugins/Mac/Resources/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions Plugins/Mac/Resources/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

3 changes: 3 additions & 0 deletions Plugins/Mac/Resources/Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
Loading

0 comments on commit b6f01c6

Please sign in to comment.