Skip to content

Commit 2737c98

Browse files
authored
build(deps): bump react-native from 0.72.12 to 0.73.9 (#252)
1 parent a016655 commit 2737c98

24 files changed

+2193
-1682
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
33
ruby '>= 2.6.10'
44

55
gem 'cocoapods', '~> 1.13'
6-
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
6+
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
77
gem 'fastlane', '~> 2.210'

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ PLATFORMS
269269
ruby
270270

271271
DEPENDENCIES
272-
activesupport (>= 6.1.7.3, < 7.1.0)
272+
activesupport (>= 6.1.7.5, < 7.1.0)
273273
cocoapods (~> 1.13)
274274
fastlane (~> 2.210)
275275

android/app/build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "org.jetbrains.kotlin.android"
23
apply plugin: "com.facebook.react"
34
/**
45
* This is the configuration block to customize your React Native Android app.
@@ -65,10 +66,12 @@ def jscFlavor = 'org.webkit:android-jsc:+'
6566

6667
android {
6768
ndkVersion rootProject.ext.ndkVersion
68-
69-
compileSdkVersion rootProject.ext.compileSdkVersion
69+
70+
buildToolsVersion rootProject.ext.buildToolsVersion
71+
compileSdk rootProject.ext.compileSdkVersion
7072

7173
namespace "com.palettemobile"
74+
7275
defaultConfig {
7376
applicationId "com.palettemobile"
7477
minSdkVersion rootProject.ext.minSdkVersion
@@ -93,11 +96,8 @@ android {
9396
dependencies {
9497
// The version of react-native is set by the React Native Gradle Plugin
9598
implementation("com.facebook.react:react-android")
96-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
97-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
98-
exclude group:'com.squareup.okhttp3', module:'okhttp'
99-
}
100-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
99+
implementation("com.facebook.react:flipper-integration")
100+
101101
if (hermesEnabled.toBoolean()) {
102102
implementation("com.facebook.react:hermes-android")
103103
} else {

android/app/src/debug/AndroidManifest.xml

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6-
75
<application
86
android:usesCleartextTraffic="true"
97
tools:targetApi="28"
10-
tools:ignore="GoogleAppIndexingWarning">
11-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12-
</application>
8+
tools:ignore="GoogleAppIndexingWarning"/>
139
</manifest>

android/app/src/debug/java/com/palettemobile/ReactNativeFlipper.java

-75
This file was deleted.

android/app/src/main/java/com/palettemobile/MainActivity.java

-32
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.palettemobile
2+
3+
import com.facebook.react.ReactActivity
4+
import com.facebook.react.ReactActivityDelegate
5+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6+
import com.facebook.react.defaults.DefaultReactActivityDelegate
7+
8+
class MainActivity : ReactActivity() {
9+
10+
/**
11+
* Returns the name of the main component registered from JavaScript. This is used to schedule
12+
* rendering of the component.
13+
*/
14+
override fun getMainComponentName(): String = "PaletteMobile"
15+
16+
/**
17+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
18+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
19+
*/
20+
override fun createReactActivityDelegate(): ReactActivityDelegate =
21+
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
22+
}

android/app/src/main/java/com/palettemobile/MainApplication.java

-63
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package com.palettemobile
2+
3+
import android.app.Application
4+
import com.facebook.react.PackageList
5+
import com.facebook.react.ReactApplication
6+
import com.facebook.react.ReactHost
7+
import com.facebook.react.ReactNativeHost
8+
import com.facebook.react.ReactPackage
9+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
10+
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11+
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.flipper.ReactNativeFlipper
13+
import com.facebook.soloader.SoLoader
14+
15+
class MainApplication : Application(), ReactApplication {
16+
17+
override val reactNativeHost: ReactNativeHost =
18+
object : DefaultReactNativeHost(this) {
19+
override fun getPackages(): List<ReactPackage> =
20+
PackageList(this).packages.apply {
21+
// Packages that cannot be autolinked yet can be added manually here, for example:
22+
// add(MyReactNativePackage())
23+
}
24+
25+
override fun getJSMainModuleName(): String = "index"
26+
27+
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
28+
29+
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
30+
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
31+
}
32+
33+
override val reactHost: ReactHost
34+
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
35+
36+
override fun onCreate() {
37+
super.onCreate()
38+
SoLoader.init(this, false)
39+
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40+
// If you opted-in for the New Architecture, we load the native entry point for this app.
41+
load()
42+
}
43+
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
44+
}
45+
}

android/app/src/release/java/com/palettemobile/ReactNativeFlipper.java

-18
This file was deleted.

android/build.gradle

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
42
ext {
5-
buildToolsVersion = "33.0.0"
3+
buildToolsVersion = "34.0.0"
64
minSdkVersion = 21
7-
compileSdkVersion = 33
8-
targetSdkVersion = 33
9-
kotlinVersion = "1.6.10"
10-
11-
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
12-
ndkVersion = "23.1.7779620"
5+
compileSdkVersion = 34
6+
targetSdkVersion = 34
7+
kotlinVersion = "1.8.0"
8+
ndkVersion = "25.1.8937393"
139
}
1410
repositories {
1511
google()
@@ -18,5 +14,8 @@ buildscript {
1814
dependencies {
1915
classpath("com.android.tools.build:gradle")
2016
classpath("com.facebook.react:react-native-gradle-plugin")
17+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
2118
}
2219
}
20+
21+
apply plugin: "com.facebook.react.rootproject"
2.1 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)