c3c891cea0
* enable predictive back gesture * upgrade to rn 85 * remove deprecated * added timeout to theme switch * fix plugin items hit registration * fix SearchbarV2 hit registration * fix loading spinner * migrated to expo * migrated to expo * Fix reader footer animation * working again * added icons back * added splashscreen * clean up * nitro epub * fix * remove .env.local from git tracking * fix rn background actions not working * moving custom permissions to app.json * more cleanup * fix epub import * remove unused deps * Further cleanup for gradle build types * Update build.yml * ignore android/ and ios/ as they are generated by CNG * fix lint * Delete ios directory * Delete android directory * fix lint * fix test mocks * update packages * update eslint * fix ThemeProvider placement * fix test and lint * Add BackgroundTask native module * Add NativeFile changes * first round of fixing compatibility issues * added types for native modules
25 lines
933 B
Swift
25 lines
933 B
Swift
import ExpoModulesCore
|
|
import Foundation
|
|
|
|
public class NativeZipArchiveModule: Module {
|
|
public func definition() -> ModuleDefinition {
|
|
Name("NativeZipArchive")
|
|
|
|
AsyncFunction("unzip") { (sourceFilePath: String, distDirPath: String, promise: Promise) in
|
|
promise.reject("NOT_IMPLEMENTED", "unzip is not implemented on iOS")
|
|
}
|
|
|
|
AsyncFunction("zip") { (sourceDirPath: String, zipFilePath: String, promise: Promise) in
|
|
promise.reject("NOT_IMPLEMENTED", "zip is not implemented on iOS")
|
|
}
|
|
|
|
AsyncFunction("remoteUnzip") { (distDirPath: String, url: String, headers: [String: String], promise: Promise) in
|
|
promise.reject("NOT_IMPLEMENTED", "remoteUnzip is not implemented on iOS")
|
|
}
|
|
|
|
AsyncFunction("remoteZip") { (sourceDirPath: String, url: String, headers: [String: String], promise: Promise) in
|
|
promise.reject("NOT_IMPLEMENTED", "remoteZip is not implemented on iOS")
|
|
}
|
|
}
|
|
}
|