Skip to content

Commit 1b12970

Browse files
chore: Update native libraries to 1.0.0 (#2)
1 parent 59895eb commit 1b12970

File tree

29 files changed

+12
-4380
lines changed

29 files changed

+12
-4380
lines changed

packages/capacitor-plugin/CapacitorFileViewer.podspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ Pod::Spec.new do |s|
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
1313
s.source_files = 'ios/Sources/FileViewerPlugin/*.{swift,h,m,c,cc,mm,cpp}'
1414
s.ios.deployment_target = '14.0'
15-
#s.dependency 'FileViewerLib', spec='~> 1.0'
16-
# temporary xcframeowrk dependency - TODO update to official pod (commented line above) once published
17-
s.vendored_frameworks = 'ios/Sources/*/IONFileViewerLib.xcframework'
15+
s.dependency 'IONFileViewerLib', spec='~> 1.0'
1816
s.dependency 'Capacitor'
1917
s.swift_version = '5.1'
2018
end

packages/capacitor-plugin/Package.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ let package = Package(
1515
targets: [
1616
.binaryTarget(
1717
name: "IONFileViewerLib",
18-
// url: "https://github.com/ionic-team/ion-ios-fileviewer/releases/download/1.0.0/IONFileViewerLib.zip",
19-
// checksum: "<compute_checksum>" // sha-256
20-
path: "./ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework"
18+
url: "https://github.com/ionic-team/ion-ios-fileviewer/releases/download/1.0.0/IONFileViewerLib.zip",
19+
checksum: "02728411a63b4dcb630251d6b37f0ea173804a6408d916a0ba3f1ea9d4301b1a" // sha-256
2120
),
2221
.target(
2322
name: "FileViewerPlugin",

packages/capacitor-plugin/android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ repositories {
5858
dependencies {
5959
implementation fileTree(dir: 'libs', include: ['*.jar'])
6060
implementation project(':capacitor-android')
61-
// TODO replace with 1.0.0 once an official release of the native library is done
62-
implementation "io.ionic.libs:ionfileviewer-android:0.0.1"
61+
implementation "io.ionic.libs:ionfileviewer-android:1.0.0"
6362
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
6463

6564
testImplementation "junit:junit:$junitVersion"

packages/capacitor-plugin/ios/Sources/FileViewerPlugin/IONFileViewerLib.xcframework/Info.plist

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)