diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3615830..ccb0133 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,71 @@ # Contributing This guide provides instructions for contributing to this Capacitor plugin. + +## Native code + +This repository contains minimal code for native Android and iOS. The implementation for native mobile exists in separate repositories: + +- [Contributing for Android](https://github.com/ionic-team/ion-android-fileviewer?tab=readme-ov-file#contributing) +- [Contributing for iOS](https://github.com/ionic-team/ion-ios-fileviewer?tab=readme-ov-file#contributing) + +## Developing + +### Local Setup + +1. Fork and clone the repo, uncheking the clone `main` branch only option. +2. If you plan to create a new feature or fix a bug, checkout `development` branch (in general Pull Requests should be open for that branch). +3. Install the dependencies. + + ```shell + npm install + ``` + +4. Install SwiftLint if you're on macOS. + + ```shell + brew install swiftlint + ``` + +### Scripts + +#### `npm run build` + +Build the plugin web assets and generate plugin API documentation using [`@capacitor/docgen`](https://github.com/ionic-team/capacitor-docgen). + +It will compile the TypeScript code from `src/` into ESM JavaScript in `dist/esm/`. These files are used in apps with bundlers when your plugin is imported. + +Then, Rollup will bundle the code into a single file at `dist/plugin.js`. This file is used in apps without bundlers by including it as a script in `index.html`. + +#### `npm run verify` + +Build and validate the web and native projects. + +This is useful to run in CI to verify that the plugin builds for all platforms. + +#### `npm run lint` / `npm run fmt` + +Check formatting and code quality, autoformat/autofix if possible. + +This template is integrated with ESLint, Prettier, and SwiftLint. Using these tools is completely optional, but the [Capacitor Community](https://github.com/capacitor-community/) strives to have consistent code style and structure for easier cooperation. + +## Commits/PR's + +Commits and PR's should use the [conventional-commits](https://www.conventionalcommits.org/) format so the release process can version and create changelog correctly. + +## Publishing + +Publishing is automated based on the branch committed to. When a commit or merge is made to a branch a release that corresponds with the branch will be created: + +| Branch Name | Build Type | NPM Tag | Example NPM Version | +| ----------- | ----------------------------- | ------- | ---------------------------------- | +| development | dev | dev | @capacitor/file-viewer@1.0.0-dev.1 | +| next | next (these are betas/alphas) | next | @capacitor/file-viewer@1.0.0-next.1 | +| main | latest | latest | @capacitor/file-viewer@1.0.0 | + +- Dev work should be done by creating and merging PR's into the `development` branch until a feature set is complete enough to form a release. +- When a feature set is complete enough to form a release, merge the `development` branch into the `next` branch where it becomes a beta/alpha tagged under `next` for testing teams to use before full release. In case a PR is opened from `development` to `next`, avoid squashing the commits, to keep the history. +- Upon completed testing the `next` branch is merged into `main` for a full release to be made. In case a PR is opened from `next` to `main`, avoid squashing the commits, to keep the history. +- The `main` branch should then be merged into `dev` and `next` to keep them up to date with the latest code base. + +> **Note**: The [`files`](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files) array in `package.json` specifies which files get published. If you rename files/directories or add files elsewhere, you may need to update it. diff --git a/README.md b/README.md index ff4373d..8ff6723 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,56 @@ # capacitor-file-viewer -File Viewer plugin for Capacitor ⚑️ + +
+ + Logo + + +

@capacitor/file-viewer

+ +

+ The FileViewer API provides mechanisms for opening files and previewing media. Not available on web. +
+ πŸ”Œ Cordova Plugin + Β· + πŸ€– Android Library + Β· + 🍏 iOS Library +

+

+ πŸ› Report Bug + Β· + πŸ’‘ Request Feature +

