Skip to content

Commit 017162f

Browse files
thehaleDeDandeMan
andcommitted
chore: Update to React Native 0.83.0
Co-authored-by: Daniel <[email protected]>
1 parent 85efea8 commit 017162f

File tree

18 files changed

+1770
-1881
lines changed

18 files changed

+1770
-1881
lines changed

android/app/src/debug/AndroidManifest.xml

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

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
23
<uses-permission android:name="android.permission.INTERNET" />
34

45
<application
@@ -7,7 +8,9 @@
78
android:icon="@mipmap/ic_launcher"
89
android:roundIcon="@mipmap/ic_launcher_round"
910
android:allowBackup="false"
10-
android:theme="@style/AppTheme">
11+
android:theme="@style/AppTheme"
12+
android:usesCleartextTraffic="${usesCleartextTraffic}"
13+
android:supportsRtl="true">
1114
<activity
1215
android:name=".MainActivity"
1316
android:label="@string/app_name"

android/app/src/main/java/dev/jhale/binaryclock/MainApplication.kt

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,20 @@ import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
77
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
8-
import com.facebook.react.ReactNativeHost
9-
import com.facebook.react.ReactPackage
10-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
118
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
12-
import com.facebook.react.defaults.DefaultReactNativeHost
139

1410
class MainApplication : Application(), ReactApplication {
1511

16-
override val reactNativeHost: ReactNativeHost =
17-
object : DefaultReactNativeHost(this) {
18-
override fun getPackages(): List<ReactPackage> =
19-
PackageList(this).packages.apply {
20-
// Packages that cannot be autolinked yet can be added manually here, for example:
21-
// add(MyReactNativePackage())
22-
}
23-
24-
override fun getJSMainModuleName(): String = "index"
25-
26-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
27-
28-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
29-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
30-
}
31-
32-
override val reactHost: ReactHost
33-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
12+
override val reactHost: ReactHost by lazy {
13+
getDefaultReactHost(
14+
context = applicationContext,
15+
packageList =
16+
PackageList(this).packages.apply {
17+
// Packages that cannot be autolinked yet can be added manually here, for example:
18+
// add(MyReactNativePackage())
19+
},
20+
)
21+
}
3422

3523
override fun onCreate() {
3624
super.onCreate()

android/build.gradle

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

android/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ newArchEnabled=true
3838
# Use this property to enable or disable the Hermes JS engine.
3939
# If set to false, you will be using JSC instead.
4040
hermesEnabled=true
41+
42+
# Use this property to enable edge-to-edge display support.
43+
# This allows your app to draw behind system bars for an immersive UI.
44+
# Note: Only works with ReactActivity and should not be used with custom Activity.
45+
edgeToEdgeEnabled=false
4146

4247
VERSION_CODE=95
4348
VERSION_NAME=1.3.2
1.65 KB
Binary file not shown.

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

android/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

ios/BinaryClock.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
);
190190
runOnlyForDeploymentPostprocessing = 0;
191191
shellPath = /bin/sh;
192-
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
192+
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"\\\"$WITH_ENVIRONMENT\\\" \\\"$REACT_NATIVE_XCODE\\\"\"\n";
193193
};
194194
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
195195
isa = PBXShellScriptBuildPhase;
@@ -393,6 +393,7 @@
393393
);
394394
MTL_ENABLE_DEBUG_INFO = YES;
395395
ONLY_ACTIVE_ARCH = YES;
396+
OTHER_CFLAGS = "$(inherited)";
396397
OTHER_CPLUSPLUSFLAGS = (
397398
"$(OTHER_CFLAGS)",
398399
"-DFOLLY_NO_CONFIG",
@@ -466,6 +467,7 @@
466467
"\"$(inherited)\"",
467468
);
468469
MTL_ENABLE_DEBUG_INFO = NO;
470+
OTHER_CFLAGS = "$(inherited)";
469471
OTHER_CPLUSPLUSFLAGS = (
470472
"$(OTHER_CFLAGS)",
471473
"-DFOLLY_NO_CONFIG",

ios/BinaryClock/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleDisplayName</key>

0 commit comments

Comments
 (0)