Skip to content

Commit 901cd83

Browse files
Merge pull request #336 from SwissBitcoinPay/upgrade-to-android-15
Upgrade to android 15
2 parents 6fefde7 + a5b2cf8 commit 901cd83

File tree

68 files changed

+4226
-7545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+4226
-7545
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION=2.5.26
2-
APP_BUILD_NUMBER=459
1+
APP_VERSION=2.5.27
2+
APP_BUILD_NUMBER=462

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ local.properties
6666
*.keystore
6767
*.android.bundle
6868
android/app/src/main/res/drawable-mdpi
69+
.kotlin/
6970

7071

7172
# VS Code

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.19.4

.prettierrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"bracketSpacing": true,
3-
"jsxBracketSameLine": false,
4-
"singleQuote": false,
5-
"trailingComma": "none"
6-
}
2+
"bracketSpacing": true,
3+
"jsxBracketSameLine": false,
4+
"singleQuote": false,
5+
"trailingComma": "none"
6+
}

Gemfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ source 'https://rubygems.org'
22

33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
5-
5+
66
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
10-
gem 'concurrent-ruby', '< 1.3.4'
10+
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
# Ruby 3.4.0 has removed some libraries from the standard library.
13+
gem 'bigdecimal'
14+
gem 'logger'
15+
gem 'benchmark'
16+
gem 'mutex_m'

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ def enableProguardInReleaseBuilds = true
7373
* The preferred build flavor of JavaScriptCore (JSC)
7474
*
7575
* For example, to use the international variant, you can use:
76-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
76+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
7777
*
7878
* The international variant includes ICU i18n library and necessary data
7979
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
8080
* give correct results when using with locales other than en-US. Note that
8181
* this variant is about 6MiB larger per architecture than default.
8282
*/
83-
def jscFlavor = 'org.webkit:android-jsc:+'
83+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
8484

8585
/**
8686
* Private function to get the list of Native Architectures you want to build.

android/app/src/debug/AndroidManifest.xml

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

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
android:largeHeap="true"
3939
android:hardwareAccelerated="true"
4040
android:theme="@style/AppTheme"
41+
android:usesCleartextTraffic="${usesCleartextTraffic}"
4142
android:supportsRtl="true">
4243
<profileable android:shell="true" />
4344
<activity

android/app/src/main/java/ch/swissbitcoinpay/checkout/MainApplication.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import android.app.Application
44
import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
78
import com.facebook.react.ReactNativeHost
89
import com.facebook.react.ReactPackage
9-
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
13-
import com.facebook.soloader.SoLoader
1412
import ch.swissbitcoinpay.checkout.BitBoxBridgePackage
1513

1614
class MainApplication : Application(), ReactApplication {
@@ -37,10 +35,6 @@ class MainApplication : Application(), ReactApplication {
3735

3836
override fun onCreate() {
3937
super.onCreate()
40-
SoLoader.init(this, OpenSourceMergedSoMapping)
41-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
42-
// If you opted-in for the New Architecture, we load the native entry point for this app.
43-
load()
44-
}
38+
loadReactNative(this)
4539
}
4640
}

android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 26
5-
compileSdkVersion = 35
6-
targetSdkVersion = 34
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.0.21"
8+
kotlinVersion = "2.1.20"
99

1010
androidXAnnotation = "1.2.0"
1111
androidXBrowser = "1.3.0"

0 commit comments

Comments
 (0)