diff --git a/android/build.gradle b/android/build.gradle index 854e1277b..c02400f7e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -104,13 +104,6 @@ android { buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() consumerProguardFiles 'proguard-rules.pro' - - buildConfigField("String", "REACT_NATIVE_MINOR_VERSION", "\"${REACT_NATIVE_MINOR_VERSION}\"") - externalNativeBuild { - cmake { - arguments "-DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}" - } - } } lintOptions { abortOnError false diff --git a/android/src/main/jni/CMakeLists.txt b/android/src/main/jni/CMakeLists.txt index 1966dd147..21352d24e 100644 --- a/android/src/main/jni/CMakeLists.txt +++ b/android/src/main/jni/CMakeLists.txt @@ -10,7 +10,7 @@ set(RNS_GENERATED_REACT_DIR ${RNS_GENERATED_JNI_DIR}/react/renderer/components/r string( APPEND CMAKE_CXX_FLAGS - " -DREACT_NATIVE_MINOR_VERSION=321${REACT_NATIVE_MINOR_VERSION}") + " -DREACT_NATIVE_MINOR_VERSION=${ReactAndroid_VERSION_MINOR}") add_compile_options( -fexceptions