Skip to content

Commit a982767

Browse files
committed
merge with next
2 parents 1f1f681 + b18935a commit a982767

File tree

66 files changed

+3153
-2526
lines changed

Some content is hidden

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

66 files changed

+3153
-2526
lines changed

.github/workflows/macos-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
build:
1717
if: github.repository == 'software-mansion/react-native-gesture-handler'
1818

19-
runs-on: macos-15
19+
runs-on: macos-15-xlarge
2020
env:
2121
WORKING_DIRECTORY: apps/macos-example
2222
concurrency:

.lintstagedrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
"yarn format:android"
77
],
88
"packages/react-native-gesture-handler/apple/**/*.{h,m,mm,cpp}": "yarn format:apple",
9-
"packages/react-native-gesture-handler/{shared,android/src}/**/*.{h,cpp}": "yarn format:cpp",
10-
"packages/react-native-gesture-handler/src/specs/*.ts": "yarn workspace react-native-gesture-handler sync-architectures"
9+
"packages/react-native-gesture-handler/{shared,android/src}/**/*.{h,cpp}": "yarn format:cpp"
1110
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
diff --git a/android/src/main/jni/CMakeLists.txt b/android/src/main/jni/CMakeLists.txt
2+
index f720c8e8808c01eab3446b0a819f48aa355077de..0484a6409c2c92ab6971a9b8d607e800a54dea9c 100644
3+
--- a/android/src/main/jni/CMakeLists.txt
4+
+++ b/android/src/main/jni/CMakeLists.txt
5+
@@ -9,15 +9,6 @@ set(LIB_COMMON_DIR ${LIB_ANDROID_DIR}/../common/cpp)
6+
set(LIB_ANDROID_GENERATED_JNI_DIR ${LIB_ANDROID_DIR}/build/generated/source/codegen/jni)
7+
set(LIB_ANDROID_GENERATED_COMPONENTS_DIR ${LIB_ANDROID_GENERATED_JNI_DIR}/react/renderer/components/${LIB_LITERAL})
8+
9+
-add_compile_options(
10+
- -fexceptions
11+
- -frtti
12+
- -std=c++20
13+
- -Wall
14+
- -Wpedantic
15+
- -Wno-gnu-zero-variadic-macro-arguments
16+
-)
17+
-
18+
file(GLOB LIB_CUSTOM_SRCS CONFIGURE_DEPENDS *.cpp ${LIB_COMMON_DIR}/react/renderer/components/${LIB_LITERAL}/*.cpp)
19+
file(GLOB LIB_CODEGEN_SRCS CONFIGURE_DEPENDS ${LIB_ANDROID_GENERATED_JNI_DIR}/*.cpp ${LIB_ANDROID_GENERATED_COMPONENTS_DIR}/*.cpp)
20+
21+
@@ -70,6 +61,21 @@ else()
22+
)
23+
endif()
24+
25+
+if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 80)
26+
+ target_compile_reactnative_options(${LIB_TARGET_NAME} PUBLIC)
27+
+else()
28+
+ target_compile_options(
29+
+ ${LIB_TARGET_NAME}
30+
+ PRIVATE
31+
+ -fexceptions
32+
+ -frtti
33+
+ -std=c++20
34+
+ -Wall
35+
+ -Wpedantic
36+
+ -Wno-gnu-zero-variadic-macro-arguments
37+
+ )
38+
+endif()
39+
+
40+
target_compile_options(
41+
${LIB_TARGET_NAME}
42+
PRIVATE

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ You will need to have an Android or iOS device or emulator connected.
3535

3636
| version | react-native version |
3737
| ------- | -------------------- |
38+
| 2.28.0+ | 0.79.0+ |
3839
| 2.26.0+ | 0.78.0+ |
3940
| 2.25.0+ | 0.76.0+ |
4041
| 2.24.0+ | 0.75.0+ |

apps/basic-example/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
isGHExampleApp = true

apps/basic-example/android/gradle.properties

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

apps/basic-example/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-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)