Skip to content

Commit cc95803

Browse files
committed
feat: updated react native version to 0.78 and other libraries versions
1 parent 423cc35 commit cc95803

19 files changed

+1565
-1394
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ local.properties
3535
!debug.keystore
3636
*.apk
3737
output.json
38+
.kotlin/
3839

3940
# node.js
4041
#

template/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ ruby ">= 2.6.10"
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'

template/_gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ local.properties
3636
!debug.keystore
3737
*.apk
3838
output.json
39+
.kotlin/
3940

4041
# node.js
4142
#

template/android/app/build.gradle

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

8989
android {
9090
ndkVersion rootProject.ext.ndkVersion

template/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ buildscript {
33
buildToolsVersion = "35.0.0"
44
minSdkVersion = 26
55
compileSdkVersion = 35
6-
targetSdkVersion = 34
7-
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
6+
targetSdkVersion = 35
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.0.21"
99
}
1010
repositories {
1111
google()

template/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.10.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

template/android/gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ done
8585
# shellcheck disable=SC2034
8686
APP_BASE_NAME=${0##*/}
8787
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
88-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
89-
' "$PWD" ) || exit
88+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9089

9190
# Use the maximum available, or set MAX_FD != -1 to use that value.
9291
MAX_FD=maximum

template/ios/AppDelegate.swift

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import UIKit
2+
import Expo
3+
import React
4+
import React_RCTAppDelegate
5+
import ReactAppDependencyProvider
6+
7+
@main
8+
class AppDelegate: RCTAppDelegate {
9+
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
10+
self.moduleName = "projectname"
11+
self.dependencyProvider = RCTAppDependencyProvider()
12+
13+
// You can add your custom initial props in the dictionary below.
14+
// They will be passed down to the ViewController used by React Native.
15+
self.initialProps = [:]
16+
17+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
18+
}
19+
20+
override func sourceURL(for bridge: RCTBridge) -> URL? {
21+
self.bundleURL()
22+
}
23+
24+
override func bundleURL() -> URL? {
25+
#if DEBUG
26+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
27+
#else
28+
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
29+
#endif
30+
}
31+
}

template/ios/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ target 'projectname' do
4040
use_react_native!(
4141
:path => config[:reactNativePath],
4242
# An absolute path to your application root.
43-
:app_path => "#{Pod::Config.instance.installation_root}/.."
43+
:app_path => "#{Pod::Config.instance.installation_root}/..",
44+
:hermes_enabled => true
4445
)
4546

4647
post_install do |installer|

0 commit comments

Comments
 (0)