react-native 0.64.2 → 0.64.4

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.
Files changed (36) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/README.md +1 -1
  3. package/React/Base/RCTVersion.m +1 -1
  4. package/React/CoreModules/RCTAppearance.mm +3 -1
  5. package/ReactAndroid/gradle.properties +1 -1
  6. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
  7. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
  8. package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
  9. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  10. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  11. package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2-javadoc.jar → 0.64.4/react-native-0.64.4-javadoc.jar} +0 -0
  12. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-javadoc.jar.md5 +1 -0
  13. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-javadoc.jar.sha1 +1 -0
  14. package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2-sources.jar → 0.64.4/react-native-0.64.4-sources.jar} +0 -0
  15. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-sources.jar.md5 +1 -0
  16. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-sources.jar.sha1 +1 -0
  17. package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2.aar → 0.64.4/react-native-0.64.4.aar} +0 -0
  18. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.aar.md5 +1 -0
  19. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.aar.sha1 +1 -0
  20. package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2.pom → 0.64.4/react-native-0.64.4.pom} +1 -1
  21. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.pom.md5 +1 -0
  22. package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.pom.sha1 +1 -0
  23. package/android/com/facebook/react/react-native/maven-metadata.xml +3 -3
  24. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  25. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  26. package/package.json +1 -1
  27. package/react.gradle +18 -0
  28. package/template/package.json +1 -1
  29. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.md5 +0 -1
  30. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.sha1 +0 -1
  31. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.md5 +0 -1
  32. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.sha1 +0 -1
  33. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.md5 +0 -1
  34. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.sha1 +0 -1
  35. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.md5 +0 -1
  36. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.sha1 +0 -1
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 64,
15
- patch: 2,
15
+ patch: 4,
16
16
  prerelease: null,
17
17
  };
package/README.md CHANGED
@@ -67,7 +67,7 @@ React Native is developed and supported by many companies and individual core co
67
67
 
68
68
  ## 📋 Requirements
69
69
 
70
- React Native apps may target iOS 10.0 and Android 4.1 (API 16) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS. Tools like [Expo](https://expo.io) can be used to work around this.
70
+ React Native apps may target iOS 11.0 and Android 5.0 (API 21) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS. Tools like [Expo](https://expo.io) can be used to work around this.
71
71
 
72
72
  ## 🎉 Building your first React Native app
73
73
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(64),
26
- RCTVersionPatch: @(2),
26
+ RCTVersionPatch: @(4),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -89,7 +89,9 @@ RCT_EXPORT_MODULE(Appearance)
89
89
 
90
90
  RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, getColorScheme)
91
91
  {
92
- _currentColorScheme = RCTColorSchemePreference(nil);
92
+ if (_currentColorScheme == nil) {
93
+ _currentColorScheme = RCTColorSchemePreference(nil);
94
+ }
93
95
  return _currentColorScheme;
94
96
  }
95
97
 
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.64.2
1
+ VERSION_NAME=0.64.4
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -8,6 +8,7 @@
8
8
  package com.facebook.react;
9
9
 
10
10
  import android.content.Intent;
11
+ import android.content.res.Configuration;
11
12
  import android.os.Bundle;
12
13
  import android.view.KeyEvent;
13
14
  import androidx.annotation.Nullable;
@@ -120,6 +121,12 @@ public abstract class ReactActivity extends AppCompatActivity
120
121
  mDelegate.onWindowFocusChanged(hasFocus);
121
122
  }
122
123
 
124
+ @Override
125
+ public void onConfigurationChanged(Configuration newConfig) {
126
+ super.onConfigurationChanged(newConfig);
127
+ mDelegate.onConfigurationChanged(newConfig);
128
+ }
129
+
123
130
  protected final ReactNativeHost getReactNativeHost() {
124
131
  return mDelegate.getReactNativeHost();
125
132
  }
@@ -11,6 +11,7 @@ import android.annotation.TargetApi;
11
11
  import android.app.Activity;
12
12
  import android.content.Context;
13
13
  import android.content.Intent;
14
+ import android.content.res.Configuration;
14
15
  import android.os.Build;
15
16
  import android.os.Bundle;
16
17
  import android.view.KeyEvent;
@@ -154,6 +155,12 @@ public class ReactActivityDelegate {
154
155
  }
155
156
  }
156
157
 
158
+ public void onConfigurationChanged(Configuration newConfig) {
159
+ if (getReactNativeHost().hasInstance()) {
160
+ getReactInstanceManager().onConfigurationChanged(getContext(), newConfig);
161
+ }
162
+ }
163
+
157
164
  @TargetApi(Build.VERSION_CODES.M)
