Skip to content

Commit 6341d19

Browse files
committed
Merge remote-tracking branch 'origin/feat/rn-79' into feat/iOS-RN79
2 parents 892ae02 + 0525eb5 commit 6341d19

File tree

12 files changed

+89
-68
lines changed

12 files changed

+89
-68
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- label: ":android: Android (RN 0.79.0)"
2+
env:
3+
JAVA_HOME: /opt/openjdk/jdk-17.0.9.jdk/Contents/Home/
4+
REACT_NATIVE_VERSION: 0.79.0
5+
command:
6+
- "nvm install"
7+
- "./scripts/ci.android.sh"
8+
key: "android_rn_79"
9+
timeout_in_minutes: 90
10+
artifact_paths: "/Users/builder/uibuilder/work/playground/artifacts/**/*"
11+
12+
13+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- label: ":ios: iOS (RN 0.79.0)"
2+
env:
3+
REACT_NATIVE_VERSION: 0.79.0
4+
command:
5+
- "nvm install"
6+
- "./scripts/ci.ios.sh"
7+
key: "ios_rn_79"
8+
timeout_in_minutes: 90
9+
artifact_paths: "/Users/builder/uibuilder/work/playground/artifacts/**/*"
10+
11+
12+

.buildkite/pipeline.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ echo "steps:"
55
cat .buildkite/jobs/pipeline.release.yml
66
cat .buildkite/jobs/pipeline.android_rn_77.yml
77
cat .buildkite/jobs/pipeline.android_rn_78.yml
8+
cat .buildkite/jobs/pipeline.android_rn_79.yml
89
cat .buildkite/jobs/pipeline.ios_rn_77.yml
910
cat .buildkite/jobs/pipeline.ios_rn_78.yml
11+
cat .buildkite/jobs/pipeline.ios_rn_79.yml
1012
cat .buildkite/jobs/pipeline.publish.yml
1113

1214

android/src/androidTest/java/com/reactnativenavigation/TestApplication.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ package com.reactnativenavigation
33
import com.facebook.react.ReactHost
44
import com.facebook.react.ReactNativeHost
55
import com.facebook.react.ReactPackage
6-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
76
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
87
import com.facebook.react.shell.MainReactPackage
9-
import com.reactnativenavigation.NavigationPackage
108
import com.reactnativenavigation.react.NavigationReactNativeHost
119

1210
class TestApplication : NavigationApplication() {

android/src/main/java/com/reactnativenavigation/views/touch/OverlayTouchDelegate.kt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import android.view.MotionEvent
44
import android.view.View
55
import android.view.ViewGroup
66
import androidx.annotation.VisibleForTesting
7-
import com.facebook.react.views.debuggingoverlay.DebuggingOverlay
87
import com.reactnativenavigation.options.params.Bool
98
import com.reactnativenavigation.options.params.NullBool
109
import com.reactnativenavigation.react.ReactView
@@ -57,7 +56,19 @@ open class OverlayTouchDelegate(
5756
return false
5857
}
5958

60-
private fun debuggingOverlay(childItem: View?): Boolean =
61-
childItem is ViewGroup && childItem.getChildAt(0) is DebuggingOverlay
59+
private fun debuggingOverlay(childItem: View?): Boolean {
60+
if (childItem !is ViewGroup) return false
61+
val firstChild = childItem.getChildAt(0) ?: return false
62+
return isDebuggingOverlay(firstChild)
63+
}
64+
65+
private fun isDebuggingOverlay(view: View): Boolean {
66+
return try {
67+
val className = view.javaClass.name
68+
className == "com.facebook.react.views.debuggingoverlay.DebuggingOverlay"
69+
} catch (e: Exception) {
70+
false
71+
}
72+
}
6273

6374
}

android/src/test/java/com/reactnativenavigation/TestApplication.java

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.reactnativenavigation
2+
3+
import android.app.Application
4+
import androidx.appcompat.R
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.DefaultReactHost.getDefaultReactHost
10+
11+
class TestApplication : Application(), ReactApplication {
12+
override val reactNativeHost: ReactNativeHost = object : ReactNativeHost(this) {
13+
override fun getUseDeveloperSupport(): Boolean {
14+
return true
15+
}
16+
17+
override fun getPackages(): MutableList<ReactPackage> {
18+
return mutableListOf()
19+
}
20+
}
21+
22+
override fun onCreate() {
23+
super.onCreate()
24+
setTheme(R.style.Theme_AppCompat)
25+
}
26+
27+
override val reactHost: ReactHost
28+
get() = getDefaultReactHost(this, reactNativeHost)
29+
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@
8888
"@babel/preset-env": "^7.25.3",
8989
"@babel/runtime": "^7.25.0",
9090
"@babel/types": "7.25.0",
91-
"@react-native-community/cli": "15.1.0",
92-
"@react-native-community/cli-platform-android": "15.1.0",
93-
"@react-native-community/cli-platform-ios": "15.1.0",
91+
"@react-native-community/cli": "18.0.0",
92+
"@react-native-community/cli-platform-android": "18.0.0",
93+
"@react-native-community/cli-platform-ios": "18.0.0",
9494
"@react-native-community/datetimepicker": "^8.2.0",
9595
"@react-native-community/netinfo": "^11.4.1",
96-
"@react-native/babel-preset": "0.78.3",
97-
"@react-native/eslint-config": "0.78.3",
98-
"@react-native/metro-config": "0.78.3",
99-
"@react-native/typescript-config": "0.78.3",
96+
"@react-native/babel-preset": "0.79.7",
97+
"@react-native/eslint-config": "0.79.7",
98+
"@react-native/metro-config": "0.79.7",
99+
"@react-native/typescript-config": "0.79.7",
100100
"@testing-library/jest-native": "^5.4.2",
101101
"@testing-library/react-native": "^13.0.1",
102102
"@types/hoist-non-react-statics": "^3.3.6",
@@ -124,7 +124,7 @@
124124
"pngjs": "^6.0.0",
125125
"prettier": "2.8.8",
126126
"react": "19.0.0",
127-
"react-native": "0.78.3",
127+
"react-native": "0.79.7",
128128
"react-native-builder-bob": "^0.40.13",
129129
"react-native-fast-image": "^8.6.3",
130130
"react-native-gesture-handler": "^2.22.1",
@@ -179,4 +179,4 @@
179179
]
180180
]
181181
}
182-
}
182+
}

playground/android/app/src/main/java/com/reactnativenavigation/playground/MainApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MainApplication : NavigationApplication(mapOf(
4141
super.onCreate()
4242
registerExternalComponent("RNNCustomComponent", FragmentCreator())
4343
}
44-
4544
override val reactHost: ReactHost
4645
get() = getDefaultReactHost(this, reactNativeHost)
46+
4747
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Jul 28 13:48:47 IDT 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)