Skip to content

Commit 43368a3

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

File tree

11 files changed

+2301
-1989
lines changed

11 files changed

+2301
-1989
lines changed

CapacitorInappbrowser.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/InAppBrowserPlugin/*.{swift,h,m,c,cc,mm,cpp}'
14-
s.ios.deployment_target = '14.0'
14+
s.ios.deployment_target = '15.0'
1515
s.dependency 'OSInAppBrowserLib', spec='~> 2.1.0'
1616
s.dependency 'Capacitor'
1717
s.swift_version = '5.1'

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: "CapacitorInappbrowser",
6-
platforms: [.iOS(.v13)],
6+
platforms: [.iOS(.v15)],
77
products: [
88
.library(
99
name: "CapacitorInappbrowser",

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ apply plugin: 'kotlin-android'
2323

2424
android {
2525
namespace "com.capacitorjs.osinappbrowser"
26-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
26+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
2727
defaultConfig {
2828
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
29-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
29+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
3030
versionCode 1
3131
versionName "1.0"
3232
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

example-app/android/app/capacitor.build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ android {
99

1010
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
1111
dependencies {
12-
implementation project(':capacitor-app')
13-
implementation project(':capacitor-haptics')
1412
implementation project(':capacitor-inappbrowser')
15-
implementation project(':capacitor-keyboard')
16-
implementation project(':capacitor-status-bar')
1713

1814
}
1915

example-app/android/capacitor.settings.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,5 @@
22
include ':capacitor-android'
33
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
44

5-
include ':capacitor-app'
6-
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
7-
8-
include ':capacitor-haptics'
9-
project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android')
10-
115
include ':capacitor-inappbrowser'
12-
project(':capacitor-inappbrowser').projectDir = new File('../node_modules/@capacitor/inappbrowser/android')
13-
14-
include ':capacitor-keyboard'
15-
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
16-
17-
include ':capacitor-status-bar'
18-
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
6+
project(':capacitor-inappbrowser').projectDir = new File('../../android')

example-app/android/variables.gradle

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
CURRENT_PROJECT_VERSION = 1;
352352
DEVELOPMENT_TEAM = EVSWK8BA55;
353353
INFOPLIST_FILE = App/Info.plist;
354-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
354+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
355355
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
356356
MARKETING_VERSION = 1.0;
357357
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
@@ -373,7 +373,7 @@
373373
CURRENT_PROJECT_VERSION = 1;
374374
DEVELOPMENT_TEAM = F898TC6427;
375375
INFOPLIST_FILE = App/Info.plist;
376-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
376+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
377377
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
378378
MARKETING_VERSION = 1.0;
379379
PRODUCT_BUNDLE_IDENTIFIER = com.outsystems.rd;

example-app/ios/App/Podfile

Lines changed: 1 addition & 5 deletions
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
@@ -11,11 +11,7 @@ install! 'cocoapods', :disable_input_output_paths => true
1111
def capacitor_pods
1212
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
1313
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
14-
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
15-
pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
1614
pod 'CapacitorInappbrowser', :path => '../../..'
17-
pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
18-
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
1915
end
2016

2117
target 'App' do

0 commit comments

Comments
 (0)