react-native-navigation 8.6.1 → 8.6.2-snapshot.2147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeNavigation.podspec +23 -48
- package/android/build.gradle +10 -10
- package/android/src/androidTest/assets/index.android.bundle +535 -0
- package/android/src/androidTest/java/com/reactnativenavigation/TestApplication.kt +0 -1
- package/android/src/androidTest/java/com/reactnativenavigation/mocks/SimpleViewController.java +20 -11
- package/android/src/androidTest/js/index.js +14 -0
- package/android/src/main/java/com/reactnativenavigation/options/params/ReactPlatformColor.kt +1 -1
- package/android/src/main/java/com/reactnativenavigation/options/parsers/ColorParser.kt +1 -1
- package/android/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleAndButtonsContainer.kt +2 -1
- package/android/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleAndButtonsMeasurer.kt +6 -2
- package/android/src/test/java/com/reactnativenavigation/options/parsers/ColorParseTest.java +3 -1
- package/android/src/test/resources/robolectric.properties +3 -0
- package/autolink/fixtures/rn79/build.gradle.template +4 -4
- package/ios/RNNAppDelegate.mm +1 -0
- package/ios/RNNReactTitleView.mm +3 -1
- package/ios/RNNRefreshControll.m +91 -0
- package/ios/RNNSideMenu/MMDrawerController/MMDrawerController.mm +6 -1
- package/ios/TopBarAppearancePresenter.mm +6 -0
- package/lib/module/commands/OptionsCrawler.js +1 -1
- package/lib/module/commands/OptionsCrawler.js.map +1 -1
- package/lib/typescript/Mock/Application.d.ts +1 -3
- package/lib/typescript/Mock/Application.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/BottomTabs.d.ts +1 -6
- package/lib/typescript/Mock/Components/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts +1 -3
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts +1 -6
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Modals.d.ts +1 -6
- package/lib/typescript/Mock/Components/Modals.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/NavigationButton.d.ts +1 -6
- package/lib/typescript/Mock/Components/NavigationButton.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Overlays.d.ts +1 -6
- package/lib/typescript/Mock/Components/Overlays.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/SideMenu.d.ts +4 -24
- package/lib/typescript/Mock/Components/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Stack.d.ts +1 -6
- package/lib/typescript/Mock/Components/Stack.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/TopBar.d.ts +1 -3
- package/lib/typescript/Mock/Components/TopBar.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/actions/layoutActions.d.ts.map +1 -1
- package/lib/typescript/src/adapters/NativeCommandsSender.d.ts +6 -6
- package/lib/typescript/src/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -1
- package/lib/typescript/src/adapters/TouchablePreview.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +0 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +16 -15
- package/src/commands/OptionsCrawler.ts +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
require 'json'
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
folly_compiler_flags = folly_flags()
|
|
6
|
+
use_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1'
|
|
7
|
+
use_hermes_flag = use_hermes ? "-DUSE_HERMES=1" : ""
|
|
5
8
|
|
|
6
9
|
Pod::Spec.new do |s|
|
|
7
10
|
s.name = "ReactNativeNavigation"
|
|
@@ -12,61 +15,33 @@ Pod::Spec.new do |s|
|
|
|
12
15
|
s.authors = "Wix.com"
|
|
13
16
|
s.homepage = package['homepage']
|
|
14
17
|
s.license = package['license']
|
|
15
|
-
s.platform = :ios,
|
|
18
|
+
s.platform = :ios, min_ios_version_supported
|
|
16
19
|
|
|
17
20
|
s.module_name = 'ReactNativeNavigation'
|
|
18
|
-
s.default_subspec = 'Core'
|
|
19
|
-
|
|
20
|
-
s.subspec 'Core' do |ss|
|
|
21
|
-
s.source = { :git => "https://github.com/wix/react-native-navigation.git", :tag => "#{s.version}" }
|
|
22
|
-
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
|
|
23
|
-
s.exclude_files = "ios/ReactNativeNavigationTests/**/*.*", "ios/OCMock/**/*.*"
|
|
24
|
-
|
|
25
|
-
s.public_header_files = [
|
|
26
|
-
'ios/RNNAppDelegate.h',
|
|
27
|
-
'ios/ReactNativeVersionExtracted.h'
|
|
28
|
-
]
|
|
29
|
-
end
|
|
30
21
|
|
|
31
|
-
|
|
22
|
+
s.source = { :git => "https://github.com/wix/react-native-navigation.git", :tag => "#{s.version}" }
|
|
23
|
+
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
|
|
24
|
+
s.exclude_files = "ios/ReactNativeNavigationTests/**/*.*", "ios/OCMock/**/*.*"
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
38
|
-
}
|
|
26
|
+
s.public_header_files = [
|
|
27
|
+
'ios/RNNAppDelegate.h',
|
|
28
|
+
'ios/ReactNativeVersionExtracted.h'
|
|
29
|
+
]
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
s.
|
|
31
|
+
# Add Folly compiler flags to prevent coroutines header issues
|
|
32
|
+
# Add Hermes flag when using Hermes engine
|
|
33
|
+
s.compiler_flags = "#{folly_compiler_flags} #{use_hermes_flag}"
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
# Add header search paths for React-Core private headers (needed for RCTCxxBridgeDelegate.h, etc.)
|
|
36
|
+
s.pod_target_xcconfig = {
|
|
37
|
+
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Private/React-Core"',
|
|
38
|
+
'DEFINES_MODULE' => 'YES'
|
|
39
|
+
}
|
|
49
40
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
s.dependency "React-cxxreact"
|
|
53
|
-
s.dependency "React-Fabric"
|
|
54
|
-
s.dependency "React-Codegen"
|
|
55
|
-
s.dependency "RCT-Folly"
|
|
56
|
-
s.dependency "RCTRequired"
|
|
57
|
-
s.dependency "RCTTypeSafety"
|
|
58
|
-
s.dependency "ReactCommon"
|
|
59
|
-
s.dependency "React-runtimeexecutor"
|
|
60
|
-
s.dependency "React-rncore"
|
|
61
|
-
s.dependency "React-RuntimeCore"
|
|
62
|
-
else
|
|
63
|
-
s.compiler_flags = folly_compiler_flags
|
|
64
|
-
end
|
|
41
|
+
# Let install_modules_dependencies handle all React Native dependencies
|
|
42
|
+
install_modules_dependencies(s)
|
|
65
43
|
|
|
66
|
-
s.
|
|
67
|
-
s.dependency 'React-CoreModules'
|
|
68
|
-
s.dependency 'React-RCTImage'
|
|
69
|
-
s.dependency 'React-RCTText'
|
|
44
|
+
s.requires_arc = true
|
|
70
45
|
s.dependency 'HMSegmentedControl'
|
|
71
46
|
s.frameworks = 'UIKit'
|
|
72
47
|
end
|
package/android/build.gradle
CHANGED
|
@@ -3,14 +3,14 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
|
|
3
3
|
|
|
4
4
|
buildscript {
|
|
5
5
|
ext {
|
|
6
|
-
kotlinVersion = "1.
|
|
6
|
+
kotlinVersion = "2.1.20"
|
|
7
7
|
RNNKotlinVersion = kotlinVersion
|
|
8
8
|
detoxKotlinVersion = kotlinVersion
|
|
9
|
-
compileSdkVersion =
|
|
10
|
-
buildToolsVersion = "
|
|
9
|
+
compileSdkVersion = 36
|
|
10
|
+
buildToolsVersion = "36.0.0"
|
|
11
11
|
minSdkVersion = 24
|
|
12
|
-
targetSdkVersion =
|
|
13
|
-
ndkVersion = "
|
|
12
|
+
targetSdkVersion = 36
|
|
13
|
+
ndkVersion = "27.1.12297006"
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
repositories {
|
|
@@ -50,12 +50,12 @@ def safeExtGetFallbackLowerBound(prop, fallback) {
|
|
|
50
50
|
Math.max(safeExtGet(prop, fallback), fallback)
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
def DEFAULT_COMPILE_SDK_VERSION =
|
|
53
|
+
def DEFAULT_COMPILE_SDK_VERSION = 36
|
|
54
54
|
def DEFAULT_MIN_SDK_VERSION = 24
|
|
55
|
-
def DEFAULT_TARGET_SDK_VERSION =
|
|
56
|
-
def DEFAULT_KOTLIN_VERSION = "1.
|
|
55
|
+
def DEFAULT_TARGET_SDK_VERSION = 36
|
|
56
|
+
def DEFAULT_KOTLIN_VERSION = "2.1.20"
|
|
57
57
|
def DEFAULT_KOTLIN_STDLIB = 'kotlin-stdlib-jdk8'
|
|
58
|
-
def DEFAULT_BUILD_TOOLS_VERSION = "
|
|
58
|
+
def DEFAULT_BUILD_TOOLS_VERSION = "36.0.0"
|
|
59
59
|
def kotlinVersion = safeExtGet("RNNKotlinVersion", DEFAULT_KOTLIN_VERSION)
|
|
60
60
|
def kotlinStdlib = safeExtGet('RNNKotlinStdlib', DEFAULT_KOTLIN_STDLIB)
|
|
61
61
|
def kotlinCoroutinesCore = safeExtGet('RNNKotlinCoroutinesCore', '1.5.2')
|
|
@@ -144,7 +144,7 @@ dependencies {
|
|
|
144
144
|
if ("Playground".toLowerCase() == rootProject.name.toLowerCase()) {
|
|
145
145
|
// tests only for our playground
|
|
146
146
|
testImplementation 'junit:junit:4.13.2'
|
|
147
|
-
testImplementation "org.robolectric:robolectric:4.
|
|
147
|
+
testImplementation "org.robolectric:robolectric:4.16"
|
|
148
148
|
testImplementation 'org.assertj:assertj-core:3.11.1'
|
|
149
149
|
testImplementation 'org.mockito:mockito-core:4.0.0'
|
|
150
150
|
testImplementation 'com.squareup.assertj:assertj-android:1.2.0'
|