Skip to content

Commit ab2fa1b

Browse files
feat: Capacitor 8 support
BREAKING CHANGE: Capacitor major version update requires major version update on the plugin.
1 parent d4f1727 commit ab2fa1b

File tree

12 files changed

+2096
-1254
lines changed

12 files changed

+2096
-1254
lines changed

packages/capacitor-plugin/CapacitorFileTransfer.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.author = package['author']
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
1313
s.source_files = 'ios/Sources/FileTransferPlugin/*.{swift,h,m,c,cc,mm,cpp}'
14-
s.ios.deployment_target = '14.0'
14+
s.ios.deployment_target = '15.0'
1515
s.dependency 'IONFileTransferLib', spec='~> 1.0.1'
1616
s.dependency 'Capacitor'
1717
s.swift_version = '5.1'

packages/capacitor-plugin/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PackageDescription
33

44
let package = Package(
55
name: "CapacitorFileTransfer",
6-
platforms: [.iOS(.v14)],
6+
platforms: [.iOS(.v15)],
77
products: [
88
.library(
99
name: "CapacitorFileTransfer",

packages/capacitor-plugin/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ apply plugin: 'kotlin-android'
2222

2323
android {
2424
namespace "com.capacitorjs.plugins.filetransfer"
25-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
25+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
2626
defaultConfig {
27-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
28-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
27+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
28+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
2929
versionCode 1
3030
versionName "1.0"
3131
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

packages/capacitor-plugin/package-lock.json

Lines changed: 1057 additions & 1130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/capacitor-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
"@capacitor/synapse": "^1.0.3"
6060
},
6161
"devDependencies": {
62-
"@capacitor/android": "^7.0.0",
63-
"@capacitor/core": "^7.0.0",
62+
"@capacitor/android": "next",
63+
"@capacitor/core": "next",
6464
"@capacitor/docgen": "^0.3.0",
65-
"@capacitor/ios": "^7.0.0",
65+
"@capacitor/ios": "next",
6666
"@eslint/js": "^8.56.0",
6767
"@rollup/wasm-node": "~4.19.0",
6868
"@semantic-release/changelog": "^6.0.3",
@@ -86,7 +86,7 @@
8686
"vite-plugin-dts": "^4.4.0"
8787
},
8888
"peerDependencies": {
89-
"@capacitor/core": ">=7.0.0"
89+
"@capacitor/core": "next"
9090
},
9191
"overrides": {
9292
"vite": {

packages/example-app/android/variables.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ext {
2-
minSdkVersion = 23
3-
compileSdkVersion = 35
4-
targetSdkVersion = 35
2+
minSdkVersion = 24
3+
compileSdkVersion = 36
4+
targetSdkVersion = 36
55
androidxActivityVersion = '1.9.2'
66
androidxAppCompatVersion = '1.7.0'
77
androidxCoordinatorLayoutVersion = '1.2.0'

packages/example-app/ios/App/App.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
284284
GCC_WARN_UNUSED_FUNCTION = YES;
285285
GCC_WARN_UNUSED_VARIABLE = YES;
286-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
286+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
287287
MTL_ENABLE_DEBUG_INFO = YES;
288288
ONLY_ACTIVE_ARCH = YES;
289289
SDKROOT = iphoneos;
@@ -334,7 +334,7 @@
334334
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
335335
GCC_WARN_UNUSED_FUNCTION = YES;
336336
GCC_WARN_UNUSED_VARIABLE = YES;
337-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
337+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
338338
MTL_ENABLE_DEBUG_INFO = NO;
339339
SDKROOT = iphoneos;
340340
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -350,7 +350,7 @@
350350
CODE_SIGN_STYLE = Automatic;
351351
CURRENT_PROJECT_VERSION = 1;
352352
INFOPLIST_FILE = App/Info.plist;
353-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
353+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
354354
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
355355
MARKETING_VERSION = 1.0;
356356
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
@@ -370,7 +370,7 @@
370370
CODE_SIGN_STYLE = Automatic;
371371
CURRENT_PROJECT_VERSION = 1;
372372
INFOPLIST_FILE = App/Info.plist;
373-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
373+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
374374
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
375375
MARKETING_VERSION = 1.0;
376376
PRODUCT_BUNDLE_IDENTIFIER = com.capacitorjs.exampleapp.plugins.filetransfer;

packages/example-app/ios/App/App/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>NSCameraUsageDescription</key>
6-
<string>App requires camera access to test upload</string>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>en</string>
97
<key>CFBundleDisplayName</key>
10-
<string>CAP-FLTR Sample</string>
8+
<string>CAP-FLTR Sample</string>
119
<key>CFBundleExecutable</key>
1210
<string>$(EXECUTABLE_NAME)</string>
1311
<key>CFBundleIdentifier</key>
@@ -24,6 +22,8 @@
2422
<string>$(CURRENT_PROJECT_VERSION)</string>
2523
<key>LSRequiresIPhoneOS</key>
2624
<true/>
25+
<key>NSCameraUsageDescription</key>
26+
<string>App requires camera access to test upload</string>
2727
<key>UILaunchStoryboardName</key>
2828
<string>LaunchScreen</string>
2929
<key>UIMainStoryboardFile</key>

packages/example-app/ios/App/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
22

3-
platform :ios, '14.0'
3+
platform :ios, '15.0'
44
use_frameworks!
55

66
# workaround to avoid Xcode caching of Pods that requires

packages/example-app/ios/App/Podfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
PODS:
2-
- Capacitor (7.0.0):
2+
- Capacitor (8.0.0-alpha.2):
33
- CapacitorCordova
4-
- CapacitorCordova (7.0.0)
5-
- CapacitorFilesystem (7.1.3):
4+
- CapacitorCordova (8.0.0-alpha.2)
5+
- CapacitorFilesystem (8.0.0-next.1):
66
- Capacitor
7-
- IONFilesystemLib (~> 1.0)
8-
- CapacitorFileTransfer (1.0.4):
7+
- IONFilesystemLib (~> 1.0.1)
8+
- CapacitorFileTransfer (1.0.5):
99
- Capacitor
1010
- IONFileTransferLib (~> 1.0.1)
11-
- CapacitorFileViewer (1.0.2):
11+
- CapacitorFileViewer (2.0.0-next.1):
1212
- Capacitor
1313
- IONFileViewerLib (~> 1.0.1)
1414
- IONFilesystemLib (1.0.1)
@@ -41,15 +41,15 @@ EXTERNAL SOURCES:
4141
:path: "../../node_modules/@capacitor/file-viewer"
4242

4343
SPEC CHECKSUMS:
44-
Capacitor: fcbee427ff437f414bbb3bc2d39364ad9bd2b8a5
45-
CapacitorCordova: 345f93b7edd121db98e4ec20ac94d6d7bcaf7e48
46-
CapacitorFilesystem: 8e48bb1a036caf0d01605eb4bfe74b880cca8f80
47-
CapacitorFileTransfer: 776bdbc7d71a490a79c81ea97bf25f069c632106
48-
CapacitorFileViewer: 4f6fcd47151b904e2d7cf57ebd7dd3739c10da9e
44+
Capacitor: f88db94b173c6d2c97003248197f749674d42dc8
45+
CapacitorCordova: 9b60d7dd7f5035cefe9b5f7f3edf11ccd93b6ae6
46+
CapacitorFilesystem: c9d264b5295f2fc6b93169b2ad69f24372f72e4c
47+
CapacitorFileTransfer: d3bc160e3938332f728994b8ff85d826c2c9e9e8
48+
CapacitorFileViewer: 75ed57b36bc78424e6ed53e97c7c0fcbefe3283c
4949
IONFilesystemLib: 89258b8e3e85465da93127d25d7ce37f977e8a6f
5050
IONFileTransferLib: b268561ab0ba7f386eea228c4986b55ba0146ca9
5151
IONFileViewerLib: 9e6b09451afa7705545d4d20e2974b4f1555390c
5252

53-
PODFILE CHECKSUM: 76668ea156e59ff21841d22849461df8faf9b06b
53+
PODFILE CHECKSUM: 2553c1d66fe947be6ac7a8274b64bf6676a70afd
5454

5555
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)