Skip to content

Commit e2f01c5

Browse files
feat!: Capacitor 8 upgrade (#75)
1 parent ddbeb72 commit e2f01c5

19 files changed

Lines changed: 3474 additions & 1720 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v22

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
</div>
88
<br />
99
<p align="center">
10-
<img src="https://img.shields.io/badge/platform-iOS%2013%2B-lightgrey?style=flat-square" alt="Supports iOS 13 and up" />
11-
<img src="https://img.shields.io/badge/platform-Android%20SDK%2021%2B-brightgreen?style=flat-square" alt="Supports Android SDK 21 and up" />
12-
<img src="https://img.shields.io/badge/platform-React%20Native%200.63.3%2B-blue?style=flat-square" alt="Supports React Native 0.63.3 and up" />
10+
<img src="https://img.shields.io/badge/platform-iOS%2015.1%2B-lightgrey?style=flat-square" alt="Supports iOS 15.1 and up" />
11+
<img src="https://img.shields.io/badge/platform-Android%20SDK%2024%2B-brightgreen?style=flat-square" alt="Supports Android SDK 24 and up" />
12+
<img src="https://img.shields.io/badge/platform-React%20Native%200.80.3%2B-blue?style=flat-square" alt="Supports React Native 0.80.3 and up" />
1313
</p>
1414
<p align="center">
15-
<a href="https://github.com/ionic-team/react-native-ionic-portals/actions/workflows/verify.yml"><img src="https://img.shields.io/github/actions/workflow/status/ionic-team/react-native-ionic-portals/verify.yml?branch=main&style=flat-square" /></a>
1615
<a href="https://www.npmjs.com/package/@ionic/portals-react-native"><img src="https://img.shields.io/npm/l/@ionic/portals-react-native?style=flat-square" /></a>
1716
</p>
1817
<p align="center">

ReactNativePortals.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Pod::Spec.new do |s|
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

14-
s.platforms = { :ios => '14.0' }
14+
s.platforms = { :ios => '15.1' }
1515
s.source = { :git => "https://github.com/ionic-team/ionic-portals-react-native.git", :tag => "#{s.version}" }
1616

1717
s.source_files = "ios/**/*.{h,m,mm,swift}"
1818

1919
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
2020
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
2121
if respond_to?(:install_modules_dependencies, true)
22-
s.dependency 'IonicPortals', '~> 0.12.0'
23-
s.dependency 'IonicLiveUpdates', '~> 0.5.6'
22+
s.dependency 'IonicPortals', '~> 0.13.0'
23+
s.dependency 'IonicLiveUpdates', '~> 0.5.7'
2424
install_modules_dependencies(s)
2525

2626
else
2727
s.dependency "React-Core"
28-
s.dependency 'IonicPortals', '~> 0.12.0'
29-
s.dependency 'IonicLiveUpdates', '~> 0.5.6'
28+
s.dependency 'IonicPortals', '~> 0.13.0'
29+
s.dependency 'IonicLiveUpdates', '~> 0.5.7'
3030

3131
# Don't install the dependencies when we run `pod install` in the old architecture.
3232
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath "com.android.tools.build:gradle:8.7.2"
11+
classpath "com.android.tools.build:gradle:8.13.0"
1212
// noinspection DifferentKotlinGradleVersion
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
@@ -93,9 +93,9 @@ dependencies {
9393
// For < 0.71, this will be from the local maven repo
9494
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
9595
//noinspection GradleDynamicVersion
96-
implementation "com.facebook.react:react-native:+"
96+
implementation "com.facebook.react:react-android"
9797
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
98-
implementation "io.ionic:portals:0.12.+"
98+
implementation "io.ionic:portals:0.13.0-rn.1"
9999
implementation "io.ionic:liveupdates:0.5.+"
100100
}
101101

android/gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
PortalsReactNative_kotlinVersion=1.8.0
2-
PortalsReactNative_minSdkVersion=21
3-
PortalsReactNative_targetSdkVersion=33
4-
PortalsReactNative_compileSdkVersion=33
1+
PortalsReactNative_kotlinVersion=2.1.20
2+
PortalsReactNative_minSdkVersion=24
3+
PortalsReactNative_targetSdkVersion=36
4+
PortalsReactNative_compileSdkVersion=36
55
PortalsReactNative_ndkversion=21.4.7075529
66
android.useAndroidX=true

example/android/app/src/main/java/com/portalsreactnativeexample/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314

1415
class MainApplication : Application(), ReactApplication {
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
3435

3536
override fun onCreate() {
3637
super.onCreate()
37-
SoLoader.init(this, false)
38+
SoLoader.init(this, OpenSourceMergedSoMapping)
3839
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
3940
// If you opted-in for the New Architecture, we load the native entry point for this app.
4041
load()

example/android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
buildscript {
22
ext {
33
buildToolsVersion = "34.0.0"
4-
minSdkVersion = 23
5-
compileSdkVersion = 35
6-
targetSdkVersion = 35
4+
minSdkVersion = 24
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle")
15+
classpath("com.android.tools.build:gradle:8.13.0")
1616
classpath("com.facebook.react:react-native-gradle-plugin")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
1818
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require Pod::Executable.execute_command('node', ['-p',
55
{paths: [process.argv[1]]},
66
)', __dir__]).strip
77

8-
platform :ios, '14.0'
8+
platform :ios, '15.1'
99
prepare_react_native_project!
1010

1111
linkage = ENV['USE_FRAMEWORKS']

0 commit comments

Comments
 (0)