-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for [email protected] (#4913)
## Summary The PR adds support for [email protected]. ### Related changes in react-native #### Paper ``` * What went wrong: A problem occurred configuring project ':react-native-reanimated'. > defaultConfig contains custom BuildConfig fields, but the feature is disabled. To enable the feature, add the following to your module-level build.gradle: `android.buildFeatures.buildConfig true` ``` According to documentation, we can do it safely - https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/BuildFeatures#buildConfig:kotlin.Boolean - facebook/react-native#40748 #### Fabric - https://github.com/facebook/react-native/pull/37588/files#diff-1aaade82ec15d197d2785561ee85f90029c7ebb46e75bc4a24967da1fc1cc041 - https://github.com/facebook/react-native/pull/36609/files#diff-e8a960fbc5a09cea2611fa92b7791c749c3fce1d02b614694d203d9712e97aa4 - https://github.com/facebook/react-native/pull/38276/files#diff-f53e9cf2e2c954166cb7a3cab84622f14af9eb3949dc1f29f76e4693a9e9cbde - https://github.com/facebook/react-native/pull/36395/files#diff-2b25a23f0ed5ac2cf193ff05df77004c3eae39d5966e86a06d383f707d364cc8 - facebook/react-native@33ebb5d#diff-efac1ff476300ebbe947340c1864ad44dae2ae4f24ab7837395b337303db6313 ### Backward compatibility <img width="306" alt="image" src="https://github.com/software-mansion/react-native-reanimated/assets/36106620/94f37f2f-b46f-4878-aae4-dd04b3a438f9"> --------- Co-authored-by: Tomek Zawadzki <[email protected]> Co-authored-by: Michał Mąka <[email protected]>
- Loading branch information
1 parent
2c91519
commit fe587cf
Showing
16 changed files
with
95 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
#ifndef NDEBUG | ||
#include <utility> | ||
#include "JSLogger.h" | ||
#endif | ||
|
||
namespace reanimated { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ fabric_flags = fabric_enabled ? '-DRCT_NEW_ARCH_ENABLED' : '' | |
example_flag = config[:is_reanimated_example_app] ? '-DIS_REANIMATED_EXAMPLE_APP' : '' | ||
version_flag = '-DREANIMATED_VERSION=' + reanimated_package_json["version"] | ||
debug_flag = is_release ? '-DNDEBUG' : '' | ||
ios_min_version = config[:react_native_minor_version] >= 73 ? '10.0' : '9.0' | ||
|
||
Pod::Spec.new do |s| | ||
|
||
|
@@ -30,7 +31,7 @@ Pod::Spec.new do |s| | |
s.license = "MIT" | ||
# s.license = { :type => "MIT", :file => "FILE_LICENSE" } | ||
s.author = { "author" => "[email protected]" } | ||
s.platforms = { :ios => "9.0", :tvos => "9.0", :osx => "10.14" } | ||
s.platforms = { :ios => ios_min_version, :tvos => "9.0", :osx => "10.14" } | ||
s.source = { :git => "https://github.com/software-mansion/react-native-reanimated.git", :tag => "#{s.version}" } | ||
|
||
s.source_files = [ | ||
|
@@ -45,7 +46,7 @@ Pod::Spec.new do |s| | |
s.pod_target_xcconfig = { | ||
"USE_HEADERMAP" => "YES", | ||
"DEFINES_MODULE" => "YES", | ||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"", | ||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_ROOT)/Headers/Private/Yoga\"", | ||
"FRAMEWORK_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes\"", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17", | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ionPatch/messageQueueThread/72/com/swmansion/reanimated/ReanimatedMessageQueueThread.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.swmansion.reanimated; | ||
|
||
import com.facebook.proguard.annotations.DoNotStrip; | ||
import com.swmansion.reanimated.ReanimatedMessageQueueThreadBase; | ||
|
||
@DoNotStrip | ||
public class ReanimatedMessageQueueThread extends ReanimatedMessageQueueThreadBase { | ||
@Override | ||
public boolean runOnQueue(Runnable runnable) { | ||
return messageQueueThread.runOnQueue(runnable); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters