react / react/react-native

Removing `newArchEnabled` property might cause issues with old libraries

Offen
#54,430 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Needs: Attention Needs: Repro p: Callstack Partner Type: New Architecture
Vorherrschende Sprache
C++
Sterne
127k
Forks
25.3k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
4

Beschreibung

Description

When newArchEnabled property is set in gradle.properties, a warning is displayed:

********************************************************************************

WARNING: Setting `newArchEnabled=false` in your `gradle.properties` file is not
supported anymore since React Native 0.82.

You can remove the line from your `gradle.properties` file.

The application will run with the New Architecture enabled by default.

********************************************************************************

As long as your dependencies do not rely on this property to enable new arch, you are good to remove it. Libraries created with builder bob < v0.48.4, check for the property, so disabling it might cause issues with migration.

I propose to remove the line "You can remove the line from your gradle.properties file." or change it to mention old libraries.

Steps to reproduce

not relevant

React Native Version

0.82.0

Affected Platforms

Runtime - Android

Areas

Other (please specify)

Output of npx @react-native-community/cli info
not relevant
Stacktrace or Logs
not relevant
MANDATORY Reproducer

not relevant

Screenshots and Videos

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Das Issue nennt gradle.properties und enthält den Warntext, aber keine React Native-Quelldatei oder keinen Test. Durchsuche das Repository nach der exakten Warnung, untersuche den Android-Konfigurationspfad, der sie ausgibt, und vergleiche die verlinkte builder-bob-Vorlage. Aktualisiere die Anleitung für ältere Bibliotheken und führe anschließend den relevanten Android-Konfigurations- oder Warntest aus; abgeschlossen bedeutet, dass die Meldung nicht länger bedingungslose Sicherheit impliziert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, react-native
Bereich
build-system, mobile
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.