158
165
  public void requestPermissions(
159
166
  String[] permissions, int requestCode, PermissionListener listener) {
@@ -7,6 +7,7 @@
7
7
 
8
8
  package com.facebook.react.modules.appearance;
9
9
 
10
+ import android.app.Activity;
10
11
  import android.content.Context;
11
12
  import android.content.res.Configuration;
12
13
  import androidx.annotation.Nullable;
@@ -74,7 +75,15 @@ public class AppearanceModule extends NativeAppearanceSpec {
74
75
 
75
76
  @Override
76
77
  public String getColorScheme() {
77
- mColorScheme = colorSchemeForCurrentConfiguration(getReactApplicationContext());
78
+ // Attempt to use the Activity context first in order to get the most up to date
79
+ // scheme. This covers the scenario when AppCompatDelegate.setDefaultNightMode()
80
+ // is called directly (which can occur in Brownfield apps for example).
81
+ Activity activity = getCurrentActivity();
82
+
83
+ mColorScheme =
84
+ colorSchemeForCurrentConfiguration(
85
+ activity != null ? activity : getReactApplicationContext());
86
+
78
87
  return mColorScheme;
79
88
  }
80
89
 
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 64,
20
- "patch", 2,
20
+ "patch", 4,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 64;
20
- int32_t Patch = 2;
20
+ int32_t Patch = 4;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -0,0 +1 @@
1
+ 0cf1898704af3a3cd4470758b4bc70b8
@@ -0,0 +1 @@
1
+ a1d1abeb460dcb7498ff846e12edb2ce9da6f47f
@@ -0,0 +1 @@
1
+ 7b69f60dc716b0a2b90d6da4dd760596
@@ -0,0 +1 @@
1
+ 33a9e5b0ca6d8bd2fa2987a1dfe1e6f424394fbd
@@ -0,0 +1 @@
1
+ b28536846176fc65c131909d81a6f2a7
@@ -0,0 +1 @@
1
+ 29a4490b5c3802a8ce619024d604b16d68c0e369
@@ -4,7 +4,7 @@
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.facebook.react</groupId>
6
6
  <artifactId>react-native</artifactId>
7
- <version>0.64.2</version>
7
+ <version>0.64.4</version>
8
8
  <packaging>aar</packaging>
9
9
  <name>ReactNative</name>
10
10
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ 3195a42e1a5965c0f813251cafe2b1ae
@@ -0,0 +1 @@
1
+ 8c16192b94310132762c735699d20b791623a3ac
@@ -3,10 +3,10 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <release>0.64.2</release>
6
+ <release>0.64.4</release>
7
7
  <versions>
8
- <version>0.64.2</version>
8
+ <version>0.64.4</version>
9
9
  </versions>
10
- <lastUpdated>20210603172949</lastUpdated>
10
+ <lastUpdated>20221107001930</lastUpdated>
11
11
  </versioning>
12
12
  </metadata>
@@ -1 +1 @@
1
- bbff08476171883317414c491685e186
1
+ 7d4f1ce08fdc6f6a817c2f5322dfeb98
@@ -1 +1 @@
1
- 9cd18d3514fed67424012c4c3b34b3e533a63c7a
1
+ b76e04ae0a91b9324981510ded443521eeef7196
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.64.2",
3
+ "version": "0.64.4",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
package/react.gradle CHANGED
@@ -348,3 +348,21 @@ afterEvaluate {
348
348
  }
349
349
  }
350
350
  }
351
+
352
+ // Patch needed for https://github.com/facebook/react-native/issues/35210
353
+ // This is a patch to short-circuit the "+" dependencies inside the
354
+ // users' app/build.gradle file and the various .gradle files of libraries.
355
+ // As using plain "+" dependencies causes Gradle to always download the latest,
356
+ // this logic forces Gradle to use latest release in the minor series.
357
+ project.rootProject.allprojects {
358
+ // This extra afterEvaluate is needed due to how AGP 4.1.x is resolving
359
+ // Gradle configurations.
360
+ afterEvaluate {
361
+ configurations.all {
362
+ resolutionStrategy {
363
+ force "com.facebook.react:react-native:0.64.+"
364
+ force "com.facebook.react:hermes-engine:0.64.+"
365
+ }
366
+ }
367
+ }
368
+ }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.1",
14
- "react-native": "0.64.2"
14
+ "react-native": "0.64.4"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -1 +0,0 @@
1
- e8a3a3f036a7a55542771d47423f418a
@@ -1 +0,0 @@
1
- 9a9a2a82e3c0ccab2be64811dbcf410daaad0606
@@ -1 +0,0 @@
1
- 800c212ea74543460073cf215e14ecc1
@@ -1 +0,0 @@
1
- e7cc76356f65928f018b08474ee2d7531da0c6a7
@@ -1 +0,0 @@
1
- a1f4484c294eb3e3e436da5edee9c0c5
@@ -1 +0,0 @@
1
- 01a1fcfa725f135acc21e96ed71ff432b1fc553f
@@ -1 +0,0 @@
1
- 389f95f84193a6364d9a78816107b307
@@ -1 +0,0 @@
1
- 48fcceb199d9f1fa6010c5e9e54d824cb21ce869