NativeScript / NativeScript/android

Question about necessity of multiple AAR files in npm package - impacting yarn zero installs

Offen
#1,837 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
C++
Sterne
563
Forks
144
Ø Merge
10 Std. 46 Min.
Gemergte PRs (30 T.)
14

Beschreibung

I'm using yarn zero installs and need to store npm packages compressed in the repository. However, the NativeScript Android npm package contains three large AAR files that are causing issues with GitHub's 100MB upload limit:

  • framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar (~32MB)
  • framework/app/libs/runtime-libs/nativescript-optimized.aar (~30MB)
  • framework/app/libs/runtime-libs/nativescript-regular.aar (~32MB)

Together with all other files these exceed the 100MB limit, making it impossible to commit the compressed packages to the repository.

Question: Are all three of these AAR files actually necessary? Could some of them be made optional or combined to reduce the package size for users who want to use yarn zero installs?

This would greatly help developers who need to maintain reproducible builds with yarn zero installs but are hitting the repository size limits due to these large runtime files.

Another affected NPM package is @nativescript/types-android.

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

Beginne damit, die drei AAR-Dateien unter framework/app/libs/runtime-libs und ihre Referenzierung durch das NativeScript Android npm package zu untersuchen. Ermittle, ob jede Runtime-Variante erforderlich ist, einschließlich für @nativescript/types-android, und definiere als erledigt, dass die Paketgröße reduziert wird, ohne unterstützte Android-Builds oder das yarn zero-install packaging zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, javascript
Bereich
build-system, mobile
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

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