+
+ +## Install + +```bash +npm install @capacitor/file-viewer +npx cap sync +``` + +## Example + +```typescript +import { FileViewer } from "@capacitor/file-viewer"; + +// can use a plugin like @capacitor/filesystem to get the full path to the file +const openDocument = async () => { + await FileViewer.openDocumentFromLocalPath({ + path: "path/to/file.pdf" + }); +}; + +// ios-specific +const previewMedia = async () => { + await FileViewer.previewMediaContentFromUrl({ + path: "https://url_hosting_media/file.mp4" + }); +} +``` + +## API + +Check the plugin's api [here](packages/capacitor-plugin/README.md). + diff --git a/packages/capacitor-plugin/CapacitorFileViewer.podspec b/packages/capacitor-plugin/CapacitorFileViewer.podspec index 4b4efb0..6a83433 100644 --- a/packages/capacitor-plugin/CapacitorFileViewer.podspec +++ b/packages/capacitor-plugin/CapacitorFileViewer.podspec @@ -13,6 +13,8 @@ Pod::Spec.new do |s| s.source_files = 'ios/Sources/FileViewerPlugin/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '14.0' #s.dependency 'FileViewerLib', spec='~> 1.0' + # temporary xcframeowrk dependency - TODO update to official pod (commented line above) once published + s.vendored_frameworks = 'ios/Sources/*/IONFileViewerLib.xcframework' s.dependency 'Capacitor' s.swift_version = '5.1' end diff --git a/packages/capacitor-plugin/Package.swift b/packages/capacitor-plugin/Package.swift index 32d6931..8901386 100644 --- a/packages/capacitor-plugin/Package.swift +++ b/packages/capacitor-plugin/Package.swift @@ -13,11 +13,18 @@ let package = Package( .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "7.0.0") ], targets: [ + .binaryTarget( + name: "IONFileViewerLib", + // url: "https://github.com/ionic-team/ion-ios-fileviewer/releases/download/1.0.0/IONFileViewerLib.zip", + // checksum: "" // sha-256 + path: "./ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework" + ), .target( name: "FileViewerPlugin", dependencies: [ .product(name: "Capacitor", package: "capacitor-swift-pm"), - .product(name: "Cordova", package: "capacitor-swift-pm") + .product(name: "Cordova", package: "capacitor-swift-pm"), + "IONFileViewerLib" ], path: "ios/Sources/FileViewerPlugin"), .testTarget( diff --git a/packages/capacitor-plugin/README.md b/packages/capacitor-plugin/README.md index ca615c9..2675b88 100644 --- a/packages/capacitor-plugin/README.md +++ b/packages/capacitor-plugin/README.md @@ -1,10 +1,48 @@ # @capacitor/file-viewer +The FileViewer API provides mechanisms for opening files and previewing media. Not available on web. + +The media preview methods are currently only supported on iOS. It uses a built-in player. + +## Install + +```bash +npm install @capacitor/file-viewer +npx cap sync +``` + +## Example + +```typescript +import { FileViewer } from "@capacitor/file-viewer"; + +// can use a plugin like @capacitor/filesystem to get the full path to the file +const openDocument = async () => { + await FileViewer.openDocumentFromLocalPath({ + path: "path/to/file.pdf" + }); +}; + +// ios-specific +const previewMedia = async () => { + await FileViewer.previewMediaContentFromUrl({ + path: "https://url_hosting_media/file.mp4" + }); +} +``` + ## API -* [`echo(...)`](#echo) +* [`openDocumentFromLocalPath(...)`](#opendocumentfromlocalpath) +* [`openDocumentFromResources(...)`](#opendocumentfromresources) +* [`openDocumentFromUrl(...)`](#opendocumentfromurl) +* [`previewMediaContentFromLocalPath(...)`](#previewmediacontentfromlocalpath) +* [`previewMediaContentFromResources(...)`](#previewmediacontentfromresources) +* [`previewMediaContentFromUrl(...)`](#previewmediacontentfromurl) +* [Interfaces](#interfaces) +* [Type Aliases](#type-aliases) @@ -13,22 +51,171 @@ For list of existing error codes, see [Errors](#errors). -### echo(...) +File Viewer API + +Only available in Native Android and iOS; not available for Web / PWAs. + +### openDocumentFromLocalPath(...) + +```typescript +openDocumentFromLocalPath(options: OpenFromLocalPathOptions) => Promise +``` + +Open a file stored in the local file system + +| Param | Type | +| ------------- | ----------------------------------------------------------------------------- | +| **`options`** | OpenFromLocalPathOptions | + +**Since:** 1.0.0 + +-------------------- + + +### openDocumentFromResources(...) + +```typescript +openDocumentFromResources(options: OpenFromResourcesOptions) => Promise +``` + +Open an app resource file + +| Param | Type | +| ------------- | ----------------------------------------------------------------------------- | +| **`options`** | OpenFromResourcesOptions | + +**Since:** 1.0.0 + +-------------------- + + +### openDocumentFromUrl(...) + +```typescript +openDocumentFromUrl(options: OpenFromUrlOptions) => Promise +``` + +Open a file from a remote url + +| Param | Type | +| ------------- | ----------------------------------------------------------------- | +| **`options`** | OpenFromUrlOptions | + +**Since:** 1.0.0 + +-------------------- + + +### previewMediaContentFromLocalPath(...) ```typescript -echo(options: { value: string; }) => Promise<{ value: string; }> +previewMediaContentFromLocalPath(options: PreviewMediaFromLocalPathOptions) => Promise ``` -| Param | Type | -| ------------- | ------------------------------- | -| **`options`** | { value: string; } | +Preview a media file (namely, video) stored in the local file system. +Only implemented in iOS. Android defaults to `openDocumentFromLocalPath`. -**Returns:** Promise<{ value: string; }> +| Param | Type | +| ------------- | ----------------------------------------------------------------------------- | +| **`options`** | OpenFromLocalPathOptions | + +**Since:** 1.0.0 + +-------------------- + + +### previewMediaContentFromResources(...) + +```typescript +previewMediaContentFromResources(options: PreviewMediaFromResourcesOptions) => Promise +``` + +Preview a media file (namely, video) from the app's resources. +Only implemented in iOS. Android defaults to `openDocumentFromResources`. + +| Param | Type | +| ------------- | ----------------------------------------------------------------------------- | +| **`options`** | OpenFromResourcesOptions | + +**Since:** 1.0.0 -------------------- + +### previewMediaContentFromUrl(...) + +```typescript +previewMediaContentFromUrl(options: PreviewMediaFromUrlOptions) => Promise +``` + +Preview a media file (namely, video) from a remote url. +Only implemented in iOS. Android defaults to `openDocumentFromUrl`. + +| Param | Type | +| ------------- | ----------------------------------------------------------------- | +| **`options`** | OpenFromUrlOptions | + +**Since:** 1.0.0 + +-------------------- + + +### Interfaces + + +#### OpenFromLocalPathOptions + +| Prop | Type | Description | Since | +| ---------- | ------------------- | ------------------------------------------ | ----- | +| **`path`** | string | The full absolute path to the file to open | 1.0.0 | + + +#### OpenFromResourcesOptions + +| Prop | Type | Description | Since | +| ---------- | ------------------- | ---------------------------------------------- | ----- | +| **`path`** | string | The relative path to the resource file to open | 1.0.0 | + + +#### OpenFromUrlOptions + +| Prop | Type | Description | Since | +| --------- | ------------------- | ------------------------------------------- | ----- | +| **`url`** | string | The remote url pointing to the file to open | 1.0.0 | + + +### Type Aliases + + +#### PreviewMediaFromLocalPathOptions + +OpenFromLocalPathOptions + + +#### PreviewMediaFromResourcesOptions + +OpenFromResourcesOptions + + +#### PreviewMediaFromUrlOptions + +OpenFromUrlOptions + ### Errors +The plugin returns the following errors with specific codes on native Android and iOS: +| Error code | Platform(s) | Message | +|-------------------|------------------|------------------------------| +| OS-PLUG-FLVW-0004 | Android, iOS | The file you are trying to open does not exist. | +| OS-PLUG-FLVW-0005 | Android, iOS | The URL you are trying to open is malformed. | +| OS-PLUG-FLVW-0006 | Android, iOS | Path of the file to open is either null or empty. | +| OS-PLUG-FLVW-0007 | Android, iOS | URL to open is either null or empty. | +| OS-PLUG-FLVW-0008 | Android, iOS | Could not open the file. | +| OS-PLUG-FLVW-0009 | Android, iOS | Invalid parameters. | +| OS-PLUG-FLVW-0010 | Android | There is no app to open this file. | +| OS-PLUG-FLVW-0011 | iOS | Cordova / Capacitor bridge isn’t initialized. | +| OS-PLUG-FLVW-0012 | iOS | The download failed. | +| OS-PLUG-FLVW-0013 | iOS | The file has no extension. | \ No newline at end of file diff --git a/packages/capacitor-plugin/android/build.gradle b/packages/capacitor-plugin/android/build.gradle index 3745a93..817f146 100644 --- a/packages/capacitor-plugin/android/build.gradle +++ b/packages/capacitor-plugin/android/build.gradle @@ -12,7 +12,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.7.1' + classpath 'com.android.tools.build:gradle:8.7.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -21,10 +21,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - namespace "com.capacitorjs.file-viewer" + namespace "com.capacitorjs.plugins.fileviewer" compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35 defaultConfig { - minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26 + minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35 versionCode 1 versionName "1.0" @@ -56,14 +56,14 @@ repositories { dependencies { - // implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':capacitor-android') - implementation "com.capacitorjs:file-viewer-android:1.0.0" - implementation 'androidx.browser:browser:1.8.0' - implementation "androidx.constraintlayout:constraintlayout:2.2.0" + // TODO replace with 1.0.0 once an official release of the native library is done + implementation "io.ionic.libs:ionfileviewer-android:0.0.1" implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" - implementation 'com.google.code.gson:gson:2.10.1' + testImplementation "junit:junit:$junitVersion" + androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" } diff --git a/packages/capacitor-plugin/android/gradlew b/packages/capacitor-plugin/android/gradlew old mode 100644 new mode 100755 diff --git a/packages/capacitor-plugin/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java b/packages/capacitor-plugin/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java deleted file mode 100644 index 58020e1..0000000 --- a/packages/capacitor-plugin/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.getcapacitor.android; - -import static org.junit.Assert.*; - -import android.content.Context; -import androidx.test.ext.junit.runners.AndroidJUnit4; -import androidx.test.platform.app.InstrumentationRegistry; -import org.junit.Test; -import org.junit.runner.RunWith; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - - @Test - public void useAppContext() throws Exception { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - - assertEquals("com.getcapacitor.android", appContext.getPackageName()); - } -} diff --git a/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/file-viewer/FileViewerPlugin.kt b/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/file-viewer/FileViewerPlugin.kt deleted file mode 100644 index 199cd44..0000000 --- a/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/file-viewer/FileViewerPlugin.kt +++ /dev/null @@ -1,21 +0,0 @@ -package com.capacitorjs.osinappbrowser -import androidx.lifecycle.lifecycleScope -import com.getcapacitor.JSObject -import com.getcapacitor.Plugin -import com.getcapacitor.PluginCall -import com.getcapacitor.PluginMethod -import com.getcapacitor.annotation.CapacitorPlugin - -@CapacitorPlugin(name = "FileViewer") -class FileViewerPlugin : Plugin() { - - override fun load() { - super.load() - } - - @PluginMethod - fun echo(call: PluginCall) { - val message = call.getString("message") ?: "No message provided" - call.resolve(message) - } -} \ No newline at end of file diff --git a/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerErrors.kt b/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerErrors.kt new file mode 100644 index 0000000..e2326ad --- /dev/null +++ b/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerErrors.kt @@ -0,0 +1,68 @@ +package com.capacitorjs.plugins.fileviewer + +import io.ionic.libs.ionfileviewerlib.model.IONFLVWException + +object FileViewerErrors { + private fun formatErrorCode(number: Int): String { + return "OS-PLUG-FLVW-" + number.toString().padStart(4, '0') + } + + data class ErrorInfo( + val code: String, + val message: String + ) + + val fileDoesNotExist = ErrorInfo( + code = formatErrorCode(4), + message = "The file you are trying to open does not exist." + ) + + fun urlMalformed(url: String) = if (url.isBlank()) { + urlEmpty + } else { + ErrorInfo( + code = formatErrorCode(5), + message = "The URL you are trying to open is malformed - $url" + ) + } + + fun filePathInvalid(path: String?) = if (path.isNullOrBlank()) { + filePathEmpty + } else { + invalidParameters + } + + val filePathEmpty = ErrorInfo( + code = formatErrorCode(6), + message = "Path of the file to open is either null or empty." + ) + + val urlEmpty = ErrorInfo( + code = formatErrorCode(7), + message = "URL to open is either null or empty." + ) + + val genericError = ErrorInfo( + code = formatErrorCode(8), + message = "Could not open the document." + ) + + val invalidParameters: ErrorInfo = ErrorInfo( + code = formatErrorCode(9), + message = "Invalid parameters." + ) + + val noAppToOpen = ErrorInfo( + code = formatErrorCode(10), + message = "There is no app to open this document." + ) +} + +fun Throwable.toFileViewerError(): FileViewerErrors.ErrorInfo = when (this) { + is IONFLVWException.FileDoesNotExist -> FileViewerErrors.fileDoesNotExist + is IONFLVWException.InvalidURL -> FileViewerErrors.urlMalformed(url) + is IONFLVWException.InvalidPath -> FileViewerErrors.filePathInvalid(path) + is IONFLVWException.EmptyURL -> FileViewerErrors.urlEmpty + is IONFLVWException.NoApp -> FileViewerErrors.noAppToOpen + else -> FileViewerErrors.genericError +} \ No newline at end of file diff --git a/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerPlugin.kt b/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerPlugin.kt new file mode 100644 index 0000000..83e322b --- /dev/null +++ b/packages/capacitor-plugin/android/src/main/java/com/capacitorjs/plugins/fileviewer/FileViewerPlugin.kt @@ -0,0 +1,96 @@ +package com.capacitorjs.plugins.fileviewer + +import android.app.Activity +import com.getcapacitor.Plugin +import com.getcapacitor.PluginCall +import com.getcapacitor.PluginMethod +import com.getcapacitor.annotation.CapacitorPlugin +import io.ionic.libs.ionfileviewerlib.IONFLVWController +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.cancel +import kotlinx.coroutines.launch + +@CapacitorPlugin(name = "FileViewer") +class FileViewerPlugin : Plugin() { + + private val ioScope: CoroutineScope by lazy { CoroutineScope(Dispatchers.IO) } + private val controller: IONFLVWController by lazy { IONFLVWController() } + + override fun handleOnDestroy() { + super.handleOnDestroy() + ioScope.cancel() + } + + @PluginMethod + fun openDocumentFromLocalPath(call: PluginCall) { + val filePath: String? = call.getString("path") + checkPreconditionsAndRun(call) { activity -> + controller.openDocumentFromLocalPath(activity, filePath ?: "") + .handleResult(call) + } + } + + @PluginMethod + fun openDocumentFromResources(call: PluginCall) { + val resourcePath: String? = call.getString("path") + checkPreconditionsAndRun(call) { activity -> + // this method needs to be called from a non-UI thread, because it can involve I/O operations. + ioScope.launch { + controller.openDocumentFromResources(activity, assetPath = resourcePath ?: "") + .handleResult(call) + } + } + } + + @PluginMethod + fun openDocumentFromUrl(call: PluginCall) { + val url: String? = call.getString("url") + checkPreconditionsAndRun(call) { activity -> + controller.openDocumentFromUrl(activity, url ?: "") + .handleResult(call) + } + } + + @PluginMethod + fun previewMediaContentFromLocalPath(call: PluginCall) = openDocumentFromLocalPath(call) + + @PluginMethod + fun previewMediaContentFromResources(call: PluginCall) = openDocumentFromResources(call) + + @PluginMethod + fun previewMediaContentFromUrl(call: PluginCall) = openDocumentFromUrl(call) + + /** + * Handle a result from the native library + * + * @param call the capacitor plugin call - to notify of success or error + */ + private fun Result.handleResult(call: PluginCall) = onSuccess { + call.resolve() + }.onFailure { + call.sendError(it.toFileViewerError()) + } + + + /** + * check if preconditions match before running the capacitor plugin method + * + * @param call the capacitor plugin call to notify of errors in case preconditions are not met + * @param runner callback that is run in case preconditions are met + */ + private fun checkPreconditionsAndRun(call: PluginCall, runner: (Activity) -> Unit) { + activity?.also { + runner(it) + } ?: run { + call.sendError(FileViewerErrors.genericError) + } + } + + /** + * Extension function to return a unsuccessful plugin result + * @param error error class representing the error to return, containing a code and message + */ + private fun PluginCall.sendError(error: FileViewerErrors.ErrorInfo) = + this.reject(error.message, error.code) +} \ No newline at end of file diff --git a/packages/capacitor-plugin/android/src/test/java/com/getcapacitor/ExampleUnitTest.java b/packages/capacitor-plugin/android/src/test/java/com/capacitorjs/plugins/fileviewer/ExampleUnitTest.java similarity index 89% rename from packages/capacitor-plugin/android/src/test/java/com/getcapacitor/ExampleUnitTest.java rename to packages/capacitor-plugin/android/src/test/java/com/capacitorjs/plugins/fileviewer/ExampleUnitTest.java index a0fed0c..e448813 100644 --- a/packages/capacitor-plugin/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +++ b/packages/capacitor-plugin/android/src/test/java/com/capacitorjs/plugins/fileviewer/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package com.getcapacitor; +package com.capacitorjs.plugins.fileviewer; import static org.junit.Assert.*; diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerError.swift b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerError.swift new file mode 100644 index 0000000..33b6eab --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerError.swift @@ -0,0 +1,42 @@ +enum FileViewerError: Error { + case fileDoesNotExist + case urlMalformed(url: String) + case pathEmpty + case urlEmpty + case couldNotOpenDocument + case bridgeNotInitialised + case downloadFailed + case missingFileExtension + + func toCodeMessagePair() -> (code: String, message: String) { + ("OS-PLUG-FLVW-\(String(format: "%04d", code))", description) + } +} + +private extension FileViewerError { + var code: Int { + switch self { + case .fileDoesNotExist: 4 + case .urlMalformed: 5 + case .pathEmpty: 6 + case .urlEmpty: 7 + case .couldNotOpenDocument: 8 + case .bridgeNotInitialised: 11 + case .downloadFailed: 12 + case .missingFileExtension: 13 + } + } + + var description: String { + switch self { + case .fileDoesNotExist: "The file you are trying to open does not exist." + case .urlMalformed(let url): "The URL you are trying to open is malformed - \(url)" + case .pathEmpty: "Path of the file to open is either null or empty." + case .urlEmpty: "URL to open is either null or empty." + case .couldNotOpenDocument: "Could not open the document." + case .downloadFailed: "The download failed." + case .missingFileExtension: "The file has no extension." + case .bridgeNotInitialised: "Cordova bridge isn't initialized." + } + } +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerPlugin.swift b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerPlugin.swift index 40fe44d..684d09a 100644 --- a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerPlugin.swift +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/FileViewerPlugin.swift @@ -1,23 +1,136 @@ import Capacitor +import IONFileViewerLib import UIKit +typealias FileViewerService = any IONFLVWOpenDocumentManager & IONFLVWPreviewMediaManager @objc(FileViewerPlugin) public class FileViewerPlugin: CAPPlugin, CAPBridgedPlugin { public let identifier = "FileViewerPlugin" public let jsName = "FileViewer" public let pluginMethods: [CAPPluginMethod] = [ - CAPPluginMethod(name: "echo", returnType: CAPPluginReturnPromise) + CAPPluginMethod(name: "openDocumentFromLocalPath", returnType: CAPPluginReturnPromise), + CAPPluginMethod(name: "openDocumentFromResources", returnType: CAPPluginReturnPromise), + CAPPluginMethod(name: "openDocumentFromUrl", returnType: CAPPluginReturnPromise), + CAPPluginMethod(name: "previewMediaContentFromLocalPath", returnType: CAPPluginReturnPromise), + CAPPluginMethod(name: "previewMediaContentFromResources", returnType: CAPPluginReturnPromise), + CAPPluginMethod(name: "previewMediaContentFromUrl", returnType: CAPPluginReturnPromise) ] + private var fileViewer: FileViewerService? + override public func load() { - self.plugin = .init() + if let viewController = self.bridge?.viewController as? UIViewController { + fileViewer = IONFLVWManager(viewController: viewController) + } + } + + func getService() -> Result { + if fileViewer == nil { load() } + return fileViewer.map(Result.success) ?? .failure(.bridgeNotInitialised) + } +} + +// MARK: - Public API Methods +private extension FileViewerPlugin { + @objc func openDocumentFromLocalPath(_ call: CAPPluginCall) { + let filePath = call.getString("path") + executeOperation(call, operationRunner: { service in + do { + try service.openDocumentFromLocalPath(filePath: filePath ?? "", completion: { call.resolve() }) + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + @objc func openDocumentFromResources(_ call: CAPPluginCall) { + let resourcePath = call.getString("path") + executeOperation(call, operationRunner: { service in + do { + try service.openDocumentFromResources(assetPath: resourcePath ?? "", completion: { call.resolve() }) + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + @objc func openDocumentFromUrl(_ call: CAPPluginCall) { + let url = call.getString("url") + executeOperation(call, operationRunner: { service in + do { + try service.openDocumentFromUrl(url: url ?? "", completion: { err in + if let error = err { + self.sendError(call, self.mapError(error)) + } else { + call.resolve() + } + }) + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + @objc func previewMediaContentFromLocalPath(_ call: CAPPluginCall) { + let filePath = call.getString("path") + executeOperation(call, operationRunner: { service in + do { + try service.previewMediaContentFromLocalPath(filePath: filePath ?? "") + call.resolve() + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + @objc func previewMediaContentFromResources(_ call: CAPPluginCall) { + let resourcePath = call.getString("path") + executeOperation(call, operationRunner: { service in + do { + try service.previewMediaContentFromResources(assetPath: resourcePath ?? "") + call.resolve() + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + @objc func previewMediaContentFromUrl(_ call: CAPPluginCall) { + let url = call.getString("url") + executeOperation(call, operationRunner: { service in + do { + try service.previewMediaContentFromUrl(url: url ?? "") + call.resolve() + } catch { + self.sendError(call, self.mapError(error)) + } + }) + } + + func executeOperation(_ call: CAPPluginCall, operationRunner: @escaping (FileViewerService) -> Void) { + switch getService() { + case .success(let service): DispatchQueue.main.async { + operationRunner(service) + } + case .failure(let error): sendError(call, error) + } + } + + func sendError(_ call: CAPPluginCall, _ error: FileViewerError) { + let errorPair = error.toCodeMessagePair() + call.reject(errorPair.message, errorPair.code) } - @objc func echo(_ call: CAPPluginCall) { - let value = call.getString("value") ?? "" - call.resolve([ - "value": implementation.echo(value) - ]) + func mapError(_ error: Error, url: String = "") -> FileViewerError { + return switch error { + case IONFLVWError.fileDoesNotExist: .fileDoesNotExist + case IONFLVWError.invalidURL: .urlMalformed(url: url) + case IONFLVWError.emptyFilePath: .pathEmpty + case IONFLVWError.invalidEmptyURL: .urlEmpty + case IONFLVWError.downloadFailed: .downloadFailed + case IONFLVWError.missingFileExtension: .missingFileExtension + default: .couldNotOpenDocument + } } } diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/Info.plist b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/Info.plist new file mode 100644 index 0000000..93e2510 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/Info.plist @@ -0,0 +1,48 @@ + + + + + AvailableLibraries + + + BinaryPath + IONFileViewerLib.framework/IONFileViewerLib + DebugSymbolsPath + dSYMs + LibraryIdentifier + ios-arm64 + LibraryPath + IONFileViewerLib.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + BinaryPath + IONFileViewerLib.framework/IONFileViewerLib + DebugSymbolsPath + dSYMs + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + IONFileViewerLib.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/IONFileViewerLib b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/IONFileViewerLib new file mode 100755 index 0000000..dea88a9 Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/IONFileViewerLib differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Info.plist b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Info.plist new file mode 100644 index 0000000..2c3f90e Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Info.plist differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.abi.json b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.abi.json new file mode 100644 index 0000000..4196e6f --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.abi.json @@ -0,0 +1,1120 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "IONFileViewerLib", + "printedName": "IONFileViewerLib", + "children": [ + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWManager", + "printedName": "IONFLVWManager", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(viewController:fileManager:)", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWManager", + "printedName": "IONFileViewerLib.IONFLVWManager", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC" + }, + { + "kind": "TypeNominal", + "name": "UIViewController", + "printedName": "UIKit.UIViewController", + "usr": "c:objc(cs)UIViewController" + }, + { + "kind": "TypeNominal", + "name": "FileManager", + "printedName": "Foundation.FileManager", + "hasDefaultArg": true, + "usr": "c:objc(cs)NSFileManager" + } + ], + "declKind": "Constructor", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP" + }, + { + "kind": "Conformance", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWError", + "printedName": "IONFLVWError", + "children": [ + { + "kind": "Var", + "name": "fileDoesNotExist", + "printedName": "fileDoesNotExist", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(atPath: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "emptyFilePath", + "printedName": "emptyFilePath", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "couldNotOpenDocument", + "printedName": "couldNotOpenDocument", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidURL", + "printedName": "invalidURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(forUrl: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidEmptyURL", + "printedName": "invalidEmptyURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "downloadFailed", + "printedName": "downloadFailed", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "missingFileExtension", + "printedName": "missingFileExtension", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "errorDescription", + "printedName": "errorDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "moduleName": "IONFileViewerLib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "moduleName": "IONFileViewerLib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "LocalizedError", + "printedName": "LocalizedError", + "usr": "s:10Foundation14LocalizedErrorP", + "mangledName": "$s10Foundation14LocalizedErrorP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "children": [ + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "children": [ + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "QuickLook", + "printedName": "QuickLook", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "AVKit", + "printedName": "AVKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.private.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.private.swiftinterface new file mode 100644 index 0000000..c6d42a7 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.private.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftdoc b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftdoc new file mode 100644 index 0000000..2af55d5 Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 0000000..c6d42a7 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist new file mode 100644 index 0000000..525d736 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.io.ionic.libs.fileviewer.FileViewerLib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 0.0.1 + CFBundleVersion + 0 + + diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib new file mode 100644 index 0000000..be3e602 Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml new file mode 100644 index 0000000..cc6dca3 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml @@ -0,0 +1,141 @@ +--- +triple: 'arm64-apple-darwin' +binary-path: '/Users/pedrobilro/Library/Developer/Xcode/DerivedData/IONFileViewerLib-fgmgknfbnrmpozdrsowfdcrfmkcx/Build/Intermediates.noindex/ArchiveIntermediates/IONFileViewerLib/InstallationBuildProductsLocation/Library/Frameworks/IONFileViewerLib.framework/IONFileViewerLib' +relocations: + - { offset: 0x76B49, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionString, symObjAddr: 0x0, symBinAddr: 0xAB40, symSize: 0x0 } + - { offset: 0x76B7E, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionNumber, symObjAddr: 0x40, symBinAddr: 0xAB80, symSize: 0x0 } + - { offset: 0x76E5A, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLV16IONFileViewerLibE3uti33_40B095A50BB4427D333CCDD137D2D121LLSSvg', symObjAddr: 0x3F4, symBinAddr: 0x43F4, symSize: 0x1CC } + - { offset: 0x76F5C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfETo', symObjAddr: 0x7C4, symBinAddr: 0x47C4, symSize: 0x38 } + - { offset: 0x76F8B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCMa', symObjAddr: 0x7FC, symBinAddr: 0x47FC, symSize: 0x20 } + - { offset: 0x76F9F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfETo', symObjAddr: 0x8F0, symBinAddr: 0x48F0, symSize: 0x14 } + - { offset: 0x76FCE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCMa', symObjAddr: 0x930, symBinAddr: 0x4930, symSize: 0x20 } + - { offset: 0x77089, size: 0x8, addend: 0x0, symName: '_$sSo17OS_dispatch_queueCMa', symObjAddr: 0x1120, symBinAddr: 0x5120, symSize: 0x3C } + - { offset: 0x7709D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_TA', symObjAddr: 0x1188, symBinAddr: 0x5188, symSize: 0x40 } + - { offset: 0x770D9, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x11C8, symBinAddr: 0x51C8, symSize: 0x10 } + - { offset: 0x770ED, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x11D8, symBinAddr: 0x51D8, symSize: 0x8 } + - { offset: 0x77101, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledName, symObjAddr: 0x11E0, symBinAddr: 0x51E0, symSize: 0x40 } + - { offset: 0x77115, size: 0x8, addend: 0x0, symName: '_$sSay8Dispatch0A13WorkItemFlagsVGSayxGSTsWl', symObjAddr: 0x1220, symBinAddr: 0x5220, symSize: 0x4C } + - { offset: 0x77129, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledNameAbstract, symObjAddr: 0x126C, symBinAddr: 0x526C, symSize: 0x44 } + - { offset: 0x7713D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOc', symObjAddr: 0x12B0, symBinAddr: 0x52B0, symSize: 0x44 } + - { offset: 0x77151, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOb', symObjAddr: 0x13AC, symBinAddr: 0x53AC, symSize: 0x44 } + - { offset: 0x77165, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_TA', symObjAddr: 0x13F0, symBinAddr: 0x53F0, symSize: 0x34 } + - { offset: 0x77179, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOh', symObjAddr: 0x1424, symBinAddr: 0x5424, symSize: 0x3C } + - { offset: 0x7718D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_TA', symObjAddr: 0x1460, symBinAddr: 0x5460, symSize: 0x2C } + - { offset: 0x771C1, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOc', symObjAddr: 0x148C, symBinAddr: 0x548C, symSize: 0x48 } + - { offset: 0x77222, size: 0x8, addend: 0x0, symName: '_$sSh21_nonEmptyArrayLiteralShyxGSayxG_tcfCSo16NSURLResourceKeya_Tgm5Tf4g_n', symObjAddr: 0x14D4, symBinAddr: 0x54D4, symSize: 0x234 } + - { offset: 0x773F4, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaMa', symObjAddr: 0x1708, symBinAddr: 0x5708, symSize: 0x54 } + - { offset: 0x77408, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_yyKXEfU_TA', symObjAddr: 0x1798, symBinAddr: 0x5798, symSize: 0x30 } + - { offset: 0x7743C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctFyycfU_TA', symObjAddr: 0x17EC, symBinAddr: 0x57EC, symSize: 0x20 } + - { offset: 0x77470, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCSYWb', symObjAddr: 0x180C, symBinAddr: 0x580C, symSize: 0x2C } + - { offset: 0x77484, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCs35_HasCustomAnyHashableRepresentationPWb', symObjAddr: 0x1838, symBinAddr: 0x5838, symSize: 0x2C } + - { offset: 0x77498, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSQWb', symObjAddr: 0x1864, symBinAddr: 0x5864, symSize: 0x2C } + - { offset: 0x77525, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP016_forceBridgeFromC1C_6resulty01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x95C, symBinAddr: 0x495C, symSize: 0x4 } + - { offset: 0x77559, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE016_forceBridgeFromD1C_6resultyAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x960, symBinAddr: 0x4960, symSize: 0x84 } + - { offset: 0x775EA, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP024_conditionallyBridgeFromC1C_6resultSb01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x9E4, symBinAddr: 0x49E4, symSize: 0x4 } + - { offset: 0x77606, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE024_conditionallyBridgeFromD1C_6resultSbAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x9E8, symBinAddr: 0x49E8, symSize: 0x8C } + - { offset: 0x776A6, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP026_unconditionallyBridgeFromC1Cyx01_C5CTypeQzSgFZTW', symObjAddr: 0xA74, symBinAddr: 0x4A74, symSize: 0x40 } + - { offset: 0x77724, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH4hash4intoys6HasherVz_tFTW', symObjAddr: 0xAFC, symBinAddr: 0x4AFC, symSize: 0x40 } + - { offset: 0x777A8, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH13_rawHashValue4seedS2i_tFTW', symObjAddr: 0xB3C, symBinAddr: 0x4B3C, symSize: 0x70 } + - { offset: 0x7782D, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSQSCSQ2eeoiySbx_xtFZTW', symObjAddr: 0xBAC, symBinAddr: 0x4BAC, symSize: 0x88 } + - { offset: 0x778CF, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas35_HasCustomAnyHashableRepresentationSCsACP03_todeF0s0eF0VSgyFTW', symObjAddr: 0xCA0, symBinAddr: 0x4CA0, symSize: 0x84 } + - { offset: 0x77952, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_', symObjAddr: 0x0, symBinAddr: 0x4000, symSize: 0x18 } + - { offset: 0x77A12, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_', symObjAddr: 0x18, symBinAddr: 0x4018, symSize: 0x3D8 } + - { offset: 0x77B42, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_yyXEfU_', symObjAddr: 0x3F0, symBinAddr: 0x43F0, symSize: 0x4 } + - { offset: 0x77B86, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctF', symObjAddr: 0x5C0, symBinAddr: 0x45C0, symSize: 0x180 } + - { offset: 0x77CC3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC033documentInteractionControllerViewH10ForPreviewySo06UIViewH0CSo010UIDocumentgH0CFTo', symObjAddr: 0x740, symBinAddr: 0x4740, symSize: 0x28 } + - { offset: 0x77D43, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCACycfcTo', symObjAddr: 0x768, symBinAddr: 0x4768, symSize: 0x2C } + - { offset: 0x77DA2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfD', symObjAddr: 0x794, symBinAddr: 0x4794, symSize: 0x30 } + - { offset: 0x77DC5, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfD', symObjAddr: 0x81C, symBinAddr: 0x481C, symSize: 0x68 } + - { offset: 0x77DF8, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfDTo', symObjAddr: 0x884, symBinAddr: 0x4884, symSize: 0x6C } + - { offset: 0x77E39, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCACycfcTo', symObjAddr: 0x904, symBinAddr: 0x4904, symSize: 0x2C } + - { offset: 0x77F49, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValuexSg03RawD0Qz_tcfCTW', symObjAddr: 0xC34, symBinAddr: 0x4C34, symSize: 0x44 } + - { offset: 0x77F72, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValue03RawD0QzvgTW', symObjAddr: 0xC78, symBinAddr: 0x4C78, symSize: 0x28 } + - { offset: 0x77FD0, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_Tf4dnnn_n', symObjAddr: 0xD24, symBinAddr: 0x4D24, symSize: 0x3FC } + - { offset: 0x78285, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgSo13NSURLResponseCSgs5Error_pSgIeghngg_So5NSURLCSgAGSo7NSErrorCSgIeyBhyyy_TR', symObjAddr: 0x378, symBinAddr: 0x5C40, symSize: 0x128 } + - { offset: 0x7829D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCMa', symObjAddr: 0x4B0, symBinAddr: 0x5D78, symSize: 0x20 } + - { offset: 0x782B1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_TA', symObjAddr: 0xB18, symBinAddr: 0x63E0, symSize: 0xC } + - { offset: 0x782C5, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_TA', symObjAddr: 0xC98, symBinAddr: 0x64D8, symSize: 0x94 } + - { offset: 0x782D9, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0xD2C, symBinAddr: 0x656C, symSize: 0x10 } + - { offset: 0x782ED, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0xD3C, symBinAddr: 0x657C, symSize: 0x8 } + - { offset: 0x78301, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZAKyXEfU_TA', symObjAddr: 0xD80, symBinAddr: 0x6584, symSize: 0x2C } + - { offset: 0x78334, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOh', symObjAddr: 0xDEC, symBinAddr: 0x65B0, symSize: 0x40 } + - { offset: 0x78348, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOACs5ErrorAAWl', symObjAddr: 0xE74, symBinAddr: 0x65F0, symSize: 0x44 } + - { offset: 0x78412, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_', symObjAddr: 0x0, symBinAddr: 0x58DC, symSize: 0x2F8 } + - { offset: 0x784D2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCfD', symObjAddr: 0x4A0, symBinAddr: 0x5D68, symSize: 0x10 } + - { offset: 0x78511, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZ04$s16ab100Lib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17dL10VyKXEtcfU_AA0oP0Cs5Error_pIgzo_Iegg_Tf1ncn_nTf4ndgg_n', symObjAddr: 0x4D0, symBinAddr: 0x5D98, symSize: 0x61C } + - { offset: 0x78881, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF', symObjAddr: 0xFC, symBinAddr: 0x6744, symSize: 0x35C } + - { offset: 0x789AE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF', symObjAddr: 0x51C, symBinAddr: 0x6AA0, symSize: 0x178 } + - { offset: 0x78B1F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14getResourceURL029_E2701193960D25FEFDDFECDB02D1K2A5LLy10Foundation0G0VSSKF', symObjAddr: 0x694, symBinAddr: 0x6C18, symSize: 0x598 } + - { offset: 0x78FC8, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF', symObjAddr: 0xC2C, symBinAddr: 0x71B0, symSize: 0x3B8 } + - { offset: 0x79181, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_', symObjAddr: 0xFE4, symBinAddr: 0x7568, symSize: 0xE8 } + - { offset: 0x791DA, size: 0x8, addend: 0x0, symName: '_$sSo11NSPredicateCMa', symObjAddr: 0x1110, symBinAddr: 0x7674, symSize: 0x3C } + - { offset: 0x791EE, size: 0x8, addend: 0x0, symName: '_$sS2Ss7CVarArg10FoundationWl', symObjAddr: 0x114C, symBinAddr: 0x76B0, symSize: 0x44 } + - { offset: 0x79202, size: 0x8, addend: 0x0, symName: '_$sS2SSysWl', symObjAddr: 0x1190, symBinAddr: 0x76F4, symSize: 0x44 } + - { offset: 0x79216, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_TA', symObjAddr: 0x11D4, symBinAddr: 0x7738, symSize: 0x8 } + - { offset: 0x7922A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromLocalPath04fileK010completionySS_yyctKFTW', symObjAddr: 0x11DC, symBinAddr: 0x7740, symSize: 0x20 } + - { offset: 0x7924D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromResources9assetPath10completionySS_yyctKFTW', symObjAddr: 0x11FC, symBinAddr: 0x7760, symSize: 0x20 } + - { offset: 0x79270, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFTW', symObjAddr: 0x121C, symBinAddr: 0x7780, symSize: 0x20 } + - { offset: 0x79359, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF', symObjAddr: 0x123C, symBinAddr: 0x77A0, symSize: 0x284 } + - { offset: 0x79488, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF', symObjAddr: 0x14C0, symBinAddr: 0x7A24, symSize: 0x114 } + - { offset: 0x795A2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF', symObjAddr: 0x15D4, symBinAddr: 0x7B38, symSize: 0x2E8 } + - { offset: 0x7975E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromLocalPath04fileL0ySS_tKFTW', symObjAddr: 0x18BC, symBinAddr: 0x7E20, symSize: 0x20 } + - { offset: 0x79781, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromResources9assetPathySS_tKFTW', symObjAddr: 0x18DC, symBinAddr: 0x7E40, symSize: 0x20 } + - { offset: 0x797A4, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF14ContentFromUrl3urlySS_tKFTW', symObjAddr: 0x18FC, symBinAddr: 0x7E60, symSize: 0x20 } + - { offset: 0x7988D, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5', symObjAddr: 0x191C, symBinAddr: 0x7E80, symSize: 0x418 } + - { offset: 0x79C0D, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKF17appendSubsequenceL_3endSb5IndexQz_tSlRzlFSS_Tg5', symObjAddr: 0x1D34, symBinAddr: 0x8298, symSize: 0x10C } + - { offset: 0x79DB4, size: 0x8, addend: 0x0, symName: '_$ss12_ArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5', symObjAddr: 0x1E40, symBinAddr: 0x83A4, symSize: 0x100 } + - { offset: 0x79EB6, size: 0x8, addend: 0x0, symName: '_$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5', symObjAddr: 0x1F40, symBinAddr: 0x84A4, symSize: 0x1C } + - { offset: 0x79F1B, size: 0x8, addend: 0x0, symName: '_$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5', symObjAddr: 0x1F5C, symBinAddr: 0x84C0, symSize: 0x100 } + - { offset: 0x7A007, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCMa', symObjAddr: 0x205C, symBinAddr: 0x85C0, symSize: 0x20 } + - { offset: 0x7A01B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOe', symObjAddr: 0x2090, symBinAddr: 0x85F4, symSize: 0x18 } + - { offset: 0x7A074, size: 0x8, addend: 0x0, symName: '_$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA', symObjAddr: 0x20A8, symBinAddr: 0x860C, symSize: 0x54 } + - { offset: 0x7A184, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0CtcfC', symObjAddr: 0x0, symBinAddr: 0x6648, symSize: 0x60 } + - { offset: 0x7A1BF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc', symObjAddr: 0x60, symBinAddr: 0x66A8, symSize: 0x4C } + - { offset: 0x7A1FF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfd', symObjAddr: 0xAC, symBinAddr: 0x66F4, symSize: 0x24 } + - { offset: 0x7A236, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfD', symObjAddr: 0xD0, symBinAddr: 0x6718, symSize: 0x2C } + - { offset: 0x7A6EB, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAAs0G0PWb', symObjAddr: 0x3E4, symBinAddr: 0x8A80, symSize: 0x4 } + - { offset: 0x7A6FF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOy', symObjAddr: 0x430, symBinAddr: 0x8A88, symSize: 0x18 } + - { offset: 0x7A713, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwxx', symObjAddr: 0x448, symBinAddr: 0x8AA0, symSize: 0x10 } + - { offset: 0x7A727, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwca', symObjAddr: 0x4BC, symBinAddr: 0x8AF8, symSize: 0x54 } + - { offset: 0x7A73B, size: 0x8, addend: 0x0, symName: ___swift_memcpy17_8, symObjAddr: 0x510, symBinAddr: 0x8B4C, symSize: 0x14 } + - { offset: 0x7A74F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwta', symObjAddr: 0x524, symBinAddr: 0x8B60, symSize: 0x44 } + - { offset: 0x7A763, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwet', symObjAddr: 0x568, symBinAddr: 0x8BA4, symSize: 0x48 } + - { offset: 0x7A777, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwst', symObjAddr: 0x5B0, symBinAddr: 0x8BEC, symSize: 0x44 } + - { offset: 0x7A78B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwug', symObjAddr: 0x5F4, symBinAddr: 0x8C30, symSize: 0x18 } + - { offset: 0x7A79F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwui', symObjAddr: 0x610, symBinAddr: 0x8C48, symSize: 0x18 } + - { offset: 0x7A7B3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOMa', symObjAddr: 0x628, symBinAddr: 0x8C60, symSize: 0x10 } + - { offset: 0x7A83C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP7_domainSSvgTW', symObjAddr: 0x15C, symBinAddr: 0x87F8, symSize: 0x4 } + - { offset: 0x7A858, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP5_codeSivgTW', symObjAddr: 0x160, symBinAddr: 0x87FC, symSize: 0x4 } + - { offset: 0x7A874, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP9_userInfoyXlSgvgTW', symObjAddr: 0x164, symBinAddr: 0x8800, symSize: 0x4 } + - { offset: 0x7A890, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP19_getEmbeddedNSErroryXlSgyFTW', symObjAddr: 0x168, symBinAddr: 0x8804, symSize: 0x4 } + - { offset: 0x7A8E3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg', symObjAddr: 0x0, symBinAddr: 0x86A0, symSize: 0x144 } + - { offset: 0x7AA08, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ', symObjAddr: 0x144, symBinAddr: 0x87E4, symSize: 0x4 } + - { offset: 0x7AA1C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP16errorDescriptionSSSgvgTW', symObjAddr: 0x148, symBinAddr: 0x87E8, symSize: 0x4 } + - { offset: 0x7AA3A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP13failureReasonSSSgvgTW', symObjAddr: 0x14C, symBinAddr: 0x87EC, symSize: 0x4 } + - { offset: 0x7AA56, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP18recoverySuggestionSSSgvgTW', symObjAddr: 0x150, symBinAddr: 0x87F0, symSize: 0x4 } + - { offset: 0x7AA72, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP10helpAnchorSSSgvgTW', symObjAddr: 0x154, symBinAddr: 0x87F4, symSize: 0x4 } + - { offset: 0x7AA9C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZTf4nnd_n', symObjAddr: 0x16C, symBinAddr: 0x8808, symSize: 0x278 } + - { offset: 0x7ABE6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x90, symBinAddr: 0x8D00, symSize: 0xF8 } + - { offset: 0x7ABFE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x90, symBinAddr: 0x8D00, symSize: 0xF8 } + - { offset: 0x7AC12, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwxx', symObjAddr: 0x1C8, symBinAddr: 0x8DF8, symSize: 0x7C } + - { offset: 0x7AC26, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwcp', symObjAddr: 0x244, symBinAddr: 0x8E74, symSize: 0xCC } + - { offset: 0x7AC3A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwca', symObjAddr: 0x310, symBinAddr: 0x8F40, symSize: 0x128 } + - { offset: 0x7AC4E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwtk', symObjAddr: 0x438, symBinAddr: 0x9068, symSize: 0xBC } + - { offset: 0x7AC62, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwta', symObjAddr: 0x4F4, symBinAddr: 0x9124, symSize: 0x118 } + - { offset: 0x7AC76, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwet', symObjAddr: 0x60C, symBinAddr: 0x923C, symSize: 0xC } + - { offset: 0x7AC8A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwst', symObjAddr: 0x6A4, symBinAddr: 0x92D4, symSize: 0xC } + - { offset: 0x7AC9E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMa', symObjAddr: 0x728, symBinAddr: 0x9358, symSize: 0x3C } + - { offset: 0x7ACB2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMr', symObjAddr: 0x764, symBinAddr: 0x9394, symSize: 0x74 } + - { offset: 0x7ACC6, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgMa', symObjAddr: 0x7D8, symBinAddr: 0x9408, symSize: 0x54 } + - { offset: 0x7ADA6, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x945C, symSize: 0x2C } + - { offset: 0x7ADBE, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x945C, symSize: 0x2C } + - { offset: 0x7AE97, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerCMa', symObjAddr: 0x320, symBinAddr: 0x9750, symSize: 0x20 } + - { offset: 0x7AEAB, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_TA', symObjAddr: 0x364, symBinAddr: 0x9794, symSize: 0x8 } + - { offset: 0x7AEBF, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x36C, symBinAddr: 0x979C, symSize: 0x10 } + - { offset: 0x7AED3, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x37C, symBinAddr: 0x97AC, symSize: 0x8 } + - { offset: 0x7AF3E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC11previewItemSo5NSURLCvg', symObjAddr: 0x2C, symBinAddr: 0x9488, symSize: 0x6C } + - { offset: 0x7B06A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tF', symObjAddr: 0x98, symBinAddr: 0x94F4, symSize: 0x1B8 } + - { offset: 0x7B127, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_', symObjAddr: 0x250, symBinAddr: 0x96AC, symSize: 0x48 } + - { offset: 0x7B1B1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC20numberOfPreviewItems2inSiSo19QLPreviewControllerC_tFTo', symObjAddr: 0x298, symBinAddr: 0x96F4, symSize: 0x8 } + - { offset: 0x7B200, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC17previewController_0E6ItemAtSo09QLPreviewG0_pSo0iF0C_SitFTo', symObjAddr: 0x2A0, symBinAddr: 0x96FC, symSize: 0x54 } +... diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/IONFileViewerLib b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/IONFileViewerLib new file mode 100755 index 0000000..7ac0eaa Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/IONFileViewerLib differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Info.plist b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Info.plist new file mode 100644 index 0000000..c9af7b6 Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Info.plist differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.abi.json b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.abi.json new file mode 100644 index 0000000..4196e6f --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.abi.json @@ -0,0 +1,1120 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "IONFileViewerLib", + "printedName": "IONFileViewerLib", + "children": [ + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWManager", + "printedName": "IONFLVWManager", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(viewController:fileManager:)", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWManager", + "printedName": "IONFileViewerLib.IONFLVWManager", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC" + }, + { + "kind": "TypeNominal", + "name": "UIViewController", + "printedName": "UIKit.UIViewController", + "usr": "c:objc(cs)UIViewController" + }, + { + "kind": "TypeNominal", + "name": "FileManager", + "printedName": "Foundation.FileManager", + "hasDefaultArg": true, + "usr": "c:objc(cs)NSFileManager" + } + ], + "declKind": "Constructor", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP" + }, + { + "kind": "Conformance", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWError", + "printedName": "IONFLVWError", + "children": [ + { + "kind": "Var", + "name": "fileDoesNotExist", + "printedName": "fileDoesNotExist", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(atPath: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "emptyFilePath", + "printedName": "emptyFilePath", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "couldNotOpenDocument", + "printedName": "couldNotOpenDocument", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidURL", + "printedName": "invalidURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(forUrl: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidEmptyURL", + "printedName": "invalidEmptyURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "downloadFailed", + "printedName": "downloadFailed", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "missingFileExtension", + "printedName": "missingFileExtension", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "errorDescription", + "printedName": "errorDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "moduleName": "IONFileViewerLib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "moduleName": "IONFileViewerLib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "LocalizedError", + "printedName": "LocalizedError", + "usr": "s:10Foundation14LocalizedErrorP", + "mangledName": "$s10Foundation14LocalizedErrorP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "children": [ + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "children": [ + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "QuickLook", + "printedName": "QuickLook", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "AVKit", + "printedName": "AVKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface new file mode 100644 index 0000000..81668b9 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftdoc new file mode 100644 index 0000000..c1301cf Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..81668b9 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.abi.json b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.abi.json new file mode 100644 index 0000000..4196e6f --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.abi.json @@ -0,0 +1,1120 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "IONFileViewerLib", + "printedName": "IONFileViewerLib", + "children": [ + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "UIKit", + "printedName": "UIKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWManager", + "printedName": "IONFLVWManager", + "children": [ + { + "kind": "Constructor", + "name": "init", + "printedName": "init(viewController:fileManager:)", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWManager", + "printedName": "IONFileViewerLib.IONFLVWManager", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC" + }, + { + "kind": "TypeNominal", + "name": "UIViewController", + "printedName": "UIKit.UIViewController", + "usr": "c:objc(cs)UIViewController" + }, + { + "kind": "TypeNominal", + "name": "FileManager", + "printedName": "Foundation.FileManager", + "hasDefaultArg": true, + "usr": "c:objc(cs)NSFileManager" + } + ], + "declKind": "Constructor", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "init_kind": "Designated" + }, + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "throwing": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Class", + "usr": "s:16IONFileViewerLib14IONFLVWManagerC", + "mangledName": "$s16IONFileViewerLib14IONFLVWManagerC", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP" + }, + { + "kind": "Conformance", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWError", + "printedName": "IONFLVWError", + "children": [ + { + "kind": "Var", + "name": "fileDoesNotExist", + "printedName": "fileDoesNotExist", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(atPath: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16fileDoesNotExistyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "emptyFilePath", + "printedName": "emptyFilePath", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO13emptyFilePathyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "couldNotOpenDocument", + "printedName": "couldNotOpenDocument", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20couldNotOpenDocumentyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidURL", + "printedName": "invalidURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> (Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.String) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(forUrl: Swift.String)", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO10invalidURLyACSS_tcACmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "invalidEmptyURL", + "printedName": "invalidEmptyURL", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO15invalidEmptyURLyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "downloadFailed", + "printedName": "downloadFailed", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO14downloadFailedyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "missingFileExtension", + "printedName": "missingFileExtension", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError.Type) -> IONFileViewerLib.IONFLVWError", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "IONFileViewerLib.IONFLVWError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO20missingFileExtensionyA2CmF", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Var", + "name": "errorDescription", + "printedName": "errorDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Var", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvp", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "Swift.String?", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "usr": "s:Sq" + } + ], + "declKind": "Accessor", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg", + "moduleName": "IONFileViewerLib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + }, + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ", + "moduleName": "IONFileViewerLib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO", + "mangledName": "$s16IONFileViewerLib12IONFLVWErrorO", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "LocalizedError", + "printedName": "LocalizedError", + "usr": "s:10Foundation14LocalizedErrorP", + "mangledName": "$s10Foundation14LocalizedErrorP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "TypeDecl", + "name": "IONFLVWOpenDocumentManager", + "printedName": "IONFLVWOpenDocumentManager", + "children": [ + { + "kind": "Function", + "name": "openDocumentFromLocalPath", + "printedName": "openDocumentFromLocalPath(filePath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromLocalPath04fileJ010completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromResources", + "printedName": "openDocumentFromResources(assetPath:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "() -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE13FromResources9assetPath10completionySS_yyctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "openDocumentFromUrl", + "printedName": "openDocumentFromUrl(url:completion:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + }, + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(IONFileViewerLib.IONFLVWError?) -> ()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "IONFileViewerLib.IONFLVWError?", + "children": [ + { + "kind": "TypeNominal", + "name": "IONFLVWError", + "printedName": "IONFileViewerLib.IONFLVWError", + "usr": "s:16IONFileViewerLib12IONFLVWErrorO" + } + ], + "usr": "s:Sq" + } + ] + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP04openE7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWOpenDocumentManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWOpenDocumentManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "TypeDecl", + "name": "IONFLVWPreviewMediaManager", + "printedName": "IONFLVWPreviewMediaManager", + "children": [ + { + "kind": "Function", + "name": "previewMediaContentFromLocalPath", + "printedName": "previewMediaContentFromLocalPath(filePath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromLocalPath04fileK0ySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromResources", + "printedName": "previewMediaContentFromResources(assetPath:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE20ContentFromResources9assetPathySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + }, + { + "kind": "Function", + "name": "previewMediaContentFromUrl", + "printedName": "previewMediaContentFromUrl(url:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP07previewE14ContentFromUrl3urlySS_tKF", + "moduleName": "IONFileViewerLib", + "genericSig": "<Ο„_0_0 where Ο„_0_0 : IONFileViewerLib.IONFLVWPreviewMediaManager>", + "sugared_genericSig": "", + "protocolReq": true, + "throwing": true, + "reqNewWitnessTableEntry": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "mangledName": "$s16IONFileViewerLib26IONFLVWPreviewMediaManagerP", + "moduleName": "IONFileViewerLib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "QuickLook", + "printedName": "QuickLook", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "AVKit", + "printedName": "AVKit", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "IONFileViewerLib" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface new file mode 100644 index 0000000..e5b1c94 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target x86_64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 0000000..315586f Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..e5b1c94 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,48 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +// swift-module-flags: -target x86_64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name IONFileViewerLib +import AVKit +import Foundation +import QuickLook +import Swift +import UIKit +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public class IONFLVWManager { + public init(viewController: UIKit.UIViewController, fileManager: Foundation.FileManager = .default) + @objc deinit +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWOpenDocumentManager { + public func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + public func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +extension IONFileViewerLib.IONFLVWManager : IONFileViewerLib.IONFLVWPreviewMediaManager { + public func previewMediaContentFromLocalPath(filePath: Swift.String) throws + public func previewMediaContentFromResources(assetPath: Swift.String) throws + public func previewMediaContentFromUrl(url: Swift.String) throws +} +public enum IONFLVWError : Foundation.LocalizedError, Swift.Equatable { + case fileDoesNotExist(atPath: Swift.String) + case emptyFilePath + case couldNotOpenDocument + case invalidURL(forUrl: Swift.String) + case invalidEmptyURL + case downloadFailed + case missingFileExtension + public var errorDescription: Swift.String? { + get + } + public static func == (a: IONFileViewerLib.IONFLVWError, b: IONFileViewerLib.IONFLVWError) -> Swift.Bool +} +public protocol IONFLVWOpenDocumentManager { + func openDocumentFromLocalPath(filePath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromResources(assetPath: Swift.String, completion: @escaping (() -> Swift.Void)) throws + func openDocumentFromUrl(url: Swift.String, completion: @escaping ((IONFileViewerLib.IONFLVWError?) -> Swift.Void)) throws +} +public protocol IONFLVWPreviewMediaManager { + func previewMediaContentFromLocalPath(filePath: Swift.String) throws + func previewMediaContentFromResources(assetPath: Swift.String) throws + func previewMediaContentFromUrl(url: Swift.String) throws +} diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/_CodeSignature/CodeResources b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/_CodeSignature/CodeResources new file mode 100644 index 0000000..ae74ccb --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/IONFileViewerLib.framework/_CodeSignature/CodeResources @@ -0,0 +1,212 @@ + + + + + files + + Info.plist + + 2+PlMgImD72/awoQRbJV1O22FAg= + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.abi.json + + ixG8bVJJRFmndapKTY2Xl2X++R0= + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface + + yG2ZjzLfzapZqcEvBV07/DUNOoI= + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + L97ZX7IXysKxNRKrl6gGABuizvg= + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + yG2ZjzLfzapZqcEvBV07/DUNOoI= + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + cGyvb8rxLfeYXkHcDVh8ZYGIqn0= + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.abi.json + + ixG8bVJJRFmndapKTY2Xl2X++R0= + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface + + mFmAdNadBEp0p+ULdobvi9jilhQ= + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + XCTuKtfTzmDEYhtUvu/aVw9ufRo= + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + mFmAdNadBEp0p+ULdobvi9jilhQ= + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + 455Xyj9Uefk1i86ySeFS4FNC1j8= + + + files2 + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.abi.json + + hash2 + + rBZl7N1dFTNSS6ok5Mqbx+EC/FZ6x9xGHRvzR6kxfAc= + + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface + + hash2 + + T0wmUJmZNe+0HLB437sTnWx2JdQksCrsxIs8WTiY7jM= + + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash2 + + 2xFVQjyIZAVz9URsSU7k2NI0uEueNRINdf1q5XLI0oI= + + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash2 + + T0wmUJmZNe+0HLB437sTnWx2JdQksCrsxIs8WTiY7jM= + + + Modules/IONFileViewerLib.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash2 + + 0bHnltUxu09mX+dLroPfahZfxOpK1DKBBTDMUGcrxCw= + + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.abi.json + + hash2 + + rBZl7N1dFTNSS6ok5Mqbx+EC/FZ6x9xGHRvzR6kxfAc= + + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface + + hash2 + + LS24K2nXmmkagTtzEh+w0LUYfauFANLtR7TUTuEbBRI= + + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash2 + + pSO+2ET9obd1ARaqRIaWt8NkcVJHM/mdC8iFJybuX5U= + + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash2 + + LS24K2nXmmkagTtzEh+w0LUYfauFANLtR7TUTuEbBRI= + + + Modules/IONFileViewerLib.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash2 + + Bted5ZzxGC56De4/kSe/2UEpJxfjNo9iGVWnyTffX1U= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist new file mode 100644 index 0000000..525d736 --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.io.ionic.libs.fileviewer.FileViewerLib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 0.0.1 + CFBundleVersion + 0 + + diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib new file mode 100644 index 0000000..900fab8 Binary files /dev/null and b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/DWARF/IONFileViewerLib differ diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml new file mode 100644 index 0000000..a692c2b --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/aarch64/IONFileViewerLib.yml @@ -0,0 +1,141 @@ +--- +triple: 'arm64-apple-darwin' +binary-path: '/Users/pedrobilro/Library/Developer/Xcode/DerivedData/IONFileViewerLib-fgmgknfbnrmpozdrsowfdcrfmkcx/Build/Intermediates.noindex/ArchiveIntermediates/IONFileViewerLib/InstallationBuildProductsLocation/Library/Frameworks/IONFileViewerLib.framework/IONFileViewerLib' +relocations: + - { offset: 0x7705D, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionString, symObjAddr: 0x0, symBinAddr: 0x9D00, symSize: 0x0 } + - { offset: 0x77092, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionNumber, symObjAddr: 0x40, symBinAddr: 0x9D40, symSize: 0x0 } + - { offset: 0x7736E, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLV16IONFileViewerLibE3uti33_40B095A50BB4427D333CCDD137D2D121LLSSvg', symObjAddr: 0x3B4, symBinAddr: 0x3310, symSize: 0x1BC } + - { offset: 0x77470, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfETo', symObjAddr: 0x764, symBinAddr: 0x36C0, symSize: 0x38 } + - { offset: 0x7749F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCMa', symObjAddr: 0x79C, symBinAddr: 0x36F8, symSize: 0x20 } + - { offset: 0x774B3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfETo', symObjAddr: 0x890, symBinAddr: 0x37EC, symSize: 0x14 } + - { offset: 0x774E2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCMa', symObjAddr: 0x8D0, symBinAddr: 0x382C, symSize: 0x20 } + - { offset: 0x7759D, size: 0x8, addend: 0x0, symName: '_$sSo17OS_dispatch_queueCMa', symObjAddr: 0x1080, symBinAddr: 0x3FDC, symSize: 0x3C } + - { offset: 0x775B1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_TA', symObjAddr: 0x10E8, symBinAddr: 0x4044, symSize: 0x40 } + - { offset: 0x775ED, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x1128, symBinAddr: 0x4084, symSize: 0x10 } + - { offset: 0x77601, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x1138, symBinAddr: 0x4094, symSize: 0x8 } + - { offset: 0x77615, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledName, symObjAddr: 0x1140, symBinAddr: 0x409C, symSize: 0x40 } + - { offset: 0x77629, size: 0x8, addend: 0x0, symName: '_$sSay8Dispatch0A13WorkItemFlagsVGSayxGSTsWl', symObjAddr: 0x1180, symBinAddr: 0x40DC, symSize: 0x4C } + - { offset: 0x7763D, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledNameAbstract, symObjAddr: 0x11CC, symBinAddr: 0x4128, symSize: 0x44 } + - { offset: 0x77651, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOc', symObjAddr: 0x1210, symBinAddr: 0x416C, symSize: 0x44 } + - { offset: 0x77665, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOb', symObjAddr: 0x130C, symBinAddr: 0x4268, symSize: 0x44 } + - { offset: 0x77679, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_TA', symObjAddr: 0x1350, symBinAddr: 0x42AC, symSize: 0x34 } + - { offset: 0x7768D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOh', symObjAddr: 0x1384, symBinAddr: 0x42E0, symSize: 0x3C } + - { offset: 0x776A1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_TA', symObjAddr: 0x13C0, symBinAddr: 0x431C, symSize: 0x2C } + - { offset: 0x776D5, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOc', symObjAddr: 0x13EC, symBinAddr: 0x4348, symSize: 0x48 } + - { offset: 0x77736, size: 0x8, addend: 0x0, symName: '_$sSh21_nonEmptyArrayLiteralShyxGSayxG_tcfCSo16NSURLResourceKeya_Tgm5Tf4g_n', symObjAddr: 0x1434, symBinAddr: 0x4390, symSize: 0x234 } + - { offset: 0x77908, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaMa', symObjAddr: 0x1668, symBinAddr: 0x45C4, symSize: 0x54 } + - { offset: 0x7791C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_yyKXEfU_TA', symObjAddr: 0x16F8, symBinAddr: 0x4654, symSize: 0x30 } + - { offset: 0x77950, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctFyycfU_TA', symObjAddr: 0x174C, symBinAddr: 0x46A8, symSize: 0x20 } + - { offset: 0x77984, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCSYWb', symObjAddr: 0x176C, symBinAddr: 0x46C8, symSize: 0x2C } + - { offset: 0x77998, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCs35_HasCustomAnyHashableRepresentationPWb', symObjAddr: 0x1798, symBinAddr: 0x46F4, symSize: 0x2C } + - { offset: 0x779AC, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSQWb', symObjAddr: 0x17C4, symBinAddr: 0x4720, symSize: 0x2C } + - { offset: 0x77A39, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP016_forceBridgeFromC1C_6resulty01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x8FC, symBinAddr: 0x3858, symSize: 0x4 } + - { offset: 0x77A6D, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE016_forceBridgeFromD1C_6resultyAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x900, symBinAddr: 0x385C, symSize: 0x84 } + - { offset: 0x77AFE, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP024_conditionallyBridgeFromC1C_6resultSb01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x984, symBinAddr: 0x38E0, symSize: 0x4 } + - { offset: 0x77B1A, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE024_conditionallyBridgeFromD1C_6resultSbAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x988, symBinAddr: 0x38E4, symSize: 0x8C } + - { offset: 0x77BBA, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP026_unconditionallyBridgeFromC1Cyx01_C5CTypeQzSgFZTW', symObjAddr: 0xA14, symBinAddr: 0x3970, symSize: 0x40 } + - { offset: 0x77C38, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH4hash4intoys6HasherVz_tFTW', symObjAddr: 0xA9C, symBinAddr: 0x39F8, symSize: 0x40 } + - { offset: 0x77CBC, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH13_rawHashValue4seedS2i_tFTW', symObjAddr: 0xADC, symBinAddr: 0x3A38, symSize: 0x70 } + - { offset: 0x77D41, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSQSCSQ2eeoiySbx_xtFZTW', symObjAddr: 0xB4C, symBinAddr: 0x3AA8, symSize: 0x88 } + - { offset: 0x77DE3, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas35_HasCustomAnyHashableRepresentationSCsACP03_todeF0s0eF0VSgyFTW', symObjAddr: 0xC40, symBinAddr: 0x3B9C, symSize: 0x84 } + - { offset: 0x77E66, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_', symObjAddr: 0x0, symBinAddr: 0x2F5C, symSize: 0x18 } + - { offset: 0x77F26, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_', symObjAddr: 0x18, symBinAddr: 0x2F74, symSize: 0x398 } + - { offset: 0x78056, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_yyXEfU_', symObjAddr: 0x3B0, symBinAddr: 0x330C, symSize: 0x4 } + - { offset: 0x7809A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctF', symObjAddr: 0x570, symBinAddr: 0x34CC, symSize: 0x170 } + - { offset: 0x781D7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC033documentInteractionControllerViewH10ForPreviewySo06UIViewH0CSo010UIDocumentgH0CFTo', symObjAddr: 0x6E0, symBinAddr: 0x363C, symSize: 0x28 } + - { offset: 0x78257, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCACycfcTo', symObjAddr: 0x708, symBinAddr: 0x3664, symSize: 0x2C } + - { offset: 0x782B6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfD', symObjAddr: 0x734, symBinAddr: 0x3690, symSize: 0x30 } + - { offset: 0x782D9, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfD', symObjAddr: 0x7BC, symBinAddr: 0x3718, symSize: 0x68 } + - { offset: 0x7830C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfDTo', symObjAddr: 0x824, symBinAddr: 0x3780, symSize: 0x6C } + - { offset: 0x7834D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCACycfcTo', symObjAddr: 0x8A4, symBinAddr: 0x3800, symSize: 0x2C } + - { offset: 0x7845D, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValuexSg03RawD0Qz_tcfCTW', symObjAddr: 0xBD4, symBinAddr: 0x3B30, symSize: 0x44 } + - { offset: 0x78486, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValue03RawD0QzvgTW', symObjAddr: 0xC18, symBinAddr: 0x3B74, symSize: 0x28 } + - { offset: 0x784E4, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_Tf4dnnn_n', symObjAddr: 0xCC4, symBinAddr: 0x3C20, symSize: 0x3BC } + - { offset: 0x78799, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgSo13NSURLResponseCSgs5Error_pSgIeghngg_So5NSURLCSgAGSo7NSErrorCSgIeyBhyyy_TR', symObjAddr: 0x348, symBinAddr: 0x4ACC, symSize: 0x118 } + - { offset: 0x787B1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCMa', symObjAddr: 0x470, symBinAddr: 0x4BF4, symSize: 0x20 } + - { offset: 0x787C5, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_TA', symObjAddr: 0xA6C, symBinAddr: 0x51F0, symSize: 0xC } + - { offset: 0x787D9, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_TA', symObjAddr: 0xBEC, symBinAddr: 0x52E8, symSize: 0x94 } + - { offset: 0x787ED, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0xC80, symBinAddr: 0x537C, symSize: 0x10 } + - { offset: 0x78801, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0xC90, symBinAddr: 0x538C, symSize: 0x8 } + - { offset: 0x78815, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZAKyXEfU_TA', symObjAddr: 0xCD4, symBinAddr: 0x5394, symSize: 0x2C } + - { offset: 0x78848, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOh', symObjAddr: 0xD40, symBinAddr: 0x53C0, symSize: 0x40 } + - { offset: 0x7885C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOACs5ErrorAAWl', symObjAddr: 0xDC8, symBinAddr: 0x5400, symSize: 0x44 } + - { offset: 0x78926, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_', symObjAddr: 0x0, symBinAddr: 0x4798, symSize: 0x2C8 } + - { offset: 0x789E6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCfD', symObjAddr: 0x460, symBinAddr: 0x4BE4, symSize: 0x10 } + - { offset: 0x78A25, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZ04$s16ab100Lib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17dL10VyKXEtcfU_AA0oP0Cs5Error_pIgzo_Iegg_Tf1ncn_nTf4ndgg_n', symObjAddr: 0x490, symBinAddr: 0x4C14, symSize: 0x5B0 } + - { offset: 0x78D95, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF', symObjAddr: 0xFC, symBinAddr: 0x5554, symSize: 0x33C } + - { offset: 0x78EC2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF', symObjAddr: 0x4FC, symBinAddr: 0x5890, symSize: 0x168 } + - { offset: 0x79033, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14getResourceURL029_E2701193960D25FEFDDFECDB02D1K2A5LLy10Foundation0G0VSSKF', symObjAddr: 0x664, symBinAddr: 0x59F8, symSize: 0x558 } + - { offset: 0x794DC, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF', symObjAddr: 0xBBC, symBinAddr: 0x5F50, symSize: 0x39C } + - { offset: 0x79695, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_', symObjAddr: 0xF58, symBinAddr: 0x62EC, symSize: 0xE8 } + - { offset: 0x796EE, size: 0x8, addend: 0x0, symName: '_$sSo11NSPredicateCMa', symObjAddr: 0x1084, symBinAddr: 0x63F8, symSize: 0x3C } + - { offset: 0x79702, size: 0x8, addend: 0x0, symName: '_$sS2Ss7CVarArg10FoundationWl', symObjAddr: 0x10C0, symBinAddr: 0x6434, symSize: 0x44 } + - { offset: 0x79716, size: 0x8, addend: 0x0, symName: '_$sS2SSysWl', symObjAddr: 0x1104, symBinAddr: 0x6478, symSize: 0x44 } + - { offset: 0x7972A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_TA', symObjAddr: 0x1148, symBinAddr: 0x64BC, symSize: 0x8 } + - { offset: 0x7973E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromLocalPath04fileK010completionySS_yyctKFTW', symObjAddr: 0x1150, symBinAddr: 0x64C4, symSize: 0x20 } + - { offset: 0x79761, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromResources9assetPath10completionySS_yyctKFTW', symObjAddr: 0x1170, symBinAddr: 0x64E4, symSize: 0x20 } + - { offset: 0x79784, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFTW', symObjAddr: 0x1190, symBinAddr: 0x6504, symSize: 0x20 } + - { offset: 0x7986D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF', symObjAddr: 0x11B0, symBinAddr: 0x6524, symSize: 0x264 } + - { offset: 0x7999C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF', symObjAddr: 0x1414, symBinAddr: 0x6788, symSize: 0x104 } + - { offset: 0x79AB6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF', symObjAddr: 0x1518, symBinAddr: 0x688C, symSize: 0x2C8 } + - { offset: 0x79C72, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromLocalPath04fileL0ySS_tKFTW', symObjAddr: 0x17E0, symBinAddr: 0x6B54, symSize: 0x20 } + - { offset: 0x79C95, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromResources9assetPathySS_tKFTW', symObjAddr: 0x1800, symBinAddr: 0x6B74, symSize: 0x20 } + - { offset: 0x79CB8, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF14ContentFromUrl3urlySS_tKFTW', symObjAddr: 0x1820, symBinAddr: 0x6B94, symSize: 0x20 } + - { offset: 0x79DA1, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5', symObjAddr: 0x1840, symBinAddr: 0x6BB4, symSize: 0x418 } + - { offset: 0x7A121, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKF17appendSubsequenceL_3endSb5IndexQz_tSlRzlFSS_Tg5', symObjAddr: 0x1C58, symBinAddr: 0x6FCC, symSize: 0x10C } + - { offset: 0x7A2C8, size: 0x8, addend: 0x0, symName: '_$ss12_ArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5', symObjAddr: 0x1D64, symBinAddr: 0x70D8, symSize: 0x100 } + - { offset: 0x7A3CA, size: 0x8, addend: 0x0, symName: '_$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5', symObjAddr: 0x1E64, symBinAddr: 0x71D8, symSize: 0x1C } + - { offset: 0x7A42F, size: 0x8, addend: 0x0, symName: '_$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5', symObjAddr: 0x1E80, symBinAddr: 0x71F4, symSize: 0x100 } + - { offset: 0x7A51B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCMa', symObjAddr: 0x1F80, symBinAddr: 0x72F4, symSize: 0x20 } + - { offset: 0x7A52F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOe', symObjAddr: 0x1FB4, symBinAddr: 0x7328, symSize: 0x18 } + - { offset: 0x7A588, size: 0x8, addend: 0x0, symName: '_$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA', symObjAddr: 0x1FCC, symBinAddr: 0x7340, symSize: 0x54 } + - { offset: 0x7A698, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0CtcfC', symObjAddr: 0x0, symBinAddr: 0x5458, symSize: 0x60 } + - { offset: 0x7A6D3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc', symObjAddr: 0x60, symBinAddr: 0x54B8, symSize: 0x4C } + - { offset: 0x7A713, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfd', symObjAddr: 0xAC, symBinAddr: 0x5504, symSize: 0x24 } + - { offset: 0x7A74A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfD', symObjAddr: 0xD0, symBinAddr: 0x5528, symSize: 0x2C } + - { offset: 0x7ABFF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAAs0G0PWb', symObjAddr: 0x3E4, symBinAddr: 0x77B4, symSize: 0x4 } + - { offset: 0x7AC13, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOy', symObjAddr: 0x430, symBinAddr: 0x77BC, symSize: 0x18 } + - { offset: 0x7AC27, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwxx', symObjAddr: 0x448, symBinAddr: 0x77D4, symSize: 0x10 } + - { offset: 0x7AC3B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwca', symObjAddr: 0x4BC, symBinAddr: 0x782C, symSize: 0x54 } + - { offset: 0x7AC4F, size: 0x8, addend: 0x0, symName: ___swift_memcpy17_8, symObjAddr: 0x510, symBinAddr: 0x7880, symSize: 0x14 } + - { offset: 0x7AC63, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwta', symObjAddr: 0x524, symBinAddr: 0x7894, symSize: 0x44 } + - { offset: 0x7AC77, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwet', symObjAddr: 0x568, symBinAddr: 0x78D8, symSize: 0x48 } + - { offset: 0x7AC8B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwst', symObjAddr: 0x5B0, symBinAddr: 0x7920, symSize: 0x44 } + - { offset: 0x7AC9F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwug', symObjAddr: 0x5F4, symBinAddr: 0x7964, symSize: 0x18 } + - { offset: 0x7ACB3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwui', symObjAddr: 0x610, symBinAddr: 0x797C, symSize: 0x18 } + - { offset: 0x7ACC7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOMa', symObjAddr: 0x628, symBinAddr: 0x7994, symSize: 0x10 } + - { offset: 0x7AD50, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP7_domainSSvgTW', symObjAddr: 0x15C, symBinAddr: 0x752C, symSize: 0x4 } + - { offset: 0x7AD6C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP5_codeSivgTW', symObjAddr: 0x160, symBinAddr: 0x7530, symSize: 0x4 } + - { offset: 0x7AD88, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP9_userInfoyXlSgvgTW', symObjAddr: 0x164, symBinAddr: 0x7534, symSize: 0x4 } + - { offset: 0x7ADA4, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP19_getEmbeddedNSErroryXlSgyFTW', symObjAddr: 0x168, symBinAddr: 0x7538, symSize: 0x4 } + - { offset: 0x7ADF7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg', symObjAddr: 0x0, symBinAddr: 0x73D4, symSize: 0x144 } + - { offset: 0x7AF1C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ', symObjAddr: 0x144, symBinAddr: 0x7518, symSize: 0x4 } + - { offset: 0x7AF30, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP16errorDescriptionSSSgvgTW', symObjAddr: 0x148, symBinAddr: 0x751C, symSize: 0x4 } + - { offset: 0x7AF4E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP13failureReasonSSSgvgTW', symObjAddr: 0x14C, symBinAddr: 0x7520, symSize: 0x4 } + - { offset: 0x7AF6A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP18recoverySuggestionSSSgvgTW', symObjAddr: 0x150, symBinAddr: 0x7524, symSize: 0x4 } + - { offset: 0x7AF86, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP10helpAnchorSSSgvgTW', symObjAddr: 0x154, symBinAddr: 0x7528, symSize: 0x4 } + - { offset: 0x7AFB0, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZTf4nnd_n', symObjAddr: 0x16C, symBinAddr: 0x753C, symSize: 0x278 } + - { offset: 0x7B0FA, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x90, symBinAddr: 0x7A34, symSize: 0xF8 } + - { offset: 0x7B112, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x90, symBinAddr: 0x7A34, symSize: 0xF8 } + - { offset: 0x7B126, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwxx', symObjAddr: 0x1C8, symBinAddr: 0x7B2C, symSize: 0x7C } + - { offset: 0x7B13A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwcp', symObjAddr: 0x244, symBinAddr: 0x7BA8, symSize: 0xCC } + - { offset: 0x7B14E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwca', symObjAddr: 0x310, symBinAddr: 0x7C74, symSize: 0x128 } + - { offset: 0x7B162, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwtk', symObjAddr: 0x438, symBinAddr: 0x7D9C, symSize: 0xBC } + - { offset: 0x7B176, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwta', symObjAddr: 0x4F4, symBinAddr: 0x7E58, symSize: 0x118 } + - { offset: 0x7B18A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwet', symObjAddr: 0x60C, symBinAddr: 0x7F70, symSize: 0xC } + - { offset: 0x7B19E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwst', symObjAddr: 0x6A4, symBinAddr: 0x8008, symSize: 0xC } + - { offset: 0x7B1B2, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMa', symObjAddr: 0x728, symBinAddr: 0x808C, symSize: 0x3C } + - { offset: 0x7B1C6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMr', symObjAddr: 0x764, symBinAddr: 0x80C8, symSize: 0x74 } + - { offset: 0x7B1DA, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgMa', symObjAddr: 0x7D8, symBinAddr: 0x813C, symSize: 0x54 } + - { offset: 0x7B2BA, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x8190, symSize: 0x2C } + - { offset: 0x7B2D2, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x8190, symSize: 0x2C } + - { offset: 0x7B3AB, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerCMa', symObjAddr: 0x310, symBinAddr: 0x8474, symSize: 0x20 } + - { offset: 0x7B3BF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_TA', symObjAddr: 0x354, symBinAddr: 0x84B8, symSize: 0x8 } + - { offset: 0x7B3D3, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x35C, symBinAddr: 0x84C0, symSize: 0x10 } + - { offset: 0x7B3E7, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x36C, symBinAddr: 0x84D0, symSize: 0x8 } + - { offset: 0x7B452, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC11previewItemSo5NSURLCvg', symObjAddr: 0x2C, symBinAddr: 0x81BC, symSize: 0x6C } + - { offset: 0x7B57E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tF', symObjAddr: 0x98, symBinAddr: 0x8228, symSize: 0x1A8 } + - { offset: 0x7B63B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_', symObjAddr: 0x240, symBinAddr: 0x83D0, symSize: 0x48 } + - { offset: 0x7B6C5, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC20numberOfPreviewItems2inSiSo19QLPreviewControllerC_tFTo', symObjAddr: 0x288, symBinAddr: 0x8418, symSize: 0x8 } + - { offset: 0x7B714, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC17previewController_0E6ItemAtSo09QLPreviewG0_pSo0iF0C_SitFTo', symObjAddr: 0x290, symBinAddr: 0x8420, symSize: 0x54 } +... diff --git a/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/x86_64/IONFileViewerLib.yml b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/x86_64/IONFileViewerLib.yml new file mode 100644 index 0000000..0cd368a --- /dev/null +++ b/packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/ios-arm64_x86_64-simulator/dSYMs/IONFileViewerLib.framework.dSYM/Contents/Resources/Relocations/x86_64/IONFileViewerLib.yml @@ -0,0 +1,141 @@ +--- +triple: 'x86_64-apple-darwin' +binary-path: '/Users/pedrobilro/Library/Developer/Xcode/DerivedData/IONFileViewerLib-fgmgknfbnrmpozdrsowfdcrfmkcx/Build/Intermediates.noindex/ArchiveIntermediates/IONFileViewerLib/InstallationBuildProductsLocation/Library/Frameworks/IONFileViewerLib.framework/IONFileViewerLib' +relocations: + - { offset: 0x78A26, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionString, symObjAddr: 0x0, symBinAddr: 0x9140, symSize: 0x0 } + - { offset: 0x78A5B, size: 0x8, addend: 0x0, symName: _IONFileViewerLibVersionNumber, symObjAddr: 0x40, symBinAddr: 0x9180, symSize: 0x0 } + - { offset: 0x78D42, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLV16IONFileViewerLibE3uti33_40B095A50BB4427D333CCDD137D2D121LLSSvg', symObjAddr: 0x3D0, symBinAddr: 0x27F0, symSize: 0x190 } + - { offset: 0x78E58, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfETo', symObjAddr: 0x750, symBinAddr: 0x2B70, symSize: 0x30 } + - { offset: 0x78E87, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCMa', symObjAddr: 0x780, symBinAddr: 0x2BA0, symSize: 0x20 } + - { offset: 0x78E9B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfETo', symObjAddr: 0x870, symBinAddr: 0x2C90, symSize: 0x20 } + - { offset: 0x78ECA, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCMa', symObjAddr: 0x8C0, symBinAddr: 0x2CE0, symSize: 0x20 } + - { offset: 0x78F85, size: 0x8, addend: 0x0, symName: '_$sSo17OS_dispatch_queueCMa', symObjAddr: 0x1090, symBinAddr: 0x34B0, symSize: 0x30 } + - { offset: 0x78F99, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_TA', symObjAddr: 0x10F0, symBinAddr: 0x3510, symSize: 0x40 } + - { offset: 0x78FD5, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x1130, symBinAddr: 0x3550, symSize: 0x20 } + - { offset: 0x78FE9, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x1150, symBinAddr: 0x3570, symSize: 0x10 } + - { offset: 0x78FFD, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledName, symObjAddr: 0x1160, symBinAddr: 0x3580, symSize: 0x40 } + - { offset: 0x79011, size: 0x8, addend: 0x0, symName: '_$sSay8Dispatch0A13WorkItemFlagsVGSayxGSTsWl', symObjAddr: 0x11A0, symBinAddr: 0x35C0, symSize: 0x40 } + - { offset: 0x79025, size: 0x8, addend: 0x0, symName: ___swift_instantiateConcreteTypeFromMangledNameAbstract, symObjAddr: 0x11E0, symBinAddr: 0x3600, symSize: 0x40 } + - { offset: 0x79039, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOc', symObjAddr: 0x1220, symBinAddr: 0x3640, symSize: 0x30 } + - { offset: 0x7904D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOb', symObjAddr: 0x1300, symBinAddr: 0x3720, symSize: 0x30 } + - { offset: 0x79061, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_TA', symObjAddr: 0x1330, symBinAddr: 0x3750, symSize: 0x40 } + - { offset: 0x79075, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVWOh', symObjAddr: 0x1370, symBinAddr: 0x3790, symSize: 0x30 } + - { offset: 0x79089, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_TA', symObjAddr: 0x13A0, symBinAddr: 0x37C0, symSize: 0x30 } + - { offset: 0x790BD, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOc', symObjAddr: 0x13D0, symBinAddr: 0x37F0, symSize: 0x40 } + - { offset: 0x7911E, size: 0x8, addend: 0x0, symName: '_$sSh21_nonEmptyArrayLiteralShyxGSayxG_tcfCSo16NSURLResourceKeya_Tgm5Tf4g_n', symObjAddr: 0x1410, symBinAddr: 0x3830, symSize: 0x1E0 } + - { offset: 0x7932E, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaMa', symObjAddr: 0x15F0, symBinAddr: 0x3A10, symSize: 0x30 } + - { offset: 0x79342, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU0_yyKXEfU_TA', symObjAddr: 0x1650, symBinAddr: 0x3A70, symSize: 0x30 } + - { offset: 0x79376, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctFyycfU_TA', symObjAddr: 0x16A0, symBinAddr: 0x3AC0, symSize: 0x20 } + - { offset: 0x793AA, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCSYWb', symObjAddr: 0x16C0, symBinAddr: 0x3AE0, symSize: 0x20 } + - { offset: 0x793BE, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas20_SwiftNewtypeWrapperSCs35_HasCustomAnyHashableRepresentationPWb', symObjAddr: 0x16E0, symBinAddr: 0x3B00, symSize: 0x20 } + - { offset: 0x793D2, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSQWb', symObjAddr: 0x1700, symBinAddr: 0x3B20, symSize: 0x20 } + - { offset: 0x79465, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP016_forceBridgeFromC1C_6resulty01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x900, symBinAddr: 0x2D20, symSize: 0x10 } + - { offset: 0x79499, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE016_forceBridgeFromD1C_6resultyAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x910, symBinAddr: 0x2D30, symSize: 0x80 } + - { offset: 0x7952A, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP024_conditionallyBridgeFromC1C_6resultSb01_C5CTypeQz_xSgztFZTW', symObjAddr: 0x990, symBinAddr: 0x2DB0, symSize: 0x10 } + - { offset: 0x79546, size: 0x8, addend: 0x0, symName: '_$ss20_SwiftNewtypeWrapperPss21_ObjectiveCBridgeable8RawValueRpzrlE024_conditionallyBridgeFromD1C_6resultSbAD_01_D5CTypeQZ_xSgztFZSo16NSURLResourceKeya_Tgmq5', symObjAddr: 0x9A0, symBinAddr: 0x2DC0, symSize: 0x80 } + - { offset: 0x795E6, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas21_ObjectiveCBridgeableSCsACP026_unconditionallyBridgeFromC1Cyx01_C5CTypeQzSgFZTW', symObjAddr: 0xA20, symBinAddr: 0x2E40, symSize: 0x40 } + - { offset: 0x79664, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH4hash4intoys6HasherVz_tFTW', symObjAddr: 0xAC0, symBinAddr: 0x2EE0, symSize: 0x30 } + - { offset: 0x796E8, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSHSCSH13_rawHashValue4seedS2i_tFTW', symObjAddr: 0xAF0, symBinAddr: 0x2F10, symSize: 0x60 } + - { offset: 0x7976D, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSQSCSQ2eeoiySbx_xtFZTW', symObjAddr: 0xB50, symBinAddr: 0x2F70, symSize: 0x80 } + - { offset: 0x79827, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyas35_HasCustomAnyHashableRepresentationSCsACP03_todeF0s0eF0VSgyFTW', symObjAddr: 0xC30, symBinAddr: 0x3050, symSize: 0x70 } + - { offset: 0x798A4, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_', symObjAddr: 0x0, symBinAddr: 0x2420, symSize: 0x20 } + - { offset: 0x79964, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_', symObjAddr: 0x20, symBinAddr: 0x2440, symSize: 0x3A0 } + - { offset: 0x79A9F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_yyScMYccfU_yycfU_yyXEfU_', symObjAddr: 0x3C0, symBinAddr: 0x27E0, symSize: 0x10 } + - { offset: 0x79AE3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC25openDocumentFromLocalPath04fileJ010completiony10Foundation3URLV_yyctF', symObjAddr: 0x560, symBinAddr: 0x2980, symSize: 0x170 } + - { offset: 0x79C20, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC033documentInteractionControllerViewH10ForPreviewySo06UIViewH0CSo010UIDocumentgH0CFTo', symObjAddr: 0x6D0, symBinAddr: 0x2AF0, symSize: 0x20 } + - { offset: 0x79CA0, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCACycfcTo', symObjAddr: 0x6F0, symBinAddr: 0x2B10, symSize: 0x30 } + - { offset: 0x79CFF, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerCfD', symObjAddr: 0x720, symBinAddr: 0x2B40, symSize: 0x30 } + - { offset: 0x79D22, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfD', symObjAddr: 0x7A0, symBinAddr: 0x2BC0, symSize: 0x60 } + - { offset: 0x79D55, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCfDTo', symObjAddr: 0x800, symBinAddr: 0x2C20, symSize: 0x70 } + - { offset: 0x79D96, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib25IONFLVWDocumentInteractorCACycfcTo', symObjAddr: 0x890, symBinAddr: 0x2CB0, symSize: 0x30 } + - { offset: 0x79EA6, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValuexSg03RawD0Qz_tcfCTW', symObjAddr: 0xBD0, symBinAddr: 0x2FF0, symSize: 0x40 } + - { offset: 0x79ECF, size: 0x8, addend: 0x0, symName: '_$sSo16NSURLResourceKeyaSYSCSY8rawValue03RawD0QzvgTW', symObjAddr: 0xC10, symBinAddr: 0x3030, symSize: 0x20 } + - { offset: 0x79F2D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_Tf4dnnn_n', symObjAddr: 0xCA0, symBinAddr: 0x30C0, symSize: 0x3F0 } + - { offset: 0x7A1E2, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgSo13NSURLResponseCSgs5Error_pSgIeghngg_So5NSURLCSgAGSo7NSErrorCSgIeyBhyyy_TR', symObjAddr: 0x310, symBinAddr: 0x3EA0, symSize: 0x100 } + - { offset: 0x7A1FA, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCMa', symObjAddr: 0x430, symBinAddr: 0x3FC0, symSize: 0x20 } + - { offset: 0x7A20E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17IONFLVWFileResultVyKXEtcfU_TA', symObjAddr: 0xAB0, symBinAddr: 0x4640, symSize: 0x20 } + - { offset: 0x7A222, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_TA', symObjAddr: 0xC30, symBinAddr: 0x4760, symSize: 0xA0 } + - { offset: 0x7A236, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0xCD0, symBinAddr: 0x4800, symSize: 0x20 } + - { offset: 0x7A24A, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0xCF0, symBinAddr: 0x4820, symSize: 0x10 } + - { offset: 0x7A25E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZAKyXEfU_TA', symObjAddr: 0xD30, symBinAddr: 0x4830, symSize: 0x20 } + - { offset: 0x7A291, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgWOh', symObjAddr: 0xD90, symBinAddr: 0x4850, symSize: 0x30 } + - { offset: 0x7A2A5, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOACs5ErrorAAWl', symObjAddr: 0xE00, symBinAddr: 0x4880, symSize: 0x30 } + - { offset: 0x7A36F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZyAISg_So13NSURLResponseCSgs5Error_pSgtYbcfU0_', symObjAddr: 0x0, symBinAddr: 0x3BA0, symSize: 0x2A0 } + - { offset: 0x7A42F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderCfD', symObjAddr: 0x410, symBinAddr: 0x3FA0, symSize: 0x20 } + - { offset: 0x7A46E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib21IONFLVWFileDownloaderC12downloadFile3url10completiony10Foundation3URLV_ySb_AA0D6ResultVyKXEtctFZ04$s16ab100Lib21IONFLVWDocumentOpenerC19openDocumentFromUrl3url10completiony10Foundation3URLV_yyyKXEctFySb_AA17dL10VyKXEtcfU_AA0oP0Cs5Error_pIgzo_Iegg_Tf1ncn_nTf4ndgg_n', symObjAddr: 0x450, symBinAddr: 0x3FE0, symSize: 0x630 } + - { offset: 0x7A7DE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromLocalPath04fileI010completionySS_yyctKF', symObjAddr: 0x100, symBinAddr: 0x49C0, symSize: 0x380 } + - { offset: 0x7A90B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC25openDocumentFromResources9assetPath10completionySS_yyctKF', symObjAddr: 0x520, symBinAddr: 0x4D40, symSize: 0x170 } + - { offset: 0x7AA7C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14getResourceURL029_E2701193960D25FEFDDFECDB02D1K2A5LLy10Foundation0G0VSSKF', symObjAddr: 0x690, symBinAddr: 0x4EB0, symSize: 0x540 } + - { offset: 0x7AEC7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKF', symObjAddr: 0xBD0, symBinAddr: 0x53F0, symSize: 0x3D0 } + - { offset: 0x7B081, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_', symObjAddr: 0xFA0, symBinAddr: 0x57C0, symSize: 0xD0 } + - { offset: 0x7B0DA, size: 0x8, addend: 0x0, symName: '_$sSo11NSPredicateCMa', symObjAddr: 0x10B0, symBinAddr: 0x58B0, symSize: 0x30 } + - { offset: 0x7B0EE, size: 0x8, addend: 0x0, symName: '_$sS2Ss7CVarArg10FoundationWl', symObjAddr: 0x10E0, symBinAddr: 0x58E0, symSize: 0x30 } + - { offset: 0x7B102, size: 0x8, addend: 0x0, symName: '_$sS2SSysWl', symObjAddr: 0x1110, symBinAddr: 0x5910, symSize: 0x30 } + - { offset: 0x7B116, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC19openDocumentFromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFyyyKXEcfU_TA', symObjAddr: 0x1140, symBinAddr: 0x5940, symSize: 0x20 } + - { offset: 0x7B12A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromLocalPath04fileK010completionySS_yyctKFTW', symObjAddr: 0x1160, symBinAddr: 0x5960, symSize: 0x20 } + - { offset: 0x7B14D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF13FromResources9assetPath10completionySS_yyctKFTW', symObjAddr: 0x1180, symBinAddr: 0x5980, symSize: 0x20 } + - { offset: 0x7B170, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWOpenDocumentManagerA2aDP04openF7FromUrl3url10completionySS_yAA12IONFLVWErrorOSgctKFTW', symObjAddr: 0x11A0, symBinAddr: 0x59A0, symSize: 0x20 } + - { offset: 0x7B259, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromLocalPath04fileJ0ySS_tKF', symObjAddr: 0x11C0, symBinAddr: 0x59C0, symSize: 0x290 } + - { offset: 0x7B38E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC32previewMediaContentFromResources9assetPathySS_tKF', symObjAddr: 0x1450, symBinAddr: 0x5C50, symSize: 0x100 } + - { offset: 0x7B4AE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC26previewMediaContentFromUrl3urlySS_tKF', symObjAddr: 0x1550, symBinAddr: 0x5D50, symSize: 0x2D0 } + - { offset: 0x7B671, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromLocalPath04fileL0ySS_tKFTW', symObjAddr: 0x1820, symBinAddr: 0x6020, symSize: 0x20 } + - { offset: 0x7B694, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF20ContentFromResources9assetPathySS_tKFTW', symObjAddr: 0x1840, symBinAddr: 0x6040, symSize: 0x20 } + - { offset: 0x7B6B7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCAA26IONFLVWPreviewMediaManagerA2aDP07previewF14ContentFromUrl3urlySS_tKFTW', symObjAddr: 0x1860, symBinAddr: 0x6060, symSize: 0x20 } + - { offset: 0x7B7A0, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5', symObjAddr: 0x1880, symBinAddr: 0x6080, symSize: 0x520 } + - { offset: 0x7BB10, size: 0x8, addend: 0x0, symName: '_$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKF17appendSubsequenceL_3endSb5IndexQz_tSlRzlFSS_Tg5', symObjAddr: 0x1DA0, symBinAddr: 0x65A0, symSize: 0x110 } + - { offset: 0x7BCB6, size: 0x8, addend: 0x0, symName: '_$ss12_ArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5', symObjAddr: 0x1EB0, symBinAddr: 0x66B0, symSize: 0x110 } + - { offset: 0x7BDB8, size: 0x8, addend: 0x0, symName: '_$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5', symObjAddr: 0x1FC0, symBinAddr: 0x67C0, symSize: 0x20 } + - { offset: 0x7BE28, size: 0x8, addend: 0x0, symName: '_$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5', symObjAddr: 0x1FE0, symBinAddr: 0x67E0, symSize: 0x110 } + - { offset: 0x7BF14, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCMa', symObjAddr: 0x20F0, symBinAddr: 0x68F0, symSize: 0x20 } + - { offset: 0x7BF28, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOe', symObjAddr: 0x2140, symBinAddr: 0x6940, symSize: 0x20 } + - { offset: 0x7BF81, size: 0x8, addend: 0x0, symName: '_$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA', symObjAddr: 0x2160, symBinAddr: 0x6960, symSize: 0x40 } + - { offset: 0x7C061, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0CtcfC', symObjAddr: 0x0, symBinAddr: 0x48C0, symSize: 0x60 } + - { offset: 0x7C09C, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerC14viewController11fileManagerACSo06UIViewF0C_So06NSFileH0Ctcfc', symObjAddr: 0x60, symBinAddr: 0x4920, symSize: 0x50 } + - { offset: 0x7C0DA, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfd', symObjAddr: 0xB0, symBinAddr: 0x4970, symSize: 0x20 } + - { offset: 0x7C111, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib14IONFLVWManagerCfD', symObjAddr: 0xD0, symBinAddr: 0x4990, symSize: 0x30 } + - { offset: 0x7C5C6, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAAs0G0PWb', symObjAddr: 0x4A0, symBinAddr: 0x6EA0, symSize: 0x10 } + - { offset: 0x7C5DA, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOWOy', symObjAddr: 0x4F0, symBinAddr: 0x6EC0, symSize: 0x20 } + - { offset: 0x7C5EE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwxx', symObjAddr: 0x510, symBinAddr: 0x6EE0, symSize: 0x20 } + - { offset: 0x7C602, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwca', symObjAddr: 0x5A0, symBinAddr: 0x6F40, symSize: 0x50 } + - { offset: 0x7C616, size: 0x8, addend: 0x0, symName: ___swift_memcpy17_8, symObjAddr: 0x5F0, symBinAddr: 0x6F90, symSize: 0x20 } + - { offset: 0x7C62A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwta', symObjAddr: 0x610, symBinAddr: 0x6FB0, symSize: 0x40 } + - { offset: 0x7C63E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwet', symObjAddr: 0x650, symBinAddr: 0x6FF0, symSize: 0x50 } + - { offset: 0x7C652, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwst', symObjAddr: 0x6A0, symBinAddr: 0x7040, symSize: 0x50 } + - { offset: 0x7C666, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwug', symObjAddr: 0x6F0, symBinAddr: 0x7090, symSize: 0x20 } + - { offset: 0x7C67A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOwui', symObjAddr: 0x720, symBinAddr: 0x70B0, symSize: 0x20 } + - { offset: 0x7C68E, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOMa', symObjAddr: 0x740, symBinAddr: 0x70D0, symSize: 0xA } + - { offset: 0x7C717, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP7_domainSSvgTW', symObjAddr: 0x1C0, symBinAddr: 0x6BC0, symSize: 0x10 } + - { offset: 0x7C733, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP5_codeSivgTW', symObjAddr: 0x1D0, symBinAddr: 0x6BD0, symSize: 0x10 } + - { offset: 0x7C74F, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP9_userInfoyXlSgvgTW', symObjAddr: 0x1E0, symBinAddr: 0x6BE0, symSize: 0x10 } + - { offset: 0x7C76B, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorOs5ErrorAAsADP19_getEmbeddedNSErroryXlSgyFTW', symObjAddr: 0x1F0, symBinAddr: 0x6BF0, symSize: 0x10 } + - { offset: 0x7C7BE, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO16errorDescriptionSSSgvg', symObjAddr: 0x0, symBinAddr: 0x6A10, symSize: 0x160 } + - { offset: 0x7C8E3, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZ', symObjAddr: 0x160, symBinAddr: 0x6B70, symSize: 0x10 } + - { offset: 0x7C8F7, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP16errorDescriptionSSSgvgTW', symObjAddr: 0x170, symBinAddr: 0x6B80, symSize: 0x10 } + - { offset: 0x7C915, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP13failureReasonSSSgvgTW', symObjAddr: 0x180, symBinAddr: 0x6B90, symSize: 0x10 } + - { offset: 0x7C931, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP18recoverySuggestionSSSgvgTW', symObjAddr: 0x190, symBinAddr: 0x6BA0, symSize: 0x10 } + - { offset: 0x7C94D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO10Foundation14LocalizedErrorAadEP10helpAnchorSSSgvgTW', symObjAddr: 0x1A0, symBinAddr: 0x6BB0, symSize: 0x10 } + - { offset: 0x7C977, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib12IONFLVWErrorO2eeoiySbAC_ACtFZTf4nnd_n', symObjAddr: 0x200, symBinAddr: 0x6C00, symSize: 0x2A0 } + - { offset: 0x7CAC1, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x60, symBinAddr: 0x7140, symSize: 0xF0 } + - { offset: 0x7CAD9, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwCP', symObjAddr: 0x60, symBinAddr: 0x7140, symSize: 0xF0 } + - { offset: 0x7CAED, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwxx', symObjAddr: 0x190, symBinAddr: 0x7230, symSize: 0x70 } + - { offset: 0x7CB01, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwcp', symObjAddr: 0x200, symBinAddr: 0x72A0, symSize: 0xC0 } + - { offset: 0x7CB15, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwca', symObjAddr: 0x2C0, symBinAddr: 0x7360, symSize: 0x130 } + - { offset: 0x7CB29, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwtk', symObjAddr: 0x3F0, symBinAddr: 0x7490, symSize: 0xA0 } + - { offset: 0x7CB3D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwta', symObjAddr: 0x490, symBinAddr: 0x7530, symSize: 0x120 } + - { offset: 0x7CB51, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwet', symObjAddr: 0x5B0, symBinAddr: 0x7650, symSize: 0x20 } + - { offset: 0x7CB65, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVwst', symObjAddr: 0x640, symBinAddr: 0x76E0, symSize: 0x20 } + - { offset: 0x7CB79, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMa', symObjAddr: 0x6C0, symBinAddr: 0x7760, symSize: 0x30 } + - { offset: 0x7CB8D, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib17IONFLVWFileResultVMr', symObjAddr: 0x6F0, symBinAddr: 0x7790, symSize: 0x60 } + - { offset: 0x7CBA1, size: 0x8, addend: 0x0, symName: '_$s10Foundation3URLVSgMa', symObjAddr: 0x750, symBinAddr: 0x77F0, symSize: 0x43 } + - { offset: 0x7CC81, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x7840, symSize: 0x30 } + - { offset: 0x7CC99, size: 0x8, addend: 0x0, symName: '_$sIeg_IeyB_TR', symObjAddr: 0x0, symBinAddr: 0x7840, symSize: 0x30 } + - { offset: 0x7CD72, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerCMa', symObjAddr: 0x300, symBinAddr: 0x7B10, symSize: 0x20 } + - { offset: 0x7CD86, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_TA', symObjAddr: 0x350, symBinAddr: 0x7B60, symSize: 0x10 } + - { offset: 0x7CD9A, size: 0x8, addend: 0x0, symName: _block_copy_helper, symObjAddr: 0x360, symBinAddr: 0x7B70, symSize: 0x20 } + - { offset: 0x7CDAE, size: 0x8, addend: 0x0, symName: _block_destroy_helper, symObjAddr: 0x380, symBinAddr: 0x7B90, symSize: 0xE } + - { offset: 0x7CE19, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC11previewItemSo5NSURLCvg', symObjAddr: 0x30, symBinAddr: 0x7870, symSize: 0x60 } + - { offset: 0x7CF43, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tF', symObjAddr: 0x90, symBinAddr: 0x78D0, symSize: 0x190 } + - { offset: 0x7D000, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC19previewMediaContent3urly10Foundation3URLV_tFyycfU_', symObjAddr: 0x220, symBinAddr: 0x7A60, symSize: 0x50 } + - { offset: 0x7D08A, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC20numberOfPreviewItems2inSiSo19QLPreviewControllerC_tFTo', symObjAddr: 0x270, symBinAddr: 0x7AB0, symSize: 0x10 } + - { offset: 0x7D0D9, size: 0x8, addend: 0x0, symName: '_$s16IONFileViewerLib16IONFLVWPreviewerC17previewController_0E6ItemAtSo09QLPreviewG0_pSo0iF0C_SitFTo', symObjAddr: 0x280, symBinAddr: 0x7AC0, symSize: 0x50 } +... diff --git a/packages/capacitor-plugin/package-lock.json b/packages/capacitor-plugin/package-lock.json index b29c7df..e0ed578 100644 --- a/packages/capacitor-plugin/package-lock.json +++ b/packages/capacitor-plugin/package-lock.json @@ -8,6 +8,9 @@ "name": "@capacitor/file-viewer", "version": "0.0.1", "license": "MIT", + "dependencies": { + "@capacitor/synapse": "^1.0.2" + }, "devDependencies": { "@capacitor/android": "^7.0.0", "@capacitor/core": "^7.0.0", @@ -174,6 +177,12 @@ "@capacitor/core": "^7.1.0" } }, + "node_modules/@capacitor/synapse": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.2.tgz", + "integrity": "sha512-ynq39s4D2rhk+aVLWKfKfMCz9SHPKijL9tq8aFL5dG7ik7/+PvBHmg9cPHbqdvFEUSMmaGzL6cIjzkOruW7vGA==", + "license": "ISC" + }, "node_modules/@chevrotain/cst-dts-gen": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.0.3.tgz", diff --git a/packages/capacitor-plugin/package.json b/packages/capacitor-plugin/package.json index 35b8182..5264c2b 100644 --- a/packages/capacitor-plugin/package.json +++ b/packages/capacitor-plugin/package.json @@ -54,6 +54,9 @@ "prepublishOnly": "npm run build", "semantic-release": "semantic-release" }, + "dependencies": { + "@capacitor/synapse": "^1.0.2" + }, "devDependencies": { "@capacitor/android": "^7.0.0", "@capacitor/core": "^7.0.0", diff --git a/packages/capacitor-plugin/src/definitions.ts b/packages/capacitor-plugin/src/definitions.ts index 589d4cf..0993a97 100644 --- a/packages/capacitor-plugin/src/definitions.ts +++ b/packages/capacitor-plugin/src/definitions.ts @@ -1,3 +1,92 @@ +export interface OpenFromLocalPathOptions { + /** + * The full absolute path to the file to open + * @since 1.0.0 + */ + path: string; +} + +export interface OpenFromResourcesOptions { + /** + * The relative path to the resource file to open + * @since 1.0.0 + */ + path: string; +} + +export interface OpenFromUrlOptions { + /** + * The remote url pointing to the file to open + * @since 1.0.0 + */ + url: string; +} + +export type PreviewMediaFromLocalPathOptions = OpenFromLocalPathOptions; + +export type PreviewMediaFromResourcesOptions = OpenFromResourcesOptions; + +export type PreviewMediaFromUrlOptions = OpenFromUrlOptions; + +/** + * File Viewer API + * + * Only available in Native Android and iOS; not available for Web / PWAs. + */ export interface FileViewerPlugin { - echo(options: { value: string }): Promise<{ value: string }>; + /** + * Open a file stored in the local file system + * + * @since 1.0.0 + */ + openDocumentFromLocalPath(options: OpenFromLocalPathOptions): Promise; + + /** + * Open an app resource file + * + * @since 1.0.0 + */ + openDocumentFromResources(options: OpenFromResourcesOptions): Promise; + + /** + * Open a file from a remote url + * + * @since 1.0.0 + */ + openDocumentFromUrl(options: OpenFromUrlOptions): Promise; + + /** + * Preview a media file (namely, video) stored in the local file system. + * Only implemented in iOS. Android defaults to `openDocumentFromLocalPath`. + * + * @since 1.0.0 + */ + previewMediaContentFromLocalPath( + options: PreviewMediaFromLocalPathOptions, + ): Promise; + + /** + * Preview a media file (namely, video) from the app's resources. + * Only implemented in iOS. Android defaults to `openDocumentFromResources`. + * + * @since 1.0.0 + */ + previewMediaContentFromResources( + options: PreviewMediaFromResourcesOptions, + ): Promise; + + /** + * Preview a media file (namely, video) from a remote url. + * Only implemented in iOS. Android defaults to `openDocumentFromUrl`. + * + * @since 1.0.0 + */ + previewMediaContentFromUrl( + options: PreviewMediaFromUrlOptions, + ): Promise; } + +export type PluginError = { + code: string; + message: string; +}; diff --git a/packages/capacitor-plugin/src/index.ts b/packages/capacitor-plugin/src/index.ts index a87c8b6..8cf88c7 100644 --- a/packages/capacitor-plugin/src/index.ts +++ b/packages/capacitor-plugin/src/index.ts @@ -1,10 +1,13 @@ -import { registerPlugin } from '@capacitor/core'; +import { registerPlugin } from "@capacitor/core"; +import { exposeSynapse } from "@capacitor/synapse"; -import type { FileViewerPlugin } from './definitions'; +import type { FileViewerPlugin } from "./definitions"; -const FileViewer = registerPlugin('FileViewer', { - web: () => import('./web').then((m) => new m.FileViewerWeb()), +const FileViewer = registerPlugin("FileViewer", { + web: () => import("./web").then((m) => new m.FileViewerWeb()), }); -export * from './definitions'; +exposeSynapse(); + +export * from "./definitions"; export { FileViewer }; diff --git a/packages/capacitor-plugin/src/web.ts b/packages/capacitor-plugin/src/web.ts index 7666355..a01b2f6 100644 --- a/packages/capacitor-plugin/src/web.ts +++ b/packages/capacitor-plugin/src/web.ts @@ -1,12 +1,43 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -import { WebPlugin } from '@capacitor/core'; +import { WebPlugin } from "@capacitor/core"; -import type { FileViewerPlugin } from './definitions'; +import type { + FileViewerPlugin, + OpenFromLocalPathOptions, + OpenFromResourcesOptions, + OpenFromUrlOptions, + PreviewMediaFromLocalPathOptions, + PreviewMediaFromResourcesOptions, + PreviewMediaFromUrlOptions, +} from "./definitions"; export class FileViewerWeb extends WebPlugin implements FileViewerPlugin { - //@ts-ignore - echo(value: string): Promise<{ value: string }> { - return Promise.resolve({ value }); + openDocumentFromLocalPath(_options: OpenFromLocalPathOptions): Promise { + return Promise.reject("Not implemented in web"); + } + + openDocumentFromResources(_options: OpenFromResourcesOptions): Promise { + return Promise.reject("Not implemented in web"); + } + + openDocumentFromUrl(_options: OpenFromUrlOptions): Promise { + return Promise.reject("Not implemented in web"); + } + + previewMediaContentFromLocalPath( + _options: PreviewMediaFromLocalPathOptions, + ): Promise { + return Promise.reject("Not implemented in web"); + } + + previewMediaContentFromResources( + _options: PreviewMediaFromResourcesOptions, + ): Promise { + return Promise.reject("Not implemented in web"); + } + + previewMediaContentFromUrl( + _options: PreviewMediaFromUrlOptions, + ): Promise { + return Promise.reject("Not implemented in web"); } } diff --git a/packages/example-app-capacitor/ios/App/Podfile.lock b/packages/example-app-capacitor/ios/App/Podfile.lock index a1a2b16..cfd5abb 100644 --- a/packages/example-app-capacitor/ios/App/Podfile.lock +++ b/packages/example-app-capacitor/ios/App/Podfile.lock @@ -32,7 +32,7 @@ SPEC CHECKSUMS: Capacitor: fcbee427ff437f414bbb3bc2d39364ad9bd2b8a5 CapacitorCamera: 777ddf61d727754fcda0b92303ae09ea3765d7b7 CapacitorCordova: 345f93b7edd121db98e4ec20ac94d6d7bcaf7e48 - CapacitorFileViewer: aa221a10134685074de671010bc2af196a8f2f9a + CapacitorFileViewer: e80961b3c06c336482b7997c0182aa26ec5bc0f2 CapacitorSplashScreen: f4e58cc02aafd91c7cbaf32a3d1b44d02a115125 PODFILE CHECKSUM: 77a7484d3339f92395579b7104fae0ab5447d5b7 diff --git a/packages/example-app-capacitor/package-lock.json b/packages/example-app-capacitor/package-lock.json index e64b38a..3aaac4c 100644 --- a/packages/example-app-capacitor/package-lock.json +++ b/packages/example-app-capacitor/package-lock.json @@ -25,6 +25,9 @@ "name": "@capacitor/file-viewer", "version": "0.0.1", "license": "MIT", + "dependencies": { + "@capacitor/synapse": "^1.0.2" + }, "devDependencies": { "@capacitor/android": "^7.0.0", "@capacitor/core": "^7.0.